/* ----------------------------------------------------------------------
   ScanMe Wallet Cards — UI
   ------------------------------------------------------------------- */
:root {
    /* Neutrals */
    --c-bg:        #f6f7fb;
    --c-panel:     #ffffff;
    --c-border:    #e5e7eb;
    --c-text:      #0b1220;
    --c-muted:     #64748b;
    --c-danger:    #dc2626;
    --c-ok:        #16a34a;

    /* Accent palette (indigo → violet → pink) */
    --c-primary:    #4f46e5;   /* indigo-600 */
    --c-primary-d:  #4338ca;
    --c-violet:     #8b5cf6;
    --c-pink:       #ec4899;
    --c-cyan:       #06b6d4;

    /* Signature gradients */
    --g-brand:     linear-gradient(120deg, #4f46e5 0%, #8b5cf6 45%, #ec4899 100%);
    --g-brand-dim: linear-gradient(120deg, rgba(79,70,229,.10), rgba(139,92,246,.08), rgba(236,72,153,.10));
    --g-cool:      linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
    --g-night:     radial-gradient(1200px 600px at 20% -10%, rgba(79,70,229,.35), transparent 60%),
                   radial-gradient(900px 500px at 100% 10%, rgba(236,72,153,.28), transparent 55%),
                   linear-gradient(180deg, #0a0f1f 0%, #0b1028 100%);

    /* Radii + shadows */
    --radius:      16px;
    --radius-lg:   22px;
    --shadow:      0 2px 6px rgba(15,23,42,.06), 0 12px 24px -12px rgba(15,23,42,.12);
    --shadow-lg:   0 4px 12px rgba(15,23,42,.08), 0 24px 60px -20px rgba(15,23,42,.22);
    --glow-brand:  0 18px 50px -12px rgba(79,70,229,.55), 0 8px 18px -10px rgba(236,72,153,.35);
    --glow-soft:   0 10px 40px -8px rgba(79,70,229,.35);

    /* IBM Plex Sans is first for Latin/Cyrillic/Greek/… (see fonts.css).
       Vazirmatn covers Arabic/Persian via unicode-range; RTL pages pin
       full Vazirmatn in [dir="rtl"] rules below. */
    font-family: 'IBM Plex Sans', 'Vazirmatn', system-ui, -apple-system, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;

    /* Same content column as marketing home — use everywhere with .wrap / .container. */
    --layout-max-width: 1120px;
}

* { box-sizing: border-box; }

html {
    /* Prevent iOS Safari auto-zoom when focusing form inputs smaller than 16px. */
    -webkit-text-size-adjust: 100%;
    /* Anchor links (#how, #pricing) slide in with a breath of space for the
       sticky header instead of landing underneath it. */
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

html, body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    /* Stop accidental horizontal scroll from any single overflowing element. */
    overflow-x: clip;
}

/* Long words in headings shouldn't blow out the viewport on phones. */
h1, h2, h3, h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Calmer default tap feedback on touch devices. */
a, button, summary, [role="button"], .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Keyboard-only skip link (hidden until focused). */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: .6rem 1rem;
    background: #0b1220;
    color: #fff;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 0; text-decoration: none; color: #fff; }

/* Visible only to screen readers / AT (form labels kept for semantics). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    /* env() safe-area padding keeps content clear of iPhone notches/home
       indicators when the page is added to the home-screen or shown in
       landscape. Falls back to zero on every non-iOS browser. */
    padding:
        2rem
        max(1.2rem, env(safe-area-inset-right))
        calc(4rem + env(safe-area-inset-bottom))
        max(1.2rem, env(safe-area-inset-left));
}
.wrap {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding:
        0
        max(1.2rem, env(safe-area-inset-right))
        0
        max(1.2rem, env(safe-area-inset-left));
}

/* ---------- Header / footer ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: .6rem 0;
    padding-top: calc(.6rem + env(safe-area-inset-top));
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
            backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    transition: box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 32px -20px rgba(15, 23, 42, 0.18);
    border-bottom-color: rgba(15, 23, 42, 0.1);
}
.header-grid {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
}
.site-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}
.nav-backdrop {
    display: none;
}

/* ---------- Hamburger toggle (mobile only) ---------- */
.nav-toggle {
    justify-self: end;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    color: var(--c-text);
    flex-shrink: 0;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nav-toggle:hover { background: #f1f5f9; }
.nav-toggle:focus-visible {
    outline: 2px solid var(--c-primary, #4f46e5);
    outline-offset: 2px;
}
.nav-toggle-icon {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}
.nav-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--c-text);
}
.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-name { line-height: 1; }

.nav-pill {
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .35rem;
    border-radius: 999px;
    background: #eef2f7;
    border: 1px solid rgba(148,163,184,.35);
    box-shadow: 0 1px 0 rgba(15,23,42,.03);
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-pill::-webkit-scrollbar { display: none; }
.nav-pill a,
.nav-pill summary {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-pill a:hover,
.nav-pill summary:hover { opacity: .9; }
.nav-pill a.is-active {
    background: #fff;
    color: var(--c-text);
    box-shadow: 0 2px 8px rgba(15,23,42,.10);
}
.nav-lang { position: relative; }
.nav-lang > summary { list-style: none; }
.nav-lang > summary::-webkit-details-marker { display: none; }
.nav-lang-menu {
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    min-width: 180px;
    padding: .35rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: grid;
    gap: .15rem;
    z-index: 50;
}
.is-rtl .nav-lang-menu { left: auto; right: 0; }
.nav-lang-menu a {
    padding: .6rem .75rem;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
}
.nav-lang-menu a:hover { background: #f8fafc; text-decoration: none; }
.nav-lang[open] > summary {
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,.10);
}

.header-actions { flex-shrink: 0; }
.header-cta__short { display: none; }
.header-cta {
    white-space: nowrap;
    padding: 0.62rem 1.05rem;
    font-size: 0.92rem;
}

.site-footer {
    padding: clamp(2rem, 4vw, 2.75rem) 0 1.25rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    color: var(--c-muted);
    font-size: .9rem;
    border-top: 1px solid var(--c-border);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 35%);
}
.footer-grid {
    display: grid;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
    align-items: start;
}
.footer-col h3 {
    margin: 0 0 .65rem;
    color: var(--c-text);
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-col a {
    color: var(--c-muted);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
}
.footer-col a:hover { color: var(--c-text); }
.footer-about .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--c-text);
    text-decoration: none;
    font-weight: 800;
}
.footer-tagline {
    margin: .65rem 0 .85rem;
    max-width: 38ch;
    line-height: 1.55;
    font-size: .92rem;
}
.footer-badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.footer-badges li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--c-border);
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}
.footer-badges .material-symbols-outlined {
    font-size: 16px;
    color: var(--c-primary, #6366f1);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-top: clamp(1.25rem, 3vw, 1.75rem);
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
    font-size: .85rem;
}
.footer-copy { margin: 0; }
.footer-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}
.footer-bottom-nav a {
    color: var(--c-muted);
    font-weight: 600;
    text-decoration: none;
}
.footer-bottom-nav a:hover { color: var(--c-text); }
.footer-sep { margin: 0 .5rem; opacity: .6; }

