@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Rungs — design system
   Single source of truth. Vercel/Linear-inspired: warm neutral surfaces,
   precise typography, subtle borders, restrained shadows, deliberate rhythm.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
    /* palette — refined toward a Linear/Vercel light theme. Backgrounds
       cooler and slightly deeper; borders tuned so cards read cleanly
       against the page. */
    --bg: #F6F7F8;
    --surface: #FFFFFF;
    --surface-2: #F1F3F5;
    --ink: #0F172A;           /* slate-900 */
    --ink-2: #1F2937;         /* slate-800 */
    --muted: #64748B;         /* slate-500, ~4.7:1 on --bg */
    --muted-2: #475569;       /* slate-600 */
    --line: #E2E8F0;          /* slate-200 */
    --line-strong: #CBD5E1;   /* slate-300 */
    --line-soft: rgba(15, 23, 42, 0.05);

    --accent: #171717;          /* primary CTAs — Vercel-black */
    --accent-hover: #000000;
    --accent-fg: #FAFAFA;

    --brand: #E56E3D;           /* warm ramen accent — highlights only */
    --brand-hover: #C55A2E;
    --brand-soft: rgba(229, 110, 61, 0.10);

    --link: #171717;
    --link-hover: #E56E3D;

    --ok: #16A34A;
    --warn: #D97706;
    --err: #DC2626;
    --err-soft: rgba(220, 38, 38, 0.08);

    /* type */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

    /* scale */
    --fs-xs: 0.75rem;      /* 12 */
    --fs-sm: 0.8125rem;    /* 13 */
    --fs-md: 0.9375rem;    /* 15 */
    --fs-base: 1rem;       /* 16 */
    --fs-lg: 1.125rem;     /* 18 */
    --fs-xl: 1.375rem;     /* 22 */
    --fs-2xl: 1.75rem;     /* 28 */
    --fs-3xl: 2.25rem;     /* 36 */
    --fs-4xl: 3rem;        /* 48 */
    --fs-5xl: 4rem;        /* 64 */

    /* space */
    --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;
    --s-24: 96px;

    /* container */
    --gutter: 16px;
    --container: 1200px;

    /* radii */
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-2xl: 20px;
    --r-pill: 999px;

    /* shadow — Linear/Vercel style: soft, layered, always paired with a border */
    --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.02);
    --shadow-2: 0 2px 4px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-3: 0 8px 16px rgba(15, 23, 42, 0.08), 0 24px 48px rgba(15, 23, 42, 0.12);

    /* motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur-1: 120ms;
    --dur-2: 200ms;

    /* z */
    --z-nav: 60;
    --z-modal: 100;
    --z-toast: 120;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-decoration: none; transition: color var(--dur-1) var(--ease); }
a:hover { color: var(--link-hover); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-8) 0; }

::selection { background: var(--brand-soft); color: var(--ink); }

/* focus */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

/* ---------- typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 var(--s-3);
}
h1 { font-size: clamp(var(--fs-3xl), 4.5vw, var(--fs-5xl)); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(var(--fs-2xl), 3vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }

p { margin: 0 0 var(--s-4); color: var(--ink-2); }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.55; }

small { font-size: var(--fs-sm); color: var(--muted); }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.95em; }

.eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 var(--s-2);
}

/* ---------- layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
main { flex: 1 0 auto; }

.page-wrapper,
.landing-wrapper,
.dashboard-page,
.account-page {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 80px);
}

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }

/* ---------- nav ---------- */
.app-nav {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.app-nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--s-6);
    min-height: 60px;
}
.app-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.app-nav__brand:hover { color: var(--ink); }
.app-nav__brand:hover .app-nav__logo { transform: translateY(-1px); }
.app-nav__logo {
    width: 24px;
    height: 24px;
    display: block;
    color: var(--ink);
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.app-nav__wordmark {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.site-footer__logo {
    width: 22px;
    height: 22px;
    color: var(--ink);
    display: block;
}

.app-nav__links {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 24px;
}
.app-nav__link {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 2px;
    color: var(--muted-2);
    font-size: var(--fs-md);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.app-nav__link:hover { color: var(--ink); }
.app-nav__link.is-active {
    color: var(--ink);
    font-weight: 600;
    border-bottom-color: var(--ink);
}

.app-nav__actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.app-nav__pro {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 14px;
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.app-nav__pro:hover {
    color: var(--ink);
    border-color: var(--line-strong);
    background: var(--surface-2);
}
.app-nav__pro.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--accent-fg);
}
.app-nav__pro.is-active .app-nav__pro-badge {
    background: rgba(250, 250, 250, 0.15);
    color: #fff;
}
.app-nav__pro-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--brand-soft);
    color: var(--brand-hover);
    border-radius: var(--r-sm);
    text-transform: uppercase;
}
.app-nav__cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--accent-fg);
    font-size: var(--fs-md);
    font-weight: 500;
    border-radius: var(--r-pill);
    transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.app-nav__cta:hover { background: var(--accent-hover); color: var(--accent-fg); transform: translateY(-1px); }
.app-nav__account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    color: var(--ink);
    font-size: var(--fs-md);
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    transition: border-color var(--dur-1) var(--ease);
}
.app-nav__account:hover { border-color: var(--line-strong); color: var(--ink); }
.app-nav__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--accent-fg);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}

/* mobile nav */
.app-nav__toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--ink);
}
.app-nav__mobile {
    display: none;
    border-top: 1px solid var(--line);
    padding: var(--s-3) var(--gutter);
    background: var(--bg);
}
.app-nav__mobile.is-open { display: flex; flex-direction: column; gap: 4px; }
.app-nav__mobile a {
    padding: 12px 14px;
    color: var(--ink-2);
    font-size: var(--fs-md);
    font-weight: 500;
    border-radius: var(--r-md);
}
.app-nav__mobile a:hover { background: var(--surface-2); color: var(--ink); }
.app-nav__mobile a.is-active { background: var(--surface-2); color: var(--ink); }

@media (max-width: 900px) {
    .app-nav__inner { grid-template-columns: auto 1fr auto; }
    .app-nav__links { display: none; }
    .app-nav__toggle { display: inline-flex; }
    .app-nav__actions .app-nav__pro { display: none; }
    /* Collapse the account chip to just the avatar so the credit pill has room. */
    .app-nav__account { padding: 3px; border-color: transparent; background: transparent; }
    .app-nav__account-label { display: none; }
}
@media (max-width: 480px) {
    /* Tighten the credit pill on the smallest screens without hiding it. */
    .credit-pill { padding: 4px 4px 4px 10px; font-size: 11.5px; }
    .credit-pill__label { display: none; }
}

/* ---------- buttons ---------- */
.btn,
.btn-simple-cta {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    font-weight: 500;
    line-height: 1;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    cursor: pointer;
    text-decoration: none;
    transition:
        background var(--dur-1) var(--ease),
        border-color var(--dur-1) var(--ease),
        color var(--dur-1) var(--ease),
        transform var(--dur-1) var(--ease),
        box-shadow var(--dur-2) var(--ease);
}
.btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn:active { transform: translateY(0.5px); }

.btn-primary,
.btn-simple-cta {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
}
.btn-primary:hover,
.btn-simple-cta:hover {
    background: var(--accent-hover);
    color: var(--accent-fg);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}
.btn-primary:active,
.btn-simple-cta:active { transform: translateY(0); box-shadow: var(--shadow-1); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-strong); }

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

.btn-sm { padding: 7px 14px; font-size: var(--fs-sm); }
.btn-lg { padding: 14px 24px; font-size: var(--fs-base); }
.btn-improve-resume-modern {
    background: var(--accent);
    color: var(--accent-fg);
    border: 1px solid var(--accent);
    padding: 10px 18px;
    border-radius: var(--r-pill);
    font-weight: 500;
    font-size: var(--fs-md);
    cursor: pointer;
    transition: background var(--dur-1) var(--ease);
}
.btn-improve-resume-modern:hover { background: var(--accent-hover); }

.full-width { width: 100%; }

/* ---------- forms ---------- */
label {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="tel"],
select,
textarea,
.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: var(--fs-md);
    color: var(--ink);
    transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
input:focus, select:focus, textarea:focus, .form-input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--line-soft);
    outline: none;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field-hint { font-size: var(--fs-xs); color: var(--muted); }
.field-error { font-size: var(--fs-xs); color: var(--err); }

/* ---------- cards / surfaces ---------- */
.card,
.about-card,
.contact-card,
.contact-section,
.about-section,
.analytics-card,
.kpi-card,
.internship-card,
.admin-auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: clamp(20px, 3vw, 28px);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.card-title { font-size: var(--fs-lg); font-weight: 600; margin: 0; }

.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 720px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- hero (landing) ---------- */
.hero-section {
    display: flex;
    justify-content: center;
    padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 88px);
}
.hero-content {
    max-width: 1080px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-5);
}
.hero-headline {
    font-size: clamp(1.75rem, 5.4vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}
@media (max-width: 640px) {
    .hero-headline { font-size: clamp(1.3rem, 6vw, 1.9rem); }
}
.hero-sub-tight {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: var(--muted);
    max-width: 560px;
    margin: 0;
    font-weight: 500;
}
.hero-headline .accent { color: var(--brand); }
.hero-swap {
    display: inline;
    color: var(--brand);
    line-height: 1;
    /* No min-width — otherwise the caret (sibling below) doesn't shrink back
       when characters are deleted. Small tradeoff: the headline shifts by a
       few chars while typing, which is on-brand for a typewriter effect. */
}
.hero-cursor {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    background: var(--brand);
    margin-left: 2px;
    vertical-align: baseline;
    transform: translateY(0.06em);
    animation: caret 1s steps(2, end) infinite;
    border-radius: 1px;
}
@keyframes caret { 50% { opacity: 0; } }
.hero-sub {
    font-size: clamp(1rem, 1.4vw, var(--fs-lg));
    color: var(--muted);
    max-width: 560px;
    margin: 0;
}
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-hint { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.hero-trust svg { color: var(--ok); }

/* ---------- landing sections ---------- */
.landing-section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.landing-section__head { text-align: center; max-width: 640px; margin: 0 auto var(--s-8); }
.landing-section__head h2 { margin: 0 0 var(--s-3); }
.landing-section__head p { color: var(--muted); margin: 0; }

/* Scroll-reveal — one-shot fade + rise as sections enter the viewport. The
   `.is-visible` class is set by the IntersectionObserver in index.html. */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* Stagger children of a revealed grid so cards drift in one by one. */
.reveal-stagger.is-visible > * {
    animation: reveal-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 140ms; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 220ms; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 380ms; }
@keyframes reveal-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible,
    .reveal-stagger.is-visible > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 780px) { .how-grid { grid-template-columns: 1fr; } }
.how-card { padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.how-card__num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); margin-bottom: var(--s-3); letter-spacing: -0.01em; }
.how-card h3 { font-size: var(--fs-lg); font-weight: 600; margin: 0 0 var(--s-2); }
.how-card p { color: var(--muted); margin: 0; font-size: var(--fs-md); line-height: 1.55; }

.sample-score { display: grid; grid-template-columns: 320px 1fr; gap: var(--s-8); align-items: center; max-width: 960px; margin: 0 auto; padding: var(--s-8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl); }
@media (max-width: 780px) { .sample-score { grid-template-columns: 1fr; padding: var(--s-6); } }
.sample-score__donut { --v: 82; width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--v) * 1%), var(--surface-2) 0); display: grid; place-items: center; position: relative; }
.sample-score__donut::before { content: ''; position: absolute; inset: 16px; background: var(--surface); border-radius: 50%; border: 1px solid var(--line); }
.sample-score__donut-value { position: relative; text-align: center; }
.sample-score__donut-value strong { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.sample-score__donut-value small { display: block; text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.sample-score__body h3 { font-size: var(--fs-xl); font-weight: 600; margin: 0 0 var(--s-3); }
.sample-score__body .pct { color: var(--brand); font-weight: 700; }
.sample-score__fixes { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: flex; flex-direction: column; gap: 10px; }
.sample-score__fixes li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--ink-2); }
.sample-score__fixes li svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.sample-score__fixes strong { color: var(--ink); font-weight: 600; }

.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-6); }
.trust-stat { text-align: center; padding: var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); min-width: 200px; }
.trust-stat__num { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.trust-stat__label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; margin-top: var(--s-2); }

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    width: 12px; height: 12px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform var(--dur-2) var(--ease);
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item__body { padding: 0 20px 18px; color: var(--muted); font-size: var(--fs-md); line-height: 1.6; }
.faq-item__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.faq-cta { text-align: center; margin-top: var(--s-6); }

