/* ===================================================================
   SparrowiMailer — Editorial Design System v3
   Inspired by Linear · Vercel · Stripe · Resend
   =================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;700&family=Inter+Tight:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
    /* v7 legacy aliases — map old token names to new --c-* tokens from global.css */
    --ink:    #0b0716;
    --gold:   #facc15;
    --purple: #7c3aed;

    /* Brand */
    --brand-50:  #f6f3ff;
    --brand-100: #ede4ff;
    --brand-200: #d9c8ff;
    --brand-300: #bba0ff;
    --brand-400: #9a6dff;
    --brand-500: #7c3aed;
    --brand-600: #6d28d9;
    --brand-700: #5b21b6;
    --brand-800: #4c1d95;
    --brand-900: #2e1065;

    --gold-300: #fde68a;
    --gold-400: #fcd34d;
    --gold-500: #f59e0b;

    /* Neutrals (warm) */
    --ink-50:  #fafaf9;
    --ink-100: #f4f4f3;
    --ink-200: #e7e7e4;
    --ink-300: #d4d4d0;
    --ink-400: #a3a39e;
    --ink-500: #71716d;
    --ink-600: #52524e;
    --ink-700: #3a3a36;
    --ink-800: #27272a;
    --ink-900: #18181b;

    /* Semantic */
    --bg:        #fbfbfa;
    --bg-2:      #f6f5f3;
    --surface:   #ffffff;
    --border:    #ebebe7;
    --border-strong: #d9d9d4;
    --text:      #1a1a1d;
    --text-2:    #52525a;
    --text-3:    #8a8a90;
    --text-on-brand: #ffffff;

    --success: #16a34a;
    --warning: #d97706;
    --danger:  #dc2626;
    --info:    #2563eb;

    /* Type */
    --font-display: 'Inter Tight', system-ui, -apple-system, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    /* Sizes — small refined scale */
    --fs-xs:   11px;
    --fs-sm:   12px;
    --fs-base: 13.5px;
    --fs-md:   14px;
    --fs-lg:   16px;
    --fs-xl:   18px;
    --fs-2xl:  22px;
    --fs-3xl:  28px;
    --fs-4xl:  36px;
    --fs-5xl:  48px;
    --fs-6xl:  60px;

    /* Spacing */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-8: 32px;
    --s-10: 40px;
    --s-12: 48px;
    --s-16: 64px;
    --s-20: 80px;

    /* Radius */
    --r-xs: 4px;
    --r-sm: 6px;
    --r:    8px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;

    /* Shadows — refined, layered */
    --sh-xs: 0 1px 0 rgba(24,24,27,.04), 0 1px 2px rgba(24,24,27,.04);
    --sh-sm: 0 1px 2px rgba(24,24,27,.04), 0 2px 4px rgba(24,24,27,.04);
    --sh:    0 1px 3px rgba(24,24,27,.06), 0 4px 12px rgba(24,24,27,.04);
    --sh-md: 0 4px 8px rgba(24,24,27,.06), 0 12px 24px rgba(24,24,27,.06);
    --sh-lg: 0 8px 16px rgba(24,24,27,.08), 0 24px 48px rgba(24,24,27,.08);

    /* Brand glow (used sparingly) */
    --sh-brand-sm: 0 1px 2px rgba(109,40,217,.10), 0 4px 8px rgba(109,40,217,.06);
    --sh-brand:    0 4px 12px rgba(109,40,217,.18), 0 12px 28px rgba(109,40,217,.10);

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --t-fast: 120ms var(--ease);
    --t:      180ms var(--ease);
    --t-slow: 320ms var(--ease);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
    letter-spacing: -0.005em;
    margin: 0;
}

body { min-height: 100vh; }

::selection { background: var(--brand-200); color: var(--brand-900); }

a { color: var(--brand-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--text);
    line-height: 1.18;
    margin: 0 0 var(--s-3) 0;
}
h1 { font-size: var(--fs-4xl); letter-spacing: -0.028em; font-weight: 700; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.024em; }
h3 { font-size: var(--fs-2xl); letter-spacing: -0.018em; }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p { margin: 0 0 var(--s-3) 0; color: var(--text); }

.text-muted-2 { color: var(--text-2) !important; }
.text-muted-3 { color: var(--text-3) !important; }
.text-brand { color: var(--brand-600) !important; }

code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }

img, svg { max-width: 100%; vertical-align: middle; }

/* ---------- Container ---------- */
.container, .container-fluid {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--s-5);
}
.container { max-width: 1200px; }
.container-narrow { max-width: 880px; margin-inline: auto; padding-inline: var(--s-5); }

/* ---------- Display utility text ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-size: var(--fs-xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.10em;
    color: var(--brand-600);
    padding: 4px 10px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }

.display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.034em;
    line-height: 1.04;
    font-size: clamp(var(--fs-4xl), 5.5vw, var(--fs-6xl));
}
.display-grad {
    background: linear-gradient(180deg, var(--ink-900) 30%, var(--brand-700) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: var(--fs-lg);
    color: var(--text-2);
    line-height: 1.6;
    max-width: 56ch;
    font-weight: 450;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: 550;
    letter-spacing: -0.005em;
    padding: 9px 16px;
    border-radius: var(--r);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
    line-height: 1.2;
    white-space: nowrap;
    user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 2px; }
.btn-sm { padding: 6px 12px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-lg { padding: 12px 22px; font-size: var(--fs-md); border-radius: var(--r-md); }

.btn-purple, .btn-primary, .btn-brand {
    background: var(--ink-900);
    color: #fff;
    border-color: var(--ink-900);
    box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-purple:hover, .btn-primary:hover, .btn-brand:hover {
    background: var(--ink-800);
    border-color: var(--ink-800);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--sh), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-purple:active, .btn-primary:active { transform: translateY(0); }

.btn-outline-purple, .btn-outline {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: var(--sh-xs);
}
.btn-outline-purple:hover, .btn-outline:hover {
    background: var(--ink-50);
    border-color: var(--ink-400);
    color: var(--text);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent; color: var(--text); border-color: transparent;
}
.btn-ghost:hover { background: var(--ink-100); color: var(--text); }

.btn-accent {
    background: var(--brand-600);
    color: #fff;
    border-color: var(--brand-600);
    box-shadow: var(--sh-brand-sm), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-accent:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-brand); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }

.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: var(--r-sm); }

/* Button group on dark hero */
.on-dark .btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.on-dark .btn-outline:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.32); color: #fff; }
.on-dark .btn-purple { background: #fff; color: var(--ink-900); border-color: #fff; }
.on-dark .btn-purple:hover { background: var(--ink-100); color: var(--ink-900); }

/* ---------- Forms ---------- */
.form-control, .form-select, input[type=text]:not(.no-style), input[type=email]:not(.no-style), input[type=password]:not(.no-style), input[type=number]:not(.no-style), input[type=tel]:not(.no-style), textarea:not(.no-style), select:not(.no-style) {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    padding: 8px 12px;
    width: 100%;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    box-shadow: var(--sh-xs);
    line-height: 1.4;
}
.form-control:focus, .form-select:focus,
input:focus:not(.no-style), textarea:focus:not(.no-style), select:focus:not(.no-style) {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px var(--brand-100), var(--sh-xs);
    outline: none;
}
.form-control[readonly], input[readonly] { background: var(--bg-2); color: var(--text-2); }
.form-control::placeholder { color: var(--text-3); }
.form-label, label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 550;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.002em;
}
.form-text, .form-hint { font-size: var(--fs-sm); color: var(--text-3); margin-top: 4px; }

.input-group .input-group-text {
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    color: var(--text-2);
    font-size: var(--fs-sm);
    padding: 8px 10px;
}

textarea.form-control { min-height: 88px; resize: vertical; }

/* Checkbox / radio */
.form-check-input {
    width: 16px; height: 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    margin-top: 2px;
    accent-color: var(--brand-600);
}
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.form-check-label { font-size: var(--fs-md); color: var(--text); padding-left: 6px; }

/* ---------- Navbar ---------- */
.navbar-sparrow {
    background: rgba(255,255,255,0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    padding: var(--s-3) 0;
    position: sticky; top: 0; z-index: 100;
}
.navbar-sparrow .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
.brand-mark {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink-900);
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.brand-mark:hover { color: var(--ink-900); }
.brand-mark__bird {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--ink-900), var(--brand-700));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 13px;
    box-shadow: var(--sh-brand-sm);
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .navbar-sparrow .nav-link {
    color: var(--text-2) !important;
    font-size: var(--fs-md);
    font-weight: 500;
    padding: 6px 12px !important;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
    text-decoration: none;
}
.nav-links a:hover, .navbar-sparrow .nav-link:hover { color: var(--text) !important; background: var(--ink-100); }
.nav-links a.active, .navbar-sparrow .nav-link.active { color: var(--text) !important; background: var(--ink-100); }
.nav-actions { display: flex; align-items: center; gap: var(--s-2); }

/* mobile toggler — styles moved to global.css to eliminate conflicts */
@media (max-width: 1024px) {
    .nav-links--desktop { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding: var(--s-16) 0; }
.section-sm { padding: var(--s-12) 0; }
.section-lg { padding: var(--s-20) 0; }

/* ---------- Hero (homepage) ---------- */
.hero {
    position: relative;
    padding: var(--s-20) 0 var(--s-16);
    overflow: hidden;
    background: var(--bg);
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(800px 400px at 50% -10%, var(--brand-50), transparent 70%),
        radial-gradient(600px 300px at 10% 30%, rgba(124,58,237,.06), transparent 70%);
    pointer-events: none; z-index: 0;
}
.hero::after {
    /* subtle grid */
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 30%, transparent 75%);
    opacity: 0.4;
    pointer-events: none; z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin: var(--s-5) 0 var(--s-5) 0;
    max-width: 18ch;
}
.hero-title .accent {
    background: linear-gradient(180deg, var(--brand-600), var(--brand-800));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    font-weight: 600;
}
.hero-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-2);
    max-width: 58ch;
    margin-bottom: var(--s-8);
    line-height: 1.55;
}

/* Logo strip / "trusted by" */
.logo-strip {
    display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; justify-content: center;
    padding: var(--s-6) 0;
    opacity: 0.62;
    filter: grayscale(1);
}
.logo-strip span {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: -0.01em;
}

/* ---------- Cards ---------- */
.card-x {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    box-shadow: var(--sh-xs);
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.card-x:hover { box-shadow: var(--sh); border-color: var(--border-strong); }
.card-x.flush { padding: 0; overflow: hidden; }

.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    box-shadow: var(--sh-xs);
}

/* Feature card */
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    height: 100%;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
    position: relative;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--sh); }
.feature-card .feature-icon {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--ink-900);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
    margin-bottom: var(--s-4);
}
.feature-card h3, .feature-card h4 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--s-2);
}
.feature-card p { font-size: var(--fs-md); color: var(--text-2); margin: 0; }

/* ---------- Stat / KPI cards ---------- */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    box-shadow: var(--sh-xs);
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
    position: relative;
    display: flex; flex-direction: column;
    min-height: 110px;
}
.stat-card:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.stat-card__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--s-3);
}
.stat-card__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
}
.stat-card__icon {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: var(--brand-50);
    color: var(--brand-600);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px;
}
.stat-card__value {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--text);
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.stat-card__sub {
    font-size: var(--fs-sm);
    color: var(--text-3);
    margin-top: var(--s-2);
}
.stat-card__sub a { color: var(--brand-600); font-weight: 550; }
.stat-card__delta {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
}
.stat-card__delta.up   { background: rgba(22,163,74,.08); color: var(--success); }
.stat-card__delta.down { background: rgba(220,38,38,.08); color: var(--danger); }

/* ---------- Dashboard hero strip (compact) ---------- */
.dash-greeting {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-3) 0 var(--s-6);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--s-6);
}
.dash-greeting h1 {
    font-size: var(--fs-2xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 2px 0;
}
.dash-greeting p { font-size: var(--fs-md); color: var(--text-2); margin: 0; }
.dash-greeting__meta {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-family: var(--font-mono);
    margin-bottom: 4px;
}
.dash-greeting__meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }

/* ---------- Tab nav ---------- */
.dash-tabs {
    display: flex; flex-wrap: wrap;
    gap: 2px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 3px;
    border-radius: var(--r-md);
    margin-bottom: var(--s-6);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dash-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 550;
    color: var(--text-2);
    text-decoration: none;
    transition: all var(--t-fast);
    white-space: nowrap;
}
.dash-tab:hover { color: var(--text); background: var(--surface); }
.dash-tab.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--sh-xs);
}
.dash-tab__icon { font-size: 12px; opacity: 0.75; }
.dash-tab.active .dash-tab__icon { color: var(--brand-600); opacity: 1; }

/* ---------- Section title ---------- */
.dash-section-title, .section-title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 600;
    letter-spacing: -0.014em;
    margin: 0 0 var(--s-4) 0;
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--s-3);
}
.section-eyebrow {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--brand-600);
    margin-bottom: var(--s-2);
}

/* ---------- Quota meter (rebuilt) ---------- */
.quota-meter {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    box-shadow: var(--sh-xs);
}
.quota-meter__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--s-4);
    gap: var(--s-3);
}
.quota-meter__title {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text);
}
.quota-meter__title .icon {
    width: 22px; height: 22px;
    border-radius: 5px;
    background: var(--ink-100);
    color: var(--ink-700);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px;
}
.quota-meter__usage {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--text-2);
    font-feature-settings: 'tnum';
}
.quota-meter__usage strong { color: var(--text); font-weight: 600; }

.quota-track {
    height: 6px;
    background: var(--ink-100);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.quota-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
    border-radius: 999px;
    transition: width 800ms var(--ease);
    position: relative;
    min-width: 4px;
}
.quota-fill.warn { background: linear-gradient(90deg, #d97706, #f59e0b); }
.quota-fill.danger { background: linear-gradient(90deg, #dc2626, #ef4444); }
.quota-fill::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.quota-meter__foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: var(--s-3);
    font-size: var(--fs-sm);
    color: var(--text-3);
    flex-wrap: wrap;
    gap: var(--s-2);
}
.quota-meter__foot strong { color: var(--text); font-weight: 600; }
.chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-100);
}
.chip.gold { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.chip.success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.chip.muted { background: var(--ink-100); color: var(--text-2); border-color: var(--border); }

/* ---------- Badges ---------- */
.badge-pill, .badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: -0.001em;
    line-height: 1.3;
}
.badge-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.badge-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-purple, .badge.bg-purple { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.badge-muted   { background: var(--ink-100); color: var(--text-2); border: 1px solid var(--border); }

/* ---------- Tables ---------- */
.table-clean {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--fs-md);
}
.table-clean thead th {
    text-align: left;
    background: var(--bg-2);
    color: var(--text-3);
    font-weight: 600;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table-clean tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.table-clean tbody tr:last-child td { border-bottom: none; }
.table-clean tbody tr { transition: background var(--t-fast); }
.table-clean tbody tr:hover { background: var(--bg-2); }
.table-clean code {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--text-2);
    background: var(--bg-2);
    padding: 2px 6px;
    border-radius: var(--r-xs);
    border: 1px solid var(--border);
}

/* Bootstrap table override */
.table { font-size: var(--fs-md); }
.table thead th { background: var(--bg-2); color: var(--text-3); font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }

/* ---------- Empty state ---------- */
.dash-empty {
    padding: var(--s-12) var(--s-6);
    text-align: center;
    color: var(--text-2);
    background: var(--bg-2);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
}
.dash-empty__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-3);
    margin-bottom: var(--s-3);
}

/* ---------- Pricing cards ---------- */
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    height: 100%;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
    position: relative;
    display: flex; flex-direction: column;
}
.price-card:hover { border-color: var(--border-strong); box-shadow: var(--sh); }
.price-card.featured {
    border-color: var(--ink-900);
    box-shadow: var(--sh-md);
    background: linear-gradient(180deg, #fff, var(--brand-50));
}
.price-card .price-name {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--text);
    margin: 0 0 4px 0;
}
.price-card .price-tag {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: var(--s-3) 0;
    line-height: 1;
}
.price-card .price-tag small { font-size: var(--fs-md); font-weight: 500; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
/* .price-card ul / li / li::before — removed; superseded by
   .price-card__features rules in site.css (uses SVG check in pill). */
.price-card .price-badge {
    position: absolute; top: var(--s-4); right: var(--s-4);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--ink-900);
    color: #fff;
}

/* ---------- Toast ---------- */
.sparrow-toast-container {
    position: fixed; bottom: var(--s-5); right: var(--s-5);
    z-index: 10000;
    display: flex; flex-direction: column; gap: var(--s-2);
    max-width: 360px;
}
.sparrow-toast {
    display: flex; align-items: center; gap: var(--s-3);
    background: var(--ink-900);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--r);
    box-shadow: var(--sh-lg);
    font-size: var(--fs-md);
    animation: toastIn .25s var(--ease);
    border: 1px solid rgba(255,255,255,.08);
}
.sparrow-toast .icon {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.sparrow-toast.success .icon { background: var(--success); }
.sparrow-toast.error   .icon { background: var(--danger); }
.sparrow-toast.warning .icon { background: var(--warning); }
.sparrow-toast button.close { background: transparent; border: none; color: rgba(255,255,255,.6); cursor: pointer; margin-left: auto; }
.sparrow-toast.fade-out { animation: toastOut .2s ease-in forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(8px); } }

/* ---------- Page loader ---------- */
.page-loader {
    position: fixed; inset: 0;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .2s var(--ease);
}
.page-loader.show { display: flex; opacity: 1; }
.page-loader__spinner {
    width: 28px; height: 28px;
    border: 2.5px solid var(--ink-200);
    border-top-color: var(--ink-900);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer-gradient, .site-footer {
    background: var(--ink-900);
    color: var(--ink-300);
    padding: var(--s-16) 0 var(--s-8);
    margin-top: var(--s-20);
    font-size: var(--fs-md);
}
.site-footer h5 {
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-400);
    margin-bottom: var(--s-4);
}
.site-footer a {
    color: var(--ink-300);
    display: block;
    padding: 4px 0;
    font-size: var(--fs-md);
    transition: color var(--t-fast);
    text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.site-footer .brand-mark { color: #fff; }
.site-footer .brand-mark:hover { color: #fff; }
.site-footer hr { border-top-color: rgba(255,255,255,.08); margin: var(--s-8) 0 var(--s-4); }
.site-footer .copyright {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
    font-size: var(--fs-sm);
    color: var(--ink-400);
}

/* ---------- Modal polish (Bootstrap) ---------- */
.modal-content {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
}
.modal-header { border-bottom: 1px solid var(--border); padding: var(--s-4) var(--s-5); }
.modal-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.014em; }
.modal-body { padding: var(--s-5); }
.modal-footer { border-top: 1px solid var(--border); padding: var(--s-4) var(--s-5); }

/* ---------- Alerts ---------- */
.alert {
    border-radius: var(--r);
    padding: 10px 14px;
    font-size: var(--fs-md);
    border: 1px solid;
    margin-bottom: var(--s-4);
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ---------- Auth pages (editorial) ---------- */
.auth-wrap {
    min-height: calc(100vh - 70px);
    display: flex; align-items: center;
    padding: var(--s-10) var(--s-4);
    background:
        radial-gradient(900px 380px at 80% -10%, var(--brand-50), transparent 65%),
        radial-gradient(700px 320px at 0% 110%, #fef3c7, transparent 60%),
        var(--bg);
    position: relative;
}
.auth-wrap::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
    opacity: .35; pointer-events: none;
}
.auth-wrap .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: var(--s-10); align-items: center; max-width: 1100px; }
.auth-wrap--narrow .container { display: block; max-width: 480px; }
.auth-card {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-8);
    box-shadow: var(--sh-md);
}
.auth-card--solo { max-width: 460px; margin: 0 auto; }
.auth-head { margin-bottom: var(--s-6); }
.auth-head.text-center { text-align: center; }
.auth-card h1 {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 6px 0 6px;
    color: var(--text);
}
.auth-card .subtitle, .auth-head .subtitle { color: var(--text-2); font-size: var(--fs-md); margin: 0; line-height: 1.55; }
.auth-card .form-label { font-size: var(--fs-sm); font-weight: 550; color: var(--text); margin-bottom: 6px; display: block; }
.auth-card .btn-block { width: 100%; }
.auth-card .btn-lg { padding: 11px 18px; font-size: var(--fs-md); }
.auth-foot { text-align: center; margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--text-2); }
.auth-foot a { color: var(--text); font-weight: 550; text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 1px; }
.auth-foot a:hover { border-color: var(--brand-600); color: var(--brand-700); }

.auth-form { display: flex; flex-direction: column; gap: var(--s-4); }
.auth-form .field { display: flex; flex-direction: column; }
.auth-form .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.auth-form .field-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.auth-form .field-link { font-size: var(--fs-xs); color: var(--text-2); text-decoration: none; }
.auth-form .field-link:hover { color: var(--brand-700); }
.auth-form .form-control { font-size: var(--fs-md); padding: 10px 12px; }
.auth-form .input-wrap { position: relative; }
.auth-form .input-wrap .form-control { padding-right: 40px; }
.auth-form .input-eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: var(--text-3); cursor: pointer; border-radius: var(--r-sm);
}
.auth-form .input-eye:hover { color: var(--text); background: var(--ink-100); }
.auth-form .form-hint { font-size: var(--fs-xs); color: var(--text-3); margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; }
.auth-fineprint { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.55; margin: -4px 0 2px; }
.auth-fineprint a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border); }
.auth-fineprint a:hover { color: var(--brand-700); }

.auth-icon {
    width: 52px; height: 52px; margin: 0 auto var(--s-4);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-50), #fff);
    border: 1px solid var(--brand-100);
    color: var(--brand-700);
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(124,58,237,.12);
}
.auth-icon--warn { background: linear-gradient(135deg, #fef2f2, #fff); border-color: #fecaca; color: #b91c1c; box-shadow: 0 4px 14px rgba(220,38,38,.12); }
.auth-meta { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-2); font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--s-5); }
.auth-meta i { color: var(--brand-600); margin-top: 2px; }
.auth-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.auth-actions .btn { width: auto; }