/* ---------- Hero ---------- */
.hero {
    padding: 4rem 0 2rem;
}
.hero-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
}
.hero-copy { text-align: left; }
.is-rtl .hero-copy { text-align: right; }
.hero h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.4rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -.02em;
}
.hero .lede {
    max-width: 640px;
    margin: 0 0 1.6rem;
    color: var(--c-muted);
    font-size: 1.15rem;
}
.cta-row {
    display: flex;
    gap: .75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.is-rtl .cta-row { justify-content: flex-end; }
.hero-visual { display: flex; justify-content: center; }
.hero-mockup { width: 100%; max-width: 560px; height: auto; }
.trust {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: .5rem;
    color: var(--c-muted);
}
.trust strong { color: var(--c-text); }

.section-head { margin: 3rem 0 1rem; }
.section-head h2 { margin: 0 0 .35rem; letter-spacing: -.01em; }
.subtle { color: var(--c-muted); }
.features {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 3rem;
}
.features article {
    background: var(--c-panel);
    padding: 1.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.features h3 { margin-top: 0; }

/* ---------- Landing extras ---------- */
.use-cases { margin-top: 2.5rem; }
.use-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .9rem;
}
.use-item {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: .95rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    box-shadow: 0 1px 0 rgba(15,23,42,.04);
    font-weight: 600;
}
.final-cta { margin-top: 3rem; }
.final-cta-inner {
    background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(15,23,42,.06));
    border: 1px solid rgba(37,99,235,.18);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.6rem;
}
.final-cta h2 { margin: 0 0 .35rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-primary {
    background: var(--g-brand);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #fff;
    box-shadow: var(--glow-brand);
    transition: transform .15s ease, background-position .35s ease, box-shadow .25s ease, filter .2s;
}
.btn-primary:hover {
    background-position: 100% 50%;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 22px 56px -12px rgba(79,70,229,.65), 0 10px 22px -10px rgba(236,72,153,.45);
    filter: saturate(1.1);
}
.btn-primary:active { transform: translateY(0); }
.btn-dark      { background: #0b1220; color: #fff; }
.btn-dark:hover { background: #000; color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost     { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { background: #fff; text-decoration: none; }
.btn-danger    { background: #fff; color: var(--c-danger); border-color: var(--c-danger); }
.btn-danger:hover { background: var(--c-danger); color: #fff; text-decoration: none; }
.btn-sm        { padding: .4rem .8rem; font-size: .85rem; min-height: 36px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Ensure every primary button clears the 44px touch-target minimum on
   mobile without affecting desktop visual. */
@media (hover: none) and (pointer: coarse) {
    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }
}

/* ---------- Forms ---------- */
.card-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--c-panel);
    padding: 1.6rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.card-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.card-form legend {
    font-weight: 600;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    margin-bottom: .4rem;
}
.card-form label {
    display: flex;
    flex-direction: column;
    font-size: .9rem;
    font-weight: 500;
    gap: .35rem;
}
.card-form label.file-picker-btn {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-weight: 600;
    width: auto;
    align-self: flex-start;
}
.card-form input[type="text"],
.card-form input[type="email"],
.card-form input[type="password"],
.card-form input[type="url"],
.card-form input[type="tel"],
.card-form input[type="number"],
.card-form input[type="search"],
.card-form input:not([type]),
.card-form textarea,
.card-form select {
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: .7rem .85rem;
    font: inherit;
    /* iOS Safari auto-zooms when tapping an input with font-size < 16px.
       Lock all form controls to at least 16px so the page doesn't shift. */
    font-size: 16px;
    background: #fff;
    min-height: 44px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    width: 100%;
}
.card-form textarea { min-height: 96px; }
.card-form input:focus,
.card-form textarea:focus,
.card-form select:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.14);
}
.card-form input[type="color"] {
    width: 100%;
    height: 42px;
    padding: 0;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: #fff;
}
.card-form .row {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.card-form .toggle {
    flex-direction: row;
    align-items: center;
    gap: .5rem;
}

/* ---------- Social / link-in-bio form -----------------------------------
   Used in /create and admin/edit. Shows a compact two-column grid of social
   inputs each prefixed by the platform's icon, then a short list of free
   "custom link" rows (label + URL). Intentionally less visually loud than
   the public-facing .cp-link tiles — this is a form, not a landing page. */
.card-form .fs-socials .fs-hint,
.card-form .custom-links .fs-hint {
    margin: 0 0 .85rem;
    color: var(--c-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.socials-grid {
    display: grid;
    gap: .7rem .9rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card-form .social-field {
    font-weight: 400;
}
.card-form .social-field.social-field--row {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.social-field-row-main {
    display: flex;
    align-items: stretch;
    gap: .65rem;
}
.social-field--row .social-field-input-wrap {
    flex: 1;
    min-width: 0;
}
.social-field--row .social-field-input-wrap input {
    width: 100%;
}
.social-field-icon {
    --brand: #111827;
    width: 44px;
    height: auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    flex-shrink: 0;
}
.social-field-icon svg { width: 18px; height: 18px; }
.social-field-note {
    color: var(--c-muted);
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
    padding-inline-start: calc(44px + .65rem);
}

/* Branded file control (replaces raw “Choose file” chrome). */
.file-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
}
.file-field-caption {
    font-weight: 600;
    font-size: .95rem;
    color: var(--c-text);
}
.file-field-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}
.file-picker-btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}
.file-picker-btn .file-picker-input-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}
.file-field-name {
    font-size: .88rem;
    color: var(--c-muted);
    max-width: min(280px, 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-field-name.is-empty {
    font-style: italic;
    opacity: .78;
}

/* ---------- Pass colour swatches -------------------------------------- */
.pass-color-swatch {
    margin: 0;
    padding: .5rem .35rem .65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    border-radius: 14px;
    transition: background .15s ease;
}
.card-form label.pass-color-swatch {
    font-weight: 400;
}
.pass-color-swatch:hover {
    background: color-mix(in srgb, var(--c-primary) 6%, transparent);
}
.pass-color-swatch:focus-within {
    outline: none;
}
.pass-color-swatch:focus-within .pass-color-swatch-ring {
    box-shadow: 0 0 0 3px rgba(79,70,229,.35);
}
.pass-color-swatch-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .045em;
    color: var(--c-muted);
    text-align: center;
}
.pass-color-swatch-ring {
    width: 100%;
    max-width: 72px;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 3px;
    background: var(--g-brand);
    background-size: 200% 200%;
    background-position: 0 50%;
    box-shadow: 0 6px 20px rgba(79,70,229,.22);
}
.pass-color-swatch-ring input[type="color"] {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    background: transparent;
}
.pass-color-swatch-ring input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.pass-color-swatch-ring input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}
.pass-color-swatch-ring input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 50%;
}
.pass-color-hex {
    font-size: .72rem;
    font-family: ui-monospace, monospace;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--c-muted);
    user-select: all;
}

.custom-links {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--c-border);
}
.custom-links-title {
    margin: 0 0 .35rem;
    font-size: .95rem;
    font-weight: 600;
}
.custom-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: .7rem .9rem;
    margin-top: .6rem;
}
.custom-link-row .cl-label,
.custom-link-row .cl-url {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .82rem;
    color: var(--c-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.custom-link-row input { text-transform: none; letter-spacing: normal; font-weight: 400; }

@media (max-width: 560px) {
    .socials-grid { grid-template-columns: 1fr; }
    .custom-link-row { grid-template-columns: 1fr; gap: .55rem; }
}
.actions {
    display: flex;
    gap: .75rem;
    margin-top: .5rem;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .card-form { padding: 1.2rem; }
    .actions { flex-direction: column; align-items: stretch; }
    .actions .btn { width: 100%; justify-content: center; min-height: 48px; }
}

/* ---------- Alerts ---------- */
.alert {
    padding: .9rem 1.1rem;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid transparent;
}

/* ---------- Legal (terms / privacy) ---------- */
.legal {
    position: relative;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: calc(var(--radius) + 8px);
    padding: 2.4rem clamp(1.4rem, 3vw, 2.6rem) 2.2rem;
    box-shadow: var(--shadow-lg);
    max-width: 780px;
    margin: 1rem auto 2rem;
    overflow: hidden;
    isolation: isolate;
}
.legal::before {
    content: '';
    position: absolute;
    inset: -2px -2px auto -2px;
    height: 4px;
    background: var(--g-brand);
    z-index: 1;
    pointer-events: none;
}
.legal h1 {
    margin: 0 0 .4rem;
    text-align: center;
    font-size: clamp(1.8rem, 2vw + .8rem, 2.3rem);
    letter-spacing: -.025em;
    font-weight: 800;
}
.legal > .subtle {
    text-align: center;
    margin: 0 0 1.8rem;
    color: var(--c-muted);
    font-size: .92rem;
}
.legal h2 {
    margin: 1.8rem 0 .5rem;
    font-size: 1.18rem;
    letter-spacing: -.01em;
}
.legal p,
.legal li { line-height: 1.7; }
.legal ul {
    margin: .5rem 0 0;
    padding-inline-start: 1.25rem;
}
.legal ul li { margin-bottom: .3rem; }
.legal code {
    background: #f1f5f9;
    color: var(--c-text);
    padding: 0 .3rem;
    border-radius: 4px;
    font-size: .9em;
}
[dir="rtl"] .legal h1,
[dir="rtl"] .legal > .subtle { text-align: center; }

@media (min-width: 1024px) and (max-width: 1180px) {
    .nav-pill a,
    .nav-pill summary {
        padding: 0.5rem 0.7rem;
        font-size: 0.86rem;
    }
    .header-cta__long { display: none; }
    .header-cta__short { display: inline; }
    .header-cta { padding: 0.58rem 0.9rem; }
}

@media (max-width: 1023px) {
    /* Tighter top bar: less vertical padding + slightly smaller brand */
    .site-header {
        padding: 0.32rem 0 0.35rem;
        padding-top: calc(0.32rem + env(safe-area-inset-top));
    }
    .site-header .brand {
        font-size: 0.98rem;
        gap: 0.5rem;
        align-items: center;
        flex: 1;
        min-width: 0;
    }
    .site-header .brand-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .site-header .brand-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .nav-toggle {
        display: inline-flex;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .header-grid {
        flex-wrap: nowrap;
    }

    .site-header.is-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: #fff;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .site-header.is-open .wrap {
        position: relative;
        z-index: 1002;
    }
    .site-header.is-open .brand,
    .site-header.is-open .nav-toggle {
        position: relative;
        z-index: 1002;
    }
    .site-header.is-scrolled.is-open {
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        border: 0;
        padding: 0;
        margin: 0;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s;
        cursor: pointer;
    }
    .site-header.is-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-menu {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        position: fixed;
        z-index: 1001;
        left: max(0.75rem, env(safe-area-inset-left));
        right: max(0.75rem, env(safe-area-inset-right));
        top: calc(3.35rem + env(safe-area-inset-top));
        bottom: auto;
        max-height: calc(100dvh - 4rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        margin: 0;
        overscroll-behavior: contain;
        background: #fff;
        border: 1px solid var(--c-border);
        border-radius: 18px;
        box-shadow: 0 24px 64px -28px rgba(15, 23, 42, 0.35);
        padding: 0.65rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.35rem) scale(0.98);
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s, transform 0.22s ease;
        flex: none;
        justify-content: flex-start;
        align-items: stretch;
    }
    .site-header.is-open .site-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .site-menu .nav-pill {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0.25rem;
        background: #f8fafc;
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 14px;
        box-shadow: none;
        overflow: visible;
        gap: 0.1rem;
    }
    .site-menu .nav-pill a,
    .site-menu .nav-pill summary {
        padding: 0.78rem 0.85rem;
        border-radius: 10px;
        justify-content: flex-start;
        min-height: 46px;
        font-size: 0.95rem;
    }
    .site-menu .nav-pill a.is-active {
        background: var(--g-brand-dim);
        color: var(--c-primary-d);
    }

    .site-menu .nav-lang { width: 100%; }
    .site-menu .nav-lang > summary {
        display: flex;
        justify-content: space-between;
    }
    .site-menu .nav-lang-menu {
        position: static;
        margin-top: 0.35rem;
        box-shadow: none;
        border: 1px solid var(--c-border);
    }

    .site-menu .header-actions {
        width: 100%;
    }
    .site-menu .header-actions .btn,
    .site-menu .header-cta {
        width: 100%;
        justify-content: center;
        padding: 0.82rem 1.1rem;
        min-height: 48px;
    }
    .header-cta__long { display: inline; }
    .header-cta__short { display: none; }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-about {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-menu,
    .nav-backdrop,
    .nav-toggle-icon span {
        transition: none !important;
    }
}

@media (max-width: 900px) {
    .hero { padding: 3rem 0 1.5rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero .lede { margin: 0 auto 1.6rem; }
    .cta-row { justify-content: center; }
    .trust { max-width: 720px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-cta__long { display: none; }
    .header-cta__short { display: inline; }
}

/* Full-width mobile CTAs on phones so they're easy to thumb-tap. */
@media (max-width: 480px) {
    .hero-v2 .cta-row { flex-direction: column; align-items: stretch; }
    .hero-v2 .cta-row .btn,
    .cta-v2 .cta-row .btn {
        width: 100%;
        justify-content: center;
    }
    .cta-v2 .cta-row { flex-direction: column; align-items: stretch; }
}
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-ok    { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert ul { margin: .3rem 0 0 1.2rem; padding: 0; }

.subtle { color: var(--c-muted); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li {
    padding: .4rem .8rem;
    border-radius: 8px;
    margin: .25rem 0;
    font-family: ui-monospace, Menlo, monospace;
}
.checklist .ok   { background: #ecfdf5; color: #065f46; }
.checklist .ok::before   { content: "✓  "; font-weight: 700; }
.checklist .fail { background: #fef2f2; color: #991b1b; }
.checklist .fail::before { content: "✗  "; font-weight: 700; }

/* --------------------------------------------------------------------------
   /card (and root-level card slugs) — no site header/footer: standalone link-in-bio view
   -------------------------------------------------------------------------- */
body.layout-standalone {
    min-height: 100vh;
    min-height: 100dvh;
}
body.layout-standalone .layout-standalone-main {
    /* Match former header safe-area; no .site-header above */
    padding-top: max(1.15rem, env(safe-area-inset-top));
}
/** Minimal chrome (public card pages, card 404…): footerless — don't reserve 4rem like marketing pages */
body.layout-standalone .layout-standalone-main.container {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
}
/* ======================================================================
   Public card page (card.php) — hero, contact tiles, wallet CTAs, share
   ==================================================================== */

.card-page {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ---------- Public card: mobile tightening ------------------------- */
@media (max-width: 480px) {
    .card-page { gap: 1rem; }

    .cp-hero { --cp-hero-pad-x: 1.1rem; padding: 0 var(--cp-hero-pad-x) 1.4rem; border-radius: 18px; }
    .cp-hero-vip-banner { border-radius: 18px 18px 0 0; }
    .cp-identity { padding-top: 4rem; }
    .cp-avatar-ring { width: 92px; height: 92px; }
    .cp-name { font-size: 1.45rem; }
    .cp-subtitle { font-size: .95rem; }
    .cp-hero-logo { top: 14px; left: 16px; height: 30px; }

    .cp-cta { gap: .5rem; margin-top: 1.1rem; width: 100%; }
    .cp-cta .cp-btn {
        flex: 1 1 calc(50% - .25rem);
        justify-content: center;
        min-height: 44px;
    }

    .cp-tile { padding: .85rem 1rem; gap: .8rem; min-height: 56px; }
    .cp-tile-value { font-size: .95rem; }

    .cp-wallet { padding: 1.1rem; border-radius: 14px; }
    .cp-wallet-btn { min-height: 58px; padding: .85rem 1rem; }

    .cp-share { padding: 1.1rem; border-radius: 14px; }
}

/* Footer safe-area handled on main (.layout-standalone-main.container); article flush. */

/* ---------- Hero ---------- */
.cp-hero {
    --cp-hero-pad-x: 1.6rem;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 0 var(--cp-hero-pad-x) 1.8rem;
    color: var(--fg, #fff);
    background: var(--bg, #111827);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .08) inset,
        0 24px 50px -24px rgba(15, 23, 42, .55),
        0 8px 20px -10px rgba(15, 23, 42, .25);
    isolation: isolate;
}
/* VIP · full-bleed banner: fixed 3:1 (width:height) on the public card; source art can be any size — cropped with cover. */
.cp-hero-vip-banner {
    --cp-vip-banner-aspect: 3 / 1;
    position: relative;
    z-index: 1;
    width: calc(100% + 2 * var(--cp-hero-pad-x));
    margin-inline: calc(-1 * var(--cp-hero-pad-x));
    margin-bottom: 0;
    aspect-ratio: var(--cp-vip-banner-aspect);
    height: auto;
    min-height: 0;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    pointer-events: none;
}
.cp-hero-vip-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    display: block;
}
.cp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 60% at 50% -20%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(60% 60% at 100% 0%, rgba(255, 255, 255, .08), transparent 70%),
        radial-gradient(80% 80% at 0% 100%, rgba(0, 0, 0, .25), transparent 60%);
}
.cp-hero-logo {
    position: absolute;
    top: 18px;
    left: 20px;
    height: 36px;
    max-width: 140px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25));
}

.cp-identity {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 4.5rem;
}
/* With VIP banner: hero strip holds the image; avatar pulls up to cover ~half the circle */
.cp-identity--has-vip-banner { padding-top: 0.35rem; }
.cp-avatar-ring--vip-overlap {
    z-index: 2;
    /* Half of 108px ring ≈ 54px; pull up so banner meets the “equator” of the circle */
    margin-top: calc(-3.375rem - 0.2rem);
    margin-bottom: 0.9rem;
}

.cp-avatar-ring {
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .05));
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
    margin-bottom: .9rem;
}
.cp-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, .1);
}
.cp-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--fg);
}

/* VIP · “verified” check (like Instagram) on avatar — .cp-avatar-ring is position:relative */
.cp-verified-badge {
    position: absolute;
    inset-inline-end: -1px;
    bottom: 1px;
    z-index: 3;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #3b9eff 0%, #1c7ce8 45%, #0b5fbd 100%);
    border: 2.5px solid var(--bg, #111827);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    line-height: 0;
}
.cp-verified-badge__icon {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
}

.cp-name {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--fg);
}
.cp-subtitle {
    margin: .4rem 0 0;
    color: var(--label, #9ca3af);
    font-size: 1rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: center;
}
.cp-subtitle .cp-sep { opacity: .6; }
.cp-bio {
    margin: .9rem 0 0;
    max-width: 42ch;
    color: var(--fg);
    opacity: .85;
    font-size: .95rem;
    line-height: 1.55;
}

.cp-cta {
    margin-top: 1.4rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: center;
}
.cp-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .15s, background .15s, border-color .15s;
    line-height: 1;
}
.cp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.cp-btn:active { transform: translateY(0); }
.cp-btn-primary {
    background: var(--fg, #fff);
    color: var(--bg, #111827);
}
.cp-btn-primary:hover { filter: brightness(.95); }
.cp-btn-ghost {
    background: transparent;
    color: var(--fg);
    border-color: currentColor;
    opacity: .85;
}
.cp-btn-ghost:hover { opacity: 1; background: rgba(255, 255, 255, .08); }

/* ---------- Contact tiles ---------- */
.cp-tiles {
    background: var(--c-panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.cp-tile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .95rem;
    padding: .95rem 1.1rem;
    color: var(--c-text);
    text-decoration: none;
    border-top: 1px solid var(--c-border);
    transition: background .15s;
}
.cp-tile:first-child { border-top: none; }
.cp-tile:hover { background: #f8fafc; text-decoration: none; }
.cp-tile:active { background: #f1f5f9; }
.cp-tile-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--c-primary);
    flex-shrink: 0;
}
.cp-tile-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.cp-tile-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-muted);
}
.cp-tile-value {
    font-size: .98rem;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cp-tile-chev {
    color: var(--c-muted);
    opacity: .6;
    flex-shrink: 0;
}

/* ---------- Link-in-bio social + custom links ---------------------------
   Rendered above contact tiles on /card. Each tile carries its platform's
   brand color via --brand, set inline from PHP. Tiles are visually bolder
   than contact tiles since this is the primary CTA surface for visitors
   coming in from an Instagram or TikTok bio. */
.cp-links {
    display: grid;
    gap: .6rem;
}
.cp-link {
    --brand: #111827;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .95rem;
    padding: .9rem 1.05rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--c-text);
    background: var(--c-panel);
    box-shadow: var(--shadow);
    border: 1px solid var(--c-border);
    position: relative;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.cp-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 55%);
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
}
.cp-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brand) 55%, rgba(15, 23, 42, .3));
    border-color: color-mix(in srgb, var(--brand) 35%, var(--c-border));
    text-decoration: none;
}
.cp-link:hover::before { opacity: 1; }
.cp-link:active { transform: translateY(0); }

.cp-link-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand);
    flex-shrink: 0;
}
.cp-link-icon svg { width: 22px; height: 22px; }

.cp-link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.cp-link-label {
    font-size: .98rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.2;
}
.cp-link-value {
    font-size: .82rem;
    color: var(--c-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cp-link-chev {
    color: var(--c-muted);
    opacity: .55;
    flex-shrink: 0;
    font-size: 1.2rem !important;
}
.cp-link:hover .cp-link-chev { opacity: .95; color: var(--brand); }

/* Platforms with near-black brand colors get a light chip background so
   the logo stays legible on the panel. */
.cp-link-tiktok .cp-link-icon,
.cp-link-x .cp-link-icon,
.cp-link-threads .cp-link-icon,
.cp-link-github .cp-link-icon {
    background: color-mix(in srgb, var(--brand) 8%, #f1f5f9);
}

@media (max-width: 560px) {
    .cp-link { padding: .85rem 1rem; gap: .8rem; min-height: 60px; }
    .cp-link-icon { width: 38px; height: 38px; }
    .cp-link-icon svg { width: 20px; height: 20px; }
    .cp-link-label { font-size: .95rem; }
}

/* ---------- Wallet panel ---------- */
.cp-wallet {
    background: var(--c-panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.4rem 1.6rem;
}
.cp-wallet-head { margin-bottom: 1rem; }
.cp-wallet-head h2 {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.cp-wallet-head .subtle { margin: 0; font-size: .88rem; }
.cp-wallet-btns {
    display: grid;
    gap: .6rem;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .cp-wallet-btns { grid-template-columns: 1fr 1fr; }
}
.cp-wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1rem;
    border-radius: 12px;
    color: #fff !important;
    background: #000;
    text-decoration: none;
    transition: transform .12s, filter .12s;
    min-height: 54px;
}
.cp-wallet-btn:hover { text-decoration: none; filter: brightness(1.15); transform: translateY(-1px); }
.cp-wallet-btn:active { transform: translateY(0); }
.cp-wallet-btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}
.cp-wallet-google { background: #1f1f1f; }
.cp-wallet-btn .wbt-lines {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}
.cp-wallet-btn .wbt-top    { font-size: .72rem; opacity: .85; }
.cp-wallet-btn .wbt-bottom { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }

/* Wallet button icons — CSS mask so they inherit the button text color. */
.wbt-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
}
.wbt-icon-apple {
    -webkit-mask-image: url('icons/apple.svg');
            mask-image: url('icons/apple.svg');
}
.wbt-icon-android {
    -webkit-mask-image: url('icons/android.svg');
            mask-image: url('icons/android.svg');
}

/* Featured 16∶9 poster banner (plans → Featured poster). */
.cp-poster-w {
    margin: 0 0 1rem;
    width: 100%;
}
.cp-poster-hit {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    outline: none;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cp-poster-hit:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.75);
    outline-offset: 3px;
}
.cp-poster-hit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}
.cp-poster-frame {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.05);
}
.cp-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cp-poster-chip {
    position: absolute;
    top: 0.55rem;
    inset-inline-end: 0.55rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cp-poster-chip .material-symbols-outlined {
    font-size: 21px;
}
/* ---------- Share / QR panel ---------- */
.cp-share {
    background: var(--c-panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: center;
}
.cp-share-qr img {
    display: block;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--c-border);
    padding: 6px;
    max-width: 100%;
    height: auto;
}
.cp-share-body h3 {
    margin: 0 0 .2rem;
    font-size: 1.05rem;
    font-weight: 600;
}
.cp-share-body .subtle,
.cp-share-lede { margin: 0 0 .8rem; font-size: .88rem; line-height: 1.45; }
.cp-copy {
    display: flex;
    gap: .5rem;
    align-items: stretch;
    border: 1px solid var(--c-border);
    background: #f8fafc;
    border-radius: 10px;
    padding: 3px 3px 3px 10px;
    min-width: 0;
}
.cp-copy-input {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: .9rem;
    border: none;
    background: transparent;
    color: var(--c-text);
    padding: .4rem 0;
    outline: none;
}
.cp-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .45rem .8rem;
    border-radius: 8px;
    border: none;
    background: var(--c-text);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background .15s, transform .1s;
    flex-shrink: 0;
}
.cp-copy-btn:hover { background: #1e293b; }
.cp-copy-btn:active { transform: scale(.98); }

/* Mobile: taller tap targets, QR a bit larger, copy stack = easier thumbs */
@media (max-width: 560px) {
    .cp-share {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.2rem 1.05rem 1.35rem;
        gap: 1.05rem;
        align-items: stretch;
    }
    .cp-share-qr {
        display: flex;
        justify-content: center;
    }
    .cp-share-qr img {
        width: min(210px, 72vw);
        max-width: 210px;
        height: auto;
        aspect-ratio: 1;
        object-fit: contain;
        padding: 8px;
        border-radius: 14px;
    }
    .cp-share-body h3 {
        font-size: 1.12rem;
        letter-spacing: -0.02em;
    }
    .cp-share-body .cp-share-lede {
        max-width: 20rem;
        margin-left: auto;
        margin-right: auto;
        font-size: .9rem;
    }
    .cp-copy {
        flex-direction: column;
        padding: 0;
        background: transparent;
        border: none;
        gap: 0.65rem;
    }
    .cp-copy-input {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* iOS: avoid page zoom on focus */
        line-height: 1.35;
        padding: 0.7rem 0.75rem;
        text-align: center;
        text-overflow: ellipsis;
        background: #f1f5f9;
        border: 1px solid var(--c-border);
        border-radius: 12px;
        -webkit-user-select: all;
        user-select: all;
    }
    .cp-copy-btn {
        width: 100%;
        min-height: 48px;
        font-size: 0.95rem;
        border-radius: 12px;
        padding: 0.55rem 1rem;
    }
    .cp-copy-btn .material-symbols-outlined {
        font-size: 1.15rem;
    }
}

/* ---------- Not-found variant ---------- */
.not-found {
    text-align: center;
    max-width: 420px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--c-panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.not-found .nf-icon {
    color: var(--c-muted);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.not-found .nf-icon--celebration img {
    display: block;
    width: 5rem;
    height: 5rem;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
}
.not-found--post-create h1 { color: var(--c-text); }
.not-found--post-create .not-found-lead { color: var(--c-text); font-size: 0.95rem; line-height: 1.5; }
.not-found h1 { margin: .4rem 0; }
.not-found p  { color: var(--c-muted); margin: 0 0 1.2rem; }

/* ---------- Admin ---------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-panel);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
}
.admin-table th, .admin-table td {
    padding: .65rem .9rem;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
    font-size: .92rem;
}
.admin-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .72rem;
}
.admin-table tr:last-child td { border-bottom: none; }

/* --- /panel · compact site chrome (marketing nav hidden) ------------ */
.site-header--admin {
    padding: 0.65rem 0;
    background: var(--c-panel);
    border-bottom: 1px solid var(--c-border);
}
.site-header--admin-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    row-gap: 0.65rem;
}
.site-header--admin .brand {
    min-width: 0;
}
.site-header-admin-chip {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-primary);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.22);
    white-space: nowrap;
}
.site-header-admin-site {
    margin-inline-start: auto;
}
.site-header-admin-lang {
    flex-shrink: 0;
}
.site-header--admin .nav-lang summary {
    list-style: none;
}
body.is-admin-panel .admin-panel-main {
    padding-top: 0.75rem;
}
body.is-admin-panel.layout-no-site-header .admin-panel-main {
    padding-top: 1rem;
}
body.is-admin-panel .site-footer--admin {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.admin-nav-tabs {
    display: flex;
    gap: .25rem;
    /* On narrow screens many tabs can't fit on a single row — allow
       horizontal scrolling so they remain reachable without wrapping. */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    scrollbar-width: thin;
}
.admin-nav-tabs a {
    padding: .8rem 1.2rem;
    color: var(--c-muted);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    text-decoration: none;
    white-space: nowrap;
}
.admin-nav-tabs a:hover   { color: var(--c-text); text-decoration: none; }
.admin-nav-tabs a.active  { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.admin-logout { margin: 0; flex-shrink: 0; }

@media (max-width: 640px) {
    .admin-nav-right { flex: 1 1 100%; justify-content: space-between; }
    .admin-nav-tabs a { padding: .7rem .9rem; font-size: .9rem; }
    .admin-whoami { font-size: .82rem; }
}

/* ----------------------------------------------------------------------
   Create / edit layout — form + live preview side by side
   ------------------------------------------------------------------- */
.create-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    align-items: start;
}
.create-grid > .card-form { max-width: none; }
@media (max-width: 640px) {
    .create-grid { grid-template-columns: 1fr; }
    .wallet-preview { position: static; margin-top: 1.5rem; }
}

/* ---------- /create — header, field flow, branding row ------------------ */
.create-page {
    max-width: none;
    margin: 0;
    width: 100%;
    padding: 0 0 2.5rem;
    box-sizing: border-box;
}
.create-lead {
    margin: 0 0 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--c-border);
}
.create-lead h1 {
    margin: 0 0 .45rem;
    font-size: clamp(1.65rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-text);
}
.create-lead-tagline {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--c-muted);
    line-height: 1.45;
    max-width: 42rem;
}
.create-intro-list {
    margin: 0;
    padding: 0 0 0 1.25rem;
    max-width: 44rem;
    color: var(--c-text);
    font-size: .92rem;
    line-height: 1.55;
}
.create-intro-list li { margin: 0 0 .55rem; }
.create-intro-list li:last-child { margin-bottom: 0; }
.create-page .alert { margin: 0 0 1.25rem; }
.create-page .create-grid .card-form > fieldset + fieldset {
    padding-top: 1.15rem;
    margin-top: .25rem;
    border-top: 1px solid var(--c-border);
}
.create-email-toggle { margin-top: .6rem !important; }
.create-signin-hint { margin: .75rem 0 0; font-size: .9rem; }
.bio-count-hint {
    font-size: .8rem;
    color: var(--c-muted);
    margin-top: .25rem;
    align-self: flex-end;
}
.create-page .fs-branding .branding-hint { margin: 0 0 .65rem; }
.create-page .fs-branding .branding-hint.muted { margin-top: .85rem; }
.card-form .row.row-colors.row-pass-colors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1rem 1.25rem;
}
@media (max-width: 560px) {
    .card-form .row.row-colors.row-pass-colors {
        grid-template-columns: 1fr;
    }
}

