/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Green accent */
    --green:       #00d97e;
    --green-light: #7fe8bc;
    --green-dim:  #00b868;
    --green-dark: #007a47;
    --green-glow: rgba(0, 217, 126, .18);
    --green-bg:   rgba(0, 217, 126, .08);

    /* Dark surfaces */
    --bg:         #0d0d0d;
    --surface-0:  #141414;
    --surface-1:  #1a1a1a;
    --surface-2:  #242424;
    --surface-3:  #2e2e2e;

    /* Borders */
    --border:     rgba(255,255,255,.09);
    --border-mid: rgba(255,255,255,.14);

    /* Text */
    --text:       #f0f0f0;
    --text-dim:   #a0a0a0;
    --text-faint: #606060;

    /* Radius */
    --r:   6px;
    --r-lg: 10px;

    /* Shadows */
    --sh-sm: 0 1px 4px rgba(0,0,0,.4);
    --sh:    0 4px 16px rgba(0,0,0,.5);
    --sh-lg: 0 8px 32px rgba(0,0,0,.6);

    /* Status */
    --yellow: #f5c542;
    --blue:   #4d9ef7;
    --red:    #f76e6e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dim); text-decoration: none; }

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    height: 58px;
    background: var(--surface-0);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: -.01em;
}
.navbar .brand:hover { color: var(--green); }

/* Header nav links (hidden on mobile to avoid crowding the fixed-height bar) */
.navbar-links { display: flex; align-items: center; gap: 1.4rem; margin-right: auto; }
.navbar-link { font-size: .85rem; color: var(--text-dim); font-weight: 500; text-decoration: none; transition: color .15s; }
.navbar-link:hover { color: var(--green); }
@media (max-width: 640px) { .navbar-links { display: none; } }

.brand-icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
}

.brand-text {
    font-family: 'Menlo', 'Consolas', monospace;
    color: var(--text-faint);
}
.brand-name { color: var(--text); }
.navbar .brand:hover .brand-name { color: var(--green); }

.navbar-user {
    display: flex; align-items: center; gap: .625rem;
    font-size: .85rem; color: var(--text-dim);
}
.navbar-user .username { color: var(--text); font-weight: 500; }

.btn-ghost {
    padding: .3rem .7rem;
    border: 1px solid var(--border-mid);
    border-radius: var(--r);
    color: var(--text-dim);
    background: transparent;
    font-size: .8rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
    display: inline-block;
}
.btn-ghost:hover:not(:disabled) { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }

/* ── User menu dropdown ────────────────────────────────────────── */
.user-menu-wrapper { position: relative; }

.user-menu-trigger {
    display: flex; align-items: center; gap: .4rem;
    background: transparent; border: 1px solid var(--border-mid);
    border-radius: var(--r); padding: .3rem .7rem;
    color: var(--text-dim); font-size: .85rem; cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.user-menu-trigger:hover { border-color: var(--border-mid); color: var(--text); background: rgba(255,255,255,.05); }
.user-menu-trigger .username { color: var(--text); font-weight: 500; }
.user-menu-avatar { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-mid); flex-shrink: 0; }

.chevron { transition: transform .2s; color: var(--text-faint); flex-shrink: 0; }
.chevron.open { transform: rotate(180deg); }

.user-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 200px;
    background: var(--surface-2);
    border: 1px solid var(--border-mid);
    border-radius: var(--r);
    box-shadow: var(--sh-lg);
    z-index: 200;
    overflow: hidden;
    animation: fadeDown .12s ease;
}
@keyframes fadeDown { from { opacity:0; transform:translateY(-4px) } to { opacity:1; transform:translateY(0) } }

.user-dropdown-item {
    display: flex; align-items: center; gap: .5rem;
    padding: .6rem .85rem;
    font-size: .85rem; color: var(--text-dim);
    text-decoration: none;
    transition: background .1s, color .1s;
    cursor: pointer;
}
.user-dropdown-item:hover { background: rgba(255,255,255,.06); color: var(--text); }
.user-dropdown-item.danger:hover { background: rgba(247,110,110,.08); color: var(--red); }
button.user-dropdown-item { width: 100%; background: none; border: none; cursor: pointer; }