.auth-progress { display: flex; align-items: center; gap: 6px; justify-content: center; margin-bottom: var(--s-5); }
.auth-progress__step { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; background: var(--ink-100); color: var(--text-3); border: 1px solid var(--border); }
.auth-progress__step.done { background: var(--text); color: #fff; border-color: var(--text); }
.auth-progress__step.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.auth-progress__line { flex: 0 0 28px; height: 1px; background: var(--border); }
.auth-progress__line.done { background: var(--text); }

.auth-aside { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-2); }
.aside-quote {
    background: var(--text); color: #fff;
    border-radius: var(--r-lg);
    padding: var(--s-6);
    position: relative; overflow: hidden;
}
.aside-quote::before { content: "\201C"; position: absolute; top: -10px; left: 14px; font-size: 96px; line-height: 1; color: rgba(255,255,255,.12); font-family: var(--font-display); }
.aside-quote p { font-size: var(--fs-lg); line-height: 1.5; margin: 0 0 var(--s-5); font-family: var(--font-display); letter-spacing: -0.01em; position: relative; }
.aside-by { display: flex; gap: 10px; align-items: center; position: relative; }
.aside-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-500), var(--gold-600)); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--fs-xs); color: #fff; }
.aside-name { font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.aside-role { font-size: var(--fs-xs); color: rgba(255,255,255,.55); }
.aside-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.aside-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s-4); text-align: center; }
.aside-stat__num { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.aside-stat__lbl { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.aside-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.aside-bullets li { font-size: var(--fs-sm); color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.aside-bullets li i { color: #16a34a; margin-top: 2px; }

@media (max-width: 900px) {
    .auth-wrap .container { grid-template-columns: 1fr; max-width: 480px; }
    .auth-aside { order: -1; }
    .auth-aside .aside-quote { padding: var(--s-5); }
    .auth-aside .aside-quote p { font-size: var(--fs-md); }
}

/* ---------- Admin sidebar ---------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg); }
.admin-side {
    width: 232px; flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: var(--s-5) var(--s-3);
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand-mark { margin-bottom: var(--s-6); padding: 0 var(--s-2); }
.admin-side__nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side__nav a {
    display: flex; align-items: center; gap: var(--s-3);
    padding: 7px 10px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: var(--fs-md);
    font-weight: 500;
    transition: all var(--t-fast);
    text-decoration: none;
}
.admin-side__nav a:hover { background: var(--ink-100); color: var(--text); }
.admin-side__nav a.active { background: var(--ink-100); color: var(--text); font-weight: 550; }
.admin-side__nav a .icon { width: 16px; text-align: center; color: var(--text-3); }
.admin-side__nav a.active .icon { color: var(--brand-600); }
.admin-side__group {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    padding: var(--s-4) var(--s-2) var(--s-2);
    font-weight: 600;
}
.admin-main { flex: 1; padding: var(--s-6) var(--s-8); min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-6); }

@media (max-width: 880px) {
    .admin-side { display: none; }
    .admin-main { padding: var(--s-5); }
}

/* ---------- Utility ---------- */
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.tnum { font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
.fw-semibold { font-weight: 600 !important; }
.text-truncate-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider-y > * + * { border-top: 1px solid var(--border); }

/* Bootstrap grid compatibility */
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row > [class*="col-"] { padding: 0 8px; }
.row.g-3 { margin: 0 -6px; }
.row.g-3 > [class*="col-"] { padding: 6px; }
.row.g-4 { margin: 0 -10px; }
.row.g-4 > [class*="col-"] { padding: 10px; }

/* Spacing helpers (keep Bootstrap-compatible) */
.py-4 { padding-top: var(--s-6); padding-bottom: var(--s-6); }
.py-5 { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.mb-4 { margin-bottom: var(--s-6); }
.mb-5 { margin-bottom: var(--s-8); }

/* Bi icons sizing */
.bi { display: inline-block; vertical-align: -0.125em; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    h1 { font-size: var(--fs-3xl); }
    h2 { font-size: var(--fs-2xl); }
    .hero { padding: var(--s-12) 0 var(--s-10); }
    .section { padding: var(--s-12) 0; }
    .stat-card__value { font-size: var(--fs-xl); }
    .quota-meter { padding: var(--s-4); }
    .glass-card, .card-x { padding: var(--s-4); }
}

/* Print */
@media print {
    .navbar-sparrow, .site-footer, .dash-tabs { display: none; }
}

/* ===================================================================
   Premium animations & components (v3 additions)
   =================================================================== */

/* ---------- Page Loader (animated bird + orbital rings) ---------- */
.page-loader {
    position: fixed; inset: 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-4);
    opacity: 0;
    transition: opacity .25s var(--ease);
}
.page-loader.show { display: flex; opacity: 1; }
.loader-stage { position: relative; width: 80px; height: 80px; }
.loader-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-rings .r {
    fill: none;
    stroke-width: 1.5;
    stroke: var(--brand-300);
    stroke-dasharray: 4 8;
    transform-origin: 50% 50%;
    opacity: 0.6;
}
.loader-rings .r1 { animation: ringSpin 4s linear infinite; }
.loader-rings .r2 { stroke: var(--brand-500); animation: ringSpin 2.8s linear infinite reverse; opacity: 0.5; }
.loader-rings .r3 { stroke: var(--brand-700); animation: ringSpin 1.9s linear infinite; opacity: 0.4; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.loader-core {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-600);
    animation: corePulse 1.4s ease-in-out infinite;
}
@keyframes corePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(0.85); color: var(--brand-700); }
}
.loader-text {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-3);
    animation: textPulse 1.4s ease-in-out infinite;
}
@keyframes textPulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ---------- Mobile Drawer Nav (legacy — overridden by global.css) ---------- */
/* All .nav-drawer, .nav-scrim, .nav-toggle rules removed from sparrow.css to
   prevent conflicts. Authoritative styles live in assets/css/global.css. */

/* ---------- Success Page Components ---------- */
.success-stage {
    min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
    padding: var(--s-12) var(--s-4);
    background:
        radial-gradient(600px 300px at 50% 20%, var(--brand-50), transparent 70%),
        var(--bg);
}
.success-card {
    width: 100%; max-width: 520px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--s-10) var(--s-8) var(--s-8);
    box-shadow: var(--sh-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.success-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand-500), var(--gold-400), var(--brand-500));
    background-size: 200% 100%;
    animation: shimmerBar 3s linear infinite;
}
@keyframes shimmerBar { to { background-position: -200% 0; } }

.success-check {
    width: 80px; height: 80px;
    margin: 0 auto var(--s-6);
    border-radius: 50%;
    background: var(--brand-50);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    animation: checkPop .5s var(--ease) both;
}
@keyframes checkPop {
    0%   { transform: scale(.6); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.success-check::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid var(--brand-300);
    animation: ringExpand 1.6s var(--ease) infinite;
}
@keyframes ringExpand {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}
.success-check svg {
    width: 40px; height: 40px;
    stroke: var(--brand-700);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    z-index: 1; position: relative;
}
.success-check[data-success-check] svg .path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    transition: stroke-dashoffset .6s ease .4s;
}
.success-check[data-success-check].drawn svg .path { stroke-dashoffset: 0; }

.success-title {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 var(--s-2);
}
.success-sub {
    color: var(--text-2);
    font-size: var(--fs-md);
    margin: 0 0 var(--s-6);
    max-width: 40ch; margin-inline: auto;
}
.success-meta {
    display: inline-flex; align-items: center; gap: var(--s-2);
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--r);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--text-2);
    margin-bottom: var(--s-6);
}
.success-meta code { color: var(--brand-700); }
.success-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: var(--s-4) 0; }
.success-stat {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: var(--s-4);
}
.success-stat__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); font-weight: 600; }
.success-stat__value { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--text); margin-top: 4px; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: var(--s-2); }
.success-actions .btn { padding: 10px 18px; }

/* ---------- Refined hero ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.hero-actions .btn { padding: 11px 18px; font-size: var(--fs-md); }
.hero-meta {
    display: inline-flex; align-items: center; gap: var(--s-3);
    margin-top: var(--s-6);
    font-size: var(--fs-sm); color: var(--text-3);
}
.hero-meta .avatars { display: inline-flex; }
.hero-meta .avatars span {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    background: linear-gradient(135deg, var(--brand-300), var(--brand-600));
    display: inline-block;
    margin-left: -8px;
}
.hero-meta .avatars span:first-child { margin-left: 0; }
.hero-meta .stars { color: var(--gold-500); letter-spacing: 1px; }

/* ---------- Feature grid (homepage) ---------- */
.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-4);
}

/* ---------- Bento section ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--s-4);
}
.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    position: relative;
    overflow: hidden;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.bento-card:hover { border-color: var(--border-strong); box-shadow: var(--sh); }
.bento-card.dark {
    background: linear-gradient(155deg, var(--ink-900), var(--brand-900));
    color: #fff;
    border-color: transparent;
}
.bento-card.dark h3 { color: #fff; }
.bento-card.dark p  { color: rgba(255,255,255,.7); }
.bento-card.brand   {
    background: linear-gradient(155deg, var(--brand-600), var(--brand-800));
    color: #fff;
    border-color: transparent;
}
.bento-card.brand h3 { color: #fff; }
.bento-card.brand p { color: rgba(255,255,255,.85); }
.bento-card .bento-kpi {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: var(--s-2) 0;
}
.bento-card .bento-label { font-size: var(--fs-sm); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.bento-card.dark .bento-label, .bento-card.brand .bento-label { color: rgba(255,255,255,.65); }

.bento-card.col-3 { grid-column: span 3; }
.bento-card.col-2 { grid-column: span 2; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.row-2 { grid-row: span 2; }
@media (max-width: 880px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-card.col-3, .bento-card.col-2, .bento-card.col-4 { grid-column: span 2; }
    .bento-card.col-6 { grid-column: span 2; }
}

/* ---------- Testimonial ---------- */
.testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    height: 100%;
}
.testimonial blockquote {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    line-height: 1.5;
    color: var(--text);
    margin: 0 0 var(--s-4);
    letter-spacing: -0.012em;
}
.testimonial .author {
    display: flex; align-items: center; gap: var(--s-3);
}
.testimonial .author__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-300), var(--brand-600));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600;
    font-size: var(--fs-sm);
}
.testimonial .author__name { font-size: var(--fs-md); font-weight: 600; }
.testimonial .author__role { font-size: var(--fs-sm); color: var(--text-3); }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(155deg, var(--ink-900), var(--brand-900));
    border-radius: var(--r-xl);
    padding: var(--s-12) var(--s-8);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(400px 200px at 20% 20%, rgba(168,85,247,.3), transparent 60%),
        radial-gradient(400px 200px at 80% 80%, rgba(250,204,21,.15), transparent 60%);
    pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
    color: #fff;
    font-size: var(--fs-3xl);
    letter-spacing: -0.025em;
    max-width: 20ch;
    margin: 0 0 var(--s-4);
}
.cta-band p { color: rgba(255,255,255,.75); max-width: 50ch; margin: 0 0 var(--s-6); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .eyebrow--light, .eyebrow--light { background: rgba(255,255,255,.1); color: #fde68a; border-color: rgba(255,255,255,.2); }
.btn-light { background: #fff; color: var(--ink-900); border: 1px solid rgba(0,0,0,.06); }
.btn-light:hover { background: #f4f4f5; color: var(--ink-900); transform: translateY(-1px); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
@media (max-width: 700px) { .cta-band { flex-direction: column; align-items: flex-start; padding: var(--s-8) var(--s-6); } .cta-band h2 { font-size: var(--fs-2xl); } }

/* ---------- FAQ ---------- */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: var(--s-5) 0;
}
.faq-item summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 600;
    letter-spacing: -0.014em;
    color: var(--text);
    display: flex; align-items: center; justify-content: space-between;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: var(--fs-xl);
    color: var(--text-3);
    transition: transform var(--t);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: var(--s-3); color: var(--text-2); }

/* ---------- Legal pages ---------- */
.legal-prose {
    max-width: 720px; margin: 0 auto;
}
.legal-prose h2 { margin-top: var(--s-8); font-size: var(--fs-xl); }
.legal-prose h3 { margin-top: var(--s-6); font-size: var(--fs-lg); }
.legal-prose p, .legal-prose li { color: var(--text-2); line-height: 1.7; }
.legal-prose ul { padding-left: 1.2rem; }

/* ---------- Blog ---------- */
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--t);
    height: 100%;
    display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--sh); }
.blog-card__cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--brand-100), var(--brand-300));
    position: relative;
}
.blog-card__body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.blog-card__tag { font-size: var(--fs-xs); color: var(--brand-600); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-2); }
.blog-card__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.014em; margin: 0 0 var(--s-2); color: var(--text); line-height: 1.3; }
.blog-card__excerpt { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; margin: 0 0 var(--s-4); }
.blog-card__meta { font-size: var(--fs-xs); color: var(--text-3); margin-top: auto; display: flex; gap: 8px; align-items: center; text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card__meta .dot { color: var(--text-3); opacity: .6; }
.blog-card__cover-tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--text); font-size: var(--fs-xs); font-weight: 600; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); letter-spacing: 0.02em; }

/* ---------- Steps / Numbered list ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: var(--s-6); }
.step {
    display: flex; gap: var(--s-4);
    padding: var(--s-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.step__num {
    counter-increment: step;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--ink-900);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 600;
    flex-shrink: 0;
}
.step__num::before { content: counter(step); }
.step__body h4 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.step__body p { font-size: var(--fs-md); color: var(--text-2); margin: 0; }

/* ---------- Stat strip ---------- */
.stat-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: var(--s-6);
    padding: var(--s-8) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat-strip__item { text-align: center; }
.stat-strip__num {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}
.stat-strip__label { font-size: var(--fs-sm); color: var(--text-3); margin-top: 4px; }
@media (max-width: 600px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }

/* ---------- Section header (centered) ---------- */
.section-head {
    text-align: center; max-width: 640px; margin: 0 auto var(--s-10);
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
    letter-spacing: -0.028em;
    line-height: 1.1;
    margin: var(--s-3) 0;
}
.section-head p { color: var(--text-2); font-size: var(--fs-md); margin: 0; }

/* ---------- Form refinements ---------- */
.form-grid { display: grid; gap: var(--s-4); }
.form-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-grid.two { grid-template-columns: 1fr; } }

/* ---------- Avatar / Initial ---------- */
.avatar-initial {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 600;
}

/* ---------- Coupon input refinement ---------- */
.coupon-row {
    display: flex; gap: var(--s-2);
}
.coupon-row input { flex: 1; }

/* ---------- Pricing toggle ---------- */
.price-toggle {
    display: inline-flex;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}
.price-toggle button {
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-size: var(--fs-sm);
    font-weight: 550;
    color: var(--text-2);
    cursor: pointer;
    transition: all var(--t-fast);
}
.price-toggle button.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--sh-xs);
}

/* ---------- KBD ---------- */
kbd {
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: var(--r-xs);
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--text);
}

/* ---------- Animations utilities ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-up.in, .fade-up.is-visible { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* ---------- Sticky bottom-bar mobile (checkout) ---------- */
.sticky-bottom-bar {
    position: sticky; bottom: 0; z-index: 50;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--s-3) var(--s-4);
    box-shadow: 0 -4px 12px rgba(24,24,27,.04);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
    padding: var(--s-14) 0 var(--s-10);
    background:
        radial-gradient(700px 280px at 50% 0%, var(--brand-50), transparent 70%),
        var(--bg);
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center top, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center top, #000 0%, transparent 70%);
    opacity: .4; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.page-hero h1 { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.03em; margin: var(--s-3) 0 var(--s-3); color: var(--text); line-height: 1.1; }
.page-hero .lead { font-size: var(--fs-md); color: var(--text-2); margin: 0 auto; max-width: 56ch; line-height: 1.6; }
.page-hero .crumbs { font-size: var(--fs-xs); color: var(--text-3); display: inline-flex; gap: 6px; align-items: center; margin-bottom: var(--s-2); }
.page-hero .crumbs a { color: var(--text-3); text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--text); }
.page-hero .crumbs .sep { opacity: .5; }

/* ---------- Content Prose (legal, blog, about) ---------- */
.content-section { padding: var(--s-12) 0 var(--s-16); }
.content-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-10); max-width: 980px; margin: 0 auto; }
.content-grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.content-toc { position: sticky; top: 90px; align-self: start; font-size: var(--fs-sm); }
.content-toc__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); font-weight: 600; margin-bottom: var(--s-3); }
.content-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--border); }
.content-toc a { display: block; padding: 4px 10px; color: var(--text-2); text-decoration: none; border-left: 1px solid transparent; margin-left: -1px; font-size: var(--fs-sm); }
.content-toc a:hover { color: var(--text); border-left-color: var(--border-strong); }
.content-toc a.active { color: var(--text); border-left-color: var(--brand-600); font-weight: 550; }

.content-prose { color: var(--text-2); font-size: var(--fs-md); line-height: 1.75; }
.content-prose .meta { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-2); }
.content-prose h2 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin: var(--s-8) 0 var(--s-3); }
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3, .content-prose h4 { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin: var(--s-6) 0 var(--s-2); }
.content-prose p { margin: 0 0 var(--s-4); }
.content-prose ul, .content-prose ol { padding-left: 1.2rem; margin: 0 0 var(--s-4); }
.content-prose ul li, .content-prose ol li { margin-bottom: 6px; }
.content-prose a { color: var(--brand-700); text-decoration: underline; text-decoration-color: var(--brand-200); text-underline-offset: 3px; }
.content-prose a:hover { text-decoration-color: var(--brand-600); }
.content-prose strong { color: var(--text); font-weight: 600; }
.content-prose blockquote { border-left: 2px solid var(--brand-600); padding: 4px 0 4px var(--s-4); margin: var(--s-5) 0; color: var(--text); font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: -0.01em; }
.content-prose hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }
.content-callout { border: 1px solid var(--border); background: var(--bg-2); border-radius: var(--r); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; display: flex; gap: 12px; align-items: flex-start; }
.content-callout i { color: var(--brand-600); font-size: 18px; margin-top: 2px; }
.content-callout p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.content-callout strong { color: var(--text); }

/* ---------- About / Values ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-10); align-items: center; max-width: 1100px; margin: 0 auto; }
.about-block h2 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.025em; margin: 8px 0 var(--s-3); color: var(--text); }
.about-block p { font-size: var(--fs-md); color: var(--text-2); line-height: 1.7; margin: 0 0 var(--s-3); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.about-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s-5); }
.about-stat__num { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.about-stat__lbl { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); max-width: 1100px; margin: 0 auto; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); transition: all var(--t-fast); }
.value-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--sh); }
.value-card .v-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: var(--s-3); border: 1px solid var(--brand-100); }
.value-card h3 { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--text); }
.value-card p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; line-height: 1.6; }

/* ---------- Support page ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-8); max-width: 1080px; margin: 0 auto; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); display: flex; gap: 12px; align-items: flex-start; transition: all var(--t-fast); margin-bottom: var(--s-3); }
.contact-card:hover { border-color: var(--border-strong); box-shadow: var(--sh); }
.contact-card .c-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-size: 16px; border: 1px solid var(--brand-100); flex-shrink: 0; }
.contact-card .c-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; margin-bottom: 2px; }
.contact-card .c-value { font-size: var(--fs-md); color: var(--text); font-weight: 550; }
.contact-card .c-value a { color: var(--text); text-decoration: none; }
.contact-card .c-value a:hover { color: var(--brand-700); }
.contact-card .c-sub { font-size: var(--fs-sm); color: var(--text-2); }

@media (max-width: 880px) {
    .content-grid, .about-grid, .support-grid { grid-template-columns: 1fr; gap: var(--s-6); }
    .content-toc { display: none; }
    .values-grid { grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */
.divider-soft { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }


/* ---------- Quota meter (extended) ---------- */
.quota-meter__label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 550; color: var(--text); }
.quota-meter__label i { color: var(--brand-600); }
.quota-meter__pct { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); background: var(--ink-100); padding: 2px 8px; border-radius: 999px; }
.quota-meter__value { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.025em; color: var(--text); margin: var(--s-2) 0 var(--s-3); line-height: 1; }
.quota-meter__meta { font-size: var(--fs-xs); color: var(--text-3); margin-top: 10px; font-family: var(--font-mono); }
.quota-bar { height: 6px; background: var(--ink-100); border-radius: 999px; overflow: hidden; }
.quota-bar .fill { height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--brand-400)); border-radius: 999px; transition: width 800ms var(--ease); }

/* ---------- Pack cards (credits) ---------- */
.pack-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); height: 100%; display: flex; flex-direction: column; transition: all var(--t); }
.pack-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--sh); }
.pack-card--alt { background: linear-gradient(180deg, #fff, var(--bg-2)); }
.pack-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: var(--s-3); }
.pack-card__name { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.pack-card__pill { font-size: var(--fs-xs); font-weight: 600; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.pack-card__price { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1; margin: 4px 0 6px; }
.pack-card__price .currency { font-size: var(--fs-lg); font-weight: 500; color: var(--text-2); margin-right: 2px; vertical-align: 4px; }
.pack-card__per { font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-mono); margin-bottom: var(--s-5); }
.pack-card .btn-block { margin-top: auto; width: 100%; }

/* ---------- Checkout layout ---------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; max-width: 1100px; margin: 0 auto; }
.checkout-summary { position: sticky; top: 90px; }
.checkout-step { display: flex; align-items: center; gap: 10px; padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); }
.checkout-step__num { width: 24px; height: 24px; border-radius: 50%; background: var(--ink-900); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.checkout-step__h { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--text); }
.checkout-summary__h { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 var(--s-4); color: var(--text); }
.checkout-plan { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: var(--s-4); background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: var(--s-4); }
.checkout-plan__name { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--text); }
.checkout-plan__meta { font-size: var(--fs-xs); color: var(--text-3); margin-top: 4px; }
.checkout-plan__price { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--text); }
.checkout-rows { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: flex; flex-direction: column; gap: 10px; }
.checkout-rows li { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--text-2); }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s-4); border-top: 1px dashed var(--border); font-size: var(--fs-md); color: var(--text); }
.checkout-total strong { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.025em; color: var(--ink-900); }
.checkout-trust { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: var(--fs-xs); color: var(--text-3); margin-top: var(--s-4); }
.checkout-trust i { color: #16a34a; }

.coupon-row { display: flex; gap: 8px; }
.coupon-row .form-control { flex: 1; }
.coupon-row .btn { flex-shrink: 0; padding: 9px 16px; }
.coupon-msg { font-size: var(--fs-xs); margin-top: 8px; min-height: 16px; }
.coupon-msg .msg-ok { color: #15803d; display: inline-flex; gap: 4px; align-items: center; }
.coupon-msg .msg-err { color: #b91c1c; display: inline-flex; gap: 4px; align-items: center; }
.coupon-msg .msg-muted { color: var(--text-3); }

.wallet-toggle { display: flex; gap: 10px; padding: 12px 14px; margin-top: var(--s-4); border: 1px solid var(--border); background: var(--bg-2); border-radius: var(--r); cursor: pointer; align-items: center; }
.wallet-toggle:hover { border-color: var(--border-strong); }
.wallet-toggle input { margin: 0; }
.wallet-toggle__label { display: block; font-size: var(--fs-sm); font-weight: 550; color: var(--text); }
.wallet-toggle__amt { display: block; font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-mono); }

@media (max-width: 880px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

/* ---------- Upgrade summary ---------- */
.upgrade-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; max-width: 760px; margin: 0 auto; }
.upgrade-summary__col { padding: var(--s-5) var(--s-6); }
.upgrade-summary__col + .upgrade-summary__col { border-left: 1px solid var(--border); }
.upgrade-summary__col--accent { background: linear-gradient(180deg, #fff, var(--brand-50)); }
.upgrade-summary__lbl { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.upgrade-summary__val { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.025em; color: var(--text); margin: 4px 0; }
.upgrade-summary__val--brand { color: var(--brand-700); }
.upgrade-summary__meta { font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 700px) { .upgrade-summary { grid-template-columns: 1fr; } .upgrade-summary__col + .upgrade-summary__col { border-left: 0; border-top: 1px solid var(--border); } }

.price-card .price-save { font-size: var(--fs-xs); color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 4px 10px; border-radius: 999px; align-self: flex-start; margin-bottom: var(--s-3); font-family: var(--font-mono); }
.price-card .price-save strong { color: var(--brand-700); font-weight: 700; }

/* ---------- Empty state ---------- */
.empty-state { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: var(--s-10) var(--s-6); text-align: center; max-width: 520px; margin: 0 auto; }
.empty-state__ico { width: 56px; height: 56px; margin: 0 auto var(--s-4); border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-size: 24px; border: 1px solid var(--brand-100); }
.empty-state h3 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 var(--s-2); color: var(--text); }
.empty-state p { font-size: var(--fs-md); color: var(--text-2); margin: 0 0 var(--s-4); line-height: 1.6; }

/* ============================================================ */
/* DASHBOARD V3                                                  */
/* ============================================================ */

/* Page intro band */
.dash-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; margin: var(--s-2) 0 var(--s-5); padding-bottom: var(--s-5); border-bottom: 1px solid var(--border); }
.dash-intro__left { min-width: 0; }
.dash-intro__eyebrow { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-600); margin-bottom: 8px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); }
.dash-intro__eyebrow .pulse { width: 6px; height: 6px; background: var(--brand-600); border-radius: 999px; box-shadow: 0 0 0 0 rgba(124,58,237,.5); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%{box-shadow:0 0 0 0 rgba(124,58,237,.5)} 70%{box-shadow:0 0 0 8px rgba(124,58,237,0)} 100%{box-shadow:0 0 0 0 rgba(124,58,237,0)} }
.dash-intro__title { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.025em; margin: 0 0 6px; color: var(--text); line-height: 1.15; }
.dash-intro__title .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%,60%,100%{transform: rotate(0)} 10%{transform: rotate(14deg)} 20%{transform: rotate(-8deg)} 30%{transform: rotate(14deg)} 40%{transform: rotate(-4deg)} 50%{transform: rotate(10deg)} }
.dash-intro__sub { font-size: var(--fs-md); color: var(--text-2); margin: 0; max-width: 540px; }
.dash-intro__actions { display: inline-flex; gap: var(--s-2); flex-wrap: wrap; }
@media (max-width: 640px) { .dash-intro__title { font-size: var(--fs-2xl); } .dash-intro__actions { width: 100%; } .dash-intro__actions .btn { flex: 1; } }