/* ======================================================================
   Live Wallet preview — high-fidelity mockups of Apple Wallet (iOS) and
   Google Wallet (Android). Sizes and typography were tuned against the
   real rendering.
   ==================================================================== */

.wallet-preview {
    position: sticky;
    top: 5.5rem;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 1.1rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.3));
    border: 1px solid rgba(79,70,229,.18);
    border-radius: 24px;
    box-shadow: var(--glow-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 400px) {
    .wallet-preview { padding: .75rem; border-radius: 18px; }
    .wp-apple        { --pass-w: 100%; }
    .wp-tabs         { margin-bottom: .9rem; }
    .wp-tab          { padding: .5rem .6rem; font-size: .78rem; }
}

/* ---------- Tab chooser ---------- */
.wp-tabs {
    display: flex;
    background: #eef2f7;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 1.2rem;
}
.wp-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: none;
    background: transparent;
    padding: .55rem .9rem;
    border-radius: 999px;
    color: var(--c-muted);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.wp-tab:hover  { color: var(--c-text); }
.wp-tab.is-active {
    background: #fff;
    color: var(--c-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.wp-tab-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
    opacity: .9;
}
.wp-tab-icon-apple {
    -webkit-mask-image: url('icons/apple.svg');
            mask-image: url('icons/apple.svg');
}
.wp-tab-icon-android {
    -webkit-mask-image: url('icons/android.svg');
            mask-image: url('icons/android.svg');
}

/* Each panel is stacked and only the active one is shown. */
.wp-stage { position: relative; }
.wp-card[data-wp-panel]:not(.is-active) { display: none; }

.wp-note {
    margin-top: 1rem;
    font-size: .78rem;
    text-align: center;
    color: var(--c-muted);
}

/* Placeholder text styling (when a field is empty). */
.wp-ph { opacity: .55; font-weight: 400 !important; }

/* Hide <img> placeholders when they have no src set. */
.wp-card img[data-preview]:not([src]),
.wp-card img[data-preview][src=""] {
    visibility: hidden;
    opacity: 0;
}

/* ===============  APPLE WALLET  =============================== */

.wp-apple {
    --pass-w: 340px;
    position: relative;
    width: var(--pass-w);
    max-width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    color: var(--fg, #fff);
    background:
        linear-gradient(165deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.02) 22%, transparent 45%),
        var(--bg, #111827);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .1) inset,
        0 24px 48px -28px rgba(15, 23, 42, .6),
        0 8px 20px -8px rgba(15, 23, 42, .28);
    font-family: -apple-system, "SF Pro Text", "SF Pro Display",
                 BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}
.wpa-strip {
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.wpa-header-line {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 8px;
}
.wpa-header-field {
    max-width: 72%;
}
.wpa-header-field .wpa-value {
    font-size: 13px;
    font-weight: 600;
}

.wpa-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    min-height: 44px;
}
.wpa-logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.wpa-logo-wrap {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
}
.wpa-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.wpa-logo-fallback {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--fg);
    opacity: .9;
}
.wpa-logo-wrap.has-image .wpa-logo-fallback { display: none; }

.wpa-logo-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--fg);
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.wpa-thumb-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 11px;
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.wpa-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wpa-thumb-wrap.is-collapsed {
    display: none;
}

.wpa-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wpa-field-right { align-items: flex-end; text-align: right; }
.wpa-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--label, #9ca3af);
    text-transform: uppercase;
}
.wpa-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.wpa-primary-fields {
    margin-bottom: 14px;
}
.wpa-primary-fields .wpa-value {
    font-size: 15px;
    font-weight: 600;
}

.wpa-phone-row {
    margin-bottom: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .11);
}

.wpa-company-row {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .11);
}

.wpa-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}
.wpa-aux-page {
    grid-template-columns: 1fr;
}
.wpa-field-span {
    grid-column: 1 / -1;
}
.wpa-value-url {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.95;
}
.wpa-link-cta {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: rgb(129, 140, 248);
    letter-spacing: 0.01em;
}
.wpa-value-allow-wrap {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
}

.wpa-barcode {
    flex: 0 0 auto;
    align-self: stretch;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 4px 12px 14px;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 1px 3px rgba(15, 23, 42, .08);
}
.wpa-qr {
    width: 124px;
    height: 124px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wpa-qr svg { width: 100%; height: 100%; display: block; }
.wpa-qr-alt {
    font-size: 10px;
    letter-spacing: .04em;
    color: #6b7280;
    font-weight: 500;
}

/* ===============  GOOGLE WALLET  ============================== */

.wp-google {
    --card-w: 340px;
    width: var(--card-w);
    max-width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    color: #202124;
    box-shadow:
        0 1px 2px rgba(60, 64, 67, .12),
        0 10px 24px -12px rgba(60, 64, 67, .22),
        0 20px 40px -24px rgba(60, 64, 67, .18);
    font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 0;
}



.wpg-hero {
    background:
        linear-gradient(165deg, rgba(255,255,255,.09) 0%, transparent 42%),
        var(--bg, #111827);
    color: var(--fg, #ffffff);
    padding: 20px 18px 20px;
    position: relative;
}
.wpg-hero::after {
    /* faint glossy highlight at the top, like Google renders */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 44px;
    background: linear-gradient(180deg, rgba(255,255,255,.1), transparent);
    pointer-events: none;
}

.wpg-head-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    min-height: 44px;
    position: relative;
    z-index: 1;
}
.wpg-name-row {
    flex: 1;
    min-width: 0;
}
.wpg-strip-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--fg);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpg-thumb-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 11px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.wpg-thumb-wrap.is-collapsed {
    display: none;
}
.wpg-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpg-hero-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.wpg-hero-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wpg-hero-field-right {
    align-items: flex-end;
    text-align: right;
}
.wpg-hero-primary .wpg-label {
    color: var(--label, #9ca3af);
}
.wpg-hero-primary .wpg-value {
    color: var(--fg);
    font-size: 15px;
    font-weight: 600;
}

.wpg-phone-block {
    padding-top: 14px;
    margin-bottom: 4px;
    border-top: 1px solid rgba(255, 255, 255, .11);
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}
.wpg-phone-block .wpg-label {
    color: var(--label, #9ca3af);
}
.wpg-phone-block .wpg-value {
    color: var(--fg);
    font-size: 15px;
    font-weight: 500;
}

.wpg-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f1f3f4;
}
.wpg-module {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .07);
}
.wpg-two-up {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .07);
}
.wpg-two-up .wpg-row { gap: 2px; }
.wpg-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wpg-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    color: #5f6368;
    text-transform: uppercase;
}
.wpg-value {
    font-size: 14px;
    font-weight: 400;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wpg-value-break {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wpg-barcode {
    margin-top: 0;
    flex: 0 0 auto;
    padding: 16px 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid #e8eaed;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.wpg-qr {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wpg-qr svg { width: 100%; height: 100%; display: block; }
.wpg-qr-alt {
    font-size: 11px;
    letter-spacing: .05em;
    color: #5f6368;
    font-weight: 500;
}

/* ----------------------------------------------------------------------
   Settings editor
   ------------------------------------------------------------------- */
.settings-form fieldset { border: 1px solid var(--c-border); padding: 1rem 1.2rem; border-radius: var(--radius); }
.settings-form legend   { padding: 0 .5rem; font-weight: 600; }
.settings-form .helper  { color: var(--c-muted); font-size: .82rem; margin: 0 0 .6rem; }

/* ----------------------------------------------------------------------
   Footer link polish
   ------------------------------------------------------------------- */
.site-footer p { margin: 0; }
.site-footer a { color: var(--c-muted); font-weight: 500; }
.site-footer a:hover { color: var(--c-text); }
.site-footer .footer-sep { margin: 0 .5rem; opacity: .6; }

/* ----------------------------------------------------------------------
   Support page
   ------------------------------------------------------------------- */
.support { max-width: var(--layout-max-width); margin: 0 auto; }

.support-hero {
    position: relative;
    text-align: center;
    padding: 3rem 1.2rem 2.2rem;
    background:
        radial-gradient(520px 260px at 50% -30%, rgba(79,70,229,.25), transparent 60%),
        radial-gradient(420px 220px at 100% 0%,  rgba(236,72,153,.18), transparent 60%),
        linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
    border: 1px solid rgba(79,70,229,.15);
    border-radius: calc(var(--radius) + 10px);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    isolation: isolate;
}
.support-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px; height: 76px;
    border-radius: 22px;
    background: var(--g-brand);
    color: #fff;
    box-shadow: var(--glow-brand);
    margin-bottom: 1.1rem;
}
.support-hero h1 {
    margin: 0 0 .5rem;
    font-size: clamp(1.8rem, 2vw + .8rem, 2.4rem);
    letter-spacing: -0.025em;
    font-weight: 800;
}
.support-hero .lede {
    color: var(--c-muted);
    font-size: 1.02rem;
    max-width: 520px;
    margin: 0 auto 1.4rem;
}

.support-contact {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
    justify-content: center;
}
.support-mail-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.1rem;
    font-weight: 600;
}
.support-email-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: #fff;
    border: 1px solid var(--c-border);
    padding: .45rem .55rem .45rem .85rem;
    border-radius: 999px;
    font-size: .92rem;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.support-email-chip .lbl {
    color: var(--c-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.support-email-chip a {
    font-weight: 600;
    color: var(--c-text);
}
.support-email-chip a:hover { color: var(--c-primary); }
.chip-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--c-border);
    background: #f8fafc;
    color: var(--c-muted);
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .55rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.chip-copy-btn:hover {
    background: #eef2ff;
    color: var(--c-primary);
    border-color: #c7d2fe;
}

.support-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.support-channel {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.2rem 1.1rem 1.1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.support-channel .sch-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: var(--c-primary);
    margin-bottom: .3rem;
}
.support-channel .sch-icon-docs   { background: #ecfdf5; color: #059669; }
.support-channel .sch-icon-status { background: #fff7ed; color: #ea580c; }
.support-channel h3 { margin: 0; font-size: 1rem; }
.support-channel p  { margin: 0; color: var(--c-muted); font-size: .92rem; }
.support-channel a  { font-weight: 600; font-size: .92rem; margin-top: auto; }

.support-faq {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.4rem 1.4rem .6rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}
.support-faq-head { margin-bottom: 1rem; }
.support-faq-head h2 { margin: 0 0 .25rem; font-size: 1.3rem; }
.support-faq-head .subtle { color: var(--c-muted); font-size: .92rem; margin: 0; }

.faq-item {
    border-top: 1px solid var(--c-border);
    padding: .25rem 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--c-border); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    font-weight: 600;
    color: var(--c-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--c-primary); }
.faq-q { line-height: 1.4; }
.faq-chev {
    flex-shrink: 0;
    color: var(--c-muted);
    transition: transform .2s ease;
}
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--c-primary); }
.faq-a {
    color: var(--c-muted);
    font-size: .95rem;
    padding: 0 0 1rem;
    line-height: 1.6;
}
.faq-a code {
    background: #f1f5f9;
    color: var(--c-text);
    padding: 0 .3rem;
    border-radius: 4px;
    font-size: .85em;
}

.support-cta {
    position: relative;
    text-align: center;
    padding: 2.4rem 1.2rem 2.6rem;
    background: var(--g-night);
    color: #fff;
    border-radius: calc(var(--radius) + 10px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    isolation: isolate;
}
.support-cta::after {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(closest-side, rgba(139,92,246,.35), transparent 60%),
        radial-gradient(closest-side at 75% 25%, rgba(236,72,153,.3), transparent 60%);
    filter: blur(40px);
    z-index: -1;
    animation: haloFloat 8s ease-in-out infinite alternate;
}
.support-cta h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.4rem, 1.5vw + .6rem, 1.8rem);
    color: #fff;
    letter-spacing: -.02em;
}
.support-cta p {
    color: #cbd5e1;
    margin: 0 0 1.3rem;
    max-width: 460px;
    margin-inline: auto;
}
.support-cta .btn.primary {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 12px 36px -8px rgba(255,255,255,.35);
}
.support-cta .btn.primary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .support-channels { grid-template-columns: 1fr; }
    .support-hero h1  { font-size: 1.6rem; }
    .support-hero     { padding: 2rem 1rem 1.6rem; }
}

/* ----------------------------------------------------------------------
   Material Symbols (Google Fonts icons)
   Variable font axes: opsz 20..48, wght 400..600, FILL 0..1, GRAD 0
   Docs: https://fonts.google.com/icons
   ------------------------------------------------------------------- */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    /* Align optically with surrounding text. */
    vertical-align: middle;
    user-select: none;
}

/* Size helpers — use on the <span> directly. */
.material-symbols-outlined.s-16 { font-size: 16px; font-variation-settings: 'wght' 500, 'opsz' 20; }
.material-symbols-outlined.s-18 { font-size: 18px; }
.material-symbols-outlined.s-20 { font-size: 20px; }
.material-symbols-outlined.s-28 { font-size: 28px; }
.material-symbols-outlined.s-32 { font-size: 32px; }
.material-symbols-outlined.s-40 { font-size: 40px; }
.material-symbols-outlined.s-48 { font-size: 48px; font-variation-settings: 'wght' 400, 'opsz' 40; }