.user-dropdown-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; }
.user-dropdown-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-mid); flex-shrink: 0; }
.user-dropdown-name { font-size: .85rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.menu-overlay {
    position: fixed; inset: 0; z-index: 50;
}

.btn-nav-login {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .85rem;
    background: var(--green);
    border: none; border-radius: var(--r);
    color: #000; font-size: .8rem; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: background .15s, box-shadow .15s;
}
.btn-nav-login:hover { background: var(--green-dim); color: #000; box-shadow: 0 0 12px var(--green-glow); }

/* ── Layout ────────────────────────────────────────────────────── */
main { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 5rem 1rem 4rem; }

.hero-badge {
    display: inline-block;
    padding: .25rem .8rem;
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(0,217,126,.25);
    border-radius: 20px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 3rem; font-weight: 800;
    letter-spacing: -.04em; line-height: 1.1;
    color: var(--text);
    margin-bottom: .875rem;
}
.hero h1 span { color: var(--green); }

.hero p {
    font-size: 1.05rem; color: var(--text-dim);
    max-width: 480px; margin: 0 auto 2rem;
    line-height: 1.75;
}

.hero-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.75rem;
    background: var(--green); color: #000;
    border-radius: var(--r); font-size: .95rem; font-weight: 700;
    text-decoration: none;
    transition: background .15s, box-shadow .15s, transform .1s;
    box-shadow: 0 0 20px var(--green-glow);
}
.hero-cta:hover { background: var(--green-dim); color: #000; transform: translateY(-1px); box-shadow: 0 0 28px var(--green-glow); }

/* GitHub sign-in with the optional "public repositories only" choice */
.gh-signin { display: inline-flex; flex-direction: column; align-items: center; gap: .7rem; }
/* Secondary outlined button — clearly visible, but subordinate to the primary CTA */
.gh-signin-alt {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem 1.15rem;
    color: var(--text); background: transparent;
    border: 1px solid var(--border-mid); border-radius: var(--r);
    font-size: .85rem; font-weight: 600; text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.gh-signin-alt:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }
/* Compact horizontal layout inside the fixed-height (58px) navbar */
.navbar .gh-signin { flex-direction: row; align-items: center; gap: .6rem; }
.navbar .gh-signin-alt { padding: .3rem .8rem; font-size: .8rem; }

.features {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
    margin-top: 3.5rem;
}
.feature-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.4rem; text-align: left;
    transition: border-color .2s;
}
.feature-card:hover { border-color: rgba(0,217,126,.3); }

.feature-icon {
    width: 36px; height: 36px;
    background: var(--green-bg);
    border: 1px solid rgba(0,217,126,.2);
    border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: .75rem;
}
.feature-card h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.feature-card p  { font-size: .82rem; color: var(--text-dim); line-height: 1.65; }

/* ── Landing sections ──────────────────────────────────────────── */
.section {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}
.section h2 {
    font-size: 1.6rem; font-weight: 800;
    letter-spacing: -.03em; margin-bottom: .75rem;
    color: var(--text);
}
.section > p {
    font-size: .95rem; color: var(--text-dim);
    line-height: 1.75;
}

.steps {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
    margin-top: 2.5rem;
}
.step-number {
    width: 28px; height: 28px;
    background: var(--green-bg);
    border: 1px solid rgba(0,217,126,.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800; color: var(--green);
    margin-bottom: .75rem;
}

.differentiator {
    max-width: 680px;
    margin: 1rem auto 0;
    padding: 2.25rem 1.75rem;
    background: var(--green-bg);
    border: 1px solid rgba(0,217,126,.25);
    border-radius: var(--r-lg);
    text-align: center;
}
.differentiator h2 { font-size: 1.35rem; font-weight: 800; margin: .75rem 0 .6rem; color: var(--text); }
.differentiator p { font-size: .92rem; color: var(--text-dim); line-height: 1.75; max-width: 520px; margin: 0 auto; }

.final-cta { text-align: center; padding: 4rem 1rem 3rem; }
.final-cta h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .6rem; }
.final-cta p { font-size: .95rem; color: var(--text-dim); margin-bottom: 1.75rem; }

/* ── Secondary/outline button ──────────────────────────────────── */
.btn-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.4rem;
    background: transparent; color: var(--text);
    border: 1px solid var(--border-mid); border-radius: var(--r);
    font-size: .9rem; font-weight: 600; text-decoration: none;
    transition: border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* ── Pricing ───────────────────────────────────────────────────── */
.pricing {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
    margin-top: 2rem; text-align: left;
}
.pricing-card {
    position: relative;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.4rem;
}
.pricing-card.featured { border-color: rgba(0,217,126,.4); background: var(--green-bg); }
.pricing-tag {
    position: absolute; top: -.7rem; right: 1rem;
    background: var(--green); color: #000;
    font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
    padding: .2rem .6rem; border-radius: 999px;
}
.pricing-name { font-size: .95rem; font-weight: 700; color: var(--text); }
.pricing-price { font-size: 2rem; font-weight: 800; color: var(--text); margin: .4rem 0 1rem; }
.pricing-price span { font-size: .85rem; font-weight: 600; color: var(--text-faint); margin-left: .3rem; }
.pricing-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.pricing-features li { position: relative; padding-left: 1.4rem; font-size: .85rem; color: var(--text-dim); line-height: 1.5; }
.pricing-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.pricing-note { font-size: .85rem; color: var(--text-dim); line-height: 1.7; margin: 1.5rem auto 0; max-width: 560px; }

/* ── Guide page ────────────────────────────────────────────────── */
.guide { max-width: 900px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.guide-header { text-align: center; max-width: 620px; margin: 1rem auto 3.5rem; }
.guide-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: .9rem 0 .6rem; }
.guide-header p { font-size: .98rem; color: var(--text-dim); line-height: 1.7; }
/* Stacked: a centered text column, then full-width screenshots below. */
.guide-step { margin-bottom: 4rem; }
.guide-step-text { max-width: 640px; margin: 0 auto 1.75rem; }
.guide-step-num {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--green-bg); border: 1px solid rgba(0,217,126,.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--green); margin: 0 auto .9rem;
}
.guide-step-text h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .6rem; text-align: center; }
.guide-step-text p { font-size: .92rem; color: var(--text-dim); line-height: 1.7; margin-bottom: .7rem; }
.guide-step-text p:last-child { margin-bottom: 0; }
/* Screenshots stack full-width under the text: each is a bulleted point + its terminal frame. */
.guide-shots { display: flex; flex-direction: column; gap: 2.25rem; }
.guide-shot-point {
    position: relative; padding-left: 1.4rem; margin-bottom: .7rem;
    font-size: .95rem; color: var(--text); line-height: 1.6;
}
.guide-shot-point::before {
    content: ""; position: absolute; left: 0; top: .5em;
    width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.guide-figure {
    background: var(--surface-1); border: 1px solid var(--border-mid);
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.guide-figure-bar {
    display: flex; gap: .4rem; align-items: center;
    padding: .6rem .8rem; background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.guide-figure-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-mid); }
.guide-figure-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
/* Screenshot sits directly under the terminal bar, filling the frame. */
.guide-figure-img { display: block; width: 100%; height: auto; }
.gm-repo { font-size: .8rem; color: var(--text-dim); font-weight: 600; padding-bottom: .3rem; }
.gm-skill { display: flex; align-items: center; justify-content: space-between; padding: .5rem .7rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); font-size: .85rem; font-weight: 600; }
.gm-dots { display: inline-flex; gap: 3px; }
.gm-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-mid); }
.gm-dots i.on { background: var(--green); }
.gm-cert-top { font-size: .7rem; color: var(--text-faint); letter-spacing: .03em; }
.gm-cert-title { font-size: 1.1rem; font-weight: 800; margin: .1rem 0 .6rem; }
.gm-cert-row { display: flex; align-items: center; justify-content: space-between; padding: .5rem .7rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); font-size: .85rem; }
.gm-cert-row b { color: var(--green); font-size: .78rem; }
.gm-li-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; margin-bottom: .3rem; }
.gm-li-logo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: #0a66c2; color: #fff; border-radius: 4px; font-size: .7rem; font-weight: 800; }
.gm-li-item { padding: .7rem .8rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); }
.gm-li-name { font-weight: 700; font-size: .88rem; }
.gm-li-org { font-size: .8rem; color: var(--text-dim); margin: .1rem 0 .5rem; }
.gm-li-link { font-size: .8rem; color: var(--green); font-weight: 600; }
.guide-cta { text-align: center; padding: 2rem 1rem 1rem; }
.guide-cta h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.25rem; }