/* ---------- score results ---------- */
.results-preview { max-width: 1080px; margin: 0 auto; }
.unified-results-header { padding: var(--s-6) 0 var(--s-4); }
.unified-results-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 1.2fr;
    gap: var(--s-5);
    align-items: start;
}
.key-scores-panel,
.pdf-viewer-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: var(--s-6);
}
.pdf-viewer-placeholder {
    min-height: 420px;
    background: var(--surface-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
}
.main-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) 0 var(--s-5);
}
.score-donut {
    --donut-value: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--donut-value) * 1%), var(--surface-2) 0);
    display: grid;
    place-items: center;
    position: relative;
}
.score-donut::before {
    content: '';
    position: absolute;
    inset: 14px;
    background: var(--surface);
    border-radius: 50%;
    border: 1px solid var(--line);
}
.donut-value { position: relative; text-align: center; }
.donut-value span { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.03em; display: block; line-height: 1; }
.donut-value small { color: var(--muted); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; }

.user-rank-display {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
    color: var(--ink-2);
    font-weight: 500;
}
.key-metrics { border-top: 1px solid var(--line); padding-top: var(--s-5); margin-top: var(--s-4); }
.key-metric-item { display: flex; flex-direction: column; gap: 10px; }
.results-actions { display: flex; gap: 10px; margin-top: var(--s-5); flex-wrap: wrap; }

@media (max-width: 900px) {
    .unified-results-layout { grid-template-columns: 1fr; }
}

/* ---------- teaser (upcoming feature) pages ---------- */
.teaser-page { max-width: 960px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) 0; }
.teaser-hero { text-align: center; max-width: 640px; margin: 0 auto var(--s-10); }
.teaser-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--brand-soft); color: var(--brand-hover); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--s-5); }
.teaser-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 var(--s-4); }
.teaser-hero p { color: var(--muted); font-size: var(--fs-lg); margin: 0 auto var(--s-6); max-width: 520px; }
.teaser-eta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.teaser-eta svg { color: var(--brand); }

.teaser-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; margin-bottom: var(--s-10); }
@media (max-width: 900px) { .teaser-layout { grid-template-columns: 1fr; } }
.teaser-features h2 { font-size: var(--fs-xl); font-weight: 600; margin: 0 0 var(--s-5); }
.teaser-features ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.teaser-features li { display: flex; gap: 12px; align-items: flex-start; }
.teaser-features li svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.teaser-features strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.teaser-features span { color: var(--muted); font-size: var(--fs-md); line-height: 1.55; }

.teaser-mock {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: var(--s-5);
    box-shadow: var(--shadow-2);
    overflow: hidden;
}
.teaser-mock__chrome { display: flex; gap: 5px; margin-bottom: var(--s-4); }
.teaser-mock__chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.teaser-mock__body { display: flex; flex-direction: column; gap: 10px; }
.teaser-mock__row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-md); font-size: var(--fs-sm); }
.teaser-mock__row strong { color: var(--ink); font-weight: 600; }
.teaser-mock__row .val { color: var(--brand); font-weight: 700; }
.teaser-mock__bar { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.teaser-mock__bar-fill { height: 100%; background: var(--brand); border-radius: var(--r-pill); }
.teaser-mock__hint { font-size: var(--fs-xs); color: var(--muted); padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); margin-top: 6px; }

.teaser-waitlist { max-width: 480px; margin: 0 auto; padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); text-align: center; }
.teaser-waitlist h3 { font-size: var(--fs-lg); font-weight: 600; margin: 0 0 var(--s-2); }
.teaser-waitlist p { color: var(--muted); margin: 0 0 var(--s-4); font-size: var(--fs-md); }
.teaser-waitlist form { display: flex; gap: 8px; }
.teaser-waitlist input { flex: 1; }
@media (max-width: 480px) { .teaser-waitlist form { flex-direction: column; } }
.teaser-waitlist__msg { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-3); min-height: 20px; }
.teaser-waitlist__msg.is-error { color: var(--err); }
.teaser-waitlist__msg.is-success { color: var(--ok); }

/* ---------- loading ---------- */
/* Full-screen "Calculating your rank" state. Sits above the page so it
   doesn't fight the hero layout. */
.waiting-page {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-modal) - 1);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.waiting-page.hidden { display: none !important; }
.waiting-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 460px;
    text-align: center;
}
.waiting-content h2 {
    font-size: clamp(22px, 3vw, 28px);
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}
.spinner {
    width: 44px; height: 44px;
    border: 3px solid var(--surface-2);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-description { color: var(--muted); font-size: 14px; margin: 0; }
.waiting-hint { font-size: 12px; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- empty state ---------- */
.empty-state {
    max-width: 520px;
    margin: clamp(48px, 8vw, 96px) auto;
    padding: clamp(32px, 5vw, 48px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    text-align: center;
}
.empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    color: var(--ink);
    margin-bottom: var(--s-5);
}
.empty-state__icon svg { width: 24px; height: 24px; }
.empty-state__title {
    font-size: var(--fs-2xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 var(--s-2);
    color: var(--ink);
}
.empty-state__subtitle {
    color: var(--muted);
    margin: 0 0 var(--s-6);
    font-size: var(--fs-md);
    line-height: 1.6;
}
.empty-state__actions { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.empty-state__form {
    display: flex;
    gap: 8px;
    margin-top: var(--s-4);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.empty-state__form input {
    flex: 1;
}
.empty-state__form-label {
    font-size: var(--fs-sm);
    color: var(--muted);
    margin: var(--s-6) 0 var(--s-3);
    display: block;
}
.empty-state__form-message {
    font-size: var(--fs-sm);
    color: var(--muted);
    margin-top: var(--s-3);
    min-height: 20px;
}
.empty-state__form-message.is-error { color: var(--err); }
.empty-state__form-message.is-success { color: var(--ok); }
@media (max-width: 480px) {
    .empty-state__form { flex-direction: column; }
}

/* legacy coming-soon selectors → forward to empty-state look */
.coming-soon-container,
.coming-soon-box {
    max-width: 520px;
    margin: clamp(48px, 8vw, 96px) auto;
    padding: clamp(32px, 5vw, 48px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    text-align: center;
}
.coming-soon-title { font-size: var(--fs-2xl); font-weight: 600; margin: 0 0 var(--s-2); }
.coming-soon-message { color: var(--muted); margin: 0 0 var(--s-6); }
.coming-soon-emoji { display: none; }

/* ---------- footer ---------- */
.site-footer {
    flex-shrink: 0;
    padding: var(--s-8) var(--gutter);
    border-top: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-size: var(--fs-sm);
}
.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    flex-wrap: wrap;
}
.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 600;
    font-size: var(--fs-md);
}
.site-footer__brand img { width: 20px; height: 20px; object-fit: contain; }
.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px 4px;
}
.footer-links a {
    padding: 6px 10px;
    color: var(--ink-2);
    font-size: var(--fs-sm);
    border-radius: var(--r-sm);
    transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.footer-links a:hover { color: var(--ink); background: var(--surface-2); }
.site-footer__legal { font-size: var(--fs-xs); color: var(--muted-2); }
@media (max-width: 720px) {
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- badges / chips ---------- */
.chip,
.hint-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    color: var(--ink-2);
    font-weight: 500;
}
.chip-count {
    background: var(--ink);
    color: var(--accent-fg);
    padding: 1px 7px;
    border-radius: var(--r-pill);
    font-size: 10px;
    font-weight: 600;
    margin-left: 4px;
}
.chip-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.pro-badge,
.pro-badge-inline {
    display: inline-block;
    padding: 2px 8px;
    background: var(--brand-soft);
    color: var(--brand-hover);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--r-sm);
}

/* ---------- error surfaces ---------- */
.error, .error-message, .error-schools, .error-companies {
    padding: var(--s-4) var(--s-5);
    background: var(--err-soft);
    color: var(--err);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
}

/* ---------- leaderboard specifics ---------- */
.leaderboard-page,
.leaderboard-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) var(--gutter);
}

.leaderboard-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: var(--s-8); }
.leaderboard-header h1 { margin-bottom: var(--s-3); }
.leaderboard-header p { color: var(--muted); max-width: 560px; }

/* industry filter pills — clean scrollable row */
.industry-tabs,
.role-filter-tabs,
.leaderboard-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: var(--s-6) 0 var(--s-4);
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.industry-tabs::-webkit-scrollbar,
.role-filter-tabs::-webkit-scrollbar,
.leaderboard-tabs::-webkit-scrollbar { display: none; }

.industry-tab,
.tab-button,
.role-filter-tab {
    flex: 0 0 auto;
    padding: 8px 14px;
    background: var(--surface);
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.industry-tab:hover,
.tab-button:hover,
.role-filter-tab:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
    color: var(--ink);
}
.industry-tab.active,
.tab-button.active,
.role-filter-tab.active {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
}

/* company filter */
.company-filter-section { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: var(--s-4) 0; }
.company-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--ink-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
}
.company-filter-button:hover { border-color: var(--line-strong); color: var(--ink); }
.company-filter-count {
    display: inline-block;
    padding: 1px 7px;
    background: var(--ink);
    color: var(--accent-fg);
    border-radius: var(--r-pill);
    font-size: 10px;
    font-weight: 700;
}
.company-filter-arrow { color: var(--muted); transition: transform var(--dur-2) var(--ease); }
.company-filter-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    width: min(360px, calc(100vw - 32px));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
    overflow: hidden;
}
.company-filter-dropdown.hidden { display: none; }
.company-filter-header { padding: var(--s-3); border-bottom: 1px solid var(--line); }
.company-filter-search-input { border-color: var(--line); }
.company-filter-list-container { max-height: 320px; overflow-y: auto; }
.company-filter-list { display: flex; flex-direction: column; }
.company-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--ink-2);
    font-size: var(--fs-sm);
    transition: background var(--dur-1) var(--ease);
}
.company-filter-item:hover { background: var(--surface-2); color: var(--ink); }
.company-filter-item.selected { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.company-filter-item-count { color: var(--muted); font-size: var(--fs-xs); }
.company-filter-actions { display: flex; gap: 8px; padding: var(--s-3); border-top: 1px solid var(--line); }

/* leaderboard table */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.leaderboard-table {
    width: 100%;
    min-width: 880px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}
/* Uniform py-3 px-4 padding on every cell (header + body) so column edges
   line up regardless of row content. vertical-align: middle keeps text,
   pills, and action buttons on the same horizontal baseline. */
.leaderboard-table th,
.leaderboard-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--line);
}
.leaderboard-table thead th {
    background: var(--surface-2);
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.leaderboard-table tbody tr:last-child td { border-bottom: 0; }

/* Per-column widths + alignment. Left-align identity/text columns
   (Rank, Handle, School, Track), center numeric/score pill columns
   (Overall Score, Percentile), right-align the Action column. Widths
   applied to BOTH th and td so header and body columns stay locked
   to the same edges even when a row's content is unusually short. */
.leaderboard-table th.rank-column,
.leaderboard-table td.rank-column {
    width: 72px;
    text-align: left;
    font-variant-numeric: tabular-nums;
}
.leaderboard-table td.rank-column {
    font-weight: 700;
    color: var(--ink);
}
.leaderboard-table th.handle-column,
.leaderboard-table td.handle-column {
    width: 220px;
    text-align: left;
}
.leaderboard-table th.school-column,
.leaderboard-table td.school-column { text-align: left; }
.leaderboard-table th.track-column,
.leaderboard-table td.track-column {
    width: 168px;
    text-align: left;
}
.leaderboard-table th.percentile-column,
.leaderboard-table td.percentile-column {
    width: 132px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.leaderboard-table td.numeric,
.leaderboard-table th.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.leaderboard-row,
.rank-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 90px 100px;
    align-items: center;
    gap: var(--s-4);
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-sm);
}
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-header-row {
    background: var(--surface-2);
    color: var(--muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 10px 20px;
}
.rank-number { font-weight: 700; color: var(--ink); }
.rank-you { background: var(--brand-soft) !important; }
.anon-id-link { color: var(--ink); font-weight: 500; }
.anon-id-link:hover { color: var(--brand); }
.ramen-bowl-icon { width: 22px; height: 22px; object-fit: contain; }
.ramen-gold { filter: drop-shadow(0 0 4px rgba(229, 175, 61, 0.5)); }
.ramen-silver { filter: drop-shadow(0 0 4px rgba(180, 180, 180, 0.5)); }
.ramen-bronze { filter: drop-shadow(0 0 4px rgba(196, 130, 79, 0.5)); }

/* ---------- dashboard ---------- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--s-6);
    align-items: start;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.dashboard-content { display: flex; flex-direction: column; gap: var(--s-5); }
.control-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: var(--s-5);
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}
.control-header { display: flex; flex-direction: column; gap: 4px; }
.control-header h2 { font-size: var(--fs-lg); font-weight: 600; margin: 0; }
.control-header p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.control-section { display: flex; flex-direction: column; gap: 10px; }
.control-section h5 { margin: 0; }
.filter-group { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.filter-group:first-of-type { padding-top: 0; border-top: 0; }
.section-heading { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--s-2); }
.section-heading h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin: 0; }
.section-heading p { font-size: var(--fs-xs); color: var(--muted-2); margin: 0; }

/* Range sliders — brand tokens on track/thumb (item 20). */
.slider-control { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s-3); }
.slider-control label { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.slider-value { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
input[type="range"] {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    width: 100%;
    height: 20px;
    background: transparent;
    padding: 0;
    border: 0;
    cursor: pointer;
}
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: linear-gradient(to right, var(--brand) 0 var(--range-pct, 0%), var(--surface-2) var(--range-pct, 0%) 100%);
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
}
input[type="range"]::-moz-range-track {
    height: 6px;
    background: var(--surface-2);
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
}
input[type="range"]::-moz-range-progress {
    height: 6px;
    background: var(--brand);
    border-radius: var(--r-pill);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--ink);
    border: 2px solid var(--surface);
    border-radius: 50%;
    margin-top: -7px;
    box-shadow: var(--shadow-1);
    transition: transform var(--dur-1) var(--ease);
}
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--ink);
    border: 2px solid var(--surface);
    border-radius: 50%;
    box-shadow: var(--shadow-1);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.08); }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--brand-soft); }