/* Inline size when placed inside specific components. */
.cp-btn .material-symbols-outlined          { font-size: 20px; }
/* The tile icon <span> carries BOTH .cp-tile-icon (40×40 colored box) and
   .material-symbols-outlined (the glyph). The base icon rule below uses
   `display: inline-block`, which would override the flex centering from
   .cp-tile-icon because the two selectors have the same specificity and
   the base rule is declared later. Re-assert flex centering here so the
   glyph lands in the middle of the box. */
.cp-tile-icon.material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-align: center;
    line-height: 1;
}
.cp-tile-chev.material-symbols-outlined     { font-size: 22px; }
.cp-copy-btn .material-symbols-outlined     { font-size: 16px; }
.support-mail-btn .material-symbols-outlined{ font-size: 18px; }
.chip-copy-btn .material-symbols-outlined   { font-size: 14px; }
.sch-icon .material-symbols-outlined        { font-size: 22px; }
.support-hero-icon .material-symbols-outlined { font-size: 40px; }
.nf-icon .material-symbols-outlined         { font-size: 64px; }
.faq-chev.material-symbols-outlined         { font-size: 22px; }

/* Smooth chevron rotation using the Material Symbols expand_more glyph. */
.faq-item[open] .faq-chev.material-symbols-outlined {
    transform: rotate(180deg);
    color: var(--c-primary);
}

/* ----------------------------------------------------------------------
   RTL support (Persian / Arabic / Hebrew)
   Triggered by <html dir="rtl"> (site-wide) or the .rtl class on any
   container (per-card override). Everything relies on logical props
   (margin-inline-*, padding-inline-*, inset-inline-*) so the existing
   layout simply flips.
   ------------------------------------------------------------------- */
[dir="rtl"] body,
.rtl {
    /* Use Vazirmatn for every char on RTL pages, including Latin fallback. */
    font-family: 'Vazirmatn', system-ui, -apple-system, "Segoe UI",
                 "Noto Sans Arabic", Roboto, Arial, sans-serif;
}

/* Material Symbols must stay LTR even inside RTL blocks. */
[dir="rtl"] .material-symbols-outlined,
.rtl .material-symbols-outlined {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Flip glyphs that imply direction (arrows, chevrons). */
[dir="rtl"] .cp-tile-chev.material-symbols-outlined,
.rtl .cp-tile-chev.material-symbols-outlined {
    transform: scaleX(-1);
}

/* Header nav on RTL: gap on the correct side. */
[dir="rtl"] .site-header nav a { margin-left: 0; margin-right: 1rem; }

/* Small right-aligned pushes become left-aligned in RTL. */
[dir="rtl"] .footer-sep { margin: 0 .5rem; }

/* Flip the contact-tile layout pieces where we relied on margin direction. */
[dir="rtl"] .cp-tile-icon { margin-left: 0; }

/* Support page tweaks. */
[dir="rtl"] .support-email-chip .lbl {
    letter-spacing: 0;
}

/* Typography baseline: Vazirmatn reads slightly smaller, bump line-height. */
[dir="rtl"] body,
.rtl { line-height: 1.7; }

/* Opt-in per-card override: when a card is RTL but site is LTR (or vice
   versa), the card-page element can receive dir="rtl"/"ltr" directly. */
.card-page[dir="rtl"] { text-align: right; }
.card-page[dir="ltr"] { text-align: left; }

/* ---------- VIP · public card layout (set in /account) -------------- */
/* Texture on .cp-hero-bg only (keeps in-flow banner above it, not washed out) */
article.card-page[class*="--vip-tpl-"] .cp-hero-bg::after,
.card-page--vip-br-hero .cp-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 4px);
    mix-blend-mode: overlay;
}
.card-page--vip-tpl-noir .cp-hero {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(165deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 58%),
        var(--bg, #111827);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 22px 56px -20px rgba(0, 0, 0, 0.55);
}
.card-page--vip-tpl-noir .cp-hero-bg {
    opacity: 0.55;
    background: radial-gradient(100% 85% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 55%);
}
.card-page--vip-tpl-noir .cp-hero-bg::after {
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.4'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}
/* Aurora: colour wash + soft texture (hero-bg carries the colour) */
.card-page--vip-tpl-aurora .cp-hero-bg {
    opacity: 1;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(129, 140, 248, 0.4) 0%, transparent 55%),
        radial-gradient(90% 60% at 100% 20%, rgba(236, 72, 153, 0.22) 0%, transparent 50%),
        radial-gradient(100% 60% at 0% 90%, rgba(14, 165, 233, 0.14) 0%, transparent 45%),
        var(--bg);
}
.card-page--vip-tpl-aurora .cp-hero-bg::after {
    opacity: 0.09;
    mix-blend-mode: screen;
}
/* Spotlight: keep comfortable padding, add stage lighting — do NOT nuke padding-top on .cp-identity */
.card-page--vip-tpl-spotlight .cp-hero-bg {
    opacity: 1;
    background:
        radial-gradient(ellipse 100% 75% at 50% 18%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
        radial-gradient(120% 60% at 50% -20%, rgba(255, 255, 255, 0.18), transparent 60%),
        radial-gradient(60% 60% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
        radial-gradient(80% 80% at 0% 100%, rgba(0, 0, 0, 0.25), transparent 60%);
}
.card-page--vip-tpl-spotlight .cp-identity:not(.cp-identity--has-vip-banner) { padding-top: 3.5rem; }
.card-page--vip-tpl-spotlight .cp-identity--has-vip-banner { padding-top: 0.35rem; }
.card-page--vip-tpl-spotlight .cp-avatar-ring {
    transform: scale(1.1);
    box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.5);
}
.card-page--vip-tpl-spotlight .cp-name {
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
/* Standard VIP template: slightly richer depth */
.card-page--vip-tpl-standard .cp-hero-bg::after {
    opacity: 0.08;
}
/* Softer corners: space between “cards” (links + contact tiles) like native social apps */
.card-page--vip-br-soft .cp-links {
    gap: 0.9rem;
}
.card-page--vip-br-soft .cp-tiles {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}
.card-page--vip-br-soft .cp-tile {
    border-radius: 16px;
    border: 1px solid var(--c-border);
    border-top: 1px solid var(--c-border) !important;
    box-shadow: var(--shadow);
    background: var(--c-panel);
}
.card-page--vip-br-soft .cp-tile:first-child {
    border-top: 1px solid var(--c-border) !important;
}
.card-page--vip-br-soft .cp-link,
.card-page--vip-br-soft .cp-tile {
    border-radius: 16px;
}
.card-page--vip-br-social .cp-link {
    border-width: 1px;
    border-style: solid;
    border-color: color-mix(in srgb, var(--fg) 14%, transparent);
    background: color-mix(in srgb, var(--fg) 5%, transparent);
}
/* Hero spotlight: must read clearly *larger* than the default .cp-name (1.7rem) */
.card-page--vip-br-hero .cp-hero .cp-identity .cp-name {
    font-size: clamp(1.9rem, 5.2vw, 2.2rem) !important;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.4);
}
.card-page--vip-tpl-spotlight.card-page--vip-br-hero .cp-name,
.card-page--vip-br-hero .cp-identity--has-vip-banner .cp-name {
    font-size: clamp(1.85rem, 5vw, 2.1rem) !important;
}

/* ---------- Account · VIP tab (layout studio + polish) --------------- */
.account-vip-hero {
    margin: 0 0 1.2rem;
    padding: 1.1rem 1.2rem 1.15rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.04) 0%, rgba(99, 102, 241, 0.09) 55%, rgba(14, 165, 233, 0.07) 100%);
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 12px 40px -28px rgba(15, 23, 42, 0.35);
}
.account-vip-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4f46e5;
}
.account-vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(130deg, #4f46e5 0%, #7c3aed 50%, #0ea5e9 100%);
    box-shadow: 0 2px 8px -2px rgba(79, 70, 229, 0.45);
}
.account-vip-badge--muted {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
    box-shadow: none;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.2rem 0.45rem;
}
.account-vip-hero__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--c-text);
    line-height: 1.25;
}
.account-vip-hero__lead {
    margin: 0 0 0.65rem;
    line-height: 1.55;
    max-width: 40rem;
}
.account-vip-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: #4338ca;
}
.account-vip-preview-link:hover { text-decoration: underline; }
.account-vip-preview-hint { margin: 0; line-height: 1.5; }
.account-vip-section { margin: 0 0 1.5rem; }
.account-vip-section__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-text);
}
.account-vip-section__title .material-symbols-outlined { font-size: 22px; color: #4f46e5; }
.account-vip-section__intro {
    margin: 0 0 0.9rem;
    max-width: 40rem;
    line-height: 1.5;
}
.vip-template-studio {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .vip-template-studio {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.vip-template-card {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    border-radius: 14px;
    outline: none;
}
.vip-template-card__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.vip-template-card__box {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    min-height: 0;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    overflow: hidden;
}
.vip-template-card:hover .vip-template-card__box {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.2);
}
.vip-template-card:has(.vip-template-card__input:checked) .vip-template-card__box,
.vip-template-card__input:focus-visible + .vip-template-card__box {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, #fff 38%);
}
.vip-tpl-swatch {
    display: block;
    height: 4.1rem;
    width: 100%;
    border-bottom: 1px solid var(--c-border);
}
.vip-tpl-swatch--standard {
    background: linear-gradient(145deg, #1e293b 0%, #334155 45%, #0f172a 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.vip-tpl-swatch--noir {
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 40%, #020617 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.vip-tpl-swatch--aurora {
    background:
        radial-gradient(90% 80% at 50% -20%, rgba(192, 132, 252, 0.45) 0%, transparent 55%),
        radial-gradient(60% 60% at 100% 20%, rgba(34, 211, 238, 0.25) 0%, transparent 50%),
        linear-gradient(145deg, #1e1b4b 0%, #0f172a 100%);
}
.vip-tpl-swatch--spotlight {
    background:
        radial-gradient(50% 80% at 50% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 60%),
        linear-gradient(175deg, #1e293b 0%, #0f172a 100%);
}
.vip-template-card__text {
    display: block;
    padding: 0.7rem 0.85rem 0.85rem;
    text-align: left;
}
.vip-template-card__tagline {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6366f1;
    margin-bottom: 0.2rem;
}
.vip-template-card__name { display: block; font-size: 1.02rem; margin-bottom: 0.3rem; }
.vip-template-card__desc { display: block; font-size: 0.84rem; line-height: 1.45; margin-bottom: 0.45rem; }
.vip-template-card__for {
    display: block;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--c-muted);
    font-style: italic;
}
.account-vip-polish-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .account-vip-polish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.account-vip-polish-card {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    min-height: 0;
    border-radius: 12px;
    outline: none;
}
.account-vip-polish-card__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.account-vip-polish-card__box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    height: 100%;
    min-height: 7.2rem;
    padding: 0.8rem 0.85rem 0.9rem;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.account-vip-polish-card__box .material-symbols-outlined {
    color: #4f46e5;
    font-size: 24px;
}
.account-vip-polish-card__box strong { font-size: 0.92rem; }
.account-vip-polish-card__box .subtle { font-size: 0.8rem; line-height: 1.45; margin: 0; }
.account-vip-polish-card:hover .account-vip-polish-card__box {
    border-color: rgba(99, 102, 241, 0.35);
}
.account-vip-polish-card:has(.account-vip-polish-card__input:checked) .account-vip-polish-card__box,
.account-vip-polish-card__input:focus-visible + .account-vip-polish-card__box {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.07) 0%, #fff 60%);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}
.account-vip-save { box-shadow: 0 4px 14px -4px rgba(79, 70, 229, 0.45); }
.account-vip-gate {
    padding: 0.1rem 0 0.2rem;
    max-width: 38rem;
}
.account-vip-gate__list {
    list-style: none;
    margin: 0.75rem 0 1.1rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.45;
}
.account-vip-gate__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.4rem 0.45rem 0.45rem 0.35rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
}
.account-vip-gate__list .material-symbols-outlined {
    color: #16a34a;
    font-size: 1.1rem;
    flex: none;
    margin-top: 0.1rem;
}
.account-vip-gate__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}
.account-vip-banner-field {
    border: 0;
    padding: 0;
    margin: 0;
}
.account-vip-banner-field label { display: block; }
.account-vip-banner-file {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
}
.account-vip-banner-file code {
    font-size: 0.82rem;
    word-break: break-all;
}
.account-vip-verified {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.9rem 0 0;
    padding: 0.75rem 0.85rem 0.8rem;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.account-vip-verified input { margin-top: 0.2rem; flex: none; }
.account-vip-verified__preview { flex: none; padding-top: 0.1rem; }
.account-vip-verified__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #3b9eff 0%, #1c7ce8 50%, #0b5fbd 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.account-vip-verified__text { flex: 1; min-width: 0; }
.account-vip-verified__text strong { display: block; font-size: 0.95rem; }

.vip-banner-preset-wrap { margin: 0 0 1rem; }
.vip-banner-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: 0.5rem;
    align-items: stretch;
}
.vip-banner-preset {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    border-radius: 10px;
    outline: none;
}
.vip-banner-preset__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.vip-banner-preset__box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.vip-banner-preset:hover .vip-banner-preset__box {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.2);
}
.vip-banner-preset:has(.vip-banner-preset__input:checked) .vip-banner-preset__box,
.vip-banner-preset__input:focus-visible + .vip-banner-preset__box {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.vip-banner-preset__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    background: #f1f5f9;
    border-bottom: 1px solid var(--c-border);
}
.vip-banner-preset__thumb--none,
.vip-banner-preset__thumb--custom {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--c-muted);
    background: #f8fafc;
}
.vip-banner-preset__label {
    display: block;
    font-size: 0.7rem;
    line-height: 1.3;
    padding: 0.35rem 0.4rem 0.45rem;
    text-align: center;
    color: var(--c-text);
    word-break: break-word;
}

/* ======================================================================
   Landing v2 — modern, confident, high-impact
   ====================================================================== */

/* ---------- Gradient text helper ---------- */
.gradient-text {
    background: var(--g-brand);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}

/* ---------- Reveal-on-load ---------- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
.reveal.d4 { animation-delay: .32s; }
.reveal.d5 { animation-delay: .40s; }
@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal, .gradient-text { animation: none !important; opacity: 1; transform: none; }
}

/* ---------- Hero v2 ---------- */
/* Full-bleed: visually breaks out of <main class="container"> so the gradient
   touches the left/right/top edges of the viewport even though the copy grid
   stays centered in a 1120px rail. */
.hero-v2 {
    position: relative;
    /* Pull the section (and its gradient layers) up under the sticky header
       so orbs read from the top of the viewport; extra top padding restores
       headline position. `3.75rem` ≈ header row + gap; tune with layout. */
    padding: calc(4.5rem + 3.75rem) 0 5rem;
    isolation: isolate;
    overflow: hidden;
    /* Full-bleed trick: `100vw` can cause a 1px horizontal scrollbar on
       Windows/desktop when a vertical scrollbar is present. `calc(100vw -
       (100vw - 100%))` is equivalent but collapses to the actual usable
       viewport width, preventing the overflow. body already has
       overflow-x: clip as belt-and-braces. */
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-top: calc(-2rem - 3.75rem);
}
.hero-v2::before,
.hero-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}
.hero-v2::before {
    /* Orbs anchor from the very top of the section so they sit under the
       transparent header, not only below it. */
    top: 0;
    background:
        radial-gradient(900px 520px at 12% 0%,  rgba(79,70,229,.32), transparent 65%),
        radial-gradient(800px 480px at 88% 0%,  rgba(236,72,153,.25), transparent 65%),
        radial-gradient(1100px 520px at 50% 100%, rgba(6,182,212,.2), transparent 70%);
    animation: orbFloat 18s ease-in-out infinite alternate;
}
.hero-v2::after {
    /* subtle dot grid */
    background-image:
        radial-gradient(circle at 1px 1px, rgba(15,23,42,.07) 1px, transparent 0);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    z-index: -1;
    opacity: .6;
}
@keyframes orbFloat {
    0%   { transform: translate3d(-1%,  0, 0) scale(1); }
    100% { transform: translate3d( 2%, -2%, 0) scale(1.05); }
}

.hero-v2-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 1.2rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .75rem .4rem .5rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    color: #4338ca;
    background: rgba(79,70,229,.09);
    border: 1px solid rgba(79,70,229,.18);
    margin: 0 0 1.2rem;
    letter-spacing: .01em;
}
.hero-eyebrow .pill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--g-brand); box-shadow: 0 0 0 4px rgba(79,70,229,.14);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { transform: scale(1);   opacity: 1; }
    50%     { transform: scale(1.35); opacity: .75; }
}

.hero-v2 h1 {
    font-size: clamp(2.4rem, 4.8vw + .5rem, 4.6rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 0 0 1.1rem;
    font-weight: 800;
}
.hero-v2 .lede {
    font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem);
    color: #475569;
    max-width: 560px;
    margin: 0 0 1.6rem;
    line-height: 1.55;
}