@media (max-width: 640px) {
    .pricing { grid-template-columns: 1fr; }
}

/* ── Page header ───────────────────────────────────────────────── */
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: .2rem; }
.page-header p  { font-size: .875rem; color: var(--text-dim); }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600; font-size: .95rem;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--green); font-size: 1.25rem; font-weight: 400; line-height: 1;
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--green); }
.faq-answer { padding: 0 1.25rem 1.15rem; color: var(--text-dim); font-size: .875rem; line-height: 1.7; }
.faq-answer p { margin: 0 0 .6rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ol, .faq-answer ul { margin: .4rem 0 .6rem; padding-left: 1.3rem; }
.faq-answer li { margin: .3rem 0; }
.faq-answer a { color: var(--green); }
.faq-answer code {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 4px; padding: .05rem .35rem;
    font-family: 'Menlo', 'Consolas', monospace; font-size: .8rem; color: var(--green);
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
    max-width: 820px; margin: 0 auto; padding: 1.5rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    border-top: 1px solid var(--border);
    font-size: .8rem; color: var(--text-faint);
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--green); }

/* Legal pages (legal notice, privacy, cookies, terms) */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-updated { font-size: .82rem; color: var(--text-faint); margin-bottom: 1.75rem; }
.legal-content h2 { font-size: 1.1rem; font-weight: 700; margin: 1.9rem 0 .6rem; }
.legal-content p { font-size: .9rem; color: var(--text-dim); line-height: 1.75; margin-bottom: .8rem; }
.legal-content ul, .legal-content ol { margin: 0 0 .9rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.legal-content li { font-size: .9rem; color: var(--text-dim); line-height: 1.7; }
.legal-content strong { color: var(--text); }
.legal-content code { background: var(--surface-2); padding: .05rem .3rem; border-radius: 4px; font-size: .82em; }
.legal-beta {
    padding: .7rem 1rem; margin-bottom: 1.5rem;
    background: var(--green-bg); border: 1px solid rgba(0,217,126,.25);
    border-radius: var(--r); color: var(--text-dim); font-size: .85rem; line-height: 1.6;
}
.legal-beta strong { color: var(--green); }

/* ── Verify card ───────────────────────────────────────────────── */
.verify-form {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    display: flex; flex-direction: column; gap: 1.5rem;
}

.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--text-dim); letter-spacing: .03em; text-transform: uppercase; }