.toggle-row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.toggle-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 720px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-card {
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-1);
    transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.kpi-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.kpi-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}
.kpi-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--muted-2);
}
.kpi-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}
.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.kpi-empty { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.kpi-empty svg { color: var(--muted-2); }

.page-hero { text-align: center; padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 3vw, 32px); }
.page-hero .page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.page-hero p.page-sub { color: var(--muted); font-size: var(--fs-lg); margin: var(--s-3) auto 0; max-width: 560px; }
.pro-badge-container { display: inline-flex; margin-top: var(--s-3); }

.results-toolbar { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.results-toolbar h2 { font-size: var(--fs-xl); font-weight: 600; margin: 0 0 4px; }
.results-toolbar p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.results-toolbar .results-actions { display: inline-flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }

.dashboard-content { max-width: 940px; }

@media (max-width: 900px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .control-panel { position: static; }
    .dashboard-content { max-width: 100%; }
}

/* ---------- admin ---------- */
.admin-auth-screen {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
}
.admin-auth-card {
    max-width: 400px;
    width: 100%;
    padding: var(--s-8);
}
.admin-dashboard { display: flex; flex-direction: column; gap: var(--s-6); }
.admin-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); }
.admin-controls { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.analytics-card { padding: var(--s-5); }
.analytics-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.analytics-section { display: flex; flex-direction: column; gap: var(--s-4); }
.analytics-table-container { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.analytics-table { width: 100%; border-collapse: collapse; }
.analytics-table th,
.analytics-table td { padding: 12px 16px; text-align: left; font-size: var(--fs-sm); border-bottom: 1px solid var(--line); }
.analytics-table th { background: var(--surface-2); font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.08em; }
.analytics-table tr:last-child td { border-bottom: 0; }
.date-range-selector { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 3px; border-radius: var(--r-pill); }
.date-range-selector button { padding: 6px 12px; border: 0; background: transparent; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; border-radius: var(--r-pill); cursor: pointer; }
.date-range-selector button.active { background: var(--accent); color: var(--accent-fg); }

/* ---------- profile page ---------- */
.profile-header-modern { display: flex; align-items: center; gap: var(--s-5); padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); margin-bottom: var(--s-5); }
.profile-content-modern { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-5); align-items: start; }
.profile-main-section { display: flex; flex-direction: column; gap: var(--s-5); }
.profile-scores-modern { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: 80px; }
.profile-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-5); }
.internships-list-modern { display: flex; flex-direction: column; gap: var(--s-3); }
.internship-card { padding: var(--s-4); }
.internship-card-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.internship-company { font-weight: 600; color: var(--ink); }
.internship-role { color: var(--muted); font-size: var(--fs-sm); }
.internship-meta { color: var(--muted); font-size: var(--fs-xs); }
.education-item { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.education-item:last-child { border-bottom: 0; }
.education-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.education-value { color: var(--ink); font-weight: 500; }
.highlights-list, .improvement-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.highlight-item, .improvement-item { padding: 10px 14px; background: var(--surface-2); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--ink-2); }
.prestigious-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--brand-soft);
    color: var(--brand-hover);
    border-radius: var(--r-sm);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.inference-indicator { color: var(--muted); font-size: var(--fs-xs); font-style: italic; }
.achievement-item { padding: var(--s-3); background: var(--surface-2); border-radius: var(--r-md); font-size: var(--fs-sm); }

@media (max-width: 900px) {
    .profile-content-modern { grid-template-columns: 1fr; }
    .profile-scores-modern { position: static; }
}

/* ---------- typewriter tokens preserved for legacy scripts ---------- */
.typewriter-headline { font-size: clamp(2.25rem, 5.5vw, var(--fs-5xl)); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.typewriter-static { color: var(--ink); }
.typewriter-line { display: inline-block; }
.typewriter-dynamic { color: var(--brand); }
.typewriter-cursor { display: inline-block; width: 2px; height: 0.9em; background: var(--brand); margin-left: 3px; animation: caret 1s steps(2, end) infinite; }

/* ---------- utility ---------- */
.hidden { display: none !important; }
.visually-hidden,
.visually-hidden-input {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
/* Scrollable chip row with a right-edge fade so users see there's more. */
.scroll-fade-right {
    position: relative;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%);
            mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%);
}
.center-text { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--s-2); }
.mt-2 { margin-top: var(--s-4); }
.mt-3 { margin-top: var(--s-6); }
.mt-4 { margin-top: var(--s-8); }
.stack-2 > * + * { margin-top: var(--s-4); }
.stack-3 > * + * { margin-top: var(--s-6); }
.divider { border-top: 1px solid var(--line); margin: var(--s-6) 0; }

/* muted text helpers */
.muted { color: var(--muted); }
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-lg { font-size: var(--fs-lg); }

/* score color classes (used by JS) */
.score-high { color: var(--ok); }
.score-mid { color: var(--warn); }
.score-low { color: var(--err); }
.low { opacity: 0.7; font-size: 0.9em; }

/* ---------- modal / dropdowns baseline ---------- */
.modal, .questions-modal, .profile-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(23, 23, 23, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-content, .questions-modal-content, .profile-modal-content {
    max-width: 560px;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    padding: var(--s-8);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-3);
}

/* ---------- leaderboard extras ---------- */
.leaderboard-container { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-5); }
.leaderboard-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-2);
    padding: var(--s-4);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.leaderboard-filters input[type="text"] { max-width: 260px; }

.school-filter-section,
.company-filter-section {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.school-filter-button,
.company-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--ink-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
}
.school-filter-button:hover,
.company-filter-button:hover { border-color: var(--line-strong); color: var(--ink); }
.school-filter-count,
.company-filter-count {
    display: inline-block;
    padding: 1px 7px;
    background: var(--ink);
    color: var(--accent-fg);
    border-radius: var(--r-pill);
    font-size: 10px;
    font-weight: 700;
}
.school-filter-arrow,
.company-filter-arrow { color: var(--muted); transition: transform var(--dur-2) var(--ease); }
.company-filter-button[aria-expanded="true"] .company-filter-arrow,
.school-filter-button[aria-expanded="true"] .school-filter-arrow { transform: rotate(180deg); }
.school-filter-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    width: min(360px, calc(100vw - 32px));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
    overflow: hidden;
}
.school-filter-dropdown.hidden { display: none; }
.school-filter-header { padding: var(--s-3); border-bottom: 1px solid var(--line); }
.school-filter-list-container { max-height: 320px; overflow-y: auto; }
.school-filter-list { display: flex; flex-direction: column; }
.school-filter-item,
.company-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--ink-2);
    font-size: var(--fs-sm);
    transition: background var(--dur-1) var(--ease);
}
.school-filter-item:hover,
.company-filter-item:hover { background: var(--surface-2); color: var(--ink); }
.school-filter-item.selected,
.company-filter-item.selected { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.school-filter-actions { display: flex; gap: 8px; padding: var(--s-3); border-top: 1px solid var(--line); }
.loading-schools,
.filter-empty {
    padding: var(--s-5);
    text-align: center;
    color: var(--muted);
    font-size: var(--fs-sm);
}

/* Your rank card — visible while browsing, elevated + celebratory when a
   fresh submission just landed. Close button pins to the top-right. */
.your-rank-section {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-1);
}
.your-rank-section--just-scored {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), var(--surface) 55%);
    border-color: rgba(16, 185, 129, 0.32);
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.18),
        var(--shadow-2);
    animation: your-rank-slide-in 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes your-rank-slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.your-rank-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.your-rank-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--muted);
    margin: 0;
}
.your-rank-section--just-scored .your-rank-eyebrow { color: #047857; }
.your-rank-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
    line-height: 1.25;
}
.your-rank-title strong {
    background: linear-gradient(90deg, #047857, #0F172A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.your-rank-cohort-line {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}
.your-rank-cohort {
    font-weight: 600;
    color: var(--ink-2);
}
.your-rank-handle {
    font-family: var(--font-mono);
    color: var(--muted-2);
    font-size: 11px;
}
.your-rank-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
}
.your-rank-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 78px;
    text-align: right;
}
.your-rank-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}
.your-rank-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.your-rank-value .pct-pill {
    font-size: 13px;
    padding: 4px 12px;
}
.your-rank-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
    z-index: 2;
}
.your-rank-close:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }

/* Podium — modern top-3 medal cards.
   Each place is its own elevated card so 1st visually leads. Circular medal
   badges with gold / silver / bronze conic-gradient fills. 1st gets an amber
   glow ring for hierarchy. */
.ramen-tower { padding: var(--s-2) 0 var(--s-6); }
.tower-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: end;
    gap: var(--s-4);
}
.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 22px;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-1);
    transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.podium-place:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.podium-1st {
    /* Elevate the winner. Amber ring + softer amber wash on the card body. */
    box-shadow:
        0 0 0 2px rgba(217, 119, 6, 0.32),
        0 12px 32px rgba(217, 119, 6, 0.14),
        var(--shadow-2);
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.35) 0%, var(--surface) 60%);
    transform: translateY(-8px);
}
.podium-1st:hover { transform: translateY(-10px); }

.podium-medal {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.75);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.12),
                inset 0 2px 4px rgba(255, 255, 255, 0.55),
                0 3px 6px rgba(15, 23, 42, 0.10);
    position: relative;
}
.podium-1st .podium-medal { width: 68px; height: 68px; font-size: 28px; }
.podium-medal__num { position: relative; z-index: 1; }
.podium-medal--gold   { background: radial-gradient(circle at 30% 25%, #FFF4C7, #F4C430 55%, #B48A11); color: #4B3A0A; }
.podium-medal--silver { background: radial-gradient(circle at 30% 25%, #FDFDFD, #C9CFD6 55%, #7C848C); color: #21252B; }
.podium-medal--bronze { background: radial-gradient(circle at 30% 25%, #F8D4B0, #C67D3F 55%, #7C4A1E); color: #3D2308; }

.podium-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 700;
}
.podium-info {
    font-size: var(--fs-sm);
    font-weight: 500;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
}
.podium-anon-id {
    font-weight: 700;
    color: var(--ink);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: -0.01em;
}
.podium-user-badge { display: inline-flex; justify-content: center; }
.podium-user-badge .user-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}
.podium-score {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--ink-2);
    font-size: 12px;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.podium-score .elo-num { color: var(--ink); }
.podium-score .elo-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-sans);
}

.leaderboard-header { text-align: center; margin-bottom: var(--s-8); }
.leaderboard-header h1 { margin-bottom: 6px; }
.leaderboard-header p { color: var(--muted); max-width: 560px; margin: 0 auto; }

.tab-group { display: flex; gap: 6px; }

@media (max-width: 720px) {
    .tower-podium { gap: var(--s-2); }
    .podium-place { padding: 14px 10px 16px; gap: 10px; }
    .podium-1st { transform: translateY(-4px); }
    .podium-1st:hover { transform: translateY(-6px); }
    .podium-medal { width: 44px; height: 44px; font-size: 18px; }
    .podium-1st .podium-medal { width: 52px; height: 52px; font-size: 22px; }
    .podium-anon-id { font-size: 12px; }
    .podium-score { font-size: 11px; }
    .your-rank-section {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .your-rank-info { justify-content: flex-start; }
    .your-rank-item { text-align: left; }
    .your-rank-title { font-size: 18px; }
}

/* ---------- auth pages ---------- */
/* Override Chromium/Blink autofill blue on inputs (item 26). */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 100px var(--surface) inset !important;
    -webkit-text-fill-color: var(--ink) !important;
    caret-color: var(--ink);
    transition: background-color 5000s ease-in-out 0s;
}

.sso-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--s-4); }
.sso-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
    width: 100%;
}
.sso-btn:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.sso-btn svg { flex-shrink: 0; }