.hero-v2 .cta-row .btn { padding: .9rem 1.35rem; font-size: 1.02rem; font-weight: 700; }
.hero-v2 .btn-primary .material-symbols-outlined { font-size: 20px; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .9rem;
    margin-top: 1.6rem;
    color: #64748b;
    font-size: .92rem;
    font-weight: 500;
}
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.hero-trust .material-symbols-outlined {
    font-size: 18px;
    color: #22c55e;
}

/* Hero visual: floating phone-ish card with dramatic shadow */
.hero-visual-v2 {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 460px;
}
.hero-visual-v2 .mock-halo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(closest-side, rgba(79,70,229,.35), transparent 70%),
        radial-gradient(closest-side at 70% 20%, rgba(236,72,153,.35), transparent 70%);
    filter: blur(38px);
    z-index: 0;
    animation: haloFloat 7s ease-in-out infinite alternate;
}
@keyframes haloFloat {
    0%   { transform: translate3d(0,0,0) scale(1); }
    100% { transform: translate3d(0,-10px,0) scale(1.04); }
}
.hero-visual-v2 .mock-img {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 100%;
    height: auto;
    border-radius: 28px;
    animation: gentleFloat 6s ease-in-out infinite alternate;
    filter: drop-shadow(0 30px 60px rgba(15,23,42,.25));
}
@keyframes gentleFloat {
    0%   { transform: translateY(-4px) rotate(-.5deg); }
    100% { transform: translateY(4px)  rotate(.4deg); }
}

/* Floating sticker badges */
.mock-sticker {
    position: absolute;
    z-index: 2;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: .55rem .8rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .88rem;
    box-shadow: var(--shadow-lg);
    animation: gentleFloat 6s ease-in-out infinite alternate;
}
.mock-sticker .material-symbols-outlined { font-size: 20px; }
.mock-sticker-1 { top: 8%;    left: 2%;   color: #0f766e; animation-delay: .3s; }
.mock-sticker-2 { bottom: 14%; right: 2%;  color: #7c3aed; animation-delay: -.6s; }
.mock-sticker-3 { bottom: -2%; left: 22%;  color: #be185d; animation-delay: .9s; }

/* ---------- Stats strip ---------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    /* Sit slightly below the hero gradient so the card visibly "lifts" out
       of the colored band instead of touching its edge. */
    margin: 3rem 0 3.5rem;
    padding: 1.4rem 1.6rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}
.stats-strip .stat { text-align: center; }
.stats-strip .stat-num {
    display: block;
    font-size: clamp(1.6rem, 2vw + .5rem, 2.3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    background: var(--g-brand);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.stats-strip .stat-lbl {
    display: block;
    margin-top: .35rem;
    color: var(--c-muted);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .01em;
}

/* ---------- Feature cards v2 ---------- */
.features-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 0 0 4rem;
}
.features-v2 .feat {
    position: relative;
    padding: 1.5rem 1.4rem 1.4rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: transform .2s ease, box-shadow .3s ease, border-color .2s ease;
    overflow: hidden;
    isolation: isolate;
}
.features-v2 .feat::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, rgba(79,70,229,.05), rgba(236,72,153,.03));
    opacity: 0;
    transition: opacity .3s;
}
.features-v2 .feat:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-soft);
    border-color: rgba(79,70,229,.25);
}
.features-v2 .feat:hover::before { opacity: 1; }

.features-v2 .feat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 13px;
    margin-bottom: 1rem;
    background: rgba(79,70,229,.12);
    color: #4f46e5;
}
.features-v2 .feat-icon .material-symbols-outlined { font-size: 26px; }

.features-v2 .feat:nth-child(2) .feat-icon { background: rgba(6,182,212,.15); color: #0891b2; }
.features-v2 .feat:nth-child(3) .feat-icon { background: rgba(236,72,153,.12); color: #be185d; }
.features-v2 .feat:nth-child(4) .feat-icon { background: rgba(34,197,94,.13); color: #15803d; }
.features-v2 .feat:nth-child(5) .feat-icon { background: rgba(250,204,21,.18); color: #a16207; }
.features-v2 .feat:nth-child(6) .feat-icon { background: rgba(139,92,246,.14); color: #6d28d9; }
.features-v2 .feat:nth-child(7) .feat-icon { background: rgba(14,165,233,.14); color: #0369a1; }
.features-v2 .feat:nth-child(8) .feat-icon { background: rgba(244,63,94,.12); color: #be123c; }
.features-v2 .feat:nth-child(9) .feat-icon { background: rgba(100,116,139,.16); color: #334155; }

.features-v2 h3 { margin: 0 0 .4rem; font-size: 1.1rem; letter-spacing: -.01em; }
.features-v2 p  { margin: 0; color: var(--c-muted); font-size: .95rem; line-height: 1.55; }

/* ---------- Feature carousel (homepage) ---------- */
.features-v2.features-v2--carousel {
    display: block;
    width: 100%;
    margin: 0 0 4.5rem;
    box-sizing: border-box;
}

.features-carousel__viewport {
    outline: none;
}
.features-carousel__viewport:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.45);
    outline-offset: 4px;
    border-radius: 26px;
}

.features-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 2.5vw, 1.5rem);
    flex-wrap: wrap;
}

.features-carousel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.96));
    color: var(--c-text);
    cursor: pointer;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 6px 20px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.18s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}
.features-carousel__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.42);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 32px rgba(79, 70, 229, 0.16),
        0 4px 10px rgba(15, 23, 42, 0.07);
}
.features-carousel__btn:active {
    transform: translateY(0);
}
.features-carousel__btn:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.55);
    outline-offset: 3px;
}
.features-carousel__btn .material-symbols-outlined {
    font-size: 26px;
    opacity: 0.95;
}

.features-carousel__mask {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(79, 70, 229, 0.22);
    background:
        radial-gradient(ellipse 900px 480px at 12% -8%, rgba(99, 102, 241, 0.16), transparent 58%),
        radial-gradient(ellipse 740px 420px at 98% 102%, rgba(236, 72, 153, 0.1), transparent 52%),
        linear-gradient(168deg, #ffffff 0%, #fafbff 46%, #f0f4ff 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.55) inset,
        0 1px 0 rgba(255, 255, 255, 0.88) inset,
        0 32px 80px rgba(15, 23, 42, 0.1),
        0 14px 36px rgba(79, 70, 229, 0.09),
        0 4px 8px rgba(15, 23, 42, 0.04);
    display: block;
}

.features-carousel__mask::before {
    pointer-events: none;
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 90% 75% at 50% 100%, rgba(15, 23, 42, 0.07), transparent 55%);
    z-index: 1;
}

.features-carousel__mask::after {
    pointer-events: none;
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        inset 0 -1px 0 rgba(15, 23, 42, 0.035);
    z-index: 2;
}

.features-carousel__track {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.features-carousel__track .feat--slide.feat-slide-card {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
    isolation: auto;
}

.features-carousel__track .feat--slide::before {
    display: none;
}

.features-carousel__track .feat--slide:hover {
    transform: none;
    box-shadow: none;
}

.feat-slide-card__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 0;
    row-gap: 0;
    align-items: start;
    min-height: 0;
}

/* Left column ≈⅓ width: square crop (source art is square; desktop + mobile stay 1:1) */
.feat-slide-card__media {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    background:
        radial-gradient(110% 80% at 50% 25%, rgba(255, 255, 255, 0.35), transparent 65%),
        linear-gradient(155deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.55));
}

.feat-slide-card__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.feat-slide-card__body {
    display: grid;
    gap: 0.52rem;
    align-content: start;
    align-items: start;
    min-width: 0;
    padding:
        clamp(1.35rem, 3vw, 2.15rem)
        clamp(1.35rem, 4vw, 2.65rem)
        clamp(1.35rem, 3vw, 2.15rem)
        clamp(1.55rem, 4vw, 2.85rem);
    border-left: 1px solid rgba(15, 23, 42, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 42%);
}

.feat-slide-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 12px;
    margin-bottom: 0.1rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(15, 23, 42, 0.035);
}

.feat-slide-card__icon .material-symbols-outlined {
    font-size: 1.4rem;
    line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 550, 'GRAD' 0, 'opsz' 24;
}

.feat-slide-card__body h3 {
    margin: 0;
    font-size: clamp(1.3rem, 2.05vw + 0.92rem, 1.82rem);
    letter-spacing: -0.028em;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

.feat-slide-card__body p {
    margin: 0;
    color: #475569;
    font-size: clamp(0.95rem, 1.08vw + 0.82rem, 1.06rem);
    line-height: 1.62;
    max-width: min(52rem, 100%);
}

.features-carousel__track article:nth-child(1) .feat-slide-card__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 52%),
        linear-gradient(150deg, rgba(79, 70, 229, 0.32), rgba(99, 102, 241, 0.16));
    color: #3730a3;
}
.features-carousel__track article:nth-child(2) .feat-slide-card__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 50%),
        linear-gradient(150deg, rgba(14, 165, 233, 0.3), rgba(6, 182, 212, 0.16));
    color: #0f766e;
}
.features-carousel__track article:nth-child(3) .feat-slide-card__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.48), transparent 50%),
        linear-gradient(150deg, rgba(236, 72, 153, 0.26), rgba(244, 114, 182, 0.15));
    color: #9f1239;
}
.features-carousel__track article:nth-child(4) .feat-slide-card__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.46), transparent 50%),
        linear-gradient(145deg, rgba(34, 197, 94, 0.28), rgba(74, 222, 128, 0.14));
    color: #14532d;
}
.features-carousel__track article:nth-child(5) .feat-slide-card__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 50%),
        linear-gradient(145deg, rgba(251, 191, 36, 0.36), rgba(250, 204, 21, 0.16));
    color: #854d0e;
}
.features-carousel__track article:nth-child(6) .feat-slide-card__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.46), transparent 50%),
        linear-gradient(155deg, rgba(139, 92, 246, 0.32), rgba(167, 139, 250, 0.16));
    color: #5b21b6;
}
.features-carousel__track article:nth-child(7) .feat-slide-card__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.46), transparent 50%),
        linear-gradient(150deg, rgba(14, 165, 233, 0.28), rgba(56, 189, 248, 0.15));
    color: #075985;
}
.features-carousel__track article:nth-child(8) .feat-slide-card__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.46), transparent 50%),
        linear-gradient(148deg, rgba(244, 63, 94, 0.28), rgba(251, 113, 133, 0.15));
    color: #9f1239;
}
.features-carousel__track article:nth-child(9) .feat-slide-card__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.46), transparent 50%),
        linear-gradient(148deg, rgba(251, 146, 60, 0.3), rgba(253, 186, 116, 0.15));
    color: #9a3412;
}
.features-carousel__track article:nth-child(10) .feat-slide-card__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 50%),
        linear-gradient(160deg, rgba(100, 116, 139, 0.34), rgba(148, 163, 184, 0.16));
    color: #1e293b;
}

.features-carousel__toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
}

.features-carousel__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    justify-content: center;
    align-items: center;
}

.features-carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(148, 163, 184, 0.78);
    cursor: pointer;
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.2s ease,
        box-shadow 0.22s ease;
}
.features-carousel__dot:hover {
    background: rgba(100, 116, 139, 0.96);
}
.features-carousel__dot.is-active {
    background: linear-gradient(125deg, #4f46e5, #7c3aed);
    transform: scale(1.22);
    box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.18);
}

.features-carousel__dot:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 3px;
}

@media (max-width: 680px) {
    .feat-slide-card__layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        justify-items: stretch;
        text-align: center;
        min-height: 0;
    }
    .feat-slide-card__media {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        order: -1;
        aspect-ratio: 1 / 1;
    }
    .feat-slide-card__body {
        justify-items: center;
        text-align: center;
        border-left: none;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        padding: clamp(1.35rem, 5vw, 1.85rem) clamp(1.35rem, 5vw, 1.85rem)
            clamp(1.65rem, 5.5vw, 2rem);
        background: transparent;
    }
    .feat-slide-card__body h3 {
        text-align: center;
    }
    .feat-slide-card__body p {
        max-width: none;
        margin-inline: auto;
    }
    .feat-slide-card__icon {
        margin-inline: auto;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 620px) {
    .features-carousel__mask {
        min-height: 0;
        border-radius: 20px;
    }
}

/* ---------- How-it-works numbered steps ---------- */
.steps-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 0 0 4rem;
    counter-reset: step;
}
.steps-v2 .step {
    position: relative;
    padding: 1.8rem 1.4rem 1.4rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: transform .2s, box-shadow .25s;
}
.steps-v2 .step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.steps-v2 .step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -18px;
    inset-inline-start: 1.2rem;
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1;
    letter-spacing: -.03em;
    background: var(--g-brand);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.steps-v2 h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.steps-v2 p  { margin: 0; color: var(--c-muted); font-size: .95rem; line-height: 1.55; }

