/* ==========================================================================
   Clickfolia — Design System
   Premium dark SaaS aesthetic inspired by the Glyph reference, recolored to
   the Clickfolia teal/cyan brand. Layers on top of Bootstrap 5 (structure)
   and prefixed Tailwind utilities (tw-*, spacing/effects only).
   ========================================================================== */

:root {
    --brand-teal: #2dd4bf;
    --brand-cyan: #22d3ee;
    --brand-gradient: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan));

    --bg-void: #0b0c10;
    --bg-deep: #0e0f14;
    --bg-panel: #15171d;
    --bg-panel-2: #1b1e26;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-softer: rgba(255, 255, 255, 0.05);

    --text-hi: #f5f7fa;
    --text-mid: #c3c9d4;
    --text-muted: #8b93a1;

    --shadow-glow: 0 0 0 1px rgba(45, 212, 191, 0.15), 0 8px 30px rgba(45, 212, 191, 0.12);
    --radius-xl: 1.25rem;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
}

html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-deep);
    color: var(--text-hi);
    overflow-x: hidden;
    max-width: 100vw;
}

/* ---- App-like touch feel: no gray tap flash, no accidental text selection on controls,
   momentum scrolling on iOS. Inputs/textareas keep normal selection so typing still works. */
a, button, .btn, .side-link, [role="button"] {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}
button, .btn, .side-link, [role="button"] {
    -webkit-user-select: none;
    user-select: none;
}
* { -webkit-overflow-scrolling: touch; }

h1, h2, h3, h4, h5, h6, p {
    overflow-wrap: break-word;
    word-break: break-word;
}

.row > * { min-width: 0; }

a { text-decoration: none; }

.font-display { font-weight: 800; letter-spacing: -0.02em; }

/* ---- Dark surface (marketing/public pages) ------------------------------ */
.surface-dark {
    background:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(45, 212, 191, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 10%, rgba(34, 211, 238, 0.10), transparent 55%),
        var(--bg-void);
    color: var(--text-hi);
}

.text-muted-soft { color: var(--text-muted) !important; }
.text-mid-soft { color: var(--text-mid) !important; }

/* ---- Brand mark ---------------------------------------------------------- */
.brand-mark { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; color: var(--text-hi); }
.brand-mark img { height: 62px; width: auto; max-width: 280px; object-fit: contain; }

/* ---- Buttons -------------------------------------------------------------- */
.btn-brand {
    background: var(--brand-gradient);
    border: none;
    color: #04201c;
    font-weight: 700;
    box-shadow: 0 10px 30px -8px rgba(45, 212, 191, 0.55);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-brand:hover { transform: translateY(-1px); filter: brightness(1.05); color: #04201c; box-shadow: 0 14px 34px -8px rgba(45, 212, 191, 0.65); }
.btn-brand:focus { color: #04201c; }

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
    color: var(--text-hi);
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-hi); border-color: rgba(255,255,255,0.18); }

.btn-outline-brand {
    border: 1px solid rgba(45, 212, 191, 0.5);
    color: var(--brand-teal);
    background: transparent;
    font-weight: 600;
}
.btn-outline-brand:hover { background: rgba(45, 212, 191, 0.1); color: var(--brand-teal); }

/* ---- Glass navbar ---------------------------------------------------------- */
.navbar-glass {
    background: rgba(11, 12, 16, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-softer);
}
.navbar-glass .nav-link { color: var(--text-mid); font-weight: 600; }
.navbar-glass .nav-link:hover, .navbar-glass .nav-link.active { color: var(--text-hi); }
.navbar-glass .dropdown-menu {
    background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: 0.85rem;
    padding: 0.5rem; margin-top: 0.5rem; box-shadow: 0 20px 45px -15px rgba(0,0,0,0.6);
}
.navbar-glass .dropdown-item { color: var(--text-mid); font-weight: 600; font-size: 0.9rem; border-radius: 0.5rem; padding: 0.5rem 0.75rem; }
.navbar-glass .dropdown-item:hover, .navbar-glass .dropdown-item:focus { background: rgba(45,212,191,0.1); color: var(--text-hi); }

/* ---- Cards ------------------------------------------------------------------ */
.card-premium {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card-premium:hover { border-color: rgba(45, 212, 191, 0.35); box-shadow: var(--shadow-glow); }

.card-glow {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glow);
}

.auth-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}

/* Dark form controls for cards on dark backgrounds */
.form-dark .form-control,
.form-dark .form-select {
    background: var(--bg-panel-2);
    border: 1px solid var(--border-soft);
    color: var(--text-hi);
}
.form-dark .form-control::placeholder { color: var(--text-muted); }
.form-dark .form-control:focus,
.form-dark .form-select:focus {
    background: var(--bg-panel-2);
    color: var(--text-hi);
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.15);
}
.form-dark label { color: var(--text-mid); font-weight: 600; font-size: 0.875rem; }
.form-dark .form-text { color: var(--text-muted); }

/* ---- Pricing ------------------------------------------------------------------ */
.pricing-card { position: relative; }
.pricing-card.is-featured {
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}
.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--brand-gradient); color: #04201c; font-weight: 700; font-size: 0.75rem;
    padding: 0.3rem 0.9rem; border-radius: 999px; white-space: nowrap;
}