.field select {
    padding: .6rem 2.25rem .6rem .8rem;
    border: 1px solid var(--border-mid);
    border-radius: var(--r);
    background: var(--surface-2);
    color: var(--text);
    font-size: .9rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23606060' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    transition: border-color .15s;
    cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.field select option { background: var(--surface-2); }

.field input[type="text"],
.field input[type="number"] {
    padding: .6rem .8rem;
    border: 1px solid var(--border-mid);
    border-radius: var(--r);
    background: var(--surface-2);
    color: var(--text);
    font-size: .9rem;
    transition: border-color .15s, box-shadow .15s;
}
.field input[type="text"]::placeholder,
.field input[type="number"]::placeholder { color: var(--text-faint); }
.field input[type="text"]:focus,
.field input[type="number"]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
/* Chrome/Safari's default number spinner doesn't match the dark theme */
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { filter: invert(0.7); }

.field textarea {
    padding: .6rem .8rem;
    border: 1px solid var(--border-mid);
    border-radius: var(--r);
    background: var(--surface-2);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea::placeholder { color: var(--text-faint); }
.field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }

.field-optional { text-transform: none; font-weight: 400; color: var(--text-faint); }

/* ── Skill input ───────────────────────────────────────────────── */
.skill-input-wrapper { position: relative; }

.skill-search-box {
    display: flex; align-items: center;
    gap: .375rem; flex-wrap: wrap;
    padding: .45rem .7rem;
    min-height: 44px;
    border: 1px solid var(--border-mid);
    border-radius: var(--r);
    background: var(--surface-2);
    cursor: text;
    transition: border-color .15s, box-shadow .15s;
}
.skill-search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }

.skill-tag {
    display: inline-flex; align-items: center; gap: .2rem;
    padding: .18rem .55rem;
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(0,217,126,.25);
    border-radius: 4px;
    font-size: .75rem; font-weight: 600;
    white-space: nowrap;
}
/* Selected skills list (below the search box) with the per-skill Deep Verify toggle */
.selected-skills { display: flex; flex-direction: column; gap: .4rem; margin-top: .75rem; }
.selected-skill-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.selected-skill-item.deep { border-color: rgba(0,217,126,.4); }
.selected-skill-row {
    display: flex; align-items: center; gap: .6rem;
    padding: .45rem .7rem;
}
.deep-focus { padding: 0 .7rem .55rem; display: flex; flex-direction: column; gap: .25rem; }
.deep-focus-input {
    width: 100%; box-sizing: border-box; font-size: .8rem; padding: .4rem .55rem;
    background: var(--bg); border: 1px solid var(--border-mid); border-radius: var(--r); color: var(--text);
}
.deep-focus-input:focus { outline: none; border-color: var(--green); }
.deep-focus-hint { font-size: .72rem; color: var(--text-faint); }
.selected-skill-name { flex: 1; font-size: .85rem; font-weight: 600; }
.deep-toggle {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .28rem .6rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text-dim);
    font-size: .72rem; font-weight: 600;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
}
.deep-toggle:hover { border-color: var(--green); color: var(--green); }
.deep-toggle.on { background: var(--green-bg); border-color: var(--green); color: var(--green); }
/* Per-skill price — a plain label, not a button (no hover/pointer). */
.skill-price {
    font-size: .75rem; font-weight: 700; color: var(--text-dim);
    font-variant-numeric: tabular-nums; white-space: nowrap;
    padding: .24rem .5rem;
    border: 1px solid var(--border); border-radius: var(--r);
}
.skill-price.free { color: var(--green); border-color: rgba(0,217,126,.4); background: var(--green-bg); }
.free-allowance-note { font-size: .82rem; color: var(--text-dim); margin: 0 0 .7rem; }
.free-allowance-note strong { color: var(--green); }
.selected-skill-remove {
    background: none; border: none; cursor: pointer;
    color: var(--text-faint); font-size: 14px; line-height: 1;
    display: flex; align-items: center; padding: 0;
    transition: color .12s;
}
.selected-skill-remove:hover { color: #f87171; }

.skill-tag-remove {
    background: none; border: none; cursor: pointer;
    color: var(--green); opacity: .5;
    font-size: 13px; line-height: 1; padding: 0; margin-left: 2px;
    display: flex; align-items: center;
    transition: opacity .1s;
}
.skill-tag-remove:hover { opacity: 1; }

/* Muted note when Deep Verification was requested but not earned */
.deep-verify-note { font-size: .72rem; color: var(--text-faint); margin-top: .3rem; }

/* "What this repository demonstrates" — bullet summary of the analysis */
.skill-summary { margin-top: .55rem; }
.skill-summary-title {
    font-size: .68rem; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; color: var(--text-faint);
}
.skill-summary ul {
    margin: .3rem 0 0; padding-left: 1.1rem;
    list-style: disc;
}
.skill-summary li {
    font-size: .78rem; color: var(--text-dim);
    margin: .18rem 0; line-height: 1.35;
}

/* "Deep Verified" badge on results */
.deep-verified-badge {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .12rem .45rem;
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 4px;
    font-size: .68rem; font-weight: 700;
    letter-spacing: .02em;
    margin-left: .4rem;
}

.skill-input {
    border: none; outline: none; background: transparent;
    font-size: .875rem; color: var(--text);
    min-width: 140px; flex: 1;
    padding: .1rem 0;
}
.skill-input::placeholder { color: var(--text-faint); }

.skill-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--surface-2);
    border: 1px solid var(--border-mid);
    border-radius: var(--r);
    box-shadow: var(--sh-lg);
    z-index: 300;
    max-height: 260px; overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}