/* KPI grid (4 small cards, editorial) */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); display: flex; flex-direction: column; gap: 6px; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); position: relative; overflow: hidden; }
.kpi:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); transform: translateY(-1px); }
.kpi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink-200); transition: background var(--t-fast); }
.kpi--brand::before { background: var(--brand-600); }
.kpi--gold::before  { background: #d4a017; }
.kpi--green::before { background: #16a34a; }
.kpi--blue::before  { background: #2563eb; }
.kpi__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.kpi__label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.kpi__ico { width: 24px; height: 24px; border-radius: 6px; background: var(--ink-100); color: var(--ink-700); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.kpi--brand .kpi__ico { background: var(--brand-50); color: var(--brand-700); }
.kpi--gold  .kpi__ico { background: #fffbeb; color: #92400e; }
.kpi--green .kpi__ico { background: #f0fdf4; color: #166534; }
.kpi--blue  .kpi__ico { background: #eff6ff; color: #1e40af; }
.kpi__value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.022em; color: var(--text); line-height: 1.1; font-feature-settings: 'tnum'; }
.kpi__value--sm { font-size: var(--fs-xl); }
.kpi__sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.kpi__sub a { color: var(--brand-600); font-weight: 550; text-decoration: none; }
.kpi__sub a:hover { text-decoration: underline; }

/* Dash panel — refined glass-card */
.dash-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5) var(--s-5) var(--s-5); }
.dash-panel + .dash-panel { margin-top: var(--s-4); }
.dash-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dash-panel__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.018em; margin: 0; color: var(--text); display: inline-flex; align-items: center; gap: var(--s-2); }
.dash-panel__title .ico { width: 22px; height: 22px; border-radius: 5px; background: var(--brand-50); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.dash-panel__meta { font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-mono); }
.dash-panel__link { font-size: var(--fs-sm); color: var(--brand-700); font-weight: 550; text-decoration: none; }
.dash-panel__link:hover { color: var(--brand-800); text-decoration: underline; }

/* Refine table-clean for dashboard */
.table-clean code { font-size: var(--fs-xs); }

/* Referral hero */
.ref-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); padding: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: var(--s-5); position: relative; overflow: hidden; }
.ref-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0); background-size: 22px 22px; opacity: 0.4; pointer-events: none; z-index: 0; }
.ref-hero > * { position: relative; z-index: 1; }
@media (max-width: 880px) { .ref-hero { grid-template-columns: 1fr; padding: var(--s-5); } }
.ref-hero__eyebrow { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-600); font-family: var(--font-mono); margin-bottom: 8px; }
.ref-hero__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.022em; margin: 0 0 8px; color: var(--text); line-height: 1.2; }
.ref-hero__title .accent { color: var(--brand-600); }
.ref-hero__sub { font-size: var(--fs-md); color: var(--text-2); margin: 0 0 var(--s-4); line-height: 1.6; max-width: 460px; }
.ref-code-row { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-3); }
.ref-code { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 600; color: var(--text); padding: 8px 14px; border: 1px dashed var(--brand-200, #d8b4fe); background: var(--brand-50); border-radius: var(--r-sm); letter-spacing: 0.04em; }
.ref-link-input { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-2); }
.ref-link-input input { flex: 1; border: 0; background: transparent; padding: 8px 10px; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-2); outline: none; min-width: 0; }
.ref-link-input .btn { padding: 7px 14px; font-size: var(--fs-sm); }
.ref-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); align-content: start; }
.ref-stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); }
.ref-stat--full { grid-column: 1 / -1; }
.ref-stat__lbl { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 6px; }
.ref-stat__val { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.022em; color: var(--text); font-feature-settings: 'tnum'; line-height: 1; }
.ref-stat__val--brand { color: var(--brand-600); }
.ref-stat__val--gold  { color: #92400e; }

/* Profile two-col */
.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-side { display: flex; flex-direction: column; gap: var(--s-4); }
.profile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-4); }
.profile-meta__item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-3); }
.profile-meta__lbl { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 4px; }
.profile-meta__val { font-size: var(--fs-md); color: var(--text); font-weight: 550; }

/* Account avatar */
.avatar-block { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--border); }
.avatar-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; border: 1px solid var(--brand-100); }
.avatar-meta { min-width: 0; }
.avatar-name { font-size: var(--fs-md); font-weight: 600; color: var(--text); margin: 0; }
.avatar-email { font-size: var(--fs-sm); color: var(--text-3); margin: 0; font-family: var(--font-mono); }