/* ---- Onboarding plan picker (selectable cards, not links) --------------------------- */
.plan-choice-card {
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.plan-choice-card:hover { transform: translateY(-2px); }
.plan-choice-card.is-selected-plan {
    border-color: var(--brand-teal);
    box-shadow: var(--shadow-glow);
}
.duration-pill.is-active-pill { background: var(--brand-gradient); border-color: transparent; color: #04201c; }

/* ---- Theme picker (Appearance) --------------------------------------------------- */
@keyframes themeCardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dotPop {
    0%   { transform: scale(0.4); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes selectedGlow {
    0%, 100% { box-shadow: 0 0 0 1px var(--theme-accent, var(--brand-teal)), 0 8px 30px -6px var(--theme-accent-glow, rgba(45,212,191,0.35)); }
    50%      { box-shadow: 0 0 0 1px var(--theme-accent, var(--brand-teal)), 0 10px 40px -4px var(--theme-accent-glow, rgba(45,212,191,0.55)); }
}

.theme-card {
    position: relative; cursor: pointer; display: block; height: 100%;
    animation: themeCardIn .5s cubic-bezier(.22,1,.36,1) backwards;
    transition: transform .25s ease, border-color .25s ease;
}
.theme-card:hover { transform: translateY(-4px) scale(1.015); }
.theme-card:nth-child(1) { animation-delay: .03s; }
.theme-card:nth-child(2) { animation-delay: .08s; }
.theme-card:nth-child(3) { animation-delay: .13s; }
.theme-card:nth-child(4) { animation-delay: .18s; }
.theme-card:nth-child(5) { animation-delay: .23s; }
.theme-card:nth-child(6) { animation-delay: .28s; }
.theme-card:nth-child(7) { animation-delay: .33s; }
.theme-card:nth-child(8) { animation-delay: .38s; }
.theme-card:nth-child(9) { animation-delay: .43s; }
.theme-card:nth-child(10) { animation-delay: .48s; }

.theme-card.is-selected {
    border-color: var(--theme-accent, var(--brand-teal)) !important;
    animation: themeCardIn .5s cubic-bezier(.22,1,.36,1) backwards, selectedGlow 2.4s ease-in-out infinite;
}
.theme-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.theme-select-dot {
    position: absolute; top: 0.85rem; right: 0.85rem; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; z-index: 2;
    background: rgba(0, 0, 0, 0.35); border: 2px solid rgba(255, 255, 255, 0.35);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-card.is-selected .theme-select-dot {
    background: var(--theme-accent, var(--brand-teal));
    border-color: var(--theme-accent, var(--brand-teal));
}
.theme-select-dot i {
    color: #fff; font-size: 0.85rem; opacity: 0; transform: scale(0);
    transition: opacity .15s ease, transform .15s ease;
}
.theme-card.is-selected .theme-select-dot i {
    opacity: 1; transform: scale(1); animation: dotPop .35s cubic-bezier(.22,1,.36,1);
}

.theme-preview {
    position: relative; overflow: hidden; transition: transform .3s ease;
}
.theme-card:hover .theme-preview { transform: scale(1.02); }
.theme-preview .theme-preview-dot {
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.theme-card:hover .theme-preview .theme-preview-dot { transform: scale(1.12) rotate(-6deg); }

.theme-lock-overlay {
    position: absolute; inset: 0; border-radius: inherit; z-index: 3;
    background: rgba(10, 11, 14, 0.72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
    opacity: 0; transition: opacity .2s ease; text-align: center; padding: 1rem;
}
.theme-card:hover .theme-lock-overlay,
.theme-card.is-locked .theme-lock-overlay { opacity: 1; }
.theme-card.is-locked .theme-select-dot { display: none; }

/* ---- Locked feature (plan-gated dashboard sections) -------------------------------- */
.locked-feature-wrap { position: relative; min-height: 340px; }
.locked-feature-content {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
@media (prefers-reduced-motion: no-preference) {
    .locked-feature-content { transition: filter .2s ease; }
}
.locked-feature-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    padding: 2rem 1.5rem;
    background: rgba(11, 12, 16, 0.45);
    border-radius: var(--radius-xl);
}
.locked-feature-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(45, 212, 191, 0.14); border: 1px solid rgba(45, 212, 191, 0.3);
    color: var(--brand-teal); font-size: 1.4rem;
}
.locked-feature-overlay h5 { font-weight: 800; margin: 0; color: var(--text-hi); }
.locked-feature-overlay p { color: var(--text-mid); font-size: 0.9rem; max-width: 380px; margin: 0; }

/* ---- Cookie consent banner ------------------------------------------------------------ */
.cookie-consent-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
    padding: 1rem; animation: fadeUpConsent .4s cubic-bezier(.22,1,.36,1) both;
}
.cookie-consent-inner {
    max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem; border-radius: var(--radius-lg);
    background: var(--bg-panel); border: 1px solid var(--border-soft);
    box-shadow: 0 12px 40px -12px rgba(0,0,0,0.5);
}
.cookie-consent-inner p { flex: 1 1 320px; color: var(--text-mid); }
@keyframes fadeUpConsent { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Cover / header banner image --------------------------------------------------- */
.cover-drop {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    border: 1.5px dashed var(--border-soft); background: var(--bg-panel-2);
    min-height: 160px; display: flex; align-items: center; justify-content: center;
    transition: border-color .2s ease, transform .2s ease;
    cursor: pointer;
}
.cover-drop:hover { border-color: rgba(45, 212, 191, 0.5); }
.cover-drop img { width: 100%; height: 160px; object-fit: cover; display: block; }
.cover-drop .cover-empty-state { color: var(--text-muted); text-align: center; padding: 1.5rem; }
.cover-drop .cover-empty-state i { font-size: 1.6rem; color: var(--brand-teal); }

.profile-cover-banner {
    width: 100%; height: 200px; object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

/* ---- Phone mockup (hero) -------------------------------------------------------- */
.phone-mockup {
    width: 280px; border-radius: 2.2rem; padding: 14px;
    background: linear-gradient(160deg, #1a1c24, #0e0f14);
    border: 1px solid var(--border-soft);
    box-shadow: 0 40px 90px -20px rgba(0,0,0,0.65), var(--shadow-glow);
}
.phone-mockup-screen {
    border-radius: 1.6rem; overflow: hidden; background: var(--bg-void);
    padding: 1.75rem 1.25rem; min-height: 480px;
    background: radial-gradient(ellipse at top, rgba(45,212,191,0.18), transparent 60%), var(--bg-void);
}
.phone-avatar {
    width: 68px; height: 68px; border-radius: 50%;
    background: var(--brand-gradient); display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #04201c; font-size: 1.4rem; margin: 0 auto 0.75rem;
}
.phone-link {
    background: rgba(255,255,255,0.06); border: 1px solid var(--border-soft);
    border-radius: 0.85rem; padding: 0.7rem 1rem; color: var(--text-hi);
    font-weight: 600; font-size: 0.85rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem;
}

.text-gradient {
    background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}

/* ---- Hero showcase (laptop + phone mockup, floating feature cards) -------------------
   Everything here is pure CSS/markup — no exported artwork — so it restyles with the brand
   tokens and stays crisp at any zoom. Scaled via a single --hs unit so the whole scene can
   shrink on narrow screens without re-tuning every child. */
.hero-dot-grid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 75%);
}
.hero-spark {
    position: absolute; width: 5px; height: 5px; border-radius: 50%; z-index: 1; pointer-events: none;
    background: var(--brand-cyan); box-shadow: 0 0 10px 2px var(--brand-cyan);
    animation: heroSpark 4.5s ease-in-out infinite;
}
@keyframes heroSpark { 0%, 100% { opacity: .25; transform: translateY(0) scale(.85); } 50% { opacity: 1; transform: translateY(-10px) scale(1.15); } }

.hero-stage { position: relative; width: 100%; max-width: 560px; min-height: 540px; margin: 0 auto; }

/* ---- Laptop --------------------------------------------------------------------------- */
.hero-laptop { position: absolute; left: 50%; top: 2%; transform: translateX(-50%); width: 96%; max-width: 480px; z-index: 2; }
.hero-laptop-screen {
    background: linear-gradient(160deg, #22252f, #101118);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 0.85rem 0.85rem 0.25rem 0.25rem;
    padding: 0.7rem 0.55rem 0.55rem;
    box-shadow: 0 50px 100px -25px rgba(0,0,0,0.75), 0 0 0 1px rgba(45,212,191,0.08), 0 0 60px -10px rgba(45,212,191,0.18);
}
.hero-laptop-camera { width: 5px; height: 5px; border-radius: 50%; background: #2f323d; margin: 0 auto 0.45rem; }
.hero-laptop-inner {
    background: radial-gradient(ellipse at 70% 0%, rgba(45,212,191,0.13), transparent 60%), #0a0b10;
    border-radius: 0.45rem; padding: 0.6rem; min-height: 250px; display: flex; gap: 0.55rem;
}
.hero-laptop-nav { width: 27%; display: flex; flex-direction: column; gap: 0.28rem; }
.hero-laptop-brand { display: flex; align-items: center; margin-bottom: 0.35rem; }
.hero-laptop-brand img { height: 12px; width: auto; max-width: 100%; object-fit: contain; }
.hero-laptop-nav-item {
    font-size: 0.5rem; font-weight: 700; color: var(--text-muted); padding: 0.28rem 0.4rem;
    border-radius: 0.35rem; display: flex; align-items: center; gap: 0.3rem; white-space: nowrap;
}
.hero-laptop-nav-item.is-active { background: rgba(45,212,191,0.16); color: var(--brand-teal); }
.hero-laptop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.hero-laptop-row { display: flex; gap: 0.4rem; }
.hero-panel {
    background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.45rem; padding: 0.45rem 0.5rem;
}
.hero-profile-card { flex: 1.55; display: flex; align-items: center; gap: 0.45rem; }
.hero-profile-avatar {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    background: var(--brand-gradient); display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 800; color: #04201c;
}
.hero-profile-name { font-size: 0.58rem; font-weight: 800; color: var(--text-hi); display: flex; align-items: center; gap: 0.2rem; }
.hero-profile-name .bi-patch-check-fill { color: var(--brand-cyan); font-size: 0.5rem; }
.hero-profile-meta { font-size: 0.44rem; color: var(--text-muted); }
.hero-profile-btn {
    margin-top: 0.25rem; display: inline-block; font-size: 0.42rem; font-weight: 700; color: var(--text-hi);
    background: rgba(255,255,255,0.08); border-radius: 999px; padding: 0.15rem 0.4rem;
}
.hero-stat-card { flex: 1; }
.hero-stat-label { font-size: 0.42rem; color: var(--text-muted); }
.hero-stat-value { font-size: 0.72rem; font-weight: 800; color: var(--text-hi); line-height: 1.2; }
.hero-stat-delta { font-size: 0.4rem; font-weight: 700; color: #4ade80; }
.hero-sparkline { width: 100%; height: 14px; display: block; margin-top: 0.15rem; }
.hero-sparkline path { fill: none; stroke: var(--brand-teal); stroke-width: 2; stroke-linecap: round; }

.hero-links-panel { flex: 1.55; }
.hero-panel-title { font-size: 0.46rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.hero-laptop-link-row {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 0.4rem;
    padding: 0.28rem 0.35rem; display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.25rem;
}
.hero-link-ico { width: 13px; height: 13px; border-radius: 0.22rem; display: flex; align-items: center; justify-content: center; font-size: 0.45rem; color: #fff; flex-shrink: 0; }
.hero-link-text { flex: 1; min-width: 0; }
.hero-link-title { font-size: 0.46rem; font-weight: 700; color: var(--text-hi); }
.hero-link-url { font-size: 0.38rem; color: var(--text-muted); }
.hero-toggle { width: 16px; height: 9px; border-radius: 999px; background: var(--brand-teal); position: relative; flex-shrink: 0; }
.hero-toggle::after { content: ""; position: absolute; right: 1px; top: 1px; width: 7px; height: 7px; border-radius: 50%; background: #04201c; }
.hero-theme-panel { flex: 1; }
.hero-theme-preview { height: 42px; border-radius: 0.3rem; background: linear-gradient(160deg, #1b1e26, #0e0f14); border: 1px solid rgba(255,255,255,0.07); margin-bottom: 0.3rem; }
.hero-swatches { display: flex; flex-wrap: wrap; gap: 0.18rem; }
.hero-swatches i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.hero-swatch-more { font-size: 0.36rem; color: var(--text-muted); font-weight: 700; align-self: center; margin-left: 0.1rem; }

.hero-laptop-base {
    height: 11px; margin: 0 -4%; border-radius: 0 0 1rem 1rem;
    background: linear-gradient(180deg, #2b2e38, #15161c); border: 1px solid rgba(255,255,255,0.1); border-top: none;
    position: relative;
}
.hero-laptop-base::after { content: ""; position: absolute; left: 50%; top: 2px; transform: translateX(-50%); width: 18%; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.09); }

/* ---- Phone ---------------------------------------------------------------------------- */
.hero-phone {
    position: absolute; right: 0; bottom: -5%; z-index: 3; width: 148px;
    border-radius: 1.5rem; padding: 6px;
    background: linear-gradient(160deg, #2b2e38, #0d0e13);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8), 0 0 50px -12px rgba(45,212,191,0.22);
}
.hero-phone-screen {
    position: relative; border-radius: 1.15rem; overflow: hidden; padding: 0.75rem 0.5rem 0.5rem; text-align: center;
    background: radial-gradient(ellipse at top, rgba(45,212,191,0.16), transparent 62%), #06070b;
}
.hero-phone-notch { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 34%; height: 7px; border-radius: 999px; background: #0d0e13; }
.hero-phone-avatar {
    width: 34px; height: 34px; border-radius: 50%; margin: 0.5rem auto 0.3rem;
    background: var(--brand-gradient); display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #04201c; font-size: 0.72rem; border: 2px solid rgba(255,255,255,0.85);
}
.hero-phone-name { font-size: 0.55rem; font-weight: 800; color: var(--text-hi); display: flex; align-items: center; justify-content: center; gap: 0.15rem; }
.hero-phone-name .bi-patch-check-fill { color: var(--brand-cyan); font-size: 0.45rem; }
.hero-phone-bio { font-size: 0.4rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.hero-phone-socials { display: flex; justify-content: center; gap: 0.3rem; margin-bottom: 0.4rem; color: var(--text-mid); font-size: 0.5rem; }
.hero-phone-link {
    border-radius: 0.4rem; padding: 0.28rem 0.35rem; margin-bottom: 0.25rem;
    font-size: 0.44rem; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 0.25rem; text-align: left;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.6);
}
.hero-phone-link .bi-chevron-right { margin-left: auto; font-size: 0.38rem; opacity: 0.85; }
.hero-powered-badge {
    margin-top: 0.45rem; font-size: 0.4rem; font-weight: 700; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; gap: 0.22rem;
}
.hero-powered-badge img { height: 9px; width: auto; }

/* ---- Floating feature cards ------------------------------------------------------------ */
.hero-float-card {
    position: absolute; z-index: 4; background: rgba(21, 23, 29, 0.92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 0.8rem; padding: 0.5rem 0.7rem;
    box-shadow: 0 20px 45px -14px rgba(0,0,0,0.65), 0 0 24px -10px rgba(45,212,191,0.35);
    display: flex; align-items: center; gap: 0.5rem; animation: floatCard 5s ease-in-out infinite;
}
.hero-float-card .hero-float-icon {
    width: 26px; height: 26px; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; flex-shrink: 0;
}
.hero-float-card .hero-float-title { font-size: 0.66rem; font-weight: 700; color: var(--text-hi); white-space: nowrap; }
.hero-float-card .hero-float-sub { font-size: 0.55rem; color: var(--text-muted); white-space: nowrap; }
.hero-float-card.is-instagram { top: 0; left: 6%; animation-delay: 0s; }
.hero-float-card.is-youtube { top: 24%; left: -12%; animation-delay: .7s; }
.hero-float-card.is-portfolio { top: 50%; left: -10%; animation-delay: 1.4s; }
.hero-float-card.is-analytics { top: -2%; right: -10%; animation-delay: .35s; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.hero-float-card.is-domain { top: 34%; right: -14%; animation-delay: 1.05s; }
.hero-float-card.is-qr { top: 58%; right: -12%; animation-delay: 1.75s; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.hero-float-card.is-appointments { bottom: 0; right: -2%; animation-delay: 2.1s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-analytics-head { display: flex; align-items: center; gap: 0.35rem; }
.hero-analytics-bars { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.hero-analytics-bars i { width: 4px; border-radius: 1px; background: var(--brand-teal); display: block; opacity: 0.9; }
.hero-qr-grid {
    width: 46px; height: 46px; padding: 3px; border-radius: 0.25rem; background: #fff;
    display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 1px;
}
.hero-qr-grid i { display: block; background: transparent; border-radius: 0.5px; }
.hero-qr-grid i.on { background: #0a0b10; }

/* ---- Testimonial chip ------------------------------------------------------------------ */
.hero-testimonial-chip {
    position: absolute; left: 4%; bottom: 2%; z-index: 5;
    background: rgba(21, 23, 29, 0.92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 0.85rem;
    padding: 0.45rem 0.85rem; box-shadow: 0 20px 45px -14px rgba(0,0,0,0.65), 0 0 24px -10px rgba(45,212,191,0.3);
    display: flex; align-items: center; gap: 0.55rem;
}
.hero-avatar-stack { display: flex; }
.hero-avatar-stack span {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid #15171d;
    background: var(--brand-gradient); margin-left: -8px; display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem; font-weight: 800; color: #04201c;
}
.hero-avatar-stack span:first-child { margin-left: 0; }
.hero-testimonial-chip .fw-bold { font-size: 0.68rem; }
.hero-testimonial-chip .bi-star-fill { color: #fbbf24; font-size: 0.55rem; }

@media (max-width: 1399.98px) {
    .hero-float-card.is-analytics, .hero-float-card.is-domain { right: -4%; }
    .hero-float-card.is-qr { right: -2%; }
    .hero-float-card.is-youtube, .hero-float-card.is-portfolio { left: -4%; }
}
@media (max-width: 1199.98px) {
    .hero-float-card { display: none; }
    .hero-spark { display: none; }
}
@media (max-width: 575.98px) {
    .hero-stage { min-height: 400px; }
    .hero-testimonial-chip { display: none; }
    .hero-phone { width: 112px; right: 0; }
    .hero-laptop { width: 100%; }
    .hero-laptop-inner { min-height: 200px; }
}

/* ---- Brands strip — real onboarded creators -----------------------------------------------
   Two modes, chosen by JS after measuring: while the chips fit they simply centre and wrap onto
   more lines; once they overflow the row, .is-marquee turns on the scroll (JS clones the chips
   so the loop is seamless). Rendering the duplicate set unconditionally is what made a handful
   of creators look like they were listed twice. */
.brands-section { border-top: 1px solid var(--border-softer); border-bottom: 1px solid var(--border-softer); }
.brands-marquee { position: relative; }

.brands-track {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
    padding: 0 1rem;
}

/* Overflowing: single line, no wrap, translated continuously. The track holds the chips twice,
   so translating exactly -50% lands the copy where the original began — a seamless loop. */
.brands-marquee.is-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    overflow: hidden;
}
.brands-marquee.is-marquee .brands-track {
    flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0;
    animation: brandsScroll var(--marquee-duration, 40s) linear infinite;
}
.brands-marquee.is-marquee:hover .brands-track { animation-play-state: paused; }
@keyframes brandsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.brand-chip {
    display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; text-decoration: none;
    background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: 999px;
    padding: 0.5rem 1.1rem 0.5rem 0.5rem; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.brand-chip:hover { border-color: rgba(45,212,191,0.45); transform: translateY(-2px); background: var(--bg-panel-2); }
.brand-chip-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.brand-chip-fallback {
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient); color: #04201c; font-size: 0.9rem;
}
.brand-chip-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-chip-name { font-size: 0.85rem; font-weight: 700; color: var(--text-hi); white-space: nowrap; }
.brand-chip-handle { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .brands-marquee.is-marquee .brands-track { animation: none; }
}

/* ---- Feature cards — spotlight follows the cursor, staggered reveal on scroll ----------- */
.feature-card {
    position: relative; height: 100%; overflow: hidden;
    background: var(--bg-panel); border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
    transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .3s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.feature-card.scroll-fade-in { transition: opacity .6s ease var(--reveal-delay, 0ms), transform .6s ease var(--reveal-delay, 0ms); }
.feature-card:hover {
    transform: translateY(-6px); border-color: rgba(45,212,191,0.4);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6), var(--shadow-glow);
}
/* Gradient hairline that lights up along the top edge on hover. */
.feature-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--brand-gradient); transform: scaleX(0); transform-origin: left;
    transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.feature-card:hover::before { transform: scaleX(1); }
/* Radial spotlight positioned from the pointer via --mx/--my set in app.js. */
.feature-card-glow {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(45,212,191,0.14), transparent 65%);
}
.feature-card:hover .feature-card-glow { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px; border-radius: 0.9rem; margin-bottom: 1rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
    background: rgba(45,212,191,0.12); color: var(--brand-teal);
    transition: transform .35s cubic-bezier(.22,1,.36,1), background .3s ease, color .3s ease;
}
.feature-card:hover .feature-icon {
    transform: translateY(-2px) rotate(-6deg) scale(1.06);
    background: var(--brand-gradient); color: #04201c;
}

/* ---- Stats bar with icon chips (landing page) ------------------------------------------ */
.stat-chip-icon {
    width: 44px; height: 44px; border-radius: 0.75rem; margin: 0 auto 0.6rem;
    background: rgba(45,212,191,0.12); color: var(--brand-teal);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

/* ---- Sidebars (dashboard / admin) — fixed & collapsible, body/content scrolls independently */
.app-shell { min-height: 100vh; background: var(--bg-deep); }
.app-sidebar {
    background: var(--bg-void);
    border-right: 1px solid var(--border-softer);
    scrollbar-width: thin;
    scrollbar-color: var(--border-soft) transparent;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    z-index: 1045;
    overflow-y: auto;
    overflow-x: hidden;
}
.app-sidebar::-webkit-scrollbar { width: 6px; }
.app-sidebar::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 999px; }
.app-sidebar-inner { width: 240px; min-height: 100%; }

/* Bootstrap collapse (horizontal) drives the mobile off-canvas open/close */
.app-sidebar.collapse:not(.show) { display: none; width: 0; }
.app-sidebar.collapsing { display: block; transition: width .3s ease; }

.app-main {
    min-height: 100vh;
    transition: margin-left .3s ease;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

.sidebar-toggle-btn {
    background: rgba(255,255,255,0.06); border: 1px solid var(--border-soft); color: var(--text-mid);
    width: 38px; height: 38px; border-radius: 0.6rem; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s ease, color .15s ease;
}
.sidebar-toggle-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-hi); }

.sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1040;
    opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.sidebar-backdrop.show { opacity: 1; visibility: visible; }

/* ---- Bottom tab bar — mobile-only native-app-style primary nav, replaces the top
   hamburger below the desktop breakpoint. "More" opens the full sidebar off-canvas. */
.bottom-tab-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1046;
    display: flex;
    background: rgba(14, 15, 20, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-softer);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-tab-item {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.2rem; padding: 0.5rem 0.25rem 0.4rem; min-height: 56px;
    color: var(--text-muted); text-decoration: none; font-size: 0.66rem; font-weight: 700;
    border: 0; background: transparent; position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease;
}
.bottom-tab-item i { font-size: 1.3rem; line-height: 1; }
.bottom-tab-item.active { color: var(--brand-teal); }
.bottom-tab-item:active { transform: scale(0.94); }
.bottom-tab-badge {
    position: absolute; top: 0.2rem; right: calc(50% - 22px);
    background: var(--brand-teal); color: #04201c; font-size: 0.6rem; font-weight: 800;
    min-width: 16px; height: 16px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
    box-shadow: 0 0 0 2px rgba(14, 15, 20, 0.92);
}

@media (min-width: 992px) {
    /* Desktop: sidebar is always visible and pinned, ignoring collapsed state left over from mobile */
    .app-sidebar.collapse:not(.show),
    .app-sidebar.collapsing {
        display: block;
        width: 240px;
    }
    .app-main { margin-left: 240px; padding-bottom: 0; }
    .sidebar-toggle-btn { display: none; }
    .bottom-tab-bar { display: none; }
}
.side-link {
    color: var(--text-mid); font-weight: 600; border-radius: 0.7rem; padding: 0.6rem 0.9rem;
    display: flex; align-items: center; gap: 0.65rem; transition: background .15s ease, color .15s ease;
    text-decoration: none;
}
.side-link:hover { background: rgba(255,255,255,0.05); color: var(--text-hi); }
.side-link.active { background: rgba(45, 212, 191, 0.12); color: var(--brand-teal); }
.app-sidebar .side-section-label { color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

.app-topbar {
    background: rgba(14, 15, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-softer);
}

.stat-tile {
    background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.stat-tile .stat-value { font-size: 1.65rem; font-weight: 800; color: var(--text-hi); }
.stat-tile .stat-label { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; }
.stat-tile .stat-icon {
    width: 42px; height: 42px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
    background: rgba(45, 212, 191, 0.12); color: var(--brand-teal); font-size: 1.15rem;
}

/* ---- Tables (dark) -------------------------------------------------------------- */
.table-dark-premium {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-mid);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-striped-color: var(--text-mid);
    --bs-table-active-bg: rgba(255, 255, 255, 0.06);
    --bs-table-active-color: var(--text-hi);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-color: var(--text-hi);
    --bs-table-border-color: var(--border-softer);
    color: var(--text-mid);
    border-color: var(--border-soft);
    background-color: transparent;
}
.table-dark-premium > :not(caption) > * > * { background-color: var(--bs-table-bg); box-shadow: none; }
.table-dark-premium thead th {
    color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-soft); font-weight: 700;
}
.table-dark-premium td { border-color: var(--border-softer); vertical-align: middle; color: var(--text-mid); }
.table-dark-premium tbody tr:hover { background: rgba(255,255,255,0.03); }

/* ---- Links inside dark surfaces default to brand teal, not Bootstrap blue -------- */
.card-premium a:not(.btn):not(.side-link),
.card-glow a:not(.btn):not(.side-link),
.stat-tile a:not(.btn),
.table-dark-premium a:not(.btn) {
    color: var(--brand-teal);
    font-weight: 600;
}
.card-premium a:not(.btn):not(.side-link):hover,
.card-glow a:not(.btn):not(.side-link):hover,
.stat-tile a:not(.btn):hover,
.table-dark-premium a:not(.btn):hover {
    color: var(--brand-cyan);
}

/* ---- Form check / switch controls on dark surfaces -------------------------------- */
.form-dark .form-check-input {
    background-color: var(--bg-panel-2);
    border-color: var(--border-soft);
}
.form-dark .form-check-input:checked {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}
.form-dark .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.15);
}
.form-dark .form-select { color-scheme: dark; }

/* ---- Badges --------------------------------------------------------------------- */
.badge-soft-teal { background: rgba(45, 212, 191, 0.14); color: var(--brand-teal); font-weight: 700; }
.badge-soft-danger { background: rgba(248, 113, 113, 0.14); color: #f87171; font-weight: 700; }
.badge-soft-muted { background: rgba(255,255,255,0.08); color: var(--text-mid); font-weight: 700; }

/* ---- FAQ / accordion (dark) ------------------------------------------------------ */
.accordion-dark .accordion-item { background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius-md) !important; overflow: hidden; margin-bottom: 0.75rem; }
.accordion-dark .accordion-button { background: var(--bg-panel); color: var(--text-hi); font-weight: 700; }
.accordion-dark .accordion-button:not(.collapsed) { background: var(--bg-panel-2); color: var(--brand-teal); box-shadow: none; }
.accordion-dark .accordion-button:focus { box-shadow: none; }
.accordion-dark .accordion-button::after { filter: invert(1) brightness(2); }
.accordion-dark .accordion-body { color: var(--text-mid); }

/* ---- Public profile page --------------------------------------------------------- */
.profile-page { min-height: 100vh; padding: 3.5rem 1rem; }
.profile-avatar-lg {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,255,255,0.15);
}
.profile-link-btn {
    display: flex; align-items: center; gap: 0.75rem; width: 100%;
    padding: 0.95rem 1.25rem; border-radius: 0.9rem; font-weight: 700;
    transition: transform .15s ease, filter .15s ease; margin-bottom: 0.85rem;
}
.profile-link-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ---- Misc ------------------------------------------------------------------------ */
.divider-soft { border-color: var(--border-soft); }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem; color: var(--brand-teal);
    font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
    background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.25);
    padding: 0.35rem 0.85rem; border-radius: 999px;
}
.bg-blob {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; pointer-events: none; z-index: 0;
}

.scroll-fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.scroll-fade-in.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 767.98px) {
    .phone-mockup { width: 240px; }
}

.page-offset-top { padding-top: 92px; }

/* ---- "Made in India" waving flag (footer) ------------------------------------------------
   Drawn entirely in CSS — the tricolour is a hard-stop gradient, the Ashoka chakra is a
   conic-gradient of 24 spokes over a navy ring, and the cloth "waves" via a skew/rotate
   cycle anchored at the hoist edge, with a moving sheen for the light catching the fabric. */
.flag-in {
    position: relative; display: inline-block; width: 26px; height: 18px; flex-shrink: 0;
    border-radius: 2px; overflow: hidden;
    background: linear-gradient(to bottom,
        #ff9933 0 33.34%,
        #ffffff 33.34% 66.67%,
        #138808 66.67% 100%);
    box-shadow: 0 1px 4px rgba(0,0,0,0.45);
    transform-origin: left center;
    animation: flagWave 3.2s ease-in-out infinite;
}
/* Moving sheen = the ripple catching light as the cloth flexes. */
.flag-in::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 70%);
    background-size: 220% 100%;
    animation: flagSheen 3.2s ease-in-out infinite;
}
.flag-in-chakra {
    position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
    border-radius: 50%; border: 0.8px solid #000080; box-sizing: border-box;
    background:
        radial-gradient(circle, #000080 0 22%, transparent 23%),
        repeating-conic-gradient(#000080 0 3deg, transparent 3deg 15deg);
}
@keyframes flagWave {
    0%, 100% { transform: perspective(70px) rotateY(0deg) skewY(0deg); }
    25%      { transform: perspective(70px) rotateY(-8deg) skewY(-2deg); }
    50%      { transform: perspective(70px) rotateY(0deg) skewY(0deg); }
    75%      { transform: perspective(70px) rotateY(8deg) skewY(2deg); }
}
@keyframes flagSheen {
    0%, 100% { background-position: 130% 0; }
    50%      { background-position: -30% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .flag-in, .flag-in::after { animation: none; }
}

/* ---- Link icon + colour picker (dashboard > Links) --------------------------------------
   The full Bootstrap Icons set (~2,050 marks) ships with the app already, so the picker
   renders from a generated name list rather than pulling a second copy from a CDN. Only a
   window of results is in the DOM at a time — mounting 2,000 <i> nodes per form would stall
   the page, and nobody scrolls past the first screenful without searching anyway. */
.icon-trigger {
    width: 100%; display: flex; align-items: center; gap: 0.6rem;
    background: var(--bg-panel-2); border: 1px solid var(--border-soft); border-radius: 0.6rem;
    padding: 0.5rem 0.75rem; color: var(--text-hi); font-weight: 600; font-size: 0.9rem;
    transition: border-color .15s ease;
}
.icon-trigger:hover { border-color: rgba(45,212,191,0.45); }
.icon-trigger-preview {
    width: 30px; height: 30px; border-radius: 0.45rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(45,212,191,0.12); color: var(--brand-teal); font-size: 1rem;
}
.icon-trigger-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-picker {
    margin-top: 0.5rem; padding: 0.6rem;
    background: var(--bg-panel-2); border: 1px solid var(--border-soft); border-radius: 0.6rem;
}
.icon-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 0.3rem;
    max-height: 190px; overflow-y: auto; scrollbar-width: thin;
}
.icon-grid::-webkit-scrollbar { width: 6px; }
.icon-grid::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 999px; }
.icon-option {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid transparent; border-radius: 0.45rem;
    color: var(--text-mid); font-size: 1rem; transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.icon-option:hover { background: rgba(255,255,255,0.07); color: var(--text-hi); }
.icon-option.is-selected { background: rgba(45,212,191,0.16); border-color: var(--brand-teal); color: var(--brand-teal); }

.colour-swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.colour-swatch {
    width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent;
    box-shadow: 0 0 0 1px var(--border-soft); padding: 0; transition: transform .12s ease, border-color .12s ease;
}
.colour-swatch:hover { transform: scale(1.1); }
.colour-swatch.is-selected { border-color: var(--text-hi); box-shadow: 0 0 0 1px var(--brand-teal); }
.colour-swatch.is-default {
    background: var(--bg-panel-2); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}

.link-preview {
    display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-radius: 0.85rem;
    background: var(--bg-panel-2); border: 1px solid var(--border-soft); color: var(--text-hi);
    font-weight: 700; font-size: 0.9rem; transition: background .18s ease, color .18s ease;
}
.link-preview-icon {
    width: 30px; height: 30px; border-radius: 0.5rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.14); font-size: 0.95rem;
}
.link-preview-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.link-row-chip {
    width: 30px; height: 30px; border-radius: 0.5rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}

/* ---- Admin: live users widget ------------------------------------------------------------ */
.live-pulse {
    position: relative; width: 14px; height: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.live-pulse span {
    width: 10px; height: 10px; border-radius: 50%; background: #4ade80;
    box-shadow: 0 0 10px 2px rgba(74,222,128,0.6);
}
/* The expanding ring is decorative; it stops for anyone who's asked for reduced motion. */
.live-pulse::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(74,222,128,0.6);
    animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
    0%   { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(2.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .live-pulse::after { animation: none; opacity: 0; } }

.live-avatar {
    width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    background: var(--brand-gradient); color: #04201c; font-weight: 800; font-size: 0.8rem;
    border: 2px solid var(--bg-panel); box-shadow: 0 0 0 1px var(--border-soft);
    transition: transform .15s ease;
}
.live-avatar:hover { transform: translateY(-2px); }
.live-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Username availability indicator ---------------------------------------------------- */
.username-status {
    min-width: 42px; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: color .15s ease, border-color .15s ease;
}
.username-status.is-ok { color: #4ade80; border-color: rgba(74,222,128,0.45) !important; }
.username-status.is-bad { color: #f87171; border-color: rgba(248,113,113,0.45) !important; }
.username-status.is-checking { color: var(--brand-teal); }

/* ---- Catalog mode toggle (Products / Services) ------------------------------------------ */
.catalog-toggle { display: inline-flex; background: var(--bg-panel-2); border: 1px solid var(--border-soft); border-radius: 999px; padding: 3px; gap: 3px; }
.catalog-toggle-btn {
    border: 0; background: transparent; color: var(--text-mid); font-weight: 700; font-size: 0.85rem;
    padding: 0.4rem 1rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.4rem;
    transition: background .15s ease, color .15s ease;
}
.catalog-toggle-btn.is-active { background: var(--brand-gradient); color: #04201c; }
.catalog-toggle-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* "Start today for ₹1" strip on paid plan cards — the low entry price is the hook, the recurring
   amount sits right under it at readable size so the offer can't read as a hidden charge. */
.start-for-one {
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 0.7rem;
    padding: 0.6rem 0.8rem;
    line-height: 1.35;
}