.auth-divider { display: flex; align-items: center; gap: var(--s-3); color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; margin: var(--s-4) 0 var(--s-4); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.auth-signup-cta {
    display: block;
    margin: var(--s-4) 0 0;
    padding: var(--s-4);
    text-align: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--ink-2);
    font-size: var(--fs-sm);
}
.auth-signup-cta strong { color: var(--ink); }
.auth-signup-cta a {
    display: inline-block;
    margin-left: 6px;
    padding: 4px 12px;
    background: var(--ink);
    color: var(--accent-fg);
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: background var(--dur-1) var(--ease);
}
.auth-signup-cta a:hover { background: var(--accent-hover); color: var(--accent-fg); }

.auth-wrapper {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-10) var(--gutter);
    min-height: calc(100vh - 60px - 100px);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    padding: clamp(28px, 4vw, 40px);
}
.auth-card__header { text-align: center; margin-bottom: var(--s-6); }
.auth-card__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 600;
    font-size: var(--fs-md);
    margin-bottom: var(--s-5);
}
.auth-card__brand img { width: 22px; height: 22px; object-fit: contain; }
.auth-card__title { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-card__subtitle { color: var(--muted); font-size: var(--fs-md); margin: 0; }
.auth-card__link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.auth-card__link:hover { color: var(--brand); }
.auth-card__footer { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin: var(--s-6) 0 0; }
.auth-card__fineprint { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 var(--s-3); }
.auth-form { display: flex; flex-direction: column; gap: var(--s-4); }
.auth-form__label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.auth-form__label-row label { margin: 0; }
.auth-form__password { position: relative; }
.auth-form__password .form-input { padding-right: 40px; }
.auth-form__password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 6px;
    color: var(--muted);
    cursor: pointer;
    border-radius: var(--r-sm);
}
.auth-form__password-toggle:hover { color: var(--ink); background: var(--surface-2); }

/* legacy auth selectors carried over from prior markup */
.form-label { display: inline-block; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.forgot-password-link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; font-size: var(--fs-sm); }
.forgot-password-link:hover { color: var(--brand); }
.password-input-wrapper { position: relative; }
.password-input-wrapper .form-input { padding-right: 40px; }
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 6px;
    color: var(--muted);
    cursor: pointer;
    border-radius: var(--r-sm);
}
.password-toggle:hover { color: var(--ink); background: var(--surface-2); }
.eye-icon { width: 18px; height: 18px; }
.password-strength { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 16px; }
.password-strength-bar { flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.password-strength-fill { height: 100%; width: 0; transition: width var(--dur-2) var(--ease), background var(--dur-2) var(--ease); background: var(--err); }
.password-strength-weak .password-strength-fill { width: 33%; background: var(--err); }
.password-strength-medium .password-strength-fill { width: 66%; background: var(--warn); }
.password-strength-strong .password-strength-fill { width: 100%; background: var(--ok); }
.password-strength-text { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.field-error { display: block; font-size: var(--fs-xs); color: var(--err); min-height: 16px; margin-top: 4px; }
.field-error.show { }
.consent-text p { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.error-message {
    padding: var(--s-3) var(--s-4);
    background: var(--err-soft);
    color: var(--err);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
}
.error-message.success-message,
.success-message {
    background: rgba(22, 163, 74, 0.08);
    color: var(--ok);
    border-color: rgba(22, 163, 74, 0.25);
}
.btn.loading .btn-text { opacity: 0; }
.btn-loader { display: inline-flex; align-items: center; justify-content: center; }
.btn-loader.hidden { display: none; }

/* ---------- callback screen ---------- */
.callback-container { padding: var(--s-6) 0; }

/* ==========================================================================
   Dashboard v2 — enterprise-grade patterns for candidate list, filter
   sidebar, KPI cards, and the profile detail drawer.
   ========================================================================== */

/* ---------- filter sidebar polish ---------- */
.control-panel {
    gap: var(--s-6);
    padding: var(--s-6);
}
.control-panel > .control-section + .control-section { border-top: 1px solid var(--line); padding-top: var(--s-6); }
.control-header h2 { font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.005em; }
.control-header p { font-size: var(--fs-sm); line-height: 1.5; }
.section-heading { gap: 4px; margin-bottom: var(--s-3); }
.section-heading h3 { font-size: var(--fs-xs); letter-spacing: 0.1em; font-weight: 700; color: var(--muted); }
.section-heading p { font-size: var(--fs-xs); color: var(--muted-2); line-height: 1.45; }

/* Filter pill states (active/inactive dashboard chips). */
.chip {
    padding: 6px 10px 6px 12px;
    font-size: var(--fs-sm);
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.chip > span:first-child { line-height: 1.2; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.chip.active,
.chip[aria-pressed="true"] {
    background: var(--ink);
    color: var(--accent-fg);
    border-color: var(--ink);
}
.chip.active .chip-count,
.chip[aria-pressed="true"] .chip-count {
    background: rgba(250, 250, 250, 0.16);
    color: var(--accent-fg);
}
.chip-count {
    background: var(--surface-2);
    color: var(--ink);
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--r-pill);
    margin-left: 6px;
    min-width: 20px;
    text-align: center;
    line-height: 1.5;
}
.chip-grid { gap: 6px; }

/* Reset button beneath the filters. */
#resetFilters { margin-top: var(--s-2); font-size: var(--fs-sm); }

/* ---------- KPI cards — uniform grid ---------- */
.kpi-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--s-3);
    min-height: 108px;
    padding: var(--s-5) var(--s-6);
}
.kpi-label { font-size: var(--fs-xs); letter-spacing: 0.1em; margin: 0; line-height: 1.2; }
.kpi-value {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
    font-feature-settings: "tnum" 1;
}
.kpi-empty {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--muted);
    gap: 6px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
}
.kpi-empty svg { color: var(--muted-2); flex-shrink: 0; }
.kpi-card.highlight .kpi-empty { color: rgba(250, 250, 250, 0.75); }
.kpi-card.highlight .kpi-empty svg { color: rgba(250, 250, 250, 0.6); }

/* ---------- candidate result cards (dashboard search) ---------- */
.result-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: var(--s-5) var(--s-6);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition:
        border-color var(--dur-1) var(--ease),
        transform var(--dur-2) var(--ease),
        box-shadow var(--dur-2) var(--ease);
}
.result-card:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}
.result-card:focus-within {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--line-soft), var(--shadow-2);
}
.result-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: var(--s-5);
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
    pointer-events: none;
}
.result-card:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
}
.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding-right: 32px; /* leave room for the ::after chevron */
}
.result-card-header h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ink);
}
.anon-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 2px;
    line-height: 1;
}
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--surface-2);
    color: var(--ink-2);
    border-radius: var(--r-sm);
    font-size: var(--fs-xs) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.score-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-right: 32px;
}
.score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--ink-2);
    font-feature-settings: "tnum" 1;
}
.meta-line {
    font-size: var(--fs-sm);
    color: var(--muted);
    margin: 0;
    padding-right: 32px;
    line-height: 1.45;
}
.meta-line.subtle { font-size: var(--fs-xs); color: var(--muted-2); }
.highlight-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 32px;
}
.highlight-list li {
    font-size: var(--fs-sm);
    color: var(--ink-2);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}
.highlight-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand);
}
.result-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
    padding-right: 32px;
}
.view-details-link {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.result-card:hover .view-details-link { color: var(--ink); }

/* Results toolbar tightening */
.results-toolbar h2 { letter-spacing: -0.015em; }
.hint-chip {
    background: var(--brand-soft);
    color: var(--brand-hover);
    border-color: transparent;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ---------- profile modal → right-side drawer ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(23, 23, 23, 0.45);
    display: flex;
    justify-content: flex-end;
    padding: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: modalFadeIn var(--dur-2) var(--ease) both;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawerSlideIn { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.modal-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 640px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 48px rgba(23, 23, 23, 0.12);
    overflow: hidden;
    animation: drawerSlideIn 220ms var(--ease) both;
}
@media (max-width: 640px) {
    .modal-container { max-width: 100%; border-left: 0; }
}

.modal-close {
    position: absolute;
    top: var(--s-4);
    right: var(--s-4);
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--ink-2);
    cursor: pointer;
    z-index: 2;
    transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.modal-close:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }

/* Drawer sticky header — pinned to the top of the scroll container. */
.drawer-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.drawer-header__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.drawer-header__context {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.3;
}
.drawer-header__context-part {
    white-space: nowrap;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drawer-header__sep {
    color: var(--muted);
    font-weight: 500;
}
.drawer-header__handle-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.drawer-header__handle {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.02em;
    color: var(--muted);
    font-family: var(--font-mono);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drawer-header__dev-tag {
    padding: 1px 6px;
    border-radius: 999px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(180, 83, 9, 0.25);
}
.drawer-header__close {
    width: 34px;
    height: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    cursor: pointer;
    transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
    flex-shrink: 0;
}
.drawer-header__close:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); transform: rotate(90deg); }

.drawer-body {
    padding: 20px clamp(20px, 4vw, 32px) 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#profile-modal .modal-content {
    flex: 1 1 auto;
    padding: 0;
    overflow-y: auto;
    background: var(--surface);
    border: 0;
    box-shadow: none;
    border-radius: 0;
    max-width: none;
    max-height: none;
}

/* Header row: anon id + score chip strip */
.profile-header-modern {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    padding-bottom: var(--s-5);
    margin-bottom: var(--s-5);
    border-bottom: 1px solid var(--line);
}
.profile-title-section h2 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}
.profile-scores-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}
.score-chip-modern {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    position: relative;
    overflow: hidden;
}
.score-chip-modern::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: var(--score-pct, 0%);
    background: var(--score-color, var(--brand));
    transition: width var(--dur-2) var(--ease);
}
.score-chip-modern.score-excellent { --score-color: var(--ok); }
.score-chip-modern.score-good { --score-color: var(--brand); }
.score-chip-modern.score-poor { --score-color: var(--warn); }
.score-chip-modern.score-neutral { --score-color: var(--muted-2); }
.score-chip-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.score-chip-value {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-feature-settings: "tnum" 1;
    line-height: 1;
}

/* Two-column body inside drawer stacks to one column at narrow widths */
.profile-content-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
}
.profile-main-section,
.profile-side-section { display: flex; flex-direction: column; gap: var(--s-4); }

.profile-section {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.profile-section + .profile-section { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.profile-section h3 {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 var(--s-3);
}
.summary-text {
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 65ch;
    margin: 0;
}

/* Skills */
.skills-group { margin-bottom: var(--s-3); }
.skills-group:last-child { margin-bottom: 0; }
.skills-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.skills-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    border-radius: var(--r-sm);
    font-size: var(--fs-xs);
    font-weight: 500;
}
.skill-tech { background: rgba(23, 23, 23, 0.05); }
.skill-tool { background: var(--brand-soft); color: var(--brand-hover); border-color: transparent; }
.skill-soft { background: rgba(22, 163, 74, 0.08); color: #15803d; border-color: transparent; }

/* Risk / improvement lists inside drawer */
.risk-list, .improvement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.risk-item {
    padding: 10px 14px;
    background: var(--err-soft);
    color: #991b1b;
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    border-left: 3px solid var(--err);
}
.improvement-item {
    padding: 10px 14px;
    background: var(--surface-2);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    color: var(--ink-2);
}

/* Internship cards inside drawer */
.internships-list-modern { gap: 10px; }
.internship-card {
    padding: var(--s-4);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.internship-card-header { align-items: center; gap: var(--s-3); }
.quantified-achievements { display: flex; flex-direction: column; gap: 4px; margin-top: var(--s-3); }
.achievement-item { padding: 8px 10px; background: var(--surface); border-radius: var(--r-sm); font-size: var(--fs-xs); }

/* Prevent the drawer body from horizontal-scrolling long content */
#profile-modal .modal-content { word-break: break-word; }

/* ============================================================
   Upload questions modal — fixed overlay + isolated card + combobox
   ============================================================ */
.questions-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    animation: modalFadeIn var(--dur-2) var(--ease) both;
}
.questions-modal-overlay > .questions-modal {
    /* Override the older baseline .questions-modal rule that made this a
       full-viewport scrim. In the new markup, .questions-modal is the CARD. */
    position: relative;
    inset: auto;
    background: var(--surface);
    padding: 0;
    max-width: 640px;
    width: 100%;
    max-height: calc(100vh - 32px);
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.questions-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.questions-modal-title-block h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.questions-modal-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.questions-modal-close {
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.questions-modal-close:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }

.questions-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 auto;
    min-height: 0;
}

.questions-modal-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.questions-modal-progress .progress-bar-container {
    height: 4px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
}
.questions-modal-progress .progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0F172A, #334155);
    transition: width 400ms var(--ease);
}
.questions-modal-progress .progress-text {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.input-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.input-step-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.input-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--accent-fg);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.input-step-optional {
    margin-left: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.modal-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 14px;
    padding-right: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}
.modal-select:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.nickname-input-group {
    display: flex;
    gap: 8px;
}
.nickname-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-size: 14px;
    color: var(--ink);
}
.nickname-input-group input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08); }
.btn-generate-icon {
    padding: 0 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}
.btn-generate-icon:hover { background: var(--surface); border-color: var(--line-strong); }