/* Sender account card grid (mobile-friendly alt) */
.sender-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: center; transition: border-color var(--t-fast); }
.sender-card:hover { border-color: var(--border-strong); }
.sender-card + .sender-card { margin-top: var(--s-2); }
.sender-card__main { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.sender-card__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink-100); color: var(--ink-700); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); flex-shrink: 0; }
.sender-card__avatar--gmail { background: #fef2f2; color: #b91c1c; }
.sender-card__avatar--outlook { background: #eff6ff; color: #1e40af; }
.sender-card__info { min-width: 0; }
.sender-card__name { font-size: var(--fs-md); font-weight: 600; color: var(--text); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sender-card__email { font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-mono); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sender-card__stats { display: flex; gap: var(--s-4); margin-top: 6px; font-size: var(--fs-xs); color: var(--text-2); font-family: var(--font-mono); }
.sender-card__stats strong { color: var(--text); font-weight: 600; }
.sender-card__actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.sender-card__actions .btn { padding: 5px 10px; font-size: var(--fs-xs); }
@media (max-width: 600px) { .sender-card { grid-template-columns: 1fr; } .sender-card__actions { justify-content: flex-end; } }

/* Refined dash empty */
.dash-empty { text-align: center; padding: var(--s-8) var(--s-4); color: var(--text-2); font-size: var(--fs-md); }
.dash-empty p { margin: 0 0 var(--s-2); }
.dash-empty .small { font-size: var(--fs-sm); color: var(--text-3); }

/* Section header inline meta (e.g. "showing last 100") */
.meta-pill { font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--text-3); background: var(--ink-100); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); }

/* =================================================================== */
/* CRITICAL FIXES (post-deploy)                                          */
/* =================================================================== */

/* FIX 1 — testimonial quote text was invisible (dark-on-dark)
   global `p { color: var(--text) }` was overriding the white quote text */
.aside-quote, .aside-quote p, .aside-quote h1, .aside-quote h2, .aside-quote h3,
.aside-quote h4, .aside-quote h5, .aside-quote h6 { color: #fff !important; }
.aside-quote .aside-name { color: #fff; }
.aside-quote .aside-role { color: rgba(255,255,255,.62); }

/* Belt-and-suspenders: any element flagged `.on-dark` flips its child p's white */
.on-dark, .on-dark p, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p { color: rgba(255,255,255,.78); }
.on-dark .text-muted-2, .on-dark .text-muted-3 { color: rgba(255,255,255,.6) !important; }

/* FIX 2 — dash-tabs__inner wrapper had no styles, causing layout collapse */
.dash-tabs__inner {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 2px;
    min-width: max-content;
}
.dash-tabs {
    display: block;          /* override the earlier flex to allow horizontal scroll */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 3px;
}
.dash-tabs::-webkit-scrollbar { height: 3px; }
.dash-tabs::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* FIX 3 — favicon fallback (file is missing, browser shows 404 in console).
   Drop a tiny inline data-uri behind it via head injection if needed; until
   the real file is uploaded, this prevents a network 404 by no-op style. */
/* (Code-side fix: header.php was updated to point at /assets/images/logo.svg
    or remove the icon; no CSS rule possible.) */

/* FIX 4 — auth aside cards on small screens were getting cut off */
@media (max-width: 640px) {
    .auth-aside { padding: 0; }
    .aside-quote { padding: var(--s-5) var(--s-4); }
    .aside-stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
    .aside-stat { padding: var(--s-3) var(--s-2); }
    .aside-stat__num { font-size: var(--fs-lg); }
    .aside-stat__lbl { font-size: 10px; }
}

/* FIX 5 — dashboard intro on mobile was wrapping awkwardly */
@media (max-width: 640px) {
    .dash-intro { flex-direction: column; align-items: stretch; gap: var(--s-4); }
    .dash-intro__actions { justify-content: stretch; }
}

/* FIX 6 — kpi labels were truncating long plan names */
.kpi__value[title] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* FIX 7 — Alert blocks needed margin defaults on dashboard pages */
.alert { border-radius: var(--r-md); border: 1px solid var(--border); padding: var(--s-3) var(--s-4); font-size: var(--fs-md); display: inline-flex; align-items: center; gap: 8px; }
.alert i { font-size: 16px; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #854d0e; }
.alert-info    { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }

/* =================================================================== */
/* V4 — BOLD PURPLE THEME RESTORATION                                    */
/* =================================================================== */

/* ---------- Hero v4 (bold purple gradient) ---------- */
.hero-bold {
    position: relative;
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 35%, #7c3aed 65%, #a78bfa 100%);
    color: #fff;
    padding: 80px 0 100px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-bold::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}
.hero-bold::after {
    content: "";
    position: absolute;
    top: -30%; right: -10%;
    width: 720px; height: 720px;
    background: radial-gradient(closest-side, rgba(253,224,71,.35), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-bold .container { position: relative; z-index: 1; }
.hero-bold__grid {
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: var(--s-10); align-items: center;
}
@media (max-width: 980px) {
    .hero-bold { padding: 56px 0 72px; }
    .hero-bold__grid { grid-template-columns: 1fr; gap: var(--s-8); }
}
.hero-bold__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #fde68a;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--s-5);
    backdrop-filter: blur(8px);
}
.hero-bold__eyebrow .dot { width: 6px; height: 6px; background: #fde68a; border-radius: 50%; box-shadow: 0 0 0 0 rgba(253,224,71,.5); animation: pulse-gold 2s infinite; }
@keyframes pulse-gold { 0%{box-shadow:0 0 0 0 rgba(253,224,71,.5)} 70%{box-shadow:0 0 0 8px rgba(253,224,71,0)} 100%{box-shadow:0 0 0 0 rgba(253,224,71,0)} }
.hero-bold__title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.4vw, 64px);
    font-weight: 700;
    letter-spacing: -0.032em;
    line-height: 1.04;
    margin: 0 0 var(--s-5);
    color: #fff;
}
.hero-bold__title .gold { background: linear-gradient(135deg, #fde68a, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; font-weight: 700; }
.hero-bold__title em { font-style: italic; font-weight: 700; }
.hero-bold__sub {
    font-size: var(--fs-lg);
    color: rgba(255,255,255,.78);
    line-height: 1.55;
    margin: 0 0 var(--s-7);
    max-width: 52ch;
}
.hero-bold__actions { display: inline-flex; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s-7); }
.btn-hero-primary { background: #fff; color: var(--ink-900); border: 1px solid #fff; padding: 12px 22px; font-weight: 600; font-size: var(--fs-md); border-radius: var(--r-md); }
.btn-hero-primary:hover { background: #fde68a; border-color: #fde68a; color: var(--ink-900); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(253,224,71,.35); }
.btn-hero-secondary { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); padding: 12px 22px; font-weight: 600; font-size: var(--fs-md); border-radius: var(--r-md); backdrop-filter: blur(8px); }
.btn-hero-secondary:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero-bold__meta { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.hero-bold__avatars { display: flex; }
.hero-bold__avatars span {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #c4b5fd, #fde68a);
    border: 2px solid #4c1d95; margin-left: -8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: var(--ink-900);
}
.hero-bold__avatars span:first-child { margin-left: 0; }
.hero-bold__meta-text { font-size: var(--fs-sm); color: rgba(255,255,255,.7); }
.hero-bold__meta-text strong { color: #fff; }
.hero-bold__meta .stars { color: #fbbf24; letter-spacing: 2px; }

/* Hero email visual on the right */
.hero-bold__visual {
    position: relative;
    perspective: 1500px;
}
.hero-bold__card {
    background: #fff;
    color: var(--ink-900);
    border-radius: var(--r-lg);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 12px 24px -12px rgba(0,0,0,.35);
    padding: 18px;
    position: relative;
    overflow: hidden;
    transform: rotateY(-4deg) rotateX(2deg);
    transform-origin: center;
}
.hero-bold__card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 38px;
    background: var(--ink-100);
    border-bottom: 1px solid var(--border);
}
.hero-bold__card-dots {
    position: relative; display: flex; gap: 6px; padding: 4px 4px 14px;
}
.hero-bold__card-dots span { width: 11px; height: 11px; border-radius: 50%; background: #d1d5db; }
.hero-bold__card-dots span:nth-child(1) { background: #ef4444; }
.hero-bold__card-dots span:nth-child(2) { background: #f59e0b; }
.hero-bold__card-dots span:nth-child(3) { background: #10b981; }
.hero-bold__card-dots .url { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); padding-right: 6px; }
.hero-bold__card-row {
    display: grid; grid-template-columns: 36px 1fr auto;
    gap: 12px; align-items: center;
    padding: 12px 4px; border-bottom: 1px solid var(--border);
}
.hero-bold__card-row:last-child { border-bottom: 0; }
.hero-bold__card-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: #fff; }
.hcr-purple { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.hcr-gold   { background: linear-gradient(135deg, #fbbf24, #d97706); }
.hcr-rose   { background: linear-gradient(135deg, #ec4899, #be185d); }
.hcr-teal   { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.hcr-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.hero-bold__card-row strong { font-size: 13px; display: block; margin-bottom: 2px; }
.hero-bold__card-row small { font-size: 12px; color: var(--text-3); display: block; }
.hero-bold__card-time { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); white-space: nowrap; }
.hero-bold__card-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 4px 4px;
    font-size: 11px; color: var(--text-3); font-family: var(--font-mono);
}
.hero-bold__card-foot .ok::before { content: ""; display: inline-block; width: 6px; height: 6px; background: #10b981; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Floating side chips on hero */
.hero-bold__chip {
    position: absolute;
    background: rgba(255,255,255,.95);
    color: var(--ink-900);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
    display: inline-flex; align-items: center; gap: 10px;
    font-size: var(--fs-sm); font-weight: 550;
    backdrop-filter: blur(8px);
}
.hero-bold__chip i { font-size: 16px; }
.hero-bold__chip--tl { top: -16px; left: -18px; }
.hero-bold__chip--br { bottom: -16px; right: -18px; }
.hero-bold__chip .num { font-family: var(--font-display); font-weight: 700; color: var(--brand-600); }
@media (max-width: 980px) {
    .hero-bold__chip--tl, .hero-bold__chip--br { display: none; }
    .hero-bold__card { transform: none; }
}

/* ---------- Bento v4 (fixed, denser, theme-colored) ---------- */
.bento-v4 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(170px, auto);
    gap: var(--s-4);
}
.bento-v4 .b {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-5) var(--s-5);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.bento-v4 .b:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--sh); }
.bento-v4 .b__label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); font-family: var(--font-mono); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 6px; }
.bento-v4 .b__label i { font-size: 12px; color: var(--brand-600); }
.bento-v4 .b__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--text); line-height: 1.2; }
.bento-v4 .b__body { font-size: var(--fs-md); color: var(--text-2); margin: 0; line-height: 1.55; }
.bento-v4 .b__kpi { font-family: var(--font-display); font-size: clamp(40px, 4.2vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 8px; }
.bento-v4 .b__sub { font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.bento-v4 .b__foot { margin-top: auto; padding-top: var(--s-4); display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* Variants */
.bento-v4 .b--brand {
    background: linear-gradient(155deg, #7c3aed 0%, #4c1d95 100%);
    color: #fff; border-color: transparent;
}
.bento-v4 .b--brand .b__label, .bento-v4 .b--brand .b__sub { color: rgba(255,255,255,.7); }
.bento-v4 .b--brand .b__title, .bento-v4 .b--brand .b__kpi { color: #fff; }
.bento-v4 .b--brand .b__body { color: rgba(255,255,255,.82); }
.bento-v4 .b--brand .b__label i { color: #fde68a; }
.bento-v4 .b--brand::after {
    content: ""; position: absolute; bottom: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(closest-side, rgba(253,224,71,.4), transparent 70%);
    pointer-events: none;
}

.bento-v4 .b--dark {
    background: linear-gradient(155deg, #18181b 0%, #2a1a52 100%);
    color: #fff; border-color: transparent;
}
.bento-v4 .b--dark .b__label, .bento-v4 .b--dark .b__sub { color: rgba(255,255,255,.55); }
.bento-v4 .b--dark .b__title, .bento-v4 .b--dark .b__kpi { color: #fff; }
.bento-v4 .b--dark .b__body { color: rgba(255,255,255,.7); }
.bento-v4 .b--dark .b__label i { color: #a78bfa; }

.bento-v4 .b--gold {
    background: linear-gradient(155deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}
.bento-v4 .b--gold .b__label, .bento-v4 .b--gold .b__sub { color: #92400e; }
.bento-v4 .b--gold .b__kpi { color: #92400e; }
.bento-v4 .b--gold .b__title { color: #78350f; }
.bento-v4 .b--gold .b__body { color: #92400e; }

.bento-v4 .b--soft {
    background: linear-gradient(155deg, var(--brand-50) 0%, #fff 100%);
    border-color: var(--brand-100);
}
.bento-v4 .b--soft .b__kpi { color: var(--brand-700); }

/* Spans */
.bento-v4 .b.s-4  { grid-column: span 4; }
.bento-v4 .b.s-5  { grid-column: span 5; }
.bento-v4 .b.s-6  { grid-column: span 6; }
.bento-v4 .b.s-7  { grid-column: span 7; }
.bento-v4 .b.s-8  { grid-column: span 8; }
.bento-v4 .b.s-12 { grid-column: span 12; }
.bento-v4 .b.r-2  { grid-row: span 2; }

@media (max-width: 900px) {
    .bento-v4 { grid-template-columns: repeat(6, 1fr); }
    .bento-v4 .b.s-4, .bento-v4 .b.s-5, .bento-v4 .b.s-7, .bento-v4 .b.s-8 { grid-column: span 6; }
    .bento-v4 .b.s-6  { grid-column: span 6; }
    .bento-v4 .b.r-2  { grid-row: auto; }
}

/* Visual list inside bento (e.g. validator card with bullets) */
.bento-v4 .b__list { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s-3); }
.bento-v4 .b__list-item { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-2); }
.bento-v4 .b__list-item i { color: #10b981; font-size: 12px; }
.bento-v4 .b--dark .b__list-item, .bento-v4 .b--brand .b__list-item { color: rgba(255,255,255,.78); }

/* Mini chart bar */
.bento-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: var(--s-3); }
.bento-bars span { flex: 1; background: var(--brand-300); border-radius: 3px 3px 0 0; transition: background var(--t); }
.bento-v4 .b--brand .bento-bars span { background: rgba(253,224,71,.6); }

/* ---------- FAQ accordion ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: var(--brand-200); box-shadow: 0 4px 16px rgba(124,58,237,.07); }
.faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 18px var(--s-5);
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
    content: ""; width: 14px; height: 14px; flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%237c3aed'%3E%3Cpath d='M8 11.5 1.5 5l1-1L8 9.5 13.5 4l1 1z'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
    transition: transform var(--t);
}
.faq-item[open] > summary::after { transform: rotate(180deg); }
.faq-item__body {
    padding: 0 var(--s-5) var(--s-5);
    font-size: var(--fs-md);
    color: var(--text-2);
    line-height: 1.65;
}
.faq-item__body p { margin: 0 0 12px; color: var(--text-2); }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-item__body code { background: var(--ink-100); padding: 2px 6px; border-radius: 4px; font-size: 90%; }
.faq-item__body a { color: var(--brand-700); font-weight: 550; }

.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s-5); justify-content: center; }
.faq-cat { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); cursor: pointer; font-weight: 600; transition: all var(--t-fast); }
.faq-cat:hover { border-color: var(--brand-300); color: var(--brand-700); }
.faq-cat.is-active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* ---------- Blog post detail prose ---------- */
.post-hero {
    padding: var(--s-10) 0 var(--s-6);
    background: linear-gradient(180deg, var(--brand-50), #fff);
    border-bottom: 1px solid var(--border);
}
.post-hero__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.post-hero__crumbs { font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-3); }
.post-hero__crumbs a { color: var(--brand-700); text-decoration: none; }
.post-hero__crumbs .sep { margin: 0 8px; color: var(--text-3); }
.post-hero__tag { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s-4); font-family: var(--font-mono); }
.post-hero__title { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.1; margin: 0 0 var(--s-4); color: var(--text); }
.post-hero__sub { font-size: var(--fs-lg); color: var(--text-2); line-height: 1.55; margin: 0 0 var(--s-5); }
.post-hero__meta { display: inline-flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-3); }
.post-hero__meta .author { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 550; }
.post-hero__meta .author .avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.post-hero__meta .sep { width: 3px; height: 3px; background: var(--text-3); border-radius: 50%; }

.post-cover { max-width: 1040px; margin: -40px auto var(--s-8); padding: 0 var(--s-4); }
.post-cover img, .post-cover .svg-cover { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); display: block; }
.post-cover .svg-cover { aspect-ratio: 16 / 9; }

.post-body { max-width: 720px; margin: 0 auto; padding: 0 var(--s-4) var(--s-10); }
.post-body h2 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.022em; margin: var(--s-8) 0 var(--s-3); color: var(--text); line-height: 1.2; }
.post-body h3 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.018em; margin: var(--s-6) 0 var(--s-3); color: var(--text); }
.post-body p { font-size: var(--fs-lg); line-height: 1.75; color: var(--text); margin: 0 0 var(--s-4); }
.post-body ul, .post-body ol { padding-left: 1.2em; margin: 0 0 var(--s-5); }
.post-body li { font-size: var(--fs-lg); line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.post-body strong { font-weight: 600; color: var(--text); }
.post-body a { color: var(--brand-700); font-weight: 550; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body blockquote { margin: var(--s-6) 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--brand-500); background: var(--brand-50); border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--font-display); font-size: var(--fs-lg); font-style: italic; color: var(--brand-900); }
.post-body blockquote p { font-size: var(--fs-lg); color: var(--brand-900); margin: 0; }
.post-body pre { background: var(--ink-900); color: #f4f4f5; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); overflow-x: auto; font-size: var(--fs-sm); line-height: 1.6; margin: 0 0 var(--s-5); border: 1px solid var(--ink-800); }
.post-body code { font-family: var(--font-mono); font-size: 0.92em; background: var(--ink-100); padding: 2px 6px; border-radius: 4px; color: var(--ink-800); }
.post-body pre code { background: transparent; padding: 0; color: inherit; }
.post-body img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--border); margin: var(--s-5) 0; }
.post-body .callout { display: grid; grid-template-columns: 36px 1fr; gap: var(--s-3); padding: var(--s-4) var(--s-5); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-md); margin: var(--s-5) 0; }
.post-body .callout__ico { width: 36px; height: 36px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--brand-700); font-size: 16px; box-shadow: 0 4px 12px rgba(124,58,237,.15); }
.post-body .callout h4 { font-family: var(--font-display); font-size: var(--fs-md); margin: 0 0 6px; color: var(--brand-900); font-weight: 600; }
.post-body .callout p { font-size: var(--fs-md); color: var(--brand-800); margin: 0; line-height: 1.6; }
.post-body .callout--warn { background: #fffbeb; border-color: #fde68a; }
.post-body .callout--warn .callout__ico { color: #92400e; }
.post-body .callout--warn h4 { color: #78350f; }
.post-body .callout--warn p { color: #92400e; }

.post-foot { max-width: 720px; margin: var(--s-8) auto 0; padding: var(--s-6) var(--s-4); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.post-foot__share { display: inline-flex; gap: 8px; }
.post-foot__share a { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); transition: all var(--t-fast); }
.post-foot__share a:hover { color: var(--brand-700); border-color: var(--brand-300); }

/* Related posts strip */
.related-strip { background: var(--bg-2); border-top: 1px solid var(--border); padding: var(--s-10) 0; }
.related-strip h3 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.018em; text-align: center; margin: 0 0 var(--s-6); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); max-width: 1100px; margin: 0 auto; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Blog index v4 (denser cards) ---------- */
.blog-grid-v4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 900px) { .blog-grid-v4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid-v4 { grid-template-columns: 1fr; } }

.blog-feature { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 900px) { .blog-feature { grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 600px) { .blog-feature { grid-column: span 1; } }
.blog-feature__cover { position: relative; min-height: 280px; }
.blog-feature__body { padding: var(--s-7) var(--s-6); display: flex; flex-direction: column; justify-content: center; }
.blog-feature__tag { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-600); font-family: var(--font-mono); margin-bottom: var(--s-3); }
.blog-feature__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; margin: 0 0 var(--s-3); color: var(--text); }
.blog-feature__title a { color: inherit; text-decoration: none; }
.blog-feature__title a:hover { color: var(--brand-700); }
.blog-feature__excerpt { font-size: var(--fs-md); color: var(--text-2); line-height: 1.6; margin: 0 0 var(--s-4); }
.blog-feature__meta { display: inline-flex; gap: 10px; align-items: center; font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-mono); }
.blog-feature__meta .dot { width: 3px; height: 3px; background: var(--text-3); border-radius: 50%; }

.blog-card-v4 {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    overflow: hidden; display: flex; flex-direction: column;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.blog-card-v4:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--sh); }
.blog-card-v4__cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.blog-card-v4__cover .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--ink-900); padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); backdrop-filter: blur(8px); }
.blog-card-v4__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.blog-card-v4__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; margin: 0 0 8px; }
.blog-card-v4__title a { color: var(--text); text-decoration: none; }
.blog-card-v4__title a:hover { color: var(--brand-700); }
.blog-card-v4__excerpt { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; margin: 0 0 var(--s-3); }
.blog-card-v4__meta { margin-top: auto; font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-mono); display: flex; align-items: center; gap: 8px; }
.blog-card-v4__meta .dot { width: 3px; height: 3px; background: var(--text-3); border-radius: 50%; }

/* Gradient covers for blog covers (no actual image needed) */
.cover-grad { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-family: var(--font-display); font-size: clamp(28px, 3vw, 42px); font-weight: 700; letter-spacing: -0.02em; text-align: center; padding: var(--s-4); position: relative; overflow: hidden; }
.cover-grad::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.1) 1px, transparent 0); background-size: 18px 18px; }
.cover-grad span { position: relative; z-index: 1; line-height: 1.1; }
.cover-grad__num { position: absolute; top: 12px; right: 16px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.6); font-weight: 500; letter-spacing: 0.08em; z-index: 1; }
.cg-1 { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.cg-2 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.cg-3 { background: linear-gradient(135deg, #10b981, #047857); }
.cg-4 { background: linear-gradient(135deg, #ec4899, #9d174d); }
.cg-5 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.cg-6 { background: linear-gradient(135deg, #18181b, #4c1d95); }

/* ---------- v5 supplemental ---------- */
.trust-strip { padding: var(--s-7) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-label { text-align: center; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); font-family: var(--font-mono); margin-bottom: var(--s-4); }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: var(--s-8); flex-wrap: wrap; }
.trust-logos span { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--text-3); letter-spacing: -0.012em; opacity: 0.7; transition: opacity var(--t), color var(--t); }
.trust-logos span:hover { color: var(--brand-700); opacity: 1; }
@media (max-width: 600px) { .trust-logos { gap: var(--s-4); } .trust-logos span { font-size: var(--fs-md); } }

.section--alt { background: var(--bg-2); }

/* Testimonial new compact variant (.testimonial p, .testimonial__by, .t-avatar, .t-name, .t-role) */
.testimonial p { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.5; color: var(--text); margin: 0 0 var(--s-4); letter-spacing: -0.012em; }
.testimonial__by { display: flex; align-items: center; gap: var(--s-3); }
.t-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--fs-sm); }
.t-name { font-size: var(--fs-md); font-weight: 600; color: var(--text); }
.t-role { font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-mono); }

/* Section head with optional dot eyebrow */
.section-eyebrow .dot { display: inline-block; width: 6px; height: 6px; background: var(--brand-600); border-radius: 50%; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 2px rgba(124,58,237,.15); }

/* Invoice table — used in dashboard */
.invoice-table { width: 100%; }
.invoice-actions { display: inline-flex; gap: 6px; align-items: center; }
.invoice-actions .btn { padding: 5px 12px; font-size: var(--fs-xs); }

/* Print stylesheet for the PDF fallback */
@media print {
    .navbar-sparrow, .site-footer, .dash-tabs, .dash-intro__actions, .invoice-no-print { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ============================================================
   V5 SUPPLEMENT 2 — FAQ page, Blog index/detail, Billing
   ============================================================ */

/* Compact hero variant (for FAQ, blogs, billing) */
.hero-bold--compact { padding: 100px 0 70px; }
.hero-bold--compact .page-hero__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.eyebrow--gold { color: #facc15; }
.eyebrow--gold .dot { background:#facc15; box-shadow: 0 0 18px rgba(250,204,21,.55); }
.link-gold { color:#fde047; text-decoration: underline; text-decoration-color: rgba(253,224,71,.5); text-underline-offset: 3px; }
.link-gold:hover { color:#fff; }

/* .page-hero__sub moved to site.css (v7) — legacy white-on-dark rule removed */

/* Pill buttons — all .btn-pill rules moved to global.css (v7). Legacy rules removed. */

/* FAQ */
.faq-cats { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 28px; justify-content:center; }
.faq-cat { padding: 8px 16px; border-radius:999px; border:1px solid var(--border); background:#fff; font-size:.85rem; font-weight:600; color:var(--ink-2); cursor:pointer; transition: all .15s; }
.faq-cat:hover { border-color: var(--brand); color: var(--brand); }
.faq-cat.is-active { background:var(--ink); color:#fff; border-color:var(--ink); }
.faq-wrap { max-width: 820px; margin: 0 auto; display:flex; flex-direction:column; gap: 12px; }
.faq-item { background:#fff; border:1px solid var(--border); border-radius: 14px; padding: 0; overflow:hidden; transition: all .2s; }
.faq-item:hover { border-color: rgba(124,58,237,.4); box-shadow: 0 8px 24px -12px rgba(124,58,237,.2); }
.faq-item[open] { border-color: var(--brand); }
.faq-item summary { padding: 18px 22px; cursor:pointer; font-weight:600; font-size: 1rem; color: var(--ink); list-style: none; display:flex; align-items:center; gap:12px; position:relative; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:"+"; margin-left:auto; font-size: 1.4rem; font-weight:300; color: var(--brand); transition: transform .2s; }
.faq-item[open] summary::after { content:"–"; transform: rotate(0); }
.faq-item .q-tag { display:inline-block; padding: 3px 10px; border-radius:999px; background: rgba(124,58,237,.1); color: var(--brand); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.faq-item__body { padding: 0 22px 22px; color: var(--ink-2); line-height: 1.6; }
.faq-item__body p { margin-bottom: 10px; }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-foot { text-align:center; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.faq-foot h3 { font-size: 1.4rem; margin-bottom: 8px; }
.faq-foot p { color: var(--ink-2); margin-bottom: 18px; }

/* Blog index v4 — featured + grid */
.blog-feature { display:grid; grid-template-columns: 1fr 1fr; gap: 32px; background:#fff; border:1px solid var(--border); border-radius: 24px; overflow:hidden; margin-bottom: 48px; text-decoration:none; color:inherit; transition: all .25s; }
.blog-feature:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.1); border-color: rgba(124,58,237,.3); }
.blog-feature__cover { min-height: 360px; position:relative; display:flex; align-items:flex-end; padding: 28px; }
.blog-feature__body { padding: 40px; display:flex; flex-direction:column; justify-content:center; }
.bf-meta { display:flex; gap:10px; align-items:center; font-size:.82rem; color:var(--ink-2); margin-bottom: 14px; }
.bf-title { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight:700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.bf-lede { color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; margin-bottom: 22px; }
.bf-cta { color: var(--brand); font-weight: 600; display:inline-flex; align-items:center; gap:8px; }
.meta-cat { color: var(--brand); font-weight: 700; font-size:.78rem; text-transform: uppercase; letter-spacing:.06em; }
.meta-dot { color: var(--border); }

.blog-grid-v4 { display:grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.blog-card-v4 { background:#fff; border:1px solid var(--border); border-radius: 20px; overflow:hidden; text-decoration:none; color:inherit; transition: all .22s; display:flex; flex-direction:column; }
.blog-card-v4:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -18px rgba(0,0,0,.12); border-color: rgba(124,58,237,.3); }
.bc-cover { min-height: 180px; padding: 22px; display:flex; align-items:flex-end; }
.bc-body { padding: 24px; display:flex; flex-direction:column; flex:1; }
.bc-meta { display:flex; gap:8px; align-items:center; font-size:.78rem; color:var(--ink-2); margin-bottom: 12px; }
.bc-title { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 10px; }
.bc-lede { color: var(--ink-2); font-size: .92rem; line-height: 1.5; margin-bottom: 14px; flex:1; }
.bc-date { font-size:.78rem; color: var(--ink-2); }
.cover-tag { position:absolute; top: 20px; left: 20px; background: rgba(0,0,0,.4); color:#fff; padding: 6px 12px; border-radius:999px; font-size:.7rem; font-weight: 700; text-transform: uppercase; letter-spacing:.06em; backdrop-filter: blur(8px); }
.cover-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .68rem; color: rgba(255,255,255,.85); letter-spacing: .14em; font-weight: 600; }

/* Cover gradients (no images needed) */
.cover-grad { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color:#fff; position:relative; overflow:hidden; }
.cover-grad::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,.15) 0, transparent 40%), radial-gradient(circle at 80% 80%, rgba(250,204,21,.18) 0, transparent 50%); }
.cg-1 { background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #c084fc 100%); }
.cg-2 { background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #818cf8 100%); }
.cg-3 { background: linear-gradient(135deg, #581c87 0%, #9333ea 50%, #f0abfc 100%); }
.cg-4 { background: linear-gradient(135deg, #312e81 0%, #6366f1 50%, #f59e0b 100%); }
.cg-5 { background: linear-gradient(135deg, #4c1d95 0%, #db2777 50%, #fbbf24 100%); }
.cg-6 { background: linear-gradient(135deg, #1e293b 0%, #7c3aed 50%, #ec4899 100%); }

/* Newsletter band */
.newsletter-band { margin-top: 56px; background: linear-gradient(135deg, #1a103d, #2e1065); color:#fff; border-radius: 28px; padding: 44px; display:grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items:center; }
.newsletter-band h3 { font-size: 1.5rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.newsletter-band p { color: rgba(255,255,255,.7); margin: 0; }
.newsletter-form { display:flex; gap:10px; }
.newsletter-form input { flex:1; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color:#fff; font-size: .95rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { outline: none; border-color: rgba(250,204,21,.6); background: rgba(255,255,255,.1); }

/* Blog detail post */
.post-back { display:inline-block; color: rgba(255,255,255,.7); text-decoration:none; font-size:.88rem; font-weight: 500; margin-bottom: 18px; }
.post-back:hover { color:#fde047; }
.post-meta-row { display:flex; gap:10px; align-items:center; font-size:.85rem; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.post-meta-row .meta-cat { color:#fde047; }
.post-author { margin-top: 28px; display:inline-flex; align-items:center; gap: 14px; padding: 14px 22px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius: 999px; color: rgba(255,255,255,.85); font-size:.88rem; line-height: 1.35; }
.post-author .muted { color: rgba(255,255,255,.55); font-size:.78rem; }
.t-avatar { width: 42px; height: 42px; border-radius: 999px; display:flex; align-items:center; justify-content:center; font-weight: 700; font-size:.88rem; color:#fff; background: linear-gradient(135deg, #7c3aed, #c084fc); flex-shrink:0; }
.t-avatar--a { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.t-avatar--b { background: linear-gradient(135deg, #4338ca, #818cf8); }
.t-avatar--c { background: linear-gradient(135deg, #9333ea, #f0abfc); }
.t-avatar--d { background: linear-gradient(135deg, #6366f1, #f59e0b); }
.t-avatar--e { background: linear-gradient(135deg, #db2777, #fbbf24); }
.t-avatar--f { background: linear-gradient(135deg, #1e293b, #ec4899); }

/* Content tables in posts */
.content-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .92rem; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.content-table th { background: var(--ink); color:#fff; font-weight: 600; text-align:left; padding: 12px 16px; font-size: .82rem; letter-spacing: .02em; }
.content-table td { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--ink-2); }
.content-table tbody tr:nth-child(even) td { background: #faf9fc; }

/* Related strip after a post */
.related-strip { background: #faf9fc; border-top: 1px solid var(--border); padding: 56px 0; margin-top: 64px; }
.rs-title { font-size: 1.3rem; margin-bottom: 24px; letter-spacing: -0.02em; }
.rs-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rs-card { display:block; padding: 24px; border-radius: 16px; color:#fff; text-decoration:none; min-height: 160px; position:relative; transition: transform .2s; }
.rs-card:hover { transform: translateY(-3px); color:#fff; }
.rs-card .meta-cat { color: rgba(255,255,255,.85); display:block; margin-bottom: 8px; }
.rs-card h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 0; }

/* Mobile responsiveness for new components */
@media (max-width: 860px) {
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature__cover { min-height: 220px; }
  .blog-feature__body { padding: 28px; }
  .newsletter-band { grid-template-columns: 1fr; padding: 32px; }
  .newsletter-form { flex-direction: column; }
  .rs-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BILLING — list + invoice PDF preview styles
   ============================================================ */
.billing-summary { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.bs-card { background:#fff; border:1px solid var(--border); border-radius: 16px; padding: 20px; }
.bs-card__label { font-size:.78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 8px; }
.bs-card__value { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.bs-card__sub { font-size:.78rem; color: var(--ink-2); margin-top: 4px; }

.billing-table { width:100%; border-collapse: separate; border-spacing: 0; background:#fff; border-radius: 16px; overflow:hidden; border: 1px solid var(--border); }
.billing-table th { background: #faf9fc; color: var(--ink); text-align:left; padding: 14px 18px; font-size:.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.billing-table td { padding: 16px 18px; border-bottom: 1px solid var(--border); font-size:.92rem; color: var(--ink); vertical-align: middle; }
.billing-table tbody tr:last-child td { border-bottom: none; }
.billing-table tbody tr:hover td { background: #faf9fc; }
.bt-orderid { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .82rem; color: var(--ink-2); }
.bt-amount { font-weight: 700; }
.bt-status { display:inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bt-status--paid { background: rgba(16, 185, 129, .1); color: #059669; }
.bt-status--pending { background: rgba(245, 158, 11, .1); color: #d97706; }
.bt-status--failed { background: rgba(239, 68, 68, .1); color: #dc2626; }
.bt-btn { display:inline-flex; align-items:center; gap:6px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; transition: all .15s; }
.bt-btn:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.bt-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.bt-btn--ghost:hover { background: var(--ink); color:#fff; }

.billing-empty { background:#fff; border:1px dashed var(--border); border-radius: 20px; padding: 56px 24px; text-align:center; color: var(--ink-2); }
.billing-empty__icon { font-size: 3rem; color: var(--brand); margin-bottom: 12px; opacity: .6; }
.billing-empty h3 { color: var(--ink); margin-bottom: 6px; }

@media (max-width: 720px) {
  .billing-table thead { display:none; }
  .billing-table tbody tr { display:block; padding: 16px; border-bottom: 1px solid var(--border); }
  .billing-table tbody td { display:flex; justify-content:space-between; padding: 6px 0; border: none; }
  .billing-table tbody td::before { content: attr(data-label); font-weight: 700; color: var(--ink-2); font-size:.74rem; text-transform: uppercase; letter-spacing: .06em; }
}

/* ============================================================
   INVOICE HTML — used both for screen preview and PDF generation
   ============================================================ */
.invoice-page { background:#fff; max-width: 880px; margin: 32px auto; padding: 56px; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 24px 60px -24px rgba(0,0,0,.12); color:#111; }
.invoice-header { display:flex; justify-content:space-between; align-items:flex-start; padding-bottom: 32px; border-bottom: 2px solid #7c3aed; margin-bottom: 32px; }
.inv-brand { display:flex; gap:14px; align-items:center; }
.inv-logo { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #7c3aed, #a855f7); color:#fff; display:flex; align-items:center; justify-content:center; font-weight: 700; font-size: 1.4rem; }
.inv-brand h1 { font-size: 1.4rem; margin: 0; letter-spacing: -0.02em; }
.inv-brand p { margin: 0; color: #666; font-size: .85rem; }
.inv-title { text-align: right; }
.inv-title h2 { font-size: 2rem; margin: 0; letter-spacing: -0.04em; color: #7c3aed; font-weight: 800; }
.inv-title p { margin: 4px 0 0; color: #666; font-size: .82rem; font-family: 'JetBrains Mono', ui-monospace, monospace; }

.invoice-meta { display:grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.inv-block h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #999; margin-bottom: 8px; font-weight: 700; }
.inv-block p { margin: 2px 0; font-size: .92rem; color: #222; line-height: 1.5; }
.inv-block strong { color: #111; font-weight: 700; }

.invoice-items { width:100%; border-collapse: collapse; margin-bottom: 24px; }
.invoice-items thead th { background: #f5f3ff; padding: 12px 14px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #6b21a8; font-weight: 700; text-align:left; border-bottom: 1px solid #ddd6fe; }
.invoice-items thead th.right { text-align:right; }
.invoice-items tbody td { padding: 14px; font-size: .92rem; border-bottom: 1px solid #eee; color: #222; }
.invoice-items tbody td.right { text-align:right; font-weight: 600; }
.invoice-items tbody td .desc-sub { display:block; color: #888; font-size:.78rem; margin-top: 2px; }

.invoice-totals { width: 320px; margin-left: auto; margin-top: 8px; }
.invoice-totals .row { display:flex; justify-content:space-between; padding: 8px 0; font-size: .92rem; color: #333; }
.invoice-totals .row--total { padding-top: 14px; margin-top: 6px; border-top: 2px solid #7c3aed; font-size: 1.15rem; font-weight: 700; color: #7c3aed; }
.invoice-totals .label { color: #666; }

.invoice-foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid #eee; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: flex-start; font-size: .82rem; color: #666; }
.inv-stamp { background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(16, 185, 129, .04)); border: 2px solid #10b981; color: #047857; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; text-align: center; }

.invoice-actions { display:flex; gap: 10px; justify-content: center; margin: 24px 0; }
.invoice-actions .btn-pill { font-size: .88rem; }

@media print {
  body { background: #fff !important; }
  .site-header, .site-footer, .invoice-actions, .post-back { display: none !important; }
  .invoice-page { box-shadow: none !important; border: none !important; margin: 0 !important; padding: 24px !important; max-width: 100% !important; }
}


/* ============================================================
   V6 — Merged Billing & History tabs
   ============================================================ */
.bill-tabs { display:flex; gap: 8px; margin: 24px 0 18px; border-bottom: 1px solid var(--border); padding-bottom: 0; flex-wrap: wrap; }
.bill-tab { display:inline-flex; align-items:center; gap: 8px; padding: 12px 18px; border-radius: 12px 12px 0 0; border: 1px solid transparent; border-bottom: none; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .15s; position: relative; bottom: -1px; }
.bill-tab:hover { color: var(--ink); background: rgba(124,58,237,.04); }
.bill-tab.is-active { background: #fff; color: var(--brand); border-color: var(--border); border-bottom-color: #fff; }
.bill-tab__count { display:inline-flex; align-items:center; justify-content:center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(124,58,237,.1); color: var(--brand); font-size: .72rem; font-weight: 700; }
.bill-tab.is-active .bill-tab__count { background: var(--brand); color: #fff; }
.bill-panel { display: none; }
.bill-panel.is-active { display: block; }
.bill-panel[hidden] { display: none !important; }

.bill-footnote { margin-top: 16px; font-size: .84rem; color: var(--ink-2); text-align: center; padding: 14px; background: rgba(124,58,237,.04); border-radius: 10px; }
.bill-footnote code { background: #fff; padding: 2px 6px; border-radius: 4px; font-size: .85em; border: 1px solid var(--border); }


/* =====================================================
   Blog detail page — real-photo enhancements
   ===================================================== */

/* Real-photo post cover */
.post-cover--photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); margin: 0 0 40px; aspect-ratio: 16/7; }
.post-cover--photo img { width:100%; height:100%; object-fit: cover; display:block; }
.post-cover__overlay { position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45) 100%); display:flex; align-items:flex-end; padding:28px; }
.cover-tag-pill { background: rgba(0,0,0,.55); color:#fde047; padding:8px 14px; border-radius:999px; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; backdrop-filter: blur(8px); border:1px solid rgba(253,224,71,.3); }

/* Author photo */
.t-avatar-img { width: 42px; height: 42px; border-radius: 999px; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,.2); }

/* Table of contents */
.post-toc { background: rgba(124,58,237,.05); border: 1px solid rgba(124,58,237,.15); border-radius: 16px; padding: 20px 24px; margin: 0 0 32px; }
.post-toc__label { font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; color: var(--brand); margin-bottom:8px; }
.post-toc ol { padding-left: 1.4em; margin:0; color: var(--ink-2); font-size:.92rem; }
.post-toc ol li { margin:4px 0; }
.post-toc ol a { color: var(--ink-2); text-decoration: none; }
.post-toc ol a:hover { color: var(--brand); }

/* Inline figure */
.post-figure { margin: 32px 0; }
.post-figure img { width:100%; height:auto; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.15); display:block; }
.post-figure figcaption { font-size:.84rem; color: var(--ink-2); margin-top: 10px; text-align:center; font-style: italic; }

/* Share strip */
.post-share { display:flex; gap:10px; align-items:center; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 32px 0; flex-wrap: wrap; }
.post-share__label { font-weight: 600; font-size: .88rem; color: var(--ink-2); margin-right: 4px; }
.post-share a { display:inline-flex; align-items:center; gap:6px; padding: 8px 14px; border-radius: 999px; border:1px solid var(--border); color: var(--ink); text-decoration: none; font-size: .82rem; transition: all .15s; }
.post-share a:hover { background: var(--ink); color:#fff; border-color: var(--ink); }

/* =====================================================
   Blog detail — post-hero dark purple override
   Ensures the .post-hero banner on all 6 blog detail
   pages renders as the dark purple gradient with
   white/gold text, matching the design spec.
   The early .post-hero rule (brand-50→white) is for
   other page types; these rules override for the
   blog article context.
   ===================================================== */

/* Dark purple hero background */
.post .post-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(167,106,255,.35), transparent),
    linear-gradient(160deg, #1a0533 0%, #2e1065 45%, #4c1d95 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Title: white with a subtle gold underline accent on the last word */
.post .post-hero__title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(124,58,237,.5);
}

/* Lede: off-white */
.post .post-hero__lede {
  color: rgba(255,255,255,.78);
}

/* meta-cat pill already gold via .post-meta-row .meta-cat {color:#fde047}
   but .post-hero__title's color:var(--text) needs the above override.
   The .post-back, .post-meta-row, .post-author rules already use
   rgba(255,255,255,…) so they render correctly on the dark bg. */