.skill-dropdown-section {
    padding: .35rem .8rem .2rem;
    font-size: .65rem; font-weight: 700;
    color: var(--text-faint); letter-spacing: .07em; text-transform: uppercase;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
}

.skill-dropdown-item {
    padding: .5rem .8rem;
    font-size: .85rem; color: var(--text);
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; gap: .5rem;
    transition: background .08s, color .08s;
}
.skill-dropdown-item:hover { background: var(--green-bg); color: var(--green); }

.skill-cat {
    font-size: .65rem; color: var(--text-faint); font-weight: 500;
    letter-spacing: .03em; white-space: nowrap; flex-shrink: 0;
}

.skill-dropdown-add {
    padding: .55rem .8rem;
    font-size: .85rem; color: var(--green); font-weight: 600;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: .4rem;
    cursor: pointer;
    transition: background .08s;
    background: var(--surface-2);
}
.skill-dropdown-add:hover { background: var(--green-bg); }
.skill-dropdown-add-hint { color: var(--text-faint); font-weight: 400; margin-right: .3rem; }

.skill-hint { font-size: .75rem; color: var(--text-faint); margin-top: .3rem; }

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.modal {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .65rem 1.4rem;
    background: var(--green); color: #000;
    border: none; border-radius: var(--r);
    font-size: .9rem; font-weight: 700;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
    box-shadow: 0 0 12px var(--green-glow);
}
.btn-primary:hover { background: var(--green-dim); box-shadow: 0 0 20px var(--green-glow); }
.btn-primary:disabled { background: var(--surface-3); color: var(--text-faint); box-shadow: none; cursor: not-allowed; }

/* ── Status badges ─────────────────────────────────────────────── */
.status-badge {
    display: inline-flex; align-items: center;
    padding: .18rem .55rem;
    border-radius: 4px;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    border: 1px solid transparent;
}
.status-pending    { background: rgba(245,197,66,.1);  color: var(--yellow); border-color: rgba(245,197,66,.2); }
.status-processing { background: rgba(77,158,247,.1);  color: var(--blue);   border-color: rgba(77,158,247,.2); }
.status-completed  { background: var(--green-bg);      color: var(--green);  border-color: rgba(0,217,126,.25); }
.status-failed     { background: rgba(247,110,110,.1); color: var(--red);    border-color: rgba(247,110,110,.2); }

/* ── Error ─────────────────────────────────────────────────────── */
.error-msg {
    display: flex; align-items: flex-start; gap: .5rem;
    padding: .7rem .9rem;
    background: rgba(247,110,110,.08);
    border: 1px solid rgba(247,110,110,.2);
    border-radius: var(--r);
    color: var(--red); font-size: .85rem;
}

/* ── Results ───────────────────────────────────────────────────── */
.results-header { margin-bottom: 2rem; }
.results-header h1 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: .3rem; }
.session-meta {
    font-size: .82rem; color: var(--text-dim);
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    margin-top: .4rem;
}

.skill-results { display: flex; flex-direction: column; gap: .875rem; }

.skill-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.4rem;
    border-left: 3px solid var(--border);
    transition: border-color .2s, box-shadow .2s;
}
.skill-card:hover { box-shadow: var(--sh); }
.skill-card.status-completed  { border-left-color: var(--green); }
.skill-card.status-failed     { border-left-color: var(--red); }
.skill-card.status-processing,
.skill-card.status-pending    { border-left-color: var(--blue); }

.skill-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .8rem;
}
.skill-header h2 { font-size: .975rem; font-weight: 700; }

.rating { display: flex; align-items: center; gap: .3rem; margin-bottom: .7rem; }
.rating-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--surface-3);
}
.rating-dot.active { background: var(--green); box-shadow: 0 0 6px var(--green-glow); }
.rating-label { font-size: .78rem; font-weight: 700; color: var(--green); margin-left: .35rem; }