/* Company combobox — searchable input, selected pills, dropdown list. */
.company-combobox {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.company-combobox__input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-size: 14px;
    color: var(--ink);
}
.company-combobox__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08); }
.company-combobox__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
}
.company-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}
.company-pill__remove {
    width: 18px;
    height: 18px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.company-pill__remove:hover { background: rgba(15, 23, 42, 0.08); color: var(--ink); }
.company-combobox__dropdown {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    z-index: 5;
    max-height: 220px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-2);
}
.company-combobox__dropdown.hidden { display: none; }
.company-combobox__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background var(--dur-1) var(--ease);
}
.company-combobox__option:last-child { border-bottom: 0; }
.company-combobox__option:hover { background: var(--surface-2); }
.company-combobox__option-add {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.company-combobox__option:hover .company-combobox__option-add { color: var(--ink); }
.company-combobox__empty { padding: 12px 14px; font-size: 13px; color: var(--muted); }

.questions-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    flex-shrink: 0;
}
.questions-modal-actions .btn { min-width: 140px; }

/* Loading overlay INSIDE the modal card. Toggled by .is-loading on the outer overlay. */
.questions-modal-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    text-align: center;
    z-index: 10;
}
.questions-modal-overlay.is-loading .questions-modal-loading { display: flex; }
.questions-modal-overlay.is-loading .questions-modal-body,
.questions-modal-overlay.is-loading .questions-modal-actions,
.questions-modal-overlay.is-loading .questions-modal-header { visibility: hidden; }
.questions-modal-loading__spinner {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 3px solid var(--surface-2);
    border-top-color: var(--ink);
    animation: rungs-spinner 900ms linear infinite;
}
.questions-modal-loading__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.questions-modal-loading__subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    max-width: 360px;
}
@keyframes rungs-spinner { to { transform: rotate(360deg); } }

/* Existing baseline .questions-modal rule at line 1427 also matched. Kill
   its overlay behavior when it's nested inside our new overlay wrapper. */
.questions-modal-overlay .questions-modal {
    position: relative;
    inset: auto;
    padding: 0;
    background: var(--surface);
    align-items: stretch;
    justify-content: flex-start;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 640px) {
    .questions-modal-overlay { padding: 0; align-items: stretch; }
    .questions-modal-overlay > .questions-modal { border-radius: 0; max-height: 100vh; height: 100vh; }
    .questions-modal-header { padding: 16px 18px 12px; }
    .questions-modal-body { padding: 16px 18px; gap: 14px; }
    .questions-modal-actions { padding: 12px 18px; }
}

/* ============================================================
   Hero drop zone, live ticker, and campus heatmap
   ============================================================ */

/* Prominent drop-target inside the hero. Feels like a UI element, not a
   button — dashed border invites drag-and-drop. */
.hero-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 560px;
    margin: 6px auto 0;
    padding: 28px 24px;
    background: var(--surface);
    border: 2px dashed var(--line-strong);
    border-radius: 20px;
    box-shadow: var(--shadow-2);
    cursor: pointer;
    text-align: center;
    transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.hero-dropzone:hover,
.hero-dropzone:focus-within {
    border-color: var(--ink);
    box-shadow: var(--shadow-3);
    transform: translateY(-1px);
}
.hero-dropzone__icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.hero-dropzone__label {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.hero-dropzone__or {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-dropzone__or::before,
.hero-dropzone__or::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--line);
}
.hero-dropzone__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--ink);
    color: var(--accent-fg);
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
    letter-spacing: -0.01em;
}
.hero-dropzone__cta:hover { background: #000; transform: translateY(-1px); }
.hero-dropzone__cta-time {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.75;
    letter-spacing: 0.04em;
}

.hero-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}
.hero-privacy-badge svg { color: var(--muted-2); }

/* Live activity ticker. Pulsing dot + rotating message. */
.live-ticker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 6px 14px 6px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-1);
    font-size: 12px;
    color: var(--ink-2);
    max-width: 100%;
}
.live-ticker__dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}
.live-ticker__ping {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.55);
    animation: live-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.live-ticker__core {
    position: absolute;
    inset: 1.5px;
    border-radius: 999px;
    background: #10B981;
}
@keyframes live-ping {
    75%, 100% { transform: scale(2.4); opacity: 0; }
}
.live-ticker__label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #059669;
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 4px;
}
.live-ticker__text {
    color: var(--ink-2);
    font-weight: 500;
    max-width: 460px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 220ms ease;
}

/* Campus heatmap. Bubbles float in a flex grid, sized via --bubble-scale. */
.campus-heatmap-section {
    max-width: var(--container);
    margin: clamp(24px, 4vw, 40px) auto 0;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.campus-heatmap-head { text-align: center; }
.campus-heatmap-eyebrow {
    margin: 0;
    color: #059669;
}
.campus-heatmap-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 4px 0 6px;
    color: var(--ink);
}
.campus-heatmap-sub {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.campus-heatmap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    padding: 8px 0 4px;
}
.campus-bubble {
    /* Scale = 0.5 → 1. Base size (128px) multiplied by scale. */
    --bubble-min: 128px;
    --bubble-max: 240px;
    width: calc(var(--bubble-min) + (var(--bubble-max) - var(--bubble-min)) * var(--bubble-scale, 0.6));
    height: calc(var(--bubble-min) + (var(--bubble-max) - var(--bubble-min)) * var(--bubble-scale, 0.6));
    border-radius: 999px;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), var(--surface) 45%, var(--surface-2));
    box-shadow:
        inset 0 -12px 24px rgba(15, 23, 42, 0.04),
        inset 0 2px 6px rgba(255, 255, 255, 0.6),
        var(--shadow-1);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
    transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
    font-family: inherit;
    color: var(--ink);
}
.campus-bubble:hover,
.campus-bubble:focus-visible {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--ink);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.12),
        var(--shadow-2);
    outline: none;
}
.campus-bubble__name {
    font-weight: 800;
    font-size: clamp(11px, calc(0.8vw + 0.5rem * var(--bubble-scale, 0.6)), 18px);
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.1;
}
.campus-bubble__count {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.campus-bubble--xl { --bubble-scale: 1;    }
.campus-bubble--lg { --bubble-scale: 0.85; }
.campus-bubble--md { --bubble-scale: 0.72; }
.campus-bubble--sm { --bubble-scale: 0.6;  }
.campus-bubble--xs { --bubble-scale: 0.5;  }
.campus-bubble--xl { background: radial-gradient(circle at 30% 25%, rgba(255, 245, 200, 0.7), var(--surface) 50%); }
.campus-bubble--lg { background: radial-gradient(circle at 30% 25%, rgba(226, 232, 240, 0.9), var(--surface) 55%); }

/* Floating tooltip for bubble hover. Positioned via JS. */
.campus-bubble-tooltip {
    position: absolute;
    z-index: 40;
    padding: 6px 10px;
    background: var(--ink);
    color: var(--accent-fg);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.005em;
    pointer-events: none;
    transform: translate(-50%, -100%);
    opacity: 0;
    transition: opacity var(--dur-1) var(--ease);
    max-width: 260px;
    text-align: center;
    line-height: 1.35;
    box-shadow: var(--shadow-2);
}
.campus-bubble-tooltip.is-visible { opacity: 1; }
.campus-bubble-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ink);
}

@media (max-width: 640px) {
    .hero-dropzone { padding: 20px 18px; }
    .hero-dropzone__icon { width: 42px; height: 42px; }
    .campus-heatmap { gap: 10px; }
    .campus-bubble {
        --bubble-min: 96px;
        --bubble-max: 168px;
    }
    .live-ticker__text { max-width: 260px; }
}