/* Four-step landing layout (homepage) */
.steps-v2--four {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
    .steps-v2--four { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Dark "showcase" band ---------- */
.showcase {
    position: relative;
    margin: 4rem 0;
    padding: 5rem 1.6rem;
    color: #e2e8f0;
    background: var(--g-night);
    overflow: hidden;
    isolation: isolate;
    border-radius: 28px;
}
.showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    z-index: -1;
}
.showcase-inner {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}
.showcase h2 {
    font-size: clamp(1.8rem, 2.5vw + .8rem, 3rem);
    line-height: 1.08;
    margin: 0 0 1rem;
    letter-spacing: -.03em;
    color: #fff;
}
.showcase h2 em {
    font-style: normal;
    background: linear-gradient(120deg, #a5b4fc, #f0abfc);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.showcase p { color: #cbd5e1; max-width: 640px; margin: 0 auto 2rem; font-size: 1.08rem; }

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.showcase-stat {
    padding: 1.2rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.showcase-stat .n {
    display: block;
    font-size: clamp(2rem, 3vw + .5rem, 3.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    background: linear-gradient(120deg, #a5b4fc, #f0abfc 60%, #f9a8d4);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.showcase-stat .l {
    display: block;
    color: #94a3b8;
    font-size: .92rem;
    margin-top: .5rem;
    font-weight: 500;
}

/* ---------- Use-cases v2 chips ---------- */
.use-cases-v2 {
    margin: 0 0 4rem;
}
.use-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .9rem;
}
.use-grid-v2 .use-chip {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-weight: 700;
    transition: transform .2s, box-shadow .25s, border-color .2s;
}
.use-grid-v2 .use-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(79,70,229,.3);
    box-shadow: var(--glow-soft);
}
.use-grid-v2 .use-chip .material-symbols-outlined {
    font-size: 22px;
    color: #4f46e5;
}

/* ---------- Final CTA v2 ---------- */
.cta-v2 {
    position: relative;
    margin: 4rem 0 1rem;
    padding: 3.5rem 1.6rem;
    text-align: center;
    color: #fff;
    background: var(--g-night);
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
}
.cta-v2::after {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(closest-side, rgba(139,92,246,.45), transparent 60%),
        radial-gradient(closest-side at 80% 30%, rgba(236,72,153,.35), transparent 60%);
    filter: blur(40px);
    z-index: -1;
    animation: haloFloat 8s ease-in-out infinite alternate;
}
.cta-v2 h2 {
    font-size: clamp(1.8rem, 2.5vw + .7rem, 2.8rem);
    margin: 0 0 .6rem;
    letter-spacing: -.02em;
    color: #fff;
}
.cta-v2 p { color: #cbd5e1; max-width: 520px; margin: 0 auto 1.8rem; }
.cta-v2 .btn-primary { padding: .95rem 1.5rem; font-size: 1.05rem; }
.cta-v2 .btn-ghost  {
    color: #fff;
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.04);
}
.cta-v2 .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Section head larger/centered variant */
.section-head-lg {
    text-align: center;
    max-width: 680px;
    margin: 4rem auto 2rem;
}
.section-head-lg h2 {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
    margin: 0 0 .6rem;
    letter-spacing: -.025em;
}
.section-head-lg p { color: var(--c-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-v2-grid      { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 0 1.2rem; }
    .hero-v2-grid .lede,
    .hero-v2-grid .hero-trust { margin-left: auto; margin-right: auto; justify-content: center; }
    .hero-v2 .cta-row  { justify-content: center; }
    .features-v2:not(.features-v2--carousel)      { grid-template-columns: repeat(2, 1fr); }
    .steps-v2         { grid-template-columns: 1fr; }
    .steps-v2--four   { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid    { grid-template-columns: 1fr; }
    .stats-strip      { grid-template-columns: repeat(2, 1fr); }

    /* On tablets, the floating mock phone has far less room — shrink it
       and pull the stickers in so they don't bump the container edge. */
    .hero-visual-v2   { min-height: 360px; }
    .hero-visual-v2 .mock-img { max-width: 380px; }
    .mock-sticker     { font-size: .8rem; padding: .45rem .7rem; }
}
@media (max-width: 640px) {
    .showcase        { margin: 3rem 0; padding: 3rem 1.2rem; border-radius: 22px; }
    .cta-v2          { padding: 2.6rem 1.2rem; }
    .section-head-lg { margin: 2.6rem auto 1.4rem; }
}
@media (max-width: 560px) {
    .features-v2:not(.features-v2--carousel)      { grid-template-columns: 1fr; }
    .steps-v2--four   { grid-template-columns: 1fr; }
    .stats-strip {
        padding: 1rem;
        margin: 2rem auto 2.5rem;
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem;
    }
    .hero-v2 {
        /* Keep the full-bleed gradient pulled under the header (see base .hero-v2). */
        padding: calc(2.4rem + 3.75rem) 0 2.6rem;
        margin-top: calc(-1.2rem - 3.75rem);
    }
    .hero-v2 h1       { letter-spacing: -.02em; }
    .hero-v2 .lede    { font-size: 1rem; }
    .hero-visual-v2   { min-height: 300px; }
    .hero-visual-v2 .mock-img { max-width: 320px; }
    .mock-sticker-3   { left: 10%; bottom: 0; }

    /* Steps cards: pull the big number down a hair so it doesn't clip. */
    .steps-v2 .step   { padding: 1.6rem 1.2rem 1.2rem; }
    .steps-v2 .step::before { top: -14px; font-size: 1.8rem; }

    /* Dark bands get softer radius and smaller vertical padding. */
    .showcase, .cta-v2 { border-radius: 18px; }

    .stats-strip .stat-lbl { font-size: .78rem; }
}
@media (max-width: 380px) {
    .stats-strip       { grid-template-columns: 1fr; }
    .hero-v2 h1        { font-size: 2.1rem; }
    .mock-sticker      { display: none; }
}

/* ======================================================================
   Pricing
   ====================================================================== */

.hero-price {
    margin: 1.3rem 0 0;
    padding: .55rem .9rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    color: #334155;
    font-size: .95rem;
    font-weight: 500;
    background: rgba(255,255,255,.6);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero-price .price-free {
    padding: .1rem .6rem;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    background: var(--g-brand);
}
.hero-price strong { color: var(--c-text); font-weight: 800; }
.hero-price .price-sep { color: #94a3b8; }
.hero-price .price-cancel { color: var(--c-muted); }

/* ---------- 4-tier pricing grid ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin: 0 0 4rem;
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.9rem 1.4rem 1.6rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
    overflow: hidden;
    isolation: isolate;
    text-align: start;
}
.price-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Highlighted / popular (Pro) */
.price-card.is-popular {
    border-color: rgba(79,70,229,.35);
    box-shadow: var(--shadow-lg), 0 30px 60px -30px rgba(79,70,229,.45);
    transform: translateY(-6px);
    background:
        linear-gradient(180deg, rgba(79,70,229,.03), rgba(236,72,153,.02)) , #fff;
}
.price-card.is-popular::before {
    content: '';
    position: absolute;
    inset: -2px -2px auto -2px;
    height: 5px;
    background: var(--g-brand);
    z-index: 1;
}
.price-card.is-popular::after {
    content: '';
    position: absolute;
    inset: -20% -20% 30% -20%;
    background: radial-gradient(closest-side, rgba(79,70,229,.12), transparent 60%);
    z-index: -1;
    filter: blur(30px);
}
.price-flag {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    padding: .2rem .55rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--g-brand);
    border-radius: 999px;
    box-shadow: 0 6px 16px -4px rgba(79,70,229,.5);
    z-index: 2;
}

.price-head { margin-bottom: .9rem; }
.price-tier {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: #eef2ff;
    color: #4338ca;
    margin-bottom: .7rem;
}
.tier-basic   .price-tier { background: #f1f5f9; color: #475569; }
.tier-pro     .price-tier { background: rgba(79,70,229,.12); color: #4338ca; }
.tier-vip     .price-tier { background: rgba(139,92,246,.15); color: #6d28d9; }
.tier-vipplus .price-tier-gold {
    background: linear-gradient(120deg, #fde68a, #fca5a5);
    color: #7c2d12;
}
.price-head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.3;
}

.price-amount {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: .3rem;
}
.price-amount .amt {
    font-size: clamp(2rem, 2.2vw + 1rem, 2.8rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--c-text);
}
.tier-pro .price-amount .amt {
    background: var(--g-brand);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.tier-vip .price-amount .amt {
    background: linear-gradient(120deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.tier-vipplus .price-amount .amt {
    font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem);
    background: linear-gradient(120deg, #b45309, #f59e0b);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.price-amount .per {
    color: var(--c-muted);
    font-size: .95rem;
    font-weight: 600;
}
.price-sub {
    margin: .45rem 0 1.1rem;
    color: var(--c-muted);
    font-size: .88rem;
    line-height: 1.5;
    min-height: 2.6em;
}
.badge-free {
    display: inline-block;
    padding: .1rem .5rem;
    background: var(--g-brand);
    color: #fff;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    margin-inline-end: .4rem;
    letter-spacing: .02em;
}

.price-feats {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    display: grid;
    gap: .5rem;
    flex-grow: 1;
}
.price-feats li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: #334155;
    font-weight: 500;
    font-size: .92rem;
    line-height: 1.45;
}
.price-feats li .material-symbols-outlined {
    font-size: 18px;
    color: #16a34a;
    flex: none;
    margin-top: 1px;
}
/* Title + subtitle on two lines (pricing lists) */
.price-feat-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
}
.price-feat-stack__title {
    display: block;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.price-feat-stack__sub {
    display: block;
    font-weight: 500;
    color: #64748b;
    font-size: 0.9em;
    line-height: 1.45;
}
.price-feats li.muted {
    color: var(--c-muted);
}
.price-feats li.muted .material-symbols-outlined {
    color: #94a3b8;
}
.tier-vip .price-feats li .material-symbols-outlined[aria-hidden="true"]:not([class*="check"]),
.tier-vip .price-feats li .material-symbols-outlined {
    color: #7c3aed;
}
.tier-vip .price-feats li:first-child .material-symbols-outlined { color: #16a34a; }
.tier-vipplus .price-feats li .material-symbols-outlined {
    color: #b45309;
}
.tier-vipplus .price-feats li:first-child .material-symbols-outlined { color: #16a34a; }

/* Feature matrix (all tiers show the same rows; check = included, close = not) */
.price-feats.price-feats--matrix li.is-yes .material-symbols-outlined { color: #16a34a; }
.price-feats.price-feats--matrix li.is-no {
    color: #64748b;
    font-weight: 500;
}
.price-feats.price-feats--matrix li.is-no .material-symbols-outlined { color: #94a3b8; }
.tier-vip .price-feats.price-feats--matrix li.is-yes .material-symbols-outlined,
.tier-vipplus .price-feats.price-feats--matrix li.is-yes .material-symbols-outlined { color: #16a34a; }
.tier-vip .price-feats.price-feats--matrix li.is-no .material-symbols-outlined,
.tier-vipplus .price-feats.price-feats--matrix li.is-no .material-symbols-outlined { color: #94a3b8; }

.price-cta {
    width: 100%;
    justify-content: center;
    padding: .8rem 1.2rem !important;
    font-size: .98rem;
    font-weight: 700;
}
.price-card-ctas {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
}
.price-demo {
    width: 100%;
    justify-content: center;
    padding: .68rem 1.1rem !important;
    font-size: .93rem;
    font-weight: 600;
    border: 1px solid var(--c-border);
    background: rgba(255, 255, 255, 0.65);
}
.price-demo .material-symbols-outlined { font-size: 18px; }
.price-card.is-popular .price-demo {
    background: rgba(255, 255, 255, 0.85);
}
.tier-vip .price-demo {
    border-color: rgba(109, 40, 217, 0.25);
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1040px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .price-card.is-popular { transform: none; }
}
@media (max-width: 560px) {
    .pricing-grid { grid-template-columns: 1fr; gap: .9rem; }
    .price-card   { padding: 1.5rem 1.2rem 1.3rem; }
    .price-amount .amt { font-size: 2.2rem; }
    .hero-price {
        font-size: .86rem;
        gap: .35rem .5rem;
        padding: .45rem .7rem;
    }
    .hero-price .price-sep { display: none; }
}

/* ---------- Pricing compare table (homepage) ---------- */
.price-includes {
    margin: -0.35rem 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-muted);
    letter-spacing: 0.01em;
}
.price-feats--highlights {
    margin-bottom: 1.25rem;
}
.price-feats--highlights li .material-symbols-outlined {
    color: #16a34a;
}
.tier-pro .price-feats--highlights li .material-symbols-outlined {
    color: #4338ca;
}
.tier-vip .price-feats--highlights li .material-symbols-outlined {
    color: #7c3aed;
}
.tier-vipplus .price-feats--highlights li .material-symbols-outlined {
    color: #b45309;
}
.price-card-ctas:has(.price-cta:only-child) .price-cta {
    width: 100%;
    justify-content: center;
}

.pricing-compare {
    max-width: 56rem;
    margin: 0 auto 1.25rem;
}
.pricing-compare__title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
}
.pricing-compare__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}
.pricing-compare__table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.pricing-compare__table th,
.pricing-compare__table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--c-border);
    text-align: center;
    vertical-align: middle;
}
.pricing-compare__table thead th {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-muted);
    background: #f8fafc;
}
.pricing-compare__table tbody tr:last-child th,
.pricing-compare__table tbody tr:last-child td {
    border-bottom: none;
}
.pricing-compare__table tbody th[scope="row"] {
    text-align: start;
    font-weight: 600;
    color: var(--c-text);
    min-width: 11rem;
}
.pricing-compare__table td.is-yes .material-symbols-outlined {
    font-size: 20px;
    color: #16a34a;
}
.pricing-compare__table td.is-no .material-symbols-outlined {
    font-size: 20px;
    color: #cbd5e1;
}
.pricing-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 4rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--c-muted);
    line-height: 1.45;
}
.pricing-trust .material-symbols-outlined {
    font-size: 18px;
    color: #6366f1;
}

/* ======================================================================
   Admin dashboard (KPIs + plan badges + tables)
   ====================================================================== */

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .9rem;
    margin: 1rem 0 1.6rem;
}
.admin-kpis .kpi {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--c-text);
    text-decoration: none;
    transition: transform .2s, box-shadow .25s, border-color .2s;
}
.admin-kpis .kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.admin-kpis a.kpi:hover { text-decoration: none; }
.admin-kpis .kpi.is-active {
    border-color: rgba(79,70,229,.45);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12), var(--shadow);
}
.admin-kpis .kpi-lbl {
    color: var(--c-muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.admin-kpis .kpi-num {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-top: .25rem;
}
.admin-kpis .kpi-sub {
    margin-top: .15rem;
    font-size: .78rem;
    color: var(--c-muted);
}

/* Per-tier accent on KPI cards */
.admin-kpis .plan-basic   .kpi-num { color: #475569; }
.admin-kpis .plan-pro     .kpi-num {
    background: var(--g-brand);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.admin-kpis .plan-vip     .kpi-num {
    background: linear-gradient(120deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.admin-kpis .plan-vipplus .kpi-num {
    background: linear-gradient(120deg, #b45309, #f59e0b);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

@media (max-width: 1000px) { .admin-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .admin-kpis { grid-template-columns: repeat(2, 1fr); } }

.admin-filter-bar { margin-bottom: 1rem; }
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Subtle gradient fade on the right edge hints at horizontal scroll. */
    background:
        linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) 0 0 / 40px 100% no-repeat,
        linear-gradient(-90deg, #fff 30%, rgba(255,255,255,0)) 100% 0 / 40px 100% no-repeat,
        radial-gradient(ellipse at left, rgba(15,23,42,.08), transparent 70%) 0 0 / 14px 100% no-repeat,
        radial-gradient(ellipse at right, rgba(15,23,42,.08), transparent 70%) 100% 0 / 14px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
    border-radius: var(--radius);
}

@media (max-width: 640px) {
    .admin-table th,
    .admin-table td {
        padding: .55rem .65rem;
        font-size: .85rem;
    }
    .admin-table th {
        position: sticky;
        top: 0;
        z-index: 1;
    }
    /* Keep the first column (slug) visible while the user scrolls right. */
    .admin-table th:first-child,
    .admin-table td:first-child {
        position: sticky;
        inset-inline-start: 0;
        background: #fff;
        box-shadow: 1px 0 0 var(--c-border);
        z-index: 2;
    }
    .admin-table th:first-child { background: #f1f5f9; z-index: 3; }
}

.plan-badge {
    display: inline-block;
    padding: .15rem .55rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}
.plan-badge.plan-pro     { background: rgba(79,70,229,.13);  color: #4338ca; }
.plan-badge.plan-vip     { background: rgba(139,92,246,.15); color: #6d28d9; }
.plan-badge.plan-vipplus {
    background: linear-gradient(120deg, #fde68a, #fca5a5);
    color: #7c2d12;
}

.status-pill {
    display: inline-block;
    padding: .1rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}
.status-pill.status-active   { background: #ecfdf5; color: #065f46; }
.status-pill.status-trial,
.status-pill.status-trialing { background: #eef2ff; color: #4338ca; }
.status-pill.status-past_due { background: #fef3c7; color: #92400e; }
.status-pill.status-canceled { background: #fef2f2; color: #991b1b; }
.status-pill.status-paused   { background: #f1f5f9; color: #334155; }

/* ======================================================================
   Public card page — configurable promo strips (Basic / plan feature)
   ====================================================================== */

.cp-promo {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 auto;
    padding: .7rem .9rem;
    max-width: 560px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-size: .9rem;
    color: var(--c-muted);
}
.cp-promo--top   { margin-bottom: .75rem; }
.cp-promo--footer { margin-top: .2rem; }
.cp-promo-ico {
    flex: none;
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--g-brand);
    color: #fff;
    box-shadow: var(--glow-soft);
}
.cp-promo-ico .material-symbols-outlined { font-size: 18px; }
.cp-promo-text   { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.cp-promo-line1  { font-weight: 600; color: var(--c-text); }
.cp-promo-line2  { color: #334155; font-size: 0.88em; margin-top: 0.12rem; }
.cp-promo-cta {
    flex: none;
    font-weight: 700;
    color: #4338ca;
    text-decoration: none;
    white-space: nowrap;
}
.cp-promo-cta:hover { text-decoration: none; color: #312e81; }

/* Thin site credit below every public card page (always visible). */
.cp-site-credit {
    margin: 0;
    align-self: center;
    padding: 0.15rem 0.85rem 0.25rem;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--label);
    opacity: 0.7;
}
.cp-site-credit a {
    color: inherit;
    text-decoration: none;
}
.card-page .cp-site-credit a:hover,
.card-page .cp-site-credit a:focus-visible {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 420px) {
    .cp-promo     { flex-wrap: wrap; font-size: .82rem; padding: .6rem .8rem; }
    .cp-promo-text { flex: 1 1 calc(100% - 50px); min-width: 0; }
    .cp-promo-cta  { margin-inline-start: auto; padding: .2rem 0; }
}

/* ======================================================================
   Admin UI — login, shared nav extras, 404, Users, Emails, Billing
   ====================================================================== */

/* --- 404 page ------------------------------------------------------- */
.nf {
    display: flex; flex-direction: column; align-items: center;
    gap: 1rem; padding: 5rem 1rem 6rem; text-align: center;
}
.nf-icon {
    width: 96px; height: 96px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--g-brand-dim);
    border: 1px solid var(--c-border);
}
.nf-icon .material-symbols-outlined { font-size: 48px; color: var(--c-primary); }

/* --- Admin login (minimal layout — no site header/footer) ------------ */
body.layout-standalone:has(.admin-login) {
    background:
        radial-gradient(100% 70% at 50% -15%, rgba(99, 102, 241, 0.2), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 42%, #f1f5f9 100%);
}
body.layout-standalone .layout-standalone-main:has(.admin-login) {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.admin-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: clamp(1rem, 4vw, 1.75rem);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.admin-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
    text-decoration: none;
    color: var(--c-text);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -0.02em;
}
.admin-login-brand:hover { color: var(--c-primary); }
.admin-login-card {
    width: 100%; max-width: 420px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 18px;
    box-shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.25), var(--shadow-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: left;
}
.admin-login-card__mast {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.admin-login-card__titles h1 {
    margin: 0 0 0.4rem;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
}
.admin-login-card__lead {
    margin: 0;
    line-height: 1.55;
}
.admin-login-card .admin-login-icon {
    width: 56px; height: 56px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--g-brand);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--glow-soft);
}
.admin-login-icon .material-symbols-outlined { font-size: 28px; color: #fff; }
.admin-login-form { display: grid; gap: 0; margin-top: 1.35rem; }
.admin-login-fields {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    margin-bottom: 1.1rem;
}
.admin-login-field { margin: 0; }
.admin-login-field__lab {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.42rem;
    letter-spacing: 0.02em;
    color: var(--c-text);
}
.admin-login-input-shell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0 0.85rem 0 0.65rem;
    border: 1.5px solid var(--c-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.admin-login-input-shell:focus-within {
    border-color: rgba(99, 102, 241, 0.65);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    background: #fafbff;
}
.admin-login-input-ic {
    flex: none;
    font-size: 22px;
    color: #94a3b8;
    pointer-events: none;
    user-select: none;
}
.admin-login-input-shell:focus-within .admin-login-input-ic {
    color: var(--c-primary);
}
.admin-login-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    line-height: 1.35;
    padding: 0.65rem 0.15rem 0.65rem 0;
    color: var(--c-text);
    outline: none;
    box-shadow: none;
}
.admin-login-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}
.admin-login-submit { width: 100%; justify-content: center; margin-top: 0.15rem; }
.admin-login-hint {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--c-border);
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--c-muted);
}
.admin-login-hint__ic {
    flex: none;
    margin-top: 0.06rem;
    opacity: 0.85;
    font-size: 18px !important;
}
.admin-login-meta {
    margin: 0.85rem 0 0;
    font-size: 0.75rem;
    color: var(--c-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Admin nav (who am I + roles) ---------------------------------- */
.admin-nav-right {
    display: flex; align-items: center; gap: .75rem;
}
.admin-whoami {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .88rem; color: var(--c-muted);
}
.admin-whoami .material-symbols-outlined { font-size: 20px; color: var(--c-primary); }
.admin-whoami .admin-role {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
    padding: .12rem .45rem; border-radius: 999px;
    background: var(--g-brand-dim);
    color: var(--c-primary-d);
    font-weight: 700;
}

/* --- Access-key card on Settings ----------------------------------- */
.settings-key-card {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 1.5rem;
    box-shadow: var(--shadow);
    display: grid; gap: .8rem;
}
.settings-key-head {
    display: flex; gap: .9rem; align-items: flex-start;
}
.settings-key-head .material-symbols-outlined {
    width: 42px; height: 42px;
    background: var(--g-brand-dim);
    color: var(--c-primary-d);
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.settings-key-head h2 { margin: 0 0 .1rem; font-size: 1.05rem; }
.settings-key-url {
    display: flex; gap: .5rem; align-items: center;
    padding: .7rem .9rem;
    background: #f8fafc;
    border: 1px dashed var(--c-border);
    border-radius: 12px;
    flex-wrap: wrap;
}
.settings-key-url code {
    flex: 1 1 auto; min-width: 0;
    word-break: break-all; user-select: all;
    font-size: .92rem;
    color: var(--c-text);
}

/* --- Settings · Stripe (guided block) ------------------------------ */
.settings-stripe-guide {
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-left: 4px solid #635bff;
    border-radius: 10px;
    padding: 1rem 1.1rem 1.05rem;
    margin: 0 0 0.3rem;
}
.settings-stripe-lead { margin: 0 0 0.6rem; font-size: 0.9rem; line-height: 1.45; color: var(--c-text); }
.settings-stripe-h {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-text);
}
.settings-stripe-ol { margin: 0.35rem 0 0; padding-left: 1.25rem; font-size: 0.86rem; color: var(--c-muted); line-height: 1.55; }
.settings-stripe-ol li { margin-bottom: 0.35rem; }
.settings-stripe-ol a { font-weight: 600; }
.settings-stripe-sep { margin: 1.15rem 0 0.5rem; padding-top: 0.85rem; border-top: 1px dashed var(--c-border); }
.settings-stripe-sep .helper { font-size: 0.84rem; }
.settings-stripe-endpoint {
    display: flex; gap: 0.5rem; align-items: center;
    flex-wrap: wrap;
    padding: 0.6rem 0.75rem;
    background: #fff;
    border: 1px dashed var(--c-border);
    border-radius: 8px;
    margin-bottom: 0.4rem;
}
.settings-stripe-endpoint code { flex: 1 1 auto; min-width: 0; word-break: break-all; user-select: all; font-size: 0.86rem; }
.settings-stripe-events { margin: 0.5rem 0 0.25rem; }
.settings-stripe-event-list {
    list-style: none; margin: 0; padding: 0; font-size: 0.84rem; line-height: 1.45;
    color: var(--c-muted);
}
.settings-stripe-event-list li { padding: 0.2rem 0; border-top: 1px solid #e2e8f0; }
.settings-stripe-event-list li:first-child { border-top: 0; }
.settings-stripe-event-list code { font-size: 0.8rem; }

/* --- Settings · per-plan public card features matrix ---------------- */
.settings-form .admin-plan-features th:first-child { min-width: 10.5rem; }
.settings-form .admin-plan-features td { text-align: center; vertical-align: middle; }

/* --- Admin · settings tabs & hero ----------------------------------- */
.admin-settings-page { max-width: none; margin: 0; width: 100%; padding: 0 0 2rem; box-sizing: border-box; }
.admin-settings-header h1 { margin: 0 0 0.2rem; font-size: 1.65rem; letter-spacing: -0.02em; }
.admin-settings-header.account-view-hero {
    margin-bottom: 1rem !important;
}
.admin-settings-header.account-view-hero + .alert,
.admin-settings-header.account-view-hero ~ .alert {
    margin-bottom: 0.75rem;
}
.admin-settings-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0 0.5rem;
}
.admin-settings-hero--below-tabs {
    margin: 1rem 0 1.35rem;
}
@media (max-width: 720px) {
    .admin-settings-hero { grid-template-columns: 1fr; }
}
.admin-settings-hero .settings-key-card h2 { font-size: 1.02rem; }
.admin-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0 0;
    padding: 0.2rem 0 0.35rem;
    border-bottom: 1px solid var(--c-border);
}
.admin-settings-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px 10px 0 0;
    text-decoration: none;
    color: var(--c-muted);
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.admin-settings-tab .material-symbols-outlined { font-size: 20px; }
.admin-settings-tab:hover {
    color: var(--c-text);
    background: rgba(255,255,255,0.6);
    text-decoration: none;
}
.admin-settings-tab.is-active {
    color: #4338ca;
    background: #fff;
    border-color: var(--c-border);
    border-bottom-color: #fff;
    box-shadow: 0 -1px 0 #fff;
}
.admin-settings-tab.is-active .material-symbols-outlined { color: #4f46e5; }
.admin-set-panel { margin-top: 0.5rem; }
.admin-settings-form { margin-top: 0.35rem; }
.admin-settings-form > .actions.admin-settings-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
}
[dir="rtl"] .admin-settings-tabs { flex-direction: row-reverse; }

/* --- Admin · VIP create / edit panels -------------------------------- */
.admin-vip-crud {
    margin-top: 2.25rem;
    padding: 0;
    border: none;
}
.admin-vip-crud__head {
    margin-bottom: 1rem;
}
.admin-vip-crud__head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.admin-vip-crud__intro {
    margin: 0;
    max-width: 40rem;
    line-height: 1.5;
}
.admin-vip-crud__surface {
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, var(--c-panel) 42%);
    padding: clamp(1.1rem, 2vw, 1.35rem);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.admin-vip-crud__surface .stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.admin-vip-fieldset {
    margin: 0;
    padding: 0.85rem 0 0;
    border: 0;
    border-top: 1px solid var(--c-border);
}
.admin-vip-fieldset:first-of-type {
    padding-top: 0;
    border-top: 0;
}
.admin-vip-fieldset__title {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c-primary);
}
.admin-vip-fieldset__grid {
    display: grid;
    gap: 0.65rem 1rem;
    clear: both;
}
@media (min-width: 640px) {
    .admin-vip-fieldset__grid--2 {
        grid-template-columns: 1fr 1fr;
    }
}
.admin-vip-banner-tip {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--c-text);
}
.admin-vip-banner-tip .material-symbols-outlined {
    flex: none;
    margin-top: 0.1rem;
    color: var(--c-primary);
    font-size: 22px;
}

/* --- Account (card owner) ------------------------------------------- */
.account-page {
    margin: 0;
    width: 100%;
    max-width: none;
    padding: clamp(1rem, 3vw, 2rem) 0 3rem;
    box-sizing: border-box;
}
.account-page--manage {
    padding-top: 1rem;
}

/* Logged-in dashboard: soft page backdrop (matches analytics “studio” feel) */
.account-page--dash {
    padding-top: 1rem;
}

/* --- Account · sign in / forgot / reset (card owner) ---------------- */
.account-page--auth {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: 3rem;
}
.account-page--auth .alert,
.account-page--auth .account-auth {
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
    box-sizing: border-box;
}
.account-auth-alert {
    margin-bottom: 1rem;
}
.account-auth {
    margin: 0;
}
.account-auth-card {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(1.35rem, 3.5vw, 1.85rem);
    overflow: hidden;
    position: relative;
}
.account-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--g-brand);
    opacity: 0.95;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.account-auth-mast {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
}
.account-auth-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g-brand);
    color: #fff;
    box-shadow: var(--glow-soft);
}
.account-auth-icon .material-symbols-outlined {
    font-size: 26px;
}
.account-auth-icon--muted {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: none;
}
.account-auth-mast-text { min-width: 0; }
.account-auth-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-primary);
}
.account-auth-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 4vw, 1.55rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--c-text);
}
.account-auth-lead {
    margin: 0;
    line-height: 1.5;
    font-size: 0.94rem;
}
.account-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.account-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.account-auth-field { margin: 0; }
.account-auth-label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    color: var(--c-text);
}
.account-auth-input-shell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0 0.85rem 0 0.65rem;
    border: 1.5px solid var(--c-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.account-auth-input-shell:focus-within {
    border-color: rgba(99, 102, 241, 0.65);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
    background: #fafbff;
}
.account-auth-input-ic {
    flex: none;
    font-size: 22px;
    color: #94a3b8;
    pointer-events: none;
    user-select: none;
}
.account-auth-input-shell:focus-within .account-auth-input-ic {
    color: var(--c-primary);
}
.account-auth-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    line-height: 1.35;
    padding: 0.65rem 0.1rem 0.65rem 0;
    color: var(--c-text);
    outline: none;
}
.account-auth-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}
.account-auth-submit {
    width: 100%;
    justify-content: center;
    gap: 0.4rem;
}
.account-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.account-auth-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--c-border);
    font-size: 0.92rem;
}
.account-auth-footer-sep {
    color: var(--c-muted);
    user-select: none;
}
.account-auth-footer a {
    font-weight: 600;
    color: var(--c-primary);
}
.account-auth-footer a:hover {
    text-decoration: underline;
}
@media (max-width: 380px) {
    .account-auth-mast {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .account-auth-mast-text {
        text-align: center;
    }
}

/* --- Account dashboard · mast (analytics-inspired) ------------------ */
.account-dash-mast {
    position: relative;
    margin: 0 0 1rem;
    padding: 1.2rem 1.25rem 1.15rem;
    border-radius: calc(var(--radius-lg) - 2px);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(247, 246, 255, 0.95) 42%,
        rgba(241, 245, 249, 1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.16);
    box-shadow:
        0 18px 42px -26px rgba(49, 46, 129, 0.38),
        0 1px 0 rgba(255, 255, 255, 0.72) inset,
        var(--shadow);
    overflow: hidden;
}
.account-dash-mast::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    transform: translate(-40%, -52%);
    background: radial-gradient(circle, rgba(167, 139, 250, 0.28) 0%, transparent 72%);
    pointer-events: none;
}
.account-dash-mast::after {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 48%, #ec4899 100%);
    opacity: 0.85;
}
.account-dash-mast__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.35rem;
}
.account-dash-mast__eyebrow {
    margin: 0 0 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #5b21b6;
}
.account-dash-mast__eyebrow-ic {
    font-size: 18px !important;
    opacity: 0.95;
}
.account-dash-mast__title {
    margin: 0 0 0.2rem;
    font-size: clamp(1.5rem, 3.8vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--c-text);
}
.account-dash-mast__email {
    margin: 0;
    font-size: 0.91rem;
    color: var(--c-muted);
    word-break: break-all;
}
.account-dash-mast__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}
.account-dash-mast-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.48rem 0.88rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: rgba(255, 255, 255, 0.85);
    color: var(--c-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.account-dash-mast-pill .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: 'wght' 500, 'opsz' 24;
}
.account-dash-mast-pill--primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 6px 18px -4px rgba(79, 70, 229, 0.55);
}
.account-dash-mast-pill--primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}
.account-dash-mast-pill--ghost:hover {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.45);
    text-decoration: none;
}
.account-dash-mast-pill--muted {
    cursor: default;
    color: var(--c-muted);
    border-style: dashed;
    background: rgba(248, 250, 252, 0.9);
}

/* /panel · admin mast accent (slate → indigo) */
.account-dash-mast.admin-dash-mast {
    border-color: rgba(15, 23, 42, 0.11);
}
.account-dash-mast.admin-dash-mast::after {
    background: linear-gradient(90deg, #0f172a 0%, #3730a3 46%, #5b21b6 92%);
}
.admin-dash-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}
.admin-dash-signout-btn {
    font: inherit;
    line-height: inherit;
}

.account-tab-shell {
    margin: 0 0 1.1rem;
    padding: 0.45rem 0.5rem 0.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.account-tab-shell .account-tabs {
    margin: 0;
}
.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.account-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.84rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--c-muted);
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.account-tab .material-symbols-outlined {
    font-size: 20px;
    font-variation-settings: 'wght' 500, 'opsz' 24;
}
.account-tab:hover {
    background: #fff;
    color: var(--c-text);
    border-color: var(--c-border);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.account-tab.is-active {
    color: #4338ca;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 14px -6px rgba(79, 70, 229, 0.45);
}
.account-tab.is-active .material-symbols-outlined {
    color: #4f46e5;
}
.account-tab--vip:not(.is-active) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.09) 0%, rgba(14, 165, 233, 0.06) 100%);
    border-color: rgba(99, 102, 241, 0.14);
}
.account-tab--vip.is-active {
    color: #4338ca;
    background: linear-gradient(180deg, #fff 0%, #f5f3ff 100%);
    border-color: rgba(99, 102, 241, 0.42);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.1), 0 4px 14px -6px rgba(79, 70, 229, 0.45);
}
.account-tab--vip.is-active .material-symbols-outlined {
    color: #5b21b6;
}

.account-view-hero {
    margin: 0 0 1.15rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(135deg, rgba(249, 250, 251, 1) 0%, rgba(255, 255, 255, 1) 60%);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.account-view-hero__eyebrow {
    margin: 0 0 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4f46e5;
}
.account-view-hero__eyebrow .material-symbols-outlined {
    font-size: 18px;
    opacity: 0.95;
}
.account-view-hero__eyebrow--plan { color: #7c3aed; }
.account-view-hero__eyebrow--visibility { color: #059669; }
.account-view-hero__eyebrow--security { color: #b45309; }
.account-view-hero__title {
    margin: 0 0 0.35rem;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--c-text);
}
.account-view-hero__lead {
    margin: 0 !important;
    max-width: 40rem;
    line-height: 1.55;
}

/* --- Admin panel polish --------------------------------------------- */
.admin-view-hero + .alert,
.admin-view-hero ~ .alert:first-of-type {
    margin-top: 0.75rem;
}
.admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.admin-page-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.admin-page-action .material-symbols-outlined {
    font-size: 18px;
}
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.admin-toolbar__search {
    flex: 1 1 12rem;
    min-width: 0;
    margin: 0;
}
.admin-toolbar__search input {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.35rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font: inherit;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%2394a3b8'%3E%3Cpath d='M12.5 11h-.79l-.28-.27A5.47 5.47 0 0 0 13 6.5 5.5 5.5 0 1 0 7.5 12a5.47 5.47 0 0 0 3.23-1.07l.27.28v.79l4.25 4.25 1.5-1.5L12.5 11zm-5 0C5.01 11 3 8.99 3 6.5S5.01 2 7.5 2 12 4.01 12 6.5 9.99 11 7.5 11z'/%3E%3C/svg%3E") 0.65rem center no-repeat;
}
.admin-toolbar__search input:focus {
    outline: 2px solid rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.5);
}
.admin-toolbar__meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--c-muted);
    white-space: nowrap;
}
.admin-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-inline-start: auto;
}
.admin-table .admin-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}
.admin-table .admin-row-actions form {
    display: inline;
    margin: 0;
}
.admin-table td.admin-cell-muted {
    color: var(--c-muted);
    font-size: 0.88rem;
}
.admin-table .admin-stat {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.admin-form-section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--c-border);
}
.admin-form-section > h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}
.admin-form-section > .subtle {
    margin: 0 0 1rem;
    max-width: 40rem;
}
.admin-copy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem;
}
.admin-copy-row code {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-all;
    padding: 0.45rem 0.65rem;
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 0.82rem;
}
.admin-dash-panel > h1:first-child {
    margin-top: 0;
}
@media (max-width: 640px) {
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-toolbar__actions {
        margin-inline-start: 0;
        justify-content: flex-start;
    }
}