.justification { font-size: .875rem; color: var(--text-dim); line-height: 1.7; margin-bottom: .4rem; }

.file-list { font-size: .75rem; color: var(--text-faint); }
.file-list summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex; align-items: center; gap: .3rem;
    user-select: none;
}
.file-list summary::-webkit-details-marker { display: none; }
.file-list summary::before {
    content: "+";
    color: var(--green); font-size: .9rem; line-height: 1;
}
.file-list[open] summary::before { content: "\2013"; }
.file-list summary:hover { color: var(--text-dim); }
.file-list ul {
    margin: .4rem 0 0; padding-left: 1.1rem;
    list-style: disc;
}
.file-list li {
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: .72rem; color: var(--text-dim);
    margin: .15rem 0;
    word-break: break-all;
}

/* Rating dot — penalty variant (orange unfilled in the main dot row) */
.rating-dot.penalty {
    border: 2px solid #fb923c !important;
    background: var(--bg) !important;
    box-shadow: none;
}

/* AI penalty row */
.ai-penalty { margin-top: .4rem; }

.tooltip-host {
    display: inline-flex; align-items: center; gap: .35rem;
    position: relative; cursor: default;
}
.tooltip-host:hover .tooltip-text { opacity: 1; pointer-events: auto; transform: translateY(0); }

.ai-penalty-label {
    font-size: .72rem; color: #fb923c;
    text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}