/* ---------- print ---------- */
@media print {
    .app-nav, .site-footer, .btn { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ============================================================
   Click-wrap consent + ELO benchmarking + Unlock economy UI
   ============================================================ */
.clickwrap-consent-block {
    background: var(--surface-2, #f5f5f5);
    border: 1px solid var(--line, #e5e5e5);
    border-radius: var(--r-md, 8px);
    padding: 12px 14px;
    margin-top: 12px;
}
.clickwrap-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: var(--fs-sm, 13px);
    line-height: 1.5;
    color: var(--ink-2, #444);
}
.clickwrap-consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--brand, #111);
}
.clickwrap-consent-text a { text-decoration: underline; color: var(--ink, #111); }

/* Unified credit pill — single amber-themed control that shows the current
   balance and links to /get-credits. The inner "+ Get" chip is decorative;
   the whole pill is one clickable target. */
.credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 12px;
    background: #FFFBEB;                             /* amber-50 */
    border: 1px solid #FDE68A;                       /* amber-200 */
    color: #92400E;                                  /* amber-800 */
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.credit-pill:hover { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.credit-pill:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.credit-pill__icon { font-size: 13px; line-height: 1; }
.credit-pill__value { font-variant-numeric: tabular-nums; }
.credit-pill__label { letter-spacing: 0.01em; }
.credit-pill__cta {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #FDE68A;                             /* amber-200 */
    color: #78350F;                                  /* amber-900 */
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.credit-pill:hover .credit-pill__cta { background: #FCD34D; }

/* Candidate card & unlock CTA */
.candidate-card {
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e5e5e5);
    border-radius: var(--r-lg, 12px);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.candidate-card-elo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 700;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.candidate-card-elo .elo-num { color: var(--ink); }
.candidate-card-elo .elo-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.masked-identity {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.02em;
    color: var(--muted, #777);
}
.unlock-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}
.unlock-cta:hover { background: #000; }
.unlock-cta[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Unlock modal */
.unlock-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 23, 23, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.unlock-modal {
    background: var(--surface, #fff);
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.unlock-modal h2 { margin: 0; font-size: 20px; }
.unlock-modal .unlock-cost {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--surface-2, #f7f7f7);
    border-radius: 10px;
    font-weight: 600;
}
.unlock-modal .unlock-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.unlock-modal .unlock-actions .btn { min-width: 110px; }

/* Track filter chips */
.track-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.track-chip {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line, #e5e5e5);
    background: var(--surface, #fff);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2, #444);
    cursor: pointer;
    transition: transform 0.08s ease, background 0.15s ease;
}
.track-chip:hover { border-color: #111; color: #111; }
.track-chip.is-active { background: #111; color: #fff; border-color: #111; }

@media (max-width: 640px) {
    .clickwrap-consent-label { font-size: 12px; }
    .candidate-card { padding: 14px; }
    .unlock-modal { padding: 20px; }
}

/* ============================================================
   Merged Talent Leaderboard — advanced filters + results toolbar
   ============================================================ */
.advanced-filters {
    margin-top: var(--s-4);
    border: 1px solid var(--line, #e5e5e5);
    border-radius: var(--r-lg, 12px);
    background: var(--surface, #fff);
    overflow: hidden;
}
.advanced-filters > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    color: var(--ink, #111);
}
.advanced-filters > summary::-webkit-details-marker { display: none; }
.advanced-filters > summary::after {
    content: '›';
    transform: rotate(90deg);
    transition: transform 0.15s ease;
    color: var(--muted, #777);
    font-size: 18px;
    line-height: 1;
}
.advanced-filters[open] > summary::after { transform: rotate(-90deg); }
.advanced-filters__hint {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted, #777);
}
.advanced-filters__body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    border-top: 1px solid var(--line, #e5e5e5);
}
.advanced-filters__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-2, #444);
}
.advanced-filters__group label { font-weight: 600; }
.advanced-filters__group input[type="range"] { width: 100%; }
.advanced-filters__group--toggle {
    justify-content: space-between;
    align-items: flex-start;
}
.advanced-filters__group .slider-value {
    font-family: ui-monospace, monospace;
    color: var(--muted, #777);
}

.results-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: var(--s-4);
    margin-bottom: var(--s-2);
    flex-wrap: wrap;
}
.results-toolbar__title { margin: 0; font-size: 18px; }
.results-toolbar__summary { margin: 4px 0 0; color: var(--muted, #777); font-size: 13px; }
.results-toolbar__actions { display: flex; align-items: center; gap: 8px; }
.results-toolbar__actions .hint-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-2, #f5f5f5);
    color: var(--muted, #777);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 720px) {
    .advanced-filters__body { grid-template-columns: 1fr; }
    .results-toolbar { align-items: flex-start; }
}

/* ============================================================
   Candidate row action buttons + hoverable rows
   ============================================================ */
.leaderboard-table th.action-column,
.leaderboard-table td.action-column {
    width: 220px;
    text-align: right;
    white-space: nowrap;
    padding-right: 16px;
}
.row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    border-radius: 12px;                         /* rounded-xl */
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); /* shadow-sm */
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.08s ease;
    white-space: nowrap;
}
.row-action__icon { flex-shrink: 0; }
/* Locked → primary Unlock CTA (slate-900). */
.row-action--primary {
    background: #0F172A;                         /* slate-900 */
    color: #FFFFFF;
    border-color: #0F172A;
}
.row-action--primary:hover {
    background: #1E293B;                         /* slate-800 */
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.row-action--primary:focus-visible { outline: 2px solid #4c6fff; outline-offset: 2px; }
/* Unlocked / owned → secondary "View PDF" (emerald pill with ring). */
.row-action--secondary {
    background: #ECFDF5;                         /* emerald-50 */
    color: #047857;                              /* emerald-700 */
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.20), 0 1px 2px rgba(15, 23, 42, 0.04);
}
.row-action--secondary:hover {
    background: #D1FAE5;                         /* emerald-100 */
    color: #065F46;                              /* emerald-800 */
}
.row-action--secondary:focus-visible { outline: 2px solid #10B981; outline-offset: 2px; }
.row-action[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* Handle cell — single-row flex container that truncates the handle text
   and pins the "⭐ You" badge inline. Fixed max-width keeps every row's
   handle column the same width so the School / Percentile / Action columns
   stay in vertical alignment even when handles vary in length. */
.handle-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 220px;
}
.handle-cell .handle-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--ink, #0F172A);
    letter-spacing: -0.01em;
}
@media (max-width: 720px) {
    .handle-cell { max-width: 200px; }
    .handle-cell .handle-text { max-width: 160px; }
}

/* "⭐ You" / "⭐ Your Resume" badge — inline amber pill with a ring border.
   whitespace-nowrap so the badge never wraps to its own line, flex-shrink:0
   so it never gets squeezed by a long handle text. */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: #FEF3C7;                         /* amber-50 */
    color: #B45309;                              /* amber-700 */
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.20); /* amber-600/20 ring */
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}
.user-rank-icon {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
}

/* Row hover state — table + mobile card. */
.leaderboard-row-hover {
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
tr.leaderboard-row-hover:hover {
    background: rgba(245, 245, 245, 0.8);
}
tr.leaderboard-row-hover:focus-visible {
    outline: 2px solid #4c6fff;
    outline-offset: -2px;
}
.leaderboard-card.leaderboard-row-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}
.leaderboard-card.leaderboard-row-hover:focus-visible {
    outline: 2px solid #4c6fff;
    outline-offset: 2px;
}

/* Mobile candidate cards — stacked layout used when the desktop table would
   overflow (isMobile() ≤ 640px). Header shows Rank + percentile pill; body
   is a labeled key/value list (Handle, School, Track, Overall Score); the
   action button is pinned full-width at the bottom. */
.leaderboard-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.leaderboard-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.leaderboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.leaderboard-card-rank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.leaderboard-card-score { display: inline-flex; align-items: center; }
.leaderboard-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.leaderboard-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    font-size: var(--fs-sm);
}
.leaderboard-card-label {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.leaderboard-card-value {
    min-width: 0;
    text-align: right;
    color: var(--ink);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leaderboard-card-value .school-cell { max-width: 100%; }
.leaderboard-card-row--action {
    margin-top: 4px;
    justify-content: stretch;
}
.leaderboard-card-row--action .row-action { width: 100%; }
.leaderboard-card.user-row {
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.35);
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.35), var(--surface) 60%);
}

/* Percentile pill — colored by tier. Elite/strong get warm accent colors,
   solid gets a slate look, muted is a plain outlined pill. Tabular numerals
   so different pill widths stay tidy in the column. */
.pct-pill {
    display: inline-flex;
    align-items: baseline;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    border: 1px solid transparent;
    white-space: nowrap;
}
.pct-pill--elite  { background: #FEF3C7; color: #92400E; border-color: rgba(180, 83, 9, 0.25); }
.pct-pill--strong { background: #E0F2FE; color: #075985; border-color: rgba(3, 105, 161, 0.20); }
.pct-pill--solid  { background: #F1F5F9; color: #334155; border-color: var(--line); }
.pct-pill--muted  { background: transparent; color: var(--muted); border-color: var(--line); }

.school-cell {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: -0.01em;
}

/* Overall Score cell — bold value paired with a muted "/100" suffix so the
   composite reads at a glance. Tabular numerals keep the column tidy across
   rows with different score magnitudes. */
.score-cell {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.score-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.score-total {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}
.score-cell--empty { color: var(--muted); font-weight: 500; }
.leaderboard-table th.score-column,
.leaderboard-table td.score-column {
    width: 132px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.table-cell-empty {
    color: var(--muted);
    font-style: italic;
    font-weight: 400;
}
.podium-school {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   Candidate detail modal — PDF preview + identity block
   ============================================================ */
/* PDF preview panel — browser-chrome frame around the iframe. Traffic-light
   dots on the left, filename tab in the middle, download CTA on the right. */
.pdf-preview-panel {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-1);
}
.pdf-preview-panel__chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #F8FAFC, #F1F5F9);
    border-bottom: 1px solid var(--line);
}
.pdf-preview-panel__dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.pdf-preview-panel__dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #CBD5E1;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.pdf-preview-panel__dot--red    { background: #FF5F57; }
.pdf-preview-panel__dot--yellow { background: #FEBC2E; }
.pdf-preview-panel__dot--green  { background: #28C840; }
.pdf-preview-panel__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    max-width: 260px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 0 1 auto;
}
.pdf-preview-panel__tab svg { color: var(--muted); flex-shrink: 0; }
.pdf-preview-panel__download {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid var(--ink);
    transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
    flex-shrink: 0;
}
.pdf-preview-panel__download:hover { background: #000; transform: translateY(-1px); }
.pdf-preview-panel__frame {
    width: 100%;
    height: 620px;
    border: 0;
    background: #fff;
    display: block;
}
.pdf-preview-panel--locked {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 44px 24px;
    background: repeating-linear-gradient(
        45deg,
        var(--surface),
        var(--surface) 10px,
        var(--surface-2) 10px,
        var(--surface-2) 20px
    );
}
.pdf-preview-panel__lock {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    margin-bottom: 8px;
}
.pdf-preview-panel__msg { margin: 0; color: var(--muted); font-size: 13px; }

/* Score grid — 2x2 of metric micro-cards, each with a slim progress bar. */
.score-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.score-card {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.score-card:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.score-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}
.score-card__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.score-card__bar {
    height: 6px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 4px;
}
.score-card__fill {
    height: 100%;
    background: linear-gradient(90deg, #0F172A, #334155);
    border-radius: 999px;
    transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 640px) {
    .score-grid { grid-template-columns: 1fr; }
    .pdf-preview-panel__frame { height: 460px; }
    .pdf-preview-panel__tab { max-width: 140px; }
}

.identity-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    padding: 14px 16px;
    margin-bottom: var(--s-4, 16px);
    border: 1px solid var(--line, #e5e5e5);
    border-radius: var(--r-lg, 12px);
    background: var(--surface, #fff);
    font-size: 13px;
}
.identity-block__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.identity-block__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--muted, #777);
}
.identity-block__value {
    font-weight: 600;
    color: var(--ink, #111);
    overflow: hidden;
    text-overflow: ellipsis;
}
.identity-block__value a,
.identity-block__link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(15, 23, 42, 0.25);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--dur-2) var(--ease);
}
.identity-block__link:hover { text-decoration-color: var(--ink); }
.identity-block__missing {
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
}
.identity-block--masked .identity-block__value { font-family: ui-monospace, monospace; letter-spacing: 0.02em; }
.identity-block__dev-tag {
    grid-column: 1 / -1;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff3bf;
    color: #7a5b00;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    justify-self: start;
}

.profile-elo-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--accent-fg);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}
.profile-elo-chip strong { font-weight: 700; }
.profile-elo-chip span {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .pdf-preview-panel__frame { height: 420px; }
    .identity-block { grid-template-columns: 1fr; }
}

/* ============================================================
   Account & Billing dashboard
   ============================================================
   Two-column responsive grid (2fr left / 1fr right at ≥1024px)
   inside a max-width shell. Cards use tokens where possible and
   Tailwind-equivalent literal values (slate-100/-200/-900, amber,
   rose, emerald) where design intent demands specific hues.
   ============================================================ */
.acct-shell {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px clamp(16px, 4vw, 32px);
}
.acct-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}
.acct-header__titles h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.acct-header__subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.acct-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.acct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    background: transparent;
    color: var(--ink);
    white-space: nowrap;
}
.acct-btn--outline {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.acct-btn--outline:hover { background: var(--surface-2); border-color: #94A3B8; }
.acct-btn--outline:focus-visible { outline: 2px solid #4c6fff; outline-offset: 2px; }
.acct-btn--ghost { color: var(--muted-2); }
.acct-btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.acct-btn--invert {
    background: #FFFFFF;
    color: #0F172A;
    font-weight: 700;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.20);
}
.acct-btn--invert:hover { background: #F1F5F9; }
.acct-btn--invert:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.acct-btn--primary {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.20);
}
.acct-btn--primary:hover { background: #1E293B; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18); }
.acct-btn--primary:focus-visible { outline: 2px solid #4c6fff; outline-offset: 2px; }
.acct-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* 12-col-equivalent grid: 1 col on mobile; 8 / 4 on desktop (lg 1024px+).
   Uses fr units so tracks can never overlap regardless of viewport width. */
.acct-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
@media (min-width: 1024px) {
    .acct-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; }
}
/* Every grid child stays inside its own track — no absolute, float, or
   negative margins are ever applied on children (verified across the file). */
.acct-grid > * {
    min-width: 0;
    align-self: start;
}

/* --- Generic card --- */
.acct-card {
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.8);   /* slate-200/80 */
    border-radius: 20px;                          /* rounded-2xl */
    padding: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05); /* shadow-sm */
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.acct-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.acct-card__eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}
.acct-card__lead {
    margin: 0;
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.55;
}

/* --- Left column: resume grid --- */
.acct-resume-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 720px) {
    .acct-resume-grid { grid-template-columns: 1fr 1fr; }
}
.acct-resume-card {
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.15s ease, transform 0.08s ease, border-color 0.15s ease;
}
.acct-resume-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}
.acct-resume-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.acct-resume-card__ident { min-width: 0; }
.acct-resume-card__track {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-resume-card__school {
    font-size: 13px;
    color: var(--muted-2);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-date-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--surface-2);
    color: var(--muted-2);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Score chip — prominent rounded rank score (78.6, not 78.557). */
.acct-score-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 6px 14px;
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.acct-score-chip__value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}
.acct-score-chip__unit {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.acct-score-chip--elite { background: #FEF3C7; border-color: rgba(180, 83, 9, 0.20); color: #92400E; }
.acct-score-chip--elite .acct-score-chip__unit { color: #B45309; }

/* Metric pills (Grammar / Prestige / GPA). */
.acct-metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.acct-metric-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 10px;
    background: #F1F5F9;                          /* slate-100 */
    color: #334155;                               /* slate-700 */
    border-radius: 8px;                           /* rounded-lg */
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}
.acct-metric-pill__label {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.acct-metric-pill__value { font-variant-numeric: tabular-nums; }

/* Resume card footer actions. */
.acct-resume-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--line);
}
.acct-view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.acct-view-link:hover { background: var(--surface-2); color: var(--brand); }
.acct-view-link__arrow { transition: transform 0.15s ease; }
.acct-view-link:hover .acct-view-link__arrow { transform: translateX(2px); }
.acct-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--muted-2);
    transition: background 0.15s ease, color 0.15s ease;
}
.acct-icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.acct-icon-btn--danger { color: #E11D48; }             /* rose-600 */
.acct-icon-btn--danger:hover { background: #FFF1F2; color: #BE123C; } /* rose-50 / rose-700 */
.acct-icon-btn:focus-visible { outline: 2px solid #4c6fff; outline-offset: 2px; }
.acct-icon-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Empty state inside the resume grid. */
.acct-empty {
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
.acct-empty a { color: var(--brand); font-weight: 600; text-decoration: none; }
.acct-empty a:hover { text-decoration: underline; }

/* --- Right column: account + billing --- */
.acct-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}
@media (min-width: 1024px) {
    .acct-side {
        position: sticky;
        top: 88px;                                    /* clears the sticky app-nav */
    }
}

/* Account overview. */
.acct-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.acct-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.acct-user__meta { min-width: 0; }
.acct-user__email {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}
.acct-user__since {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 0;
}
.acct-kv {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: 13px;
}
.acct-kv dt { color: var(--muted); }
.acct-kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.acct-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.acct-plan-badge--pro { background: #FEF3C7; color: #92400E; }

.acct-credit-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #FFFBEB;                          /* amber-50 */
    color: #92400E;                               /* amber-800 */
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.20);
    font-size: 13px;
    font-weight: 700;
    align-self: flex-start;
    font-variant-numeric: tabular-nums;
}
.acct-credit-chip__coin { font-size: 15px; line-height: 1; }

/* Pro upgrade card (dark). */
.acct-card--dark {
    background: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
    color: #F8FAFC;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.45); /* shadow-xl */
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.acct-card--dark .acct-card__eyebrow { color: rgba(248, 250, 252, 0.7); }
.acct-card--dark h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}
.acct-card--dark .acct-card__lead { color: rgba(248, 250, 252, 0.72); }
.acct-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.acct-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(248, 250, 252, 0.9);
    line-height: 1.4;
}
.acct-check-list svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #34D399;                               /* emerald-400 */
}
.acct-card--dark .acct-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(251, 191, 36, 0.10);
    border-radius: 10px;
    color: #FBBF24;
    font-size: 12px;
    font-weight: 500;
}
.acct-card--dark .acct-btn--outline {
    background: transparent;
    color: #F8FAFC;
    border-color: rgba(248, 250, 252, 0.24);
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}
.acct-card--dark .acct-btn--outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(248, 250, 252, 0.40);
}

/* Sync-Stripe subtle info card (replaces the harsh yellow box). */
.acct-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #F8FAFC;                          /* slate-50 */
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.45;
}
.acct-toast__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--muted);
    margin-top: 1px;
}
.acct-toast__body { flex: 1 1 auto; min-width: 0; }
.acct-toast__body p { margin: 0 0 6px; }
.acct-toast__body p:last-child { margin-bottom: 0; }
.acct-toast__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.acct-toast__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.acct-toast__btn:hover { background: var(--surface-2); border-color: #94A3B8; }
.acct-toast__btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.acct-toast__btn svg { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.acct-toast__btn.is-syncing svg,
.acct-icon-btn.is-syncing svg { animation: acct-spin 0.9s linear infinite; }
.acct-toast__dismiss {
    background: transparent;
    border: 0;
    padding: 4px;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.acct-toast__dismiss:hover { background: var(--surface-2); color: var(--ink); }

@keyframes acct-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Credit Balance & History card (replaces the legacy Pro subscription
   card). Prominent balance hero + a subtle transaction table underneath. */
.acct-card--credit {
    padding: 0;
    overflow: hidden;
    gap: 0;
}
.acct-credit-hero {
    padding: 24px;
    background: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
    color: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.acct-credit-hero .acct-card__eyebrow { color: rgba(248, 250, 252, 0.7); }
.acct-credit-hero__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.acct-credit-hero__value {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
}
.acct-credit-hero__coin {
    font-size: 28px;
    line-height: 1;
    align-self: center;
}
.acct-credit-hero__num {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}
.acct-credit-hero__unit {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.7);
}
.acct-credit-hero .acct-btn--primary {
    background: #FFFFFF;
    color: #0F172A;
    border-color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.20);
}
.acct-credit-hero .acct-btn--primary:hover { background: #F1F5F9; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.20); }
.acct-credit-hero .acct-card__lead { color: rgba(248, 250, 252, 0.72); }

.acct-history-wrapper {
    padding: 8px 4px 4px;
    background: var(--surface);
}
.acct-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--ink-2);
}
.acct-history-table th,
.acct-history-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.acct-history-table thead th {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--surface-2);
}
.acct-history-table tbody tr:last-child td { border-bottom: 0; }
.acct-history-table td.acct-credits-td,
.acct-history-table th.acct-credits-td {
    color: #047857;                              /* emerald-700 */
    font-weight: 700;
    text-align: right;
}
.acct-history-table thead th.acct-credits-td { color: var(--muted); font-weight: 600; }
.acct-history-table td.acct-amount-td,
.acct-history-table th.acct-amount-td {
    text-align: right;
    font-weight: 600;
    color: var(--ink);
}
.acct-history-table thead th.acct-amount-td { color: var(--muted); font-weight: 600; }
.acct-history-empty-row td {
    text-align: center;
    color: var(--muted);
    padding: 24px 16px;
    font-style: italic;
}

@media (max-width: 600px) {
    .acct-shell { padding: 24px 16px 48px; }
    .acct-header { align-items: flex-start; }
    .acct-header__titles h1 { font-size: 24px; }
    .acct-user__email { max-width: 200px; }
    .acct-history-table th,
    .acct-history-table td { padding: 10px 12px; }
    .acct-credit-hero__num { font-size: 30px; }
}

/* ============================================================
   Account redesign (v2) — premium SaaS dashboard
   ============================================================
   Cleaner cards, dominant score chip on resume cards, conversion-
   focused Credits card, and a full purchase modal with slider.
   ============================================================ */

/* Section eyebrow — small uppercase label used across cards. */
.acct-eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Header refinements. */
.acct-header__titles h1 { letter-spacing: -0.02em; }
.acct-header__subtitle { margin: 4px 0 0; color: var(--muted-2); font-size: 15px; }

/* Left column wrapper. */
.acct-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.acct-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.acct-section-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.015em;
}
.acct-section-head__meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}

/* Full-width block variant of acct-btn. */
.acct-btn--block { display: inline-flex; width: 100%; justify-content: center; }
.acct-btn--large { padding: 14px 20px; font-size: 15px; }

/* ---------- Resume card (rez-card) — score is dominant ---------- */
.rez-card {
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
    min-width: 0;
}
.rez-card:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    border-color: #CBD5E1;
}
.rez-card--elite { border-color: rgba(180, 83, 9, 0.25); background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 30%); }

.rez-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.rez-card__track {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.rez-card__trash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    background: transparent;
    color: var(--muted);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
.rez-card__trash:hover { background: #FEF2F2; color: #BE123C; }
.rez-card__trash:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.rez-card__school {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rez-card__score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 0 2px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.rez-card__score-value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}
.rez-card--elite .rez-card__score-value { color: #92400E; }
.rez-card__score-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.rez-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.rez-card__metrics > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rez-card__metrics dt {
    margin: 0;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.rez-card__metrics dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.rez-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    min-width: 0;
}
.rez-card__view {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    background: transparent;
    border: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease;
}
.rez-card__view:hover { color: var(--brand); }
.rez-card__view svg { transition: transform 0.15s ease; }
.rez-card__view:hover svg { transform: translateX(2px); }
.rez-card__date {
    font-size: 11px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Empty state for the resume grid. */
.rez-empty {
    grid-column: 1 / -1;
    padding: 40px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.rez-empty__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.rez-empty__body { margin: 0 0 8px; font-size: 13px; color: var(--muted-2); }

/* ---------- Credits card — primary conversion element ---------- */
.acct-credits-card {
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.10);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}
.acct-credits-card::before {
    /* subtle top accent — brand ramen-orange hairline */
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    border-radius: 0 0 2px 2px;
    opacity: 0.4;
}
.acct-credits-card__balance {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.acct-credits-card__num {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
}
.acct-credits-card__unit {
    font-size: 14px;
    color: var(--muted-2);
    font-weight: 500;
}
.acct-credits-card__value { display: flex; flex-direction: column; gap: 4px; }
.acct-credits-card__headline {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.acct-credits-card__lead {
    margin: 0;
    font-size: 13px;
    color: var(--muted-2);
    line-height: 1.5;
}
.acct-credits-card__tag {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* ---------- Account overview — secondary card ---------- */
.acct-overview-card {
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.acct-overview-card__ident {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.acct-overview-card__email {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.acct-overview-card__stats {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.acct-overview-card__stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.acct-overview-card__stats dt {
    margin: 0;
    font-size: 13px;
    color: var(--muted-2);
}
.acct-overview-card__stats dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* ---------- Credit history card ---------- */
.acct-history-card {
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.acct-history-empty {
    padding: 12px 0 4px;
    text-align: left;
}
.acct-history-empty__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.acct-history-empty__body {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted-2);
}

/* ---------- Credit purchase modal ---------- */
.cred-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.cred-modal.is-open { opacity: 1; pointer-events: auto; }
.cred-modal[hidden] { display: none; }
.cred-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.cred-modal__dialog {
    position: relative;
    background: var(--surface);
    border-radius: 20px;
    padding: 28px;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 24px 64px -12px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(8px);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.cred-modal.is-open .cred-modal__dialog { transform: translateY(0); }
.cred-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.cred-modal__close:hover { background: var(--surface-2); color: var(--ink); }
.cred-modal__head { display: flex; flex-direction: column; gap: 6px; }
.cred-modal__head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.cred-modal__lead {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted-2);
    line-height: 1.5;
}
.cred-modal__foot { display: flex; flex-direction: column; gap: 8px; }
.cred-modal__terms {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- Slider ---------- */
.cred-slider {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cred-slider__display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cred-slider__credits {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}
.cred-slider__num {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
}
.cred-slider__unit { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.cred-slider__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 160px;
}
.cred-slider__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}
.cred-slider__row-label { color: var(--muted); }
.cred-slider__row-value { color: var(--ink); font-weight: 600; }
.cred-slider__row--save .cred-slider__row-value { color: #047857; }
.cred-slider__row--save.is-zero .cred-slider__row-value { color: var(--muted); font-weight: 500; }

/* Native range slider styling — cross-browser. */
.cred-slider__input {
    --fill: 66%;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--ink) 0%, var(--ink) var(--fill), #E2E8F0 var(--fill), #E2E8F0 100%);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}
.cred-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--surface);
    border: 3px solid var(--ink);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.20);
    cursor: pointer;
    transition: transform 0.1s ease;
}
.cred-slider__input::-webkit-slider-thumb:hover { transform: scale(1.08); }
.cred-slider__input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--surface);
    border: 3px solid var(--ink);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.20);
    cursor: pointer;
}
.cred-slider__input:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

.cred-slider__ticks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.cred-slider__tick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: color 0.15s ease;
}
.cred-slider__tick:first-child { align-items: flex-start; }
.cred-slider__tick:last-child { align-items: flex-end; }
.cred-slider__tick-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line-strong);
    transition: background 0.15s ease, transform 0.15s ease;
}
.cred-slider__tick.is-active { color: var(--ink); }
.cred-slider__tick.is-active .cred-slider__tick-dot {
    background: var(--ink);
    transform: scale(1.35);
}
.cred-slider__tick:hover { color: var(--ink); }

/* ---------- Tier cards ---------- */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (min-width: 520px) {
    .tier-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tier-card {
    position: relative;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
    min-width: 0;
}
.tier-card:hover { border-color: var(--line-strong); }
.tier-card.is-selected {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.tier-card__head { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.tier-card__credits {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}
.tier-card__label { font-size: 11px; color: var(--muted); font-weight: 600; }
.tier-card__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted-2);
}
.tier-card__badge--anchor { background: var(--surface-2); color: var(--muted-2); }
.tier-card__badge--save { background: #ECFDF5; color: #047857; }
.tier-card__badge--popular { background: #EFF6FF; color: #1D4ED8; }
.tier-card__badge--best { background: #0F172A; color: #FAFAFA; }
.tier-card__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.tier-card__per {
    font-size: 11.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.tier-card__per span { color: var(--muted-2); }

@media (max-width: 600px) {
    .cred-modal { padding: 16px; }
    .cred-modal__dialog { padding: 20px; border-radius: 16px; gap: 16px; }
    .cred-modal__head h2 { font-size: 19px; }
    .cred-slider { padding: 14px 14px 12px; }
    .cred-slider__num { font-size: 28px; }
    .cred-slider__display { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cred-slider__meta { min-width: 0; width: 100%; }
    .acct-credits-card__num { font-size: 36px; }
}

/* ============================================================
   Get Credits — 3-tier credit-purchase grid
   ============================================================
   Vercel/Linear-flavored pricing grid: three cards side by side
   on wide viewports, single column on mobile. Middle card is
   featured (dark, ring, "Most Popular" pill).
   ============================================================ */
.credits-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px clamp(16px, 4vw, 32px) 96px;
    background: var(--bg);
}
.credits-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.credits-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0;
}
.credits-header h1 {
    margin: 0;
    font-size: clamp(34px, 5.4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1.05;
}
.credits-subhead {
    margin: 0 auto;
    color: var(--muted-2);
    font-size: 17px;
    line-height: 1.45;
    max-width: 560px;
}
.credits-subhead strong {
    color: var(--ink);
    font-weight: 700;
}
.credits-trust-strip {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
.credits-trust-strip li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.credits-trust-strip li + li::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
    opacity: 0.6;
    margin-right: 12px;
}
.credits-fineprint {
    margin: 40px auto 0;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    max-width: 640px;
}

.credits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}
@media (min-width: 720px) {
    .credits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}
@media (min-width: 1080px) {
    .credits-grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        align-items: stretch;
    }
}

/* ==========================================================================
   Credits pricing slider — light premium card with a snapping range input.
   Four tiers at 0/33/66/100% of the track. Movie-theater ladder: the middle
   75-pack is the default anchor and "MOST POPULAR". CSS drives the visual
   thumb/track; get-credits.js drives the numbers and CTA.
   Palette: white card, slate borders, navy typography, navy CTA, green
   savings pill. Orange is reserved for the eyebrow and the "Most Popular"
   badge only.
   ========================================================================== */

.credits-slider {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px clamp(24px, 5vw, 56px) 40px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px -20px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.credits-slider__question {
    margin: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---- track + ticks ---- */
.credits-slider__track-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 4px;
}
.credits-slider__ticks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    padding: 0;
    margin: 0;
}
.credits-slider__tick {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 4px 10px;
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    transition: color 0.15s ease, transform 0.15s ease;
}
.credits-slider__tick:hover { color: var(--ink); }
.credits-slider__tick.is-active { color: var(--ink); }
.credits-slider__tick:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border-radius: 8px;
}
/* First tick left-aligns to the rail edge; last tick right-aligns. */
.credits-slider__tick:first-child { align-items: flex-start; padding-left: 0; }
.credits-slider__tick:last-child { align-items: flex-end; padding-right: 0; }
.credits-slider__tick-num {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.credits-slider__tick.is-active .credits-slider__tick-num {
    font-weight: 700;
    transform: scale(1.04);
}
.credits-slider__tick-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: var(--brand);
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}
.credits-slider__tick--popular { color: var(--ink); }

.credits-slider__track {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}
.credits-slider__rail,
.credits-slider__fill {
    position: absolute;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    transform: translateY(-50%);
    pointer-events: none;
}
.credits-slider__rail {
    left: 0;
    right: 0;
    background: #EEF1F5;
}
.credits-slider__fill {
    left: 0;
    width: 66.666%;
    background: var(--ink);
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.credits-slider__nubs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.credits-slider__nub {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px var(--line-strong);
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.credits-slider__nub[data-nub="0"] { left: 0%; }
.credits-slider__nub[data-nub="1"] { left: 33.3333%; }
.credits-slider__nub[data-nub="2"] { left: 66.6666%; }
.credits-slider__nub[data-nub="3"] { left: 100%; }
.credits-slider__nub.is-past { background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.credits-slider__nub.is-active {
    background: transparent;
    box-shadow: none;
}

/* Native range input — we hide its default look and let the custom thumb
   float over the track. Track itself is transparent because .credits-slider__rail
   already draws it. */
.credits-slider__input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 40px;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.credits-slider__input:focus { outline: none; }
.credits-slider__input::-webkit-slider-runnable-track {
    height: 40px;
    background: transparent;
    border: 0;
}
.credits-slider__input::-moz-range-track {
    height: 40px;
    background: transparent;
    border: 0;
}
.credits-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    border: 3px solid #FFFFFF;
    margin-top: -11px;
    box-shadow: 0 0 0 1px var(--ink), 0 2px 6px rgba(15, 23, 42, 0.18);
    cursor: grab;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.credits-slider__input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    border: 3px solid #FFFFFF;
    box-shadow: 0 0 0 1px var(--ink), 0 2px 6px rgba(15, 23, 42, 0.18);
    cursor: grab;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.credits-slider__input:hover::-webkit-slider-thumb { transform: scale(1.06); }
.credits-slider__input:hover::-moz-range-thumb { transform: scale(1.06); }
.credits-slider__input:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.credits-slider__input:active::-moz-range-thumb { cursor: grabbing; transform: scale(1.1); }
.credits-slider__input:focus-visible::-webkit-slider-thumb {
    box-shadow:
        0 0 0 1px var(--ink),
        0 0 0 5px rgba(15, 23, 42, 0.15),
        0 2px 6px rgba(15, 23, 42, 0.18);
}
.credits-slider__input:focus-visible::-moz-range-thumb {
    box-shadow:
        0 0 0 1px var(--ink),
        0 0 0 5px rgba(15, 23, 42, 0.15),
        0 2px 6px rgba(15, 23, 42, 0.18);
}

.credits-slider__range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.7;
}

/* ---- dynamic display block ---- */
.credits-slider__display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    padding: 4px 0 2px;
}
.credits-slider__count-block {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    line-height: 1;
}
.credits-slider__count {
    font-size: clamp(64px, 11vw, 92px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    line-height: 0.9;
}
.credits-slider__count-label {
    font-size: clamp(13px, 1.6vw, 15px);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.credits-slider__price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.credits-slider__price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.credits-slider__anchor {
    font-size: 17px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.credits-slider__anchor[hidden] { display: none; }
.credits-slider__anchor del {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(100, 116, 139, 0.55);
}
.credits-slider__price {
    font-size: clamp(34px, 5.5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.credits-slider__per {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.credits-slider__per strong {
    color: var(--ink);
    font-weight: 700;
}
.credits-slider__save {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #DCFCE7;
    color: #166534;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.15);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.credits-slider__save[hidden] { display: none; }

/* ---- CTA ---- */
.credits-slider__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 16px 24px;
    background: var(--ink);
    color: #FFFFFF;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.005em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10), 0 6px 16px -8px rgba(15, 23, 42, 0.25);
    transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}
.credits-slider__cta:hover {
    background: #1E293B;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12), 0 10px 22px -8px rgba(15, 23, 42, 0.30);
}
.credits-slider__cta:active { transform: translateY(0); }
.credits-slider__cta:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.credits-slider__cta[disabled] { opacity: 0.7; cursor: not-allowed; transform: none; }
.credits-slider__cta svg { flex-shrink: 0; }

/* ---- trust strip inside the slider card ---- */
.credits-slider__trust {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
.credits-slider__trust li {
    display: inline-flex;
    align-items: center;
}
.credits-slider__trust li + li::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
    margin-right: 12px;
}

/* ---- micro-pulse when user snaps to a new tier ---- */
@keyframes credits-slider-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.credits-slider.is-pulsing .credits-slider__count,
.credits-slider.is-pulsing .credits-slider__price {
    animation: credits-slider-pulse 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Tier indicator chips — sit beneath the main card, giving a quick at-a-glance
   view of every tier. Clicking a chip snaps the slider to that tier.
   ========================================================================== */
.credits-tiers {
    max-width: 720px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.credits-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 14px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}
.credits-tier:hover {
    border-color: var(--line-strong);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.credits-tier.is-active {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink), 0 6px 16px -10px rgba(15, 23, 42, 0.30);
}
.credits-tier:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
.credits-tier__count {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.credits-tier__count small {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: 4px;
}
.credits-tier__price {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.credits-tier__price strong {
    color: var(--ink);
    font-weight: 700;
    margin-right: 4px;
}
.credits-tier__badge {
    position: absolute;
    top: -8px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--brand);
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

/* ---- mobile ---- */
@media (max-width: 640px) {
    .credits-tiers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
@media (max-width: 560px) {
    .credits-slider {
        padding: 36px 20px 30px;
        gap: 28px;
        border-radius: 18px;
    }
    .credits-slider__tick-badge {
        font-size: 8px;
        padding: 2px 6px;
        letter-spacing: 0.1em;
    }
    .credits-slider__tick-num { font-size: 12px; }
    .credits-slider__count-block { gap: 8px; }
    .credits-slider__anchor { font-size: 15px; }
    .credits-slider__per { font-size: 13px; }
    .credits-slider__cta { padding: 14px 20px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .credits-slider__fill,
    .credits-slider__input::-webkit-slider-thumb,
    .credits-slider__input::-moz-range-thumb,
    .credits-slider__nub,
    .credits-slider__cta,
    .credits-tier {
        transition: none;
    }
    .credits-slider.is-pulsing .credits-slider__count,
    .credits-slider.is-pulsing .credits-slider__price {
        animation: none;
    }
}

.credits-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 22px 22px;
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.85);   /* slate-200/85 */
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.credits-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -18px rgba(15, 23, 42, 0.28);
    border-color: #CBD5E1;
}
/* Featured 75-pack — dark navy card, brand hero treatment. */
.credits-card--featured {
    background: #0F172A;
    color: #F8FAFC;
    border-color: transparent;
    box-shadow: 0 0 0 2px #0F172A, 0 22px 44px -18px rgba(15, 23, 42, 0.55);
}
.credits-card--featured:hover {
    box-shadow: 0 0 0 2px #0F172A, 0 28px 52px -18px rgba(15, 23, 42, 0.60);
    border-color: transparent;
}
/* Bulk 200-pack — light card with a thin emerald ring, understated but
   loud enough to say "value winner" without competing with the featured
   dark card for the visual center. */
.credits-card--bulk {
    border-color: #10B981;
    box-shadow: 0 0 0 1px #10B981, 0 12px 30px -18px rgba(16, 185, 129, 0.35);
}
.credits-card--bulk:hover {
    border-color: #059669;
    box-shadow: 0 0 0 1px #059669, 0 18px 36px -18px rgba(16, 185, 129, 0.45);
}
@media (min-width: 1080px) {
    /* Vertical lift on the featured card so it reads as the visual anchor
       even in a 4-column grid. */
    .credits-card--featured { transform: translateY(-8px); }
    .credits-card--featured:hover { transform: translateY(-10px); }
}

/* Ribbon that hangs off the top edge — MOST POPULAR / BEST VALUE. */
.credits-card__ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.35);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}
.credits-card__ribbon--bulk {
    background: #10B981;
    box-shadow: 0 4px 10px -2px rgba(16, 185, 129, 0.45);
    color: #052E1A;
}

/* Head block — eyebrow, the enormous count, and a short subtitle. The
   count IS the hierarchy anchor of each card, not the tier name. */
.credits-card__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.credits-card__eyebrow {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.credits-card--featured .credits-card__eyebrow { color: rgba(248, 250, 252, 0.65); }
.credits-card--bulk .credits-card__eyebrow { color: #059669; }
.credits-card__count-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    line-height: 1;
}
.credits-card__count {
    font-size: clamp(52px, 8vw, 68px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: currentColor;
    font-variant-numeric: tabular-nums;
    line-height: 0.95;
}
.credits-card__count-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-2);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    padding-bottom: 6px;
    line-height: 1.15;
}
.credits-card--featured .credits-card__count-label { color: rgba(248, 250, 252, 0.72); }
.credits-card__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    min-height: 2.9em;
}
.credits-card--featured .credits-card__subtitle { color: rgba(248, 250, 252, 0.72); }

/* Price block — anchor (strikethrough) sits above the real price; the
   per-resume rate + savings pill sit under it. */
.credits-card__price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.credits-card--featured .credits-card__price { border-top-color: rgba(248, 250, 252, 0.12); }
.credits-card--bulk .credits-card__price { border-top-color: rgba(16, 185, 129, 0.25); }
.credits-card__price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.credits-card__anchor {
    font-size: 14px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.credits-card__anchor del {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(148, 163, 184, 0.75);
}
.credits-card--featured .credits-card__anchor { color: rgba(248, 250, 252, 0.55); }
.credits-card--featured .credits-card__anchor del { text-decoration-color: rgba(248, 250, 252, 0.4); }
.credits-card__price-amount {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: currentColor;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.credits-card__price-per {
    font-size: 13px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.credits-card__price-per span {
    font-weight: 500;
    color: var(--muted);
}
.credits-card--featured .credits-card__price-per,
.credits-card--featured .credits-card__price-per span { color: rgba(248, 250, 252, 0.72); }

/* Savings pill — the "you're getting a deal" reinforcement. Green on
   light cards; green-tinted on the dark featured card. Hidden on the
   entry tier (JS decides). */
.credits-card__save-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #DCFCE7;
    color: #166534;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.20);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.credits-card--featured .credits-card__save-pill {
    background: rgba(16, 185, 129, 0.16);
    color: #6EE7B7;
    box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.35);
}
.credits-card--bulk .credits-card__save-pill {
    background: #10B981;
    color: #052E1A;
    box-shadow: none;
}

.credits-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}
.credits-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.4;
}
.credits-card__list svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #10B981;
}
.credits-card--featured .credits-card__list li { color: rgba(248, 250, 252, 0.9); }
.credits-card--featured .credits-card__list svg { color: #34D399; }

.credits-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.20);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
    letter-spacing: -0.005em;
}
.credits-card__cta:hover { background: #1E293B; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22); }
.credits-card__cta:focus-visible { outline: 2px solid #4c6fff; outline-offset: 2px; }
.credits-card__cta[disabled] { opacity: 0.65; cursor: not-allowed; }
/* On the dark featured card, invert the CTA so it pops. */
.credits-card--featured .credits-card__cta {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.credits-card--featured .credits-card__cta:hover { background: #F1F5F9; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.30); }
.credits-card--featured .credits-card__cta:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* Leaderboard success toast — appears when redirected back from Stripe
   with ?creditsAdded=N. Fixed top-right; auto-dismisses. */
.credits-added-toast {
    position: fixed;
    top: 84px;
    right: 24px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 14px;
    background: #ECFDF5;                          /* emerald-50 */
    color: #065F46;                               /* emerald-800 */
    border-radius: 14px;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.22), inset 0 0 0 1px rgba(5, 150, 105, 0.20);
    font-size: 14px;
    font-weight: 600;
    max-width: 360px;
    animation: credits-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.credits-added-toast.is-leaving { animation: credits-toast-out 0.25s ease forwards; }
.credits-added-toast__icon { font-size: 18px; line-height: 1; }
.credits-added-toast__close {
    margin-left: 8px;
    background: transparent;
    border: 0;
    padding: 4px;
    border-radius: 6px;
    color: #065F46;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.credits-added-toast__close:hover { background: rgba(6, 95, 70, 0.08); }
@keyframes credits-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes credits-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}
@media (max-width: 600px) {
    .credits-added-toast { top: 72px; right: 12px; left: 12px; max-width: none; }
}