.account-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 0.5) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 20px 46px -34px rgba(30, 27, 75, 0.45),
        var(--shadow);
    padding: 1.35rem 1.35rem 1.5rem;
}
.account-panel::before {
    content: "";
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    top: 0;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.92) 52%, rgba(236, 72, 153, 0.82) 100%);
    opacity: 0.92;
    pointer-events: none;
}
.account-panel > .account-analytics {
    margin-top: 0.25rem;
}
.account-panel .card-form {
    max-width: none;
    margin-top: 0;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 1.15rem;
}
.account-panel .card-form fieldset {
    margin: 0;
    padding: 1.05rem 1.1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.account-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: var(--c-text);
}
.account-panel-title .material-symbols-outlined {
    font-size: 26px;
    font-variation-settings: 'wght' 500, 'opsz' 24;
    color: #4f46e5;
}
.account-panel-lead {
    margin: 0 0 1rem !important;
    max-width: 40rem;
    line-height: 1.5;
}
.account-panel .account-card-form-sheet {
    margin-top: 0.35rem !important;
    padding: 1.05rem 1.1rem 1.15rem !important;
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.account-panel .account-card-form-portal {
    margin-top: 0.65rem !important;
    padding: 0.15rem 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.account-panel fieldset.account-slug-fieldset {
    margin: 0 0 1.25rem !important;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

[dir="rtl"] .account-dash-mast__actions {
    justify-content: flex-start;
}
@media (max-width: 560px) {
    .account-dash-mast__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .account-dash-mast__actions {
        justify-content: flex-start;
    }
}
@media (max-width: 840px) {
    .account-tab-shell .account-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 0.25rem;
        margin: 0 -0.15rem;
        scroll-snap-type: x proximity;
    }
    .account-tab-shell .account-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}
/* --- Account · Analytics tab ---------------------------------------- */
.account-tab--analytics:not(.is-active) .material-symbols-outlined {
    color: #7c3aed;
    opacity: 0.85;
}
.account-tab--analytics.is-active .material-symbols-outlined {
    color: #6d28d9;
}
.account-analytics-footnote {
    margin: 0 0 1rem !important;
    font-size: 0.86rem;
    max-width: 42rem;
}
.account-analytics-lock {
    text-align: center;
    padding: 1.75rem 1.25rem 2rem;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.07) 0%, rgba(139, 92, 246, 0.06) 50%, var(--c-panel) 100%);
    border: 1px solid rgba(99, 102, 241, 0.22);
    box-shadow: var(--shadow);
}
.account-analytics-lock__iconWrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.18));
    border: 1px solid rgba(99, 102, 241, 0.35);
}
.account-analytics-lock__glyph {
    font-size: 2rem !important;
    color: #5b21b6;
}
.account-analytics-lock__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6d28d9;
}
.account-analytics-lock__title {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--c-text);
}
.account-analytics-lock__lead {
    margin: 0 auto 1.25rem;
    max-width: 28rem;
    line-height: 1.55;
}
.account-analytics-lock .btn-primary {
    margin-bottom: 1rem;
}
.account-analytics-lock__hint {
    margin: 0 auto;
    max-width: 26rem;
    font-size: 0.82rem;
    line-height: 1.45;
}
.account-analytics-hero {
    margin: 0 0 0.75rem;
    border-radius: var(--radius);
    padding: 1.35rem 1.25rem 1.45rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 42%, #5b21b6 88%);
    color: #f8fafc;
    box-shadow: 0 16px 42px rgba(49, 46, 129, 0.38);
    overflow: hidden;
}
.account-analytics-hero__inner {
    position: relative;
    z-index: 1;
}
.account-analytics-hero__bolt {
    font-size: 18px;
    vertical-align: -3px;
    opacity: 0.95;
}
.account-analytics-hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.82;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.account-analytics-hero .account-analytics-hero__title.account-panel-title {
    color: #fff;
    margin-bottom: 0.65rem;
}
.account-analytics-hero__total {
    margin: 0 0 0.5rem;
    line-height: 1.1;
}
.account-analytics-hero__totalNum {
    font-size: clamp(2.4rem, 7vw, 3.15rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}
.account-analytics-hero__totalLab {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.78;
}
.account-analytics-hero__pulse {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.92;
    max-width: 36rem;
}
.account-analytics-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.account-analytics-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff !important;
    text-decoration: none;
    transition: background 0.15s ease;
}
.account-analytics-chip:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff !important;
}
.account-analytics-chip--muted {
    font-weight: 500;
    opacity: 0.9;
    cursor: default;
}
.account-analytics-chip--wallet {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(52, 211, 153, 0.45);
}
.account-analytics-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}
@media (min-width: 520px) {
    .account-analytics-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 900px) {
    .account-analytics-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.account-analytics-kpi {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    background: var(--c-panel);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-inline-start: 4px solid var(--kpi-accent, #6366f1);
}
.account-analytics-kpi--accent-reach { --kpi-accent: #6366f1; }
.account-analytics-kpi--accent-scan { --kpi-accent: #a855f7; }
.account-analytics-kpi--accent-contact { --kpi-accent: #10b981; }
.account-analytics-kpi--accent-apple { --kpi-accent: #94a3b8; }
.account-analytics-kpi--accent-google { --kpi-accent: #38bdf8; }
.account-analytics-kpi__icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}
.account-analytics-kpi--accent-scan .account-analytics-kpi__icon { background: rgba(168, 85, 247, 0.12); color: #7e22ce; }
.account-analytics-kpi--accent-contact .account-analytics-kpi__icon { background: rgba(16, 185, 129, 0.12); color: #047857; }
.account-analytics-kpi--accent-apple .account-analytics-kpi__icon { background: rgba(148, 163, 184, 0.2); color: #475569; }
.account-analytics-kpi--accent-google .account-analytics-kpi__icon { background: rgba(56, 189, 248, 0.14); color: #0369a1; }
.account-analytics-kpi__icon .material-symbols-outlined {
    font-size: 22px;
}
.account-analytics-kpi__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.account-analytics-kpi__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.25;
}
.account-analytics-kpi__value {
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--c-text);
}
.account-analytics-kpi__hint {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--c-muted, #6b7280);
}

.account-analytics-range {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
}
.account-analytics-range__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: var(--c-panel);
    color: var(--c-text);
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.account-analytics-range__btn:hover { border-color: var(--c-primary); }
.account-analytics-range__btn.is-active {
    background: rgba(99, 102, 241, 0.14);
    border-color: #6366f1;
    color: #4338ca;
}

.account-analytics-trend {
    margin: 0.35rem 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.75rem;
}
.account-analytics-trend__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.86rem;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.06);
}
.account-analytics-trend__sub { font-size: 0.82rem; }

.account-analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}
.account-analytics-mini {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--c-border);
    background: var(--c-panel);
    box-shadow: var(--shadow);
}
.account-analytics-mini__lab {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-muted);
    margin-bottom: 0.25rem;
}
.account-analytics-mini__val {
    font-size: 1.45rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.account-analytics-mini__hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--c-muted);
}

.account-analytics-panel {
    margin: 0 0 1.25rem;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--c-border);
    background: var(--c-panel);
    box-shadow: var(--shadow);
}
.account-analytics-panel__h {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.account-analytics-panel__lead {
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
}

.account-analytics-chartWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.15rem;
    padding-bottom: 0.25rem;
}
.account-analytics-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    min-height: 140px;
    padding: 0.25rem 0.15rem 0;
}
.account-analytics-bar {
    flex: 1 0 8px;
    max-width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    min-width: 0;
    box-sizing: border-box;
}
.account-analytics-bar__fill {
    width: 100%;
    max-width: 18px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #6366f1, #a855f7);
    min-height: 2px;
}
.account-analytics-bar__lab {
    font-size: 0.62rem;
    color: var(--c-muted);
    white-space: nowrap;
    transform: rotate(-55deg);
    transform-origin: top center;
    margin-top: 0.2rem;
    height: 2rem;
}