.penalty-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid #fb923c; background: transparent; flex-shrink: 0;
}
.penalty-dot.active { background: #fb923c; }

.tooltip-text {
    position: absolute; bottom: calc(100% + 8px); left: 0;
    min-width: 240px; max-width: 340px;
    background: var(--surface-2);
    border: 1px solid rgba(251,146,60,.35);
    border-radius: var(--r);
    padding: .55rem .75rem;
    font-size: .78rem; line-height: 1.5; color: var(--text-dim);
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    opacity: 0; pointer-events: none;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s;
    z-index: 400; white-space: normal;
}
.tooltip-text::after {
    content: '';
    position: absolute; top: 100%; left: 14px;
    border: 5px solid transparent;
    border-top-color: rgba(251,146,60,.35);
}

/* Rating level colors */
.rating-not-found   { color: #6b7280; }
.rating-no-evidence { color: #6b7280; }
.rating-familiar     { color: #4ade80; }
.rating-proficient   { color: #60a5fa; }
.rating-advanced     { color: #a78bfa; }
.rating-expert       { color: #fb923c; font-weight: 700; }

.analyzing {
    font-size: .85rem; color: var(--text-dim);
    display: flex; align-items: center; gap: .5rem;
}

.share-section {
    margin-top: 1.75rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.2rem 1.4rem;
}
.share-section p { font-size: .82rem; font-weight: 600; color: var(--text-dim); margin-bottom: .5rem; }
.share-section code {
    display: block;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--r); padding: .55rem .8rem;
    font-size: .8rem; color: var(--green);
    word-break: break-all; font-family: 'Menlo', 'Consolas', monospace;
}

/* ── Sync button ───────────────────────────────────────────────── */
.btn-sync {
    display: inline-flex; align-items: center; gap: .35rem;
    background: none; border: 1px solid var(--border);
    border-radius: var(--r); padding: .3rem .65rem;
    font-size: .78rem; color: var(--text-dim); cursor: pointer;
    transition: border-color .15s, color .15s;
}
.btn-sync:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.btn-sync:disabled { opacity: .5; cursor: default; }
.btn-sync .spin { animation: spin .7s linear infinite; }

/* ── Spinner ───────────────────────────────────────────────────── */
.spinner {
    width: 14px; height: 14px;
    border: 2px solid var(--surface-3);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .65s linear infinite;
    display: inline-block; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton ──────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--r);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Dropdown divider ──────────────────────────────────────────── */
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: .25rem 0;
}

/* ── Profile page ──────────────────────────────────────────────── */
.profile-header {
    display: flex; align-items: center; gap: 1.25rem;
    margin-bottom: 2rem;
}
.profile-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--green); color: #000;
    font-size: 1.4rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-header h1 { margin: 0 0 .25rem; font-size: 1.4rem; }
.profile-stats { margin: 0; font-size: .85rem; color: var(--text-dim); }
.dot-sep { margin: 0 .35rem; opacity: .4; }

.profile-fullname { display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; }
.profile-fullname-value { font-size: .85rem; color: var(--text-dim); }
.profile-fullname input[type="text"] {
    padding: .35rem .6rem;
    border: 1px solid var(--border-mid);
    border-radius: var(--r);
    background: var(--surface-2);
    color: var(--text);
    font-size: .85rem;
    max-width: 220px;
}
.profile-fullname input[type="text"]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }

.profile-skills { display: flex; flex-direction: column; gap: .75rem; }

.profile-skill-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.profile-skill-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.profile-skill-name { font-weight: 700; font-size: .95rem; }
.profile-skill-best { display: flex; align-items: center; gap: .6rem; }
.best-label { font-size: .72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .4px; }
.rating-dots-sm { display: flex; gap: 3px; align-items: center; }
.rating-dots-sm .rating-dot { width: 7px; height: 7px; }

.profile-repo-list { display: flex; flex-direction: column; }
.profile-repo-row {
    display: flex; align-items: center; gap: .6rem;
    padding: .6rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    cursor: pointer;
    transition: background .1s;
    font-size: .82rem;
}
.profile-repo-row:last-child { border-bottom: none; }
.profile-repo-row:hover { background: var(--surface-2); }
.profile-repo-name { flex: 1; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-repo-date { color: var(--text-faint); font-size: .75rem; flex-shrink: 0; }
.profile-repo-rating { flex-shrink: 0; font-size: .78rem; }

/* ── History page ──────────────────────────────────────────────── */
.history-list { display: flex; flex-direction: column; gap: .75rem; }

.history-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: flex; flex-direction: column; gap: .6rem;
}
.history-card:hover { border-color: var(--green); background: var(--surface-2); }

.history-card-top {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.history-repo { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.history-repo-name {
    font-weight: 600; font-size: .9rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-card-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.cost-badge {
    font-size: .72rem; font-family: 'Menlo','Consolas',monospace;
    background: rgba(0,217,126,.1); color: var(--green);
    border: 1px solid rgba(0,217,126,.25);
    border-radius: 20px; padding: .2rem .55rem;
}

.history-skills { display: flex; flex-wrap: wrap; gap: .35rem; }

.history-skill-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .75rem; padding: .2rem .6rem;
    border-radius: 20px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-dim);
}
.history-skill-chip.status-chip-completed { border-color: rgba(0,217,126,.3); color: var(--text); }
.history-skill-chip.status-chip-processing { border-color: rgba(251,191,36,.3); color: #fbbf24; }
.history-skill-chip.status-chip-failed { border-color: rgba(248,113,113,.3); color: #f87171; }

.chip-rating { font-weight: 700; color: var(--green); font-size: .72rem; }

.history-meta {
    display: flex; gap: 1rem;
    font-size: .75rem; color: var(--text-faint);
}

.spinner-xs { width: 10px; height: 10px; border-width: 1.5px; }

.skeleton-list { display: flex; flex-direction: column; gap: .75rem; }

.empty-state { text-align: center; padding: 3rem 0; color: var(--text-dim); }

/* ── Certificate view ──────────────────────────────────────────── */
.certificate-view {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    text-align: center;
}

.certificate-issuer {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 2rem;
    font-family: 'Menlo', 'Consolas', monospace;
    color: var(--text-faint);
}
.certificate-issuer-name { color: var(--green); }
.certificate-verified-badge {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--green);
    background: var(--green-bg);
    border: 1px solid rgba(0,217,126,.25);
    border-radius: 20px;
    padding: .25rem .8rem;
}

.certificate-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .5rem; }
.certificate-meta { color: var(--text-dim); font-size: .9rem; margin-bottom: 2rem; }

.certificate-skills { display: flex; flex-direction: column; gap: .875rem; text-align: left; margin-bottom: 2rem; }
.certificate-skill {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.certificate-skill-row {
    display: flex; align-items: center; gap: .5rem;
    padding: .9rem 1.1rem;
}
.certificate-skill-name { flex: 1; font-weight: 700; font-size: .95rem; }
.certificate-skill-right { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
/* Expand/collapse control on the right of each record — hidden in the exported PDF. */
.certificate-skill-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; padding: 0; flex-shrink: 0;
    background: none; border: 1px solid var(--border-mid); border-radius: 6px;
    color: var(--text-dim); cursor: pointer;
    transition: color .15s, border-color .15s;
}
.certificate-skill-toggle:hover { border-color: var(--green); color: var(--green); }
.certificate-skill-toggle .chevron { transition: transform .18s ease; }
.certificate-skill.expanded .certificate-skill-toggle .chevron { transform: rotate(180deg); }
.certificate-skill-summary { display: none; padding: .8rem 1.1rem 1rem; border-top: 1px solid var(--border); }
.certificate-skill.expanded .certificate-skill-summary { display: block; }
.certificate-skill-summary-title {
    display: block; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-faint); margin-bottom: .5rem;
}
.certificate-skill-summary ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.certificate-skill-summary li { font-size: .82rem; color: var(--text-dim); margin: .25rem 0; line-height: 1.45; }

.certificate-footer { font-size: .75rem; color: var(--text-faint); font-family: 'Menlo', 'Consolas', monospace; }

/* On-page the wrapper is invisible (page bg is already dark) so the certificate
   looks unchanged. The A4-portrait framing is applied only while exporting the PDF
   (the .exporting class is toggled by certificate-pdf.js during capture), so the
   export fills the page edge-to-edge without affecting how the page looks. */
.certificate-capture { background: var(--bg); }
.certificate-capture.exporting {
    display: flex; align-items: flex-start; justify-content: center;
    padding: 2rem;
}
.certificate-capture.exporting .certificate-view { width: 100%; }
/* In the exported PDF every skill's summary is shown (expanded), regardless of the on-screen
   state, and the expand/collapse buttons — a screen-only control — are hidden. */
.certificate-capture.exporting .certificate-skill-summary { display: block !important; }
.certificate-capture.exporting .certificate-skill-toggle { display: none !important; }
.certificate-actions { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ── Certificate picker ────────────────────────────────────────── */
.certificate-picker { display: flex; flex-direction: column; gap: .5rem; }
.field-hint { font-size: .8rem; color: var(--text-faint); margin: -.15rem 0 .55rem; line-height: 1.4; }
.certificate-pick-row {
    display: flex; flex-direction: column; gap: .55rem;
    padding: .7rem .9rem;
    background: var(--surface-2);
    border: 1px solid var(--border-mid);
    border-radius: var(--r);
    transition: border-color .15s;
}
.certificate-pick-row:hover,
.certificate-pick-row.selected { border-color: var(--green); }
.certificate-pick-main { display: flex; align-items: center; gap: .7rem; cursor: pointer; }
.certificate-pick-row input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.certificate-pick-name { flex: 1; font-weight: 600; font-size: .9rem; }
/* Per-skill "show summary" sub-toggle, indented under the skill it belongs to */
.certificate-pick-summary {
    display: flex; align-items: center; gap: .5rem; cursor: pointer;
    padding-left: 1.6rem;
    font-size: .8rem; color: var(--text-dim);
}
.certificate-pick-summary input[type="checkbox"] { width: 14px; height: 14px; }

/* ── Credits page ──────────────────────────────────────────────── */
.credits-banner {
    padding: .8rem 1rem; border-radius: var(--r); margin-bottom: 1.25rem;
    background: var(--surface-2); border: 1px solid var(--border-mid);
    font-size: .9rem; color: var(--text-dim);
}
.credits-banner.success { border-color: var(--green); color: var(--text); }
.credits-balance { display: flex; align-items: baseline; gap: .6rem; margin: .5rem 0; }
.credits-balance-num { font-size: 2.6rem; font-weight: 800; color: var(--green); line-height: 1; }
.credits-balance-label { font-size: .95rem; color: var(--text-dim); }
.credits-costs { font-size: .85rem; color: var(--text-faint); margin: .25rem 0 1.5rem; }
.credit-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.credit-pack {
    display: flex; flex-direction: column; align-items: center; gap: .25rem;
    padding: 1.5rem 1rem; text-align: center;
    background: var(--surface-2); border: 1px solid var(--border-mid); border-radius: var(--r);
    transition: border-color .15s;
}
.credit-pack:hover { border-color: var(--green); }
.credit-pack-credits { font-size: 2rem; font-weight: 800; line-height: 1; }
.credit-pack-unit { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.credit-pack-label { font-size: .85rem; color: var(--text-dim); margin-top: .25rem; }
.credit-pack-price { font-size: 1.15rem; font-weight: 700; margin: .5rem 0 .9rem; }
.credit-pack .btn-primary { width: 100%; justify-content: center; }
.credits-history-title { font-size: 1rem; margin: 2rem 0 .75rem; }
.credits-history { display: flex; flex-direction: column; border: 1px solid var(--border-mid); border-radius: var(--r); overflow: hidden; }
.credits-history-row { display: flex; align-items: center; gap: 1rem; padding: .6rem .9rem; font-size: .85rem; }
.credits-history-row:not(:last-child) { border-bottom: 1px solid var(--border-mid); }
.credits-history-when { color: var(--text-faint); white-space: nowrap; }
.credits-history-desc { flex: 1; color: var(--text-dim); }
.credits-history-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.credits-history-delta.pos { color: var(--green); }
.credits-history-delta.neg { color: var(--text-dim); }

.pay-pending-banner {
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1rem; margin: 0 0 1.25rem;
    background: var(--surface-2); border: 1px solid var(--border-mid); border-radius: var(--r);
    font-size: .9rem; color: var(--text-dim);
}
.verify-actions { display: flex; align-items: stretch; gap: .6rem; flex-wrap: wrap; }
/* Full-strength text so the enabled button reads as clickable (not greyed) next to the
   bright primary; the shared .btn-ghost:disabled rule fades it when actually disabled. */
.free-request-btn { display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1.1rem; color: var(--text); font-weight: 600; }
.free-request-sent {
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1rem;
    background: var(--surface-2); border: 1px solid var(--green); border-radius: var(--r);
    font-size: .9rem; color: var(--text-dim);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero h1 { font-size: 2.1rem; }
    .features { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    main { padding: 1.5rem 1rem; }
    .hero { padding: 3rem 0 2.5rem; }
}