.account-analytics-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
    margin: 0 0 1.25rem;
}

.account-analytics-hist,
.account-analytics-wk {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-height: 120px;
    padding: 0.35rem 0 0;
}
.account-analytics-hcell,
.account-analytics-wcell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    min-width: 0;
    box-sizing: border-box;
}
.account-analytics-hcell__bar,
.account-analytics-wcell__bar {
    width: 100%;
    max-width: 22px;
    border-radius: 3px 3px 2px 2px;
    background: linear-gradient(180deg, #38bdf8, #6366f1);
    min-height: 2px;
}
.account-analytics-wcell__bar {
    background: linear-gradient(180deg, #10b981, #0d9488);
}
.account-analytics-hcell__lab,
.account-analytics-wcell__lab {
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    color: var(--c-muted);
}

.account-analytics-tablewrap { overflow-x: auto; margin-top: 0.35rem; }
.account-analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.account-analytics-table th,
.account-analytics-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
}
.account-analytics-table th.num,
.account-analytics-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.account-analytics-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-muted); }

.account-analytics-rates { margin: 0 0 1rem; }
.account-analytics-rateList {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}
.account-analytics-rateList li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.88rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.04);
}
.account-analytics-rateList strong { font-variant-numeric: tabular-nums; }

.account-analytics-meta {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    line-height: 1.5;
}
.account-analytics-meta p { margin: 0.2rem 0; }
.account-analytics-lifetime-h {
    font-size: 1rem;
    font-weight: 800;
    margin: 1.25rem 0 0.65rem;
    letter-spacing: -0.02em;
}

/* --- Billing · Stripe status list ---------------------------------- */
.billing-stripe-list {
    list-style: none; margin: 0 0 1rem; padding: 0;
    display: grid; gap: 0.3rem; font-size: 0.86rem;
}
.billing-stripe-list li { padding: 0.2rem 0 0.2rem 1.1rem; position: relative; }
.billing-stripe-list li::before { position: absolute; left: 0; font-weight: 800; }
.billing-stripe-list .is-ok  { color: #15803d; }
.billing-stripe-list .is-ok::before  { content: "✓"; color: #16a34a; }
.billing-stripe-list .is-miss { color: #b45309; }
.billing-stripe-list .is-miss::before { content: "○"; color: #d97706; }
.billing-stripe-endpoint-paste { margin: 0; }
.billing-stripe-endpoint-paste code {
    display: block;
    word-break: break-all; user-select: all; font-size: 0.82rem;
    padding: 0.4rem 0.55rem;
    background: #f1f5f9;
    border-radius: 6px;
    border: 1px solid var(--c-border);
}

/* --- Billing grid --------------------------------------------------- */
.billing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.billing-card {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow);
    display: grid; gap: 1rem;
}
.billing-card.plan-pro     { border-top: 3px solid var(--c-primary); }
.billing-card.plan-vip     { border-top: 3px solid var(--c-violet); }
.billing-card.plan-vipplus { border-top: 3px solid var(--c-pink); }
.billing-card.plan-basic   { border-top: 3px solid var(--c-muted); }
.billing-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .25rem;
}
.billing-price { font-size: 1.05rem; }
.billing-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    padding: .75rem 0;
    border-block: 1px dashed var(--c-border);
}
.billing-stats > div { text-align: center; }
.billing-num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--c-text); line-height: 1; }
.billing-lbl { display: block; font-size: .72rem; color: var(--c-muted); margin-top: .2rem; }
.billing-stripe-id code { word-break: break-all; }

.billing-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.billing-action-card {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.3rem;
    box-shadow: var(--shadow);
}
.billing-action-card h3 { margin: 0 0 .35rem; font-size: 1rem; }
.billing-action-card .btn { margin-top: .75rem; }

/* --- Admin form section (Users / Emails creation) ------------------ */
.admin-form-section {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.admin-form-section h2 { margin-top: 0; }

/* --- Email templates editor ---------------------------------------- */
.email-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
    align-items: start;
}
.email-list {
    display: grid; gap: .4rem;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: .6rem;
    position: sticky; top: 5rem;
}
.email-list-item {
    display: block;
    padding: .55rem .7rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--c-text);
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease;
}
.email-list-item:hover { background: #f8fafc; }
.email-list-item.is-active {
    background: var(--g-brand-dim);
    border-color: rgba(79,70,229,.25);
}
.email-list-label { display: block; font-weight: 600; }
.email-list-key { display: block; font-size: .75rem; color: var(--c-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.email-editor {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow);
}
.email-editor-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; margin-bottom: 1rem;
}
.email-editor-head h2 { margin: 0; font-size: 1.15rem; }
.email-editor-head code { color: var(--c-muted); font-size: .85rem; }
.email-vars {
    margin: .75rem 0 1rem;
    padding: .6rem .8rem;
    background: #f8fafc;
    border: 1px dashed var(--c-border);
    border-radius: 10px;
    font-size: .82rem; color: var(--c-muted);
}
.email-vars code {
    display: inline-block;
    margin: 0 .2rem .2rem 0;
    padding: .1rem .4rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: .78rem;
    color: var(--c-primary-d);
}
.email-test {
    display: flex; gap: .5rem; align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--c-border);
}
.email-test label { flex: 1 1 220px; }
.email-test small { flex: 1 1 100%; }

@media (max-width: 840px) {
    .email-grid { grid-template-columns: 1fr; }
    .email-list { position: static; }
}

/* --- Alert variant ------------------------------------------------- */
.alert-warn {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #78350f;
    padding: 1rem 1.2rem;
    border-radius: 12px;
}
.alert-warn code { color: #78350f; }

/* --- Status pill colors for new states ---------------------------- */
.status-pill.status-trial    { background: #fef3c7; color: #92400e; }
.status-pill.status-active   { background: #dcfce7; color: #166534; }
.status-pill.status-canceled { background: #fee2e2; color: #991b1b; }

/* --- Account · dashboard polish ------------------------------------ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.account-dash-mast__intro {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
}
.account-dash-avatar {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--g-brand);
    box-shadow: var(--glow-soft);
}
.account-dash-mast__copy { min-width: 0; }
.account-dash-plan {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 0.45rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-primary-d);
    background: rgba(79, 70, 229, 0.1);
    vertical-align: middle;
}
.account-share-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.75rem;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    background: var(--c-panel);
    box-shadow: var(--shadow);
}
.account-share-strip__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.account-share-strip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.account-share-strip__status--live { color: #15803d; }
.account-share-strip__status--live .account-share-strip__dot {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}
.account-share-strip__status--hidden { color: #b45309; }
.account-share-strip__field {
    flex: 1 1 12rem;
    min-width: 0;
    margin: 0;
}
.account-share-strip__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 0.86rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--c-text);
    background: rgba(15, 23, 42, 0.03);
}
.account-share-strip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.account-auth-input-shell--pw {
    padding-inline-end: 0.35rem;
}
.account-pw-toggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--c-muted);
    cursor: pointer;
}
.account-pw-toggle:hover { color: var(--c-primary); background: rgba(79, 70, 229, 0.08); }
.account-pw-toggle .material-symbols-outlined { font-size: 20px; }
.account-visibility-status {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    background: var(--c-panel);
    display: grid;
    gap: 0.85rem;
}
.account-visibility-status--live {
    border-color: rgba(22, 163, 74, 0.35);
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.45) 0%, var(--c-panel) 100%);
}
.account-visibility-status--hidden {
    border-color: rgba(180, 83, 9, 0.25);
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.35) 0%, var(--c-panel) 100%);
}
.account-visibility-status__main {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.account-visibility-status__icon {
    flex: none;
    font-size: 28px;
    margin-top: 0.05rem;
}
.account-visibility-status--live .account-visibility-status__icon { color: #16a34a; }
.account-visibility-status--hidden .account-visibility-status__icon { color: #d97706; }
.account-visibility-status__main p { margin: 0.25rem 0 0; line-height: 1.45; }
.account-share-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.account-share-tools__url {
    flex: 1 1 14rem;
    min-width: 0;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}
.account-share-tools__url input {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 0.84rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(255, 255, 255, 0.7);
}
.account-visibility-status__action { margin: 0; }
.account-pw-form .account-pw-field {
    display: block;
    margin-bottom: 1rem;
}
.account-pw-form .account-auth-label { display: block; margin-bottom: 0.35rem; }
.account-delete-card {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
}
.account-delete-card .account-panel-title {
    font-size: 1rem;
    color: #b91c1c;
}
@media (max-width: 720px) {
    .account-share-strip {
        flex-direction: column;
        align-items: stretch;
    }
    .account-share-strip__actions {
        justify-content: flex-start;
    }
    .account-dash-mast__actions {
        width: 100%;
    }
}

/* --- Account · card edit grid + branding previews ------------------ */
.account-card-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}
.account-card-edit-form { max-width: none; }
@media (max-width: 1100px) {
    .account-card-edit-grid {
        grid-template-columns: 1fr;
    }
    .account-card-edit-grid .wallet-preview {
        position: static;
        max-width: 380px;
        margin-inline: auto;
    }
}
.brand-field-hint {
    margin: 0 0 0.85rem;
    max-width: 42rem;
    line-height: 1.45;
}
.brand-field-hint--colors { margin-top: 0.35rem; }
.brand-asset-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-bottom: 0.5rem;
}
.brand-asset-cell--wide { grid-column: 1 / -1; }
@media (max-width: 560px) {
    .brand-asset-grid { grid-template-columns: 1fr; }
}
.brand-asset-preview {
    position: relative;
    margin: 0 0 0.65rem;
    width: 100%;
    aspect-ratio: 1;
    max-width: 160px;
    border-radius: 14px;
    border: 1px dashed var(--c-border);
    background: rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-asset-preview--logo {
    aspect-ratio: 16 / 10;
    max-width: 200px;
}
.brand-asset-preview--banner {
    aspect-ratio: 3 / 1;
    max-width: 100%;
}
.brand-asset-preview__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.brand-asset-preview.has-image .brand-asset-preview__img {
    display: block;
}
.brand-asset-preview__empty {
    margin: 0;
    padding: 0.5rem;
    font-size: 0.78rem;
    color: var(--c-muted);
    text-align: center;
    line-height: 1.35;
}
.brand-asset-preview.has-image .brand-asset-preview__empty {
    display: none;
}
.brand-asset-remove { margin-top: 0.35rem; }
