/* Public site styles. Light by default, dark on request or by system. */

:root {
    --bg: #ffffff;
    --bg-soft: #f3f8f4;
    --surface: #ffffff;
    --surface-2: #f5f7f6;
    --ink: #0d1b2a;
    --ink-2: #3a4a5c;
    --muted: #6a7887;
    --line: #e4eae6;
    --line-strong: #cfd8d2;
    --accent: #16a34a;
    --accent-hover: #12893e;
    --accent-ink: #ffffff;
    --accent-soft: #e5f6eb;
    --accent-text: #0f7a36;
    --lime: #84cc16;
    --sky: #0284c7;
    --sky-soft: #e3f2fb;
    --amber-soft: #fdf3e1;
    --amber: #b45309;
    --gold: #a86b05;
    --gold-soft: #fcf2d6;
    --gold-line: #efd28a;
    --gold-grad: linear-gradient(135deg, #f8d77a, #e9ad2c 55%, #d9921b);
    --gold-ink: #3d2700;
    --violet: #7c3aed;
    --violet-soft: #f1eafe;
    --zap-ink: #c2410c;
    --dark-band: #0b1324;
    --code-bg: #0b1324;
    --code-ink: #dbe4f0;
    --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06);
    --shadow: 0 1px 3px rgba(13, 27, 42, 0.06), 0 18px 40px -18px rgba(13, 27, 42, 0.22);
    --score-poor: #dc5a1a;
    --score-fair: #d39b12;
    --score-good: #65a30d;
    --score-very-good: #16a34a;
    --score-excellent: #059669;
    --radius: 20px;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b1324;
        --bg-soft: #0e1a2f;
        --surface: #121f36;
        --surface-2: #17263f;
        --ink: #edf2f9;
        --ink-2: #c3cedd;
        --muted: #8f9db3;
        --line: #213252;
        --line-strong: #2e4266;
        --accent: #22c55e;
        --accent-hover: #4ade80;
        --accent-ink: #052012;
        --accent-soft: rgba(34, 197, 94, 0.13);
        --accent-text: #4ade80;
        --lime: #a3e635;
        --sky: #38bdf8;
        --sky-soft: rgba(56, 189, 248, 0.12);
        --amber-soft: rgba(251, 191, 36, 0.12);
        --amber: #fbbf24;
        --gold: #f5c451;
        --gold-soft: rgba(245, 196, 81, 0.13);
        --gold-line: rgba(245, 196, 81, 0.35);
        --violet: #a78bfa;
        --violet-soft: rgba(167, 139, 250, 0.14);
        --zap-ink: #fb923c;
        --dark-band: #070d1a;
        --code-bg: #070d1a;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 20px 44px -20px rgba(0, 0, 0, 0.7);
        --score-poor: #fb923c;
        --score-fair: #fbbf24;
        --score-good: #a3e635;
        --score-very-good: #4ade80;
        --score-excellent: #34d399;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0b1324;
    --bg-soft: #0e1a2f;
    --surface: #121f36;
    --surface-2: #17263f;
    --ink: #edf2f9;
    --ink-2: #c3cedd;
    --muted: #8f9db3;
    --line: #213252;
    --line-strong: #2e4266;
    --accent: #22c55e;
    --accent-hover: #4ade80;
    --accent-ink: #052012;
    --accent-soft: rgba(34, 197, 94, 0.13);
    --accent-text: #4ade80;
    --lime: #a3e635;
    --sky: #38bdf8;
    --sky-soft: rgba(56, 189, 248, 0.12);
    --amber-soft: rgba(251, 191, 36, 0.12);
    --amber: #fbbf24;
        --gold: #f5c451;
        --gold-soft: rgba(245, 196, 81, 0.13);
        --gold-line: rgba(245, 196, 81, 0.35);
        --violet: #a78bfa;
        --violet-soft: rgba(167, 139, 250, 0.14);
    --zap-ink: #fb923c;
    --dark-band: #070d1a;
    --code-bg: #070d1a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 20px 44px -20px rgba(0, 0, 0, 0.7);
    --score-poor: #fb923c;
    --score-fair: #fbbf24;
    --score-good: #a3e635;
    --score-very-good: #4ade80;
    --score-excellent: #34d399;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }

body.site {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; background: var(--surface-2); border-radius: 6px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* The customer bot check's spot (src/turnstile.php): its widget is invisible, so keep it out of the layout */
.bot-check {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

sup.tm { font-size: 0.5em; vertical-align: super; line-height: 0; font-weight: 600; }

/* ---------- Confidential banner (playground only) ---------- */
.site-top { position: sticky; top: 0; z-index: 30; }

.leak-banner {
    background: #b91c1c;
    color: #fff7d6;
    font-size: 0.82rem;
    border-bottom: 5px solid transparent;
    border-image: repeating-linear-gradient(-45deg, #facc15 0 12px, #b91c1c 12px 24px) 5;
}

.leak-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 7px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px 20px;
    flex-wrap: wrap;
}

.leak-text { margin: 0; }
.leak-text strong { color: #facc15; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 6px; }
.leak-short { display: none; }
.leak-actions { display: flex; align-items: center; gap: 14px; }
.leak-actions form { margin: 0; }
.leak-timer { font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0.9; }
.leak-timer.soon { color: #facc15; font-weight: 700; opacity: 1; }

.leak-exit {
    padding: 5px 12px;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #450a0a;
    background: #facc15;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.leak-exit:hover { background: #fde047; }

@media (max-width: 700px) {
    .leak-inner { padding: 7px 16px; }
    .leak-long { display: none; }
    .leak-short { display: inline; }
}

.watermark { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }

.watermark-inner {
    position: absolute;
    inset: -50%;
    display: flex;
    flex-wrap: wrap;
    gap: 90px 140px;
    align-content: flex-start;
    transform: rotate(-24deg);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--ink);
    opacity: 0.035;
    user-select: none;
}

.watermark span { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
    position: relative;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: saturate(1.5) blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: inline-flex; color: var(--accent); }
.brand-name { display: flex; flex-direction: column; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.brand-name b { margin-top: 3px; font-size: 1.15rem; font-weight: 800; }

.grad {
    background: linear-gradient(90deg, var(--accent), var(--lime));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav { display: flex; gap: 2px; margin-right: auto; }

.site-nav a {
    padding: 8px 14px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    border-radius: 999px;
}

.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }

.header-tools { display: flex; align-items: center; gap: 10px; }

.theme-toggle, .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ink-2);
    background: var(--surface-2);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.theme-toggle[hidden], .nav-toggle[hidden] { display: none; }
.theme-toggle:hover, .nav-toggle:hover { color: var(--ink); }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: none; }
    :root:not([data-theme="light"]) .icon-moon { display: block; }
}

.nav-toggle { display: none; }

@media (max-width: 980px) {
    .header-inner { gap: 16px; }
    .nav-toggle:not([hidden]) { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 10px 16px 18px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 16px; }
    .header-tools { margin-left: auto; }
}

@media (max-width: 520px) { .header-tools .header-cta { display: none; } }   /* beats .btn, which comes later */

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-primary { color: var(--accent-ink); background: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-white { color: #0b1324; background: #fff; }
.btn-white:hover { background: #ecfdf3; }
.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-white:hover { border-color: #fff; }

/* ---------- Type ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 14px 6px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-text);
    background: var(--accent-soft);
    border-radius: 999px;
}

.pill-dot { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--accent); border-radius: 50%; }

.eyebrow { margin: 0 0 12px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }

.display, .h1, .h2, .h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.display { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.02; }
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.06; }
.h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.h3 { margin-bottom: 8px; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.02em; }
.lead { margin: 18px 0 0; font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.fine { font-size: 0.8rem; line-height: 1.55; color: var(--muted); }
.center { text-align: center; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

@media (max-width: 700px) {
    .section { padding: 64px 0; }
    .section-sm { padding: 40px 0; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card p { margin: 0; color: var(--ink-2); }
.card .h3 { margin-top: 18px; }
.section-soft .card { box-shadow: var(--shadow-sm); }

.icon-badge {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-text);
    background: var(--accent-soft);
    border-radius: 14px;
}

.icon-badge.sky { color: var(--sky); background: var(--sky-soft); }
.icon-badge.amber { color: var(--amber); background: var(--amber-soft); }

.ticks { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks li::before {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%2316a34a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ticks b { color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: 32px; }
    .split.reverse > :first-child { order: 0; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; padding: 64px 0 88px; background: radial-gradient(900px 480px at 85% 0%, var(--accent-soft), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
@media (max-width: 940px) {
    .hero { padding: 40px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

.search {
    display: flex;
    gap: 8px;
    margin-top: 32px;
    padding: 8px;
    max-width: 560px;
    background: var(--surface);
    border: 2px solid var(--line-strong);
    border-radius: 999px;
    box-shadow: var(--shadow);
    transition: border-color 0.15s;
}

.search:focus-within { border-color: var(--accent); }
.search-icon { display: inline-flex; align-items: center; padding-left: 14px; color: var(--muted); }

.search input {
    flex: 1;
    min-width: 0;
    padding: 10px 6px;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: none;
}

.search input::placeholder { color: var(--muted); font-weight: 600; }

@media (max-width: 540px) {
    .search { flex-wrap: wrap; border-radius: 24px; }
    .search input { flex-basis: calc(100% - 48px); }
    .search .btn { width: 100%; }
}

.form-error { max-width: 560px; margin: 12px 0 0; padding: 10px 16px; font-size: 0.9rem; font-weight: 600; color: #b91c1c; background: rgba(220, 38, 38, 0.09); border-radius: 12px; }

.perks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.perks li { display: inline-flex; align-items: center; gap: 8px; }
.perks svg { color: var(--accent); flex-shrink: 0; }
.perks .price { color: var(--muted); font-weight: 500; }
.perks .price b { color: var(--ink); }

/* Phone number -> person + score demo */
.lookup { position: relative; max-width: 460px; margin-left: auto; width: 100%; }
@media (max-width: 940px) { .lookup { margin: 0 auto; } }

.lookup-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.lookup-phone .icon-badge { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.lookup-number { min-height: 1.5em; }
.lookup-caret { width: 2px; height: 1.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.lookup-arrow { display: flex; justify-content: center; padding: 10px 0; color: var(--accent); }

.result-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.result-rows { display: grid; gap: 14px; }
.result-row { display: flex; align-items: center; gap: 14px; }
.result-row .icon-badge { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.result-row small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.result-row b { display: block; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.result-score { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.result-score .gauge { width: 132px; flex-shrink: 0; }
.result-score-text small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.result-score-text strong { display: block; margin-top: 2px; font-size: 1.15rem; color: var(--band, var(--accent)); }
.result-score-text .fine { margin: 4px 0 0; }

.fade { transition: opacity 0.35s, transform 0.35s; }
.lookup.loading .fade { opacity: 0; transform: translateY(4px); }

/* ---------- Gauge + score bands ---------- */
.gauge { display: block; width: 100%; }
.gauge-track { stroke: var(--surface-2); }
.gauge-fill { stroke: var(--band, var(--accent)); transition: stroke-dasharray 0.9s cubic-bezier(.2, .8, .2, 1); }
.gauge-value { font-size: 50px; font-weight: 800; letter-spacing: -2px; fill: var(--ink); font-family: var(--sans); }
.gauge-range { font-size: 11px; font-weight: 600; fill: var(--muted); font-family: var(--sans); }

.band-poor { --band: var(--score-poor); }
.band-fair { --band: var(--score-fair); }
.band-good { --band: var(--score-good); }
.band-very-good { --band: var(--score-very-good); }
.band-excellent { --band: var(--score-excellent); }

/* ---------- Logos ---------- */
.logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e3e8e5;
    border-radius: 14px;
}

.logo-chip img { height: 24px; width: auto; }
.logo-chip.lg { padding: 16px 26px; border-radius: 18px; }
.logo-chip.lg img { height: 34px; }
.logo-chip.sm { padding: 6px 10px; border-radius: 10px; }
.logo-chip.sm img { height: 15px; }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.partner-logos.center { justify-content: center; }

.powered-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.powered-strip p { margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- "One number, three answers" ---------- */
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.answer { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.answer .h3 { margin-top: 18px; }
.answer p { margin: 0; color: var(--ink-2); }
.answer-sample { margin-top: 18px; padding: 12px 14px; font-weight: 800; background: var(--surface-2); border-radius: 12px; }
.answer-sample small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .answers { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    font-weight: 800;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 50%;
}
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 64px 0 72px; background: radial-gradient(800px 420px at 90% 0%, var(--accent-soft), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.page-hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-hero .btn { margin-top: 28px; }
@media (max-width: 860px) {
    .page-hero { padding: 40px 0 48px; }
    .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .page-hero-photo { aspect-ratio: 16 / 9; }
}

.photo-court { object-position: 50% 30%; }
.photo-keys  { object-position: 50% 40%; }
.photo-desk  { object-position: 50% 70%; }
.photo-phone { object-position: 60% 35%; }

/* ---------- Comparison ---------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.compare thead th.us { color: var(--accent-text); }
.compare tbody th { font-weight: 700; color: var(--ink); width: 30%; }
.compare td { color: var(--ink-2); }
.compare td.us { color: var(--ink); font-weight: 700; background: var(--accent-soft); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* ---------- Score scale ---------- */
.scale-bar { display: grid; grid-template-columns: 280fr 90fr 70fr 60fr 50fr; gap: 4px; height: 14px; }
.scale-bar span { border-radius: 999px; }
.scale-bar span:nth-child(1) { background: var(--score-poor); }
.scale-bar span:nth-child(2) { background: var(--score-fair); }
.scale-bar span:nth-child(3) { background: var(--score-good); }
.scale-bar span:nth-child(4) { background: var(--score-very-good); }
.scale-bar span:nth-child(5) { background: var(--score-excellent); }
.scale-labels { display: grid; grid-template-columns: 280fr 90fr 70fr 60fr 50fr; gap: 4px; margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.scale-labels b { display: block; color: var(--ink); font-size: 0.88rem; }
@media (max-width: 640px) {
    .scale-labels { grid-template-columns: 1fr 1fr; gap: 10px; }
    .scale-bar { grid-template-columns: repeat(5, 1fr); }
}

.factor { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.factor + .factor { margin-top: 10px; }
.factor b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-text); }
.factor h3 { margin: 0; font-size: 1rem; }
.factor p { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Report (sample) ---------- */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.report-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; padding: 32px; border-bottom: 1px solid var(--line); }
.report-tag { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; padding: 4px 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border-radius: 999px; }
.report-score { text-align: center; }
.report-score .gauge { max-width: 240px; margin: 0 auto; }
.report-score strong { display: block; margin-top: 4px; font-size: 1.1rem; font-weight: 800; color: var(--band, var(--accent)); }
.report-score .fine { margin: 6px 0 0; }
.report-body { padding: 32px; }
.report h3.rh { margin: 0 0 14px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 32px; }
.tile { padding: 16px; background: var(--surface-2); border-radius: 14px; }
.tile b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.tile span { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.tile b small { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.tile.is-bad b { color: #c2410c; }
:root[data-theme="dark"] .tile.is-bad b { color: #fb923c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile.is-bad b { color: #fb923c; } }

.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.reasons li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--ink-2); }
.reasons li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--score-fair); }

.debt-row { display: grid; grid-template-columns: 120px 1fr 80px; gap: 12px; align-items: center; padding: 5px 0; font-size: 0.9rem; }
.debt-row span:first-child { color: var(--ink-2); }
.debt-row b { text-align: right; font-variant-numeric: tabular-nums; }
.debt-bar { width: 100%; height: 10px; display: block; }
.debt-bar rect.bg { fill: var(--surface-2); }
.debt-bar rect.fg { fill: var(--accent); }

.addon { position: relative; margin-top: 32px; padding: 24px; border: 2px dashed var(--line-strong); border-radius: 18px; overflow: hidden; }
.addon-rows { display: grid; gap: 10px; filter: blur(5px); opacity: 0.6; user-select: none; pointer-events: none; }
.addon-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; font-weight: 700; }
.addon-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; text-align: center; }
.addon-cta b { font-size: 1.05rem; }
.addon-cta span { max-width: 360px; font-size: 0.88rem; color: var(--ink-2); }
.addon-cta .icon-badge { margin-bottom: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }

.report-foot { padding: 14px 32px; font-size: 0.8rem; color: var(--muted); background: var(--surface-2); }

@media (max-width: 860px) {
    .report-top { grid-template-columns: 1fr; }
    .report-cols { grid-template-columns: 1fr; }
    .tiles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .report-top, .report-body { padding: 20px; }
    .report-foot { padding: 14px 20px; }
    .debt-row { grid-template-columns: 96px 1fr 72px; }
}

/* ---------- Dark CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 56px; background: var(--dark-band); color: #fff; border-radius: 28px; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band .h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.78); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; border-radius: 22px; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; }
.faq-toc { position: sticky; top: 150px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.faq-toc a { padding: 8px 14px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 0.92rem; border-radius: 999px; }
.faq-toc a:hover { background: var(--surface-2); color: var(--ink); }
.faq-group { margin-bottom: 40px; }
.faq-group > h2 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.faq details { margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 1.02rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border-radius: 50%; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--ink-2); }
.faq details > div p { margin: 0 0 10px; }
.faq details a { color: var(--accent-text); }
@media (max-width: 860px) {
    .faq-layout { grid-template-columns: 1fr; gap: 20px; }
    .faq-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Prose (compliance) ---------- */
.doc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 64px; }
.doc-toc { position: sticky; top: 150px; align-self: start; font-size: 0.92rem; }
.doc-toc p { margin: 0 0 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.doc-toc ol { margin: 0; padding: 0; list-style: none; }
.doc-toc a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.doc-toc a:hover { color: var(--accent-text); }
@media (max-width: 900px) {
    .doc-layout { grid-template-columns: 1fr; gap: 24px; }
    .doc-toc { position: static; }
}

.prose { max-width: 740px; }
.prose h2 { margin: 44px 0 10px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 8px 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent-text); }
/* The CFPB's Notice to Users of Consumer Reports (src/views/fcra_user_notice.php, on the Compliance page) */
.fcra-notice { margin-top: 18px; padding: 24px 26px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; font-size: 0.94rem; }
.fcra-notice h3 { margin: 28px 0 8px; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.fcra-notice h4 { margin: 20px 0 6px; font-size: 0.98rem; font-weight: 800; }
.fcra-notice .fcra-notice-title { margin-top: 18px; font-size: 1.2rem; }
.fcra-notice-pre { font-style: italic; }
.fcra-cites { overflow-x: auto; }
.fcra-cites table { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 0.9rem; }
.fcra-cites th, .fcra-cites td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.fcra-cites th { color: var(--ink); font-weight: 800; }
@media (max-width: 600px) { .fcra-notice { padding: 18px 16px; } }

.note { padding: 18px 22px; background: var(--accent-soft); border-radius: 16px; }
.note p { margin: 0; color: var(--ink); }
.note.amber { background: var(--amber-soft); }

/* ---------- API ---------- */
.code { margin: 0; padding: 22px 24px; background: var(--code-bg); color: var(--code-ink); border-radius: 18px; font-family: var(--mono); font-size: 0.84rem; line-height: 1.7; overflow-x: auto; }
.code .k { color: #93c5fd; }
.code .s { color: #86efac; }
.code .n { color: #fcd34d; }
.code .c { color: #7c8aa3; }
.code-label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.http-verb { padding: 3px 9px; font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 999px; }
.api-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .api-grid { grid-template-columns: 1fr; } }

.spec { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec th, .spec td { padding: 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec th { width: 44%; padding-right: 16px; font-family: var(--mono); font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.spec td { color: var(--ink-2); overflow-wrap: anywhere; }
.spec th { overflow-wrap: anywhere; }
.spec .req { display: inline-block; margin-left: 6px; padding: 1px 7px; font-family: var(--sans); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border-radius: 999px; }
.spec th .http-verb { margin-right: 6px; font-size: 0.68rem; }
.http-verb.get { background: var(--sky); color: var(--accent-ink); }

/* API page: hero console */
.api-hero { padding-bottom: 80px; overflow: hidden; }
.api-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.api-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.api-hero .api-hero-actions .btn { margin-top: 0; }
.api-hero-logos { margin-top: 32px; }
.api-hero-soon { display: inline-flex; align-items: center; gap: 8px; }
.api-hero-soon small, .soon-badge { padding: 4px 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border-radius: 999px; white-space: nowrap; }

.api-console-wrap { position: relative; padding: 34px 0 44px 24px; }
.api-console { overflow: hidden; background: var(--code-bg); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; box-shadow: 0 34px 70px -28px rgba(11, 19, 36, 0.6); transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); }
.api-console-bar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; font-family: var(--mono); font-size: 0.8rem; color: #9fb0c8; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.api-dots { display: inline-flex; gap: 6px; }
.api-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.api-dots i:nth-child(2) { background: #febc2e; }
.api-dots i:nth-child(3) { background: #28c840; }
.api-ok { margin-left: auto; padding: 2px 9px; font-weight: 700; color: #86efac; background: rgba(34, 197, 94, 0.14); border-radius: 999px; }
.api-console-code { padding: 20px 22px 26px; font-size: 0.78rem; border-radius: 0; }

.api-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); animation: api-bob 6s ease-in-out infinite; }
.api-float small { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.api-float b { display: block; font-size: 1rem; font-weight: 800; color: var(--band, var(--risk)); }
.api-float-score { right: -6px; bottom: 0; }
.api-float-risk { left: 0; top: 0; animation-delay: -3s; }
.api-float-num { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); border-radius: 50%; background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--band) 0 78%, var(--surface-2) 0); }
.api-float-risk .icon-badge { width: 40px; height: 40px; border-radius: 12px; color: var(--risk); background: color-mix(in srgb, var(--risk) 13%, transparent); }
@keyframes api-bob { 50% { transform: translateY(-6px); } }

@media (max-width: 940px) {
    .api-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .api-console-wrap { padding: 30px 0 40px; }
    .api-console { transform: none; }
    .api-float-risk { left: 10px; }
    .api-float-score { right: 10px; }
}
@media (max-width: 520px) { .api-console-code { font-size: 0.7rem; padding: 16px; } .api-console-bar { font-size: 0.72rem; gap: 10px; } }

/* API page: stats strip */
.api-stats-band { background: var(--bg); border-bottom: 1px solid var(--line); }
.api-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.api-stat { padding: 28px 24px; border-left: 1px solid var(--line); }
.api-stat:first-child { padding-left: 0; border-left: 0; }
.api-stat b { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; background: linear-gradient(90deg, var(--accent), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.api-stat span { display: block; margin-top: 4px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
@media (max-width: 860px) {
    .api-stats { grid-template-columns: 1fr 1fr; }
    .api-stat { padding: 20px 0 20px 18px; }
    .api-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
    .api-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* API page: sub-tabs. They stick under the header; api.js measures it into --api-top. */
.api-tabbar { position: sticky; top: var(--api-top, 110px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.api-tabs { position: relative; display: flex; gap: 4px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.api-tabs::-webkit-scrollbar { display: none; }
.api-tabs a { flex-shrink: 0; padding: 9px 18px; font-size: 0.93rem; font-weight: 800; color: var(--ink-2); text-decoration: none; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.api-tabs a:hover { color: var(--ink); background: var(--surface-2); }
.api-tabs a[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); }
.api-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.api-panel { scroll-margin-top: calc(var(--api-top, 110px) + 64px); }
.js [data-api-tabbar] ~ .api-panel { display: none; }
.api-ready .api-panel:not([hidden]) { display: block; }
.api-panel.is-entering { animation: api-in 0.35s ease; }
@keyframes api-in { from { opacity: 0; transform: translateY(8px); } }

/* API page: Zapier band */
.zap-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px; background: linear-gradient(135deg, color-mix(in srgb, #ff4f00 8%, var(--surface)), var(--surface) 62%); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.zap-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.zap-copy .btn { margin-top: 26px; }
.zap-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.api-hero-beta { text-decoration: none; }
.api-hero-beta small { color: #052012; background: #4ade80; }
.api-hero-beta:hover .logo-chip { border-color: var(--line-strong); }
.zap-flows { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.zap-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.zap-flow svg { flex-shrink: 0; color: var(--muted); }
.zap-step { padding: 6px 12px; font-size: 0.85rem; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; }
.zap-step.is-us { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 900px) { .zap-band { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px; border-radius: 22px; } }

/* API page: Sell more demo */
.sell-demo { display: grid; gap: 12px; width: 100%; max-width: 440px; margin-left: auto; }
.sell-demo-q { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.sell-demo-q .icon-badge { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.sell-demo-q small, .risk-demo-rows small { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sell-demo-q b { display: block; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sell-demo-check { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.sell-demo-a { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--band); border-radius: var(--radius); box-shadow: var(--shadow); }
.sell-demo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sell-demo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 0.8rem; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; }
.sell-demo-score { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--band); }
.sell-demo-a > b { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.sell-demo-a ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.sell-demo-a li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-weight: 700; background: var(--surface-2); border-radius: 12px; }
.sell-demo-a li:first-child { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.sell-demo-a li:first-child .chip { background: var(--surface); }
.industry-row { margin-top: 44px; }
.industry-row .chip { padding: 7px 14px; font-size: 0.86rem; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 860px) { .sell-demo, .risk-demo { margin: 0 auto; } }

/* API page: Stop fraud demo */
.risk-demo { width: 100%; max-width: 460px; margin-left: auto; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.risk-demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.risk-demo-head .chip { letter-spacing: 0; text-transform: none; }
.risk-demo-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.risk-demo-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 14px; }
.risk-demo-rows b { display: block; font-weight: 800; overflow-wrap: anywhere; }
.risk-demo .icon-badge { width: 36px; height: 36px; border-radius: 10px; color: var(--risk); background: color-mix(in srgb, var(--risk) 13%, transparent); }
.risk-demo .icon-badge svg { width: 18px; height: 18px; }
.risk-demo-bad { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; font-size: 0.86rem; color: var(--ink-2); border: 1.5px dashed color-mix(in srgb, var(--risk) 55%, transparent); border-radius: 14px; }
.risk-demo-bad .icon-badge { flex-shrink: 0; }

/* API page: bureaus */
.bureau-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bureau { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.bureau.is-live { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.bureau .logo-chip { align-self: stretch; height: 92px; }
.bureau p { margin: 0; color: var(--ink-2); }
.bureau-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; font-size: 0.78rem; font-weight: 800; border-radius: 999px; }
.bureau-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bureau-status.live { color: var(--accent-text); background: var(--accent-soft); }
.bureau-status.live i { animation: api-pulse 2s infinite; }
.bureau-status.ask { color: var(--amber); background: var(--amber-soft); }
@keyframes api-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (max-width: 900px) { .bureau-grid { grid-template-columns: 1fr; } }

.threeb-card { position: relative; overflow: hidden; padding: 40px; color: #fff; background: var(--dark-band); border-radius: 28px; }
.threeb-card::before { content: ""; position: absolute; right: -120px; top: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 70%); }
.threeb-card > * { position: relative; }
.threeb-card .icon-badge { color: #86efac; background: rgba(255, 255, 255, 0.1); }
.threeb-card .h3 { margin-top: 18px; font-size: 1.5rem; color: #fff; }
.threeb-card p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.threeb-card .btn { margin-top: 24px; white-space: normal; text-align: center; overflow-wrap: anywhere; }
@media (max-width: 600px) { .threeb-card { padding: 28px 22px; border-radius: 22px; } }

/* API page: code sample language switch, errors */
.code-tabs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.code-tabs-bar .code-label { margin: 0; }
.code-langs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.code-langs[hidden], .code[hidden] { display: none; }
.code-langs button { padding: 5px 12px; font: inherit; font-size: 0.8rem; font-weight: 800; color: var(--muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.code-langs button:hover { color: var(--ink); }
.code-langs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.api-errors .h3 { margin-top: 0; }

/* API page: The report tab */
.rpt-mock { display: grid; gap: 10px; width: 100%; max-width: 470px; margin-left: auto; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.rpt-mock small { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rpt-mock > div { padding: 14px; background: var(--surface-2); border-radius: 16px; }
.rpt-mock-head { display: flex; align-items: center; gap: 14px; }
.rpt-mock-head b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--band); }
.rpt-ring { flex-shrink: 0; background: radial-gradient(closest-side, var(--surface-2) 78%, transparent 80% 100%), conic-gradient(var(--band) 0 78%, var(--line) 0); }
.rpt-models { display: inline-flex; flex-shrink: 0; margin-left: auto; padding: 3px; background: var(--surface); border-radius: 999px; }
.rpt-models i { padding: 4px 9px; font-size: 0.7rem; font-style: normal; font-weight: 800; color: var(--muted); border-radius: 999px; white-space: nowrap; }
.rpt-models i.on { color: var(--accent-ink); background: var(--accent); }
.rpt-factors { display: grid; gap: 6px; }
.rpt-factors span { display: flex; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.rpt-factors span::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 0.5em; border-radius: 50%; background: var(--score-fair); }
.rpt-income { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.rpt-income b { display: block; font-size: 1.1rem; font-weight: 800; }
.rpt-up { font-size: 0.78rem; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.rpt-income svg { width: 100%; height: 44px; }
.rpt-spark { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rpt-spark-fill { fill: var(--accent-soft); }
.rpt-dti { text-align: right; }
.rpt-debts { display: grid; gap: 7px; }
.rpt-debt { display: grid; grid-template-columns: 104px minmax(0, 1fr) 68px; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.rpt-debt svg { width: 100%; height: 8px; }
.rpt-debt b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.rpt-track { fill: var(--line); }
.rpt-bar { fill: var(--sky); }
.rpt-months { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin: 8px 0; }
.rpt-months i, .rpt-pattern span i { display: block; height: 16px; border-radius: 4px; background: var(--score-very-good); }
.rpt-months i.late, .rpt-pattern span i.late { background: var(--score-fair); }
.rpt-pattern span { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.rpt-pattern span i { width: 10px; height: 10px; border-radius: 3px; }
.rpt-pattern span i.late { margin-left: 8px; }
@media (max-width: 860px) { .rpt-mock { margin: 0 auto; } }
@media (max-width: 420px) {
    .rpt-models { display: none; }
    .rpt-debt { grid-template-columns: 90px minmax(0, 1fr) 60px; }
    .rpt-months { gap: 2px; }
}

/* Credit profile vs. tradelines */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.tier { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.tier-gold { background: linear-gradient(180deg, var(--gold-soft), var(--surface) 55%); border: 2px solid var(--gold-line); box-shadow: var(--shadow); }
.tier-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tier-head .h3 { margin: 10px 0 0; font-size: 1.4rem; }
.tier-badge { display: inline-block; padding: 4px 11px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; white-space: nowrap; }
.tier-badge.gold { color: var(--gold-ink); background: var(--gold-grad); }
.tier-price { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.tier-price small { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.tier-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tier-tiles div { padding: 12px 10px; background: var(--surface-2); border-radius: 12px; }
.tier-tiles b { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tier-tiles span { display: block; margin-top: 2px; font-size: 0.74rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
.tier .ticks { margin-top: 18px; }

.tl-card { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.tl-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.tl-top .icon-badge { width: 38px; height: 38px; border-radius: 11px; }
.tl-top .icon-badge svg { width: 18px; height: 18px; }
.tl-top b, .tl-row b { display: block; font-weight: 800; }
.tl-top small, .tl-row small { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.tl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin: 14px 0 12px; }
.tl-facts dt { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tl-facts dd { margin: 1px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.tl-card .rpt-months { margin: 0; }
.tl-card .rpt-months i { height: 12px; }
.tl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; margin-top: 8px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tl-row > b { font-variant-numeric: tabular-nums; }
.tl-mini { display: grid; grid-template-columns: repeat(12, 7px); gap: 2px; }
.tl-mini i { height: 12px; border-radius: 2px; background: var(--score-very-good); }
.tl-mini i.late { background: var(--score-fair); }
.tl-more { margin: 12px 0 0; font-size: 0.86rem; font-weight: 700; color: var(--gold); text-align: center; }

.tier-compare td, .tier-compare thead th:not(:first-child) { width: 18%; text-align: center; }
.tier-compare .yes { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--accent-text); background: var(--accent-soft); border-radius: 50%; }
.tier-compare td.us .yes { color: var(--accent-ink); background: var(--accent); }
.tier-compare .no { color: var(--muted); }
.tier-compare tbody th { font-weight: 600; }
.tier-compare .tier-total th, .tier-compare .tier-total td { font-size: 1.05rem; font-weight: 800; color: var(--ink); }

@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
    .tier { padding: 20px 16px; }
    .tier-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tl-mini { display: none; }
    .tl-row { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Pricing: tradelines add-on and an example bill */
.price-addon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 20px; padding: 26px 30px; background: linear-gradient(135deg, var(--gold-soft), var(--surface) 70%); border: 2px solid var(--gold-line); border-radius: 24px; }
.price-addon > .icon-badge { color: var(--gold); background: var(--gold-soft); }
.price-addon .h3 { margin: 8px 0 4px; font-size: 1.3rem; }
.price-addon p { margin: 0; color: var(--ink-2); }
.price-addon-price { text-align: right; }
.price-addon-price b { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-addon-price span { display: block; font-weight: 700; color: var(--ink-2); }
.price-addon-price small { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); }
.price-math { max-width: 460px; margin: 20px auto 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.price-math div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.price-math b { color: var(--ink); }
.price-math-total { margin-top: 6px; padding-top: 10px !important; border-top: 1px dashed var(--line-strong); font-weight: 800; }
.price-math-total span { color: var(--ink); }
@media (max-width: 700px) {
    .price-addon { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
    .price-addon-price { text-align: left; }
}

.score-models { max-width: 920px; margin: 0 auto; }
.score-model { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.score-model .logo-chip { align-self: stretch; height: 92px; }
.score-model .h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 0; }
.score-model p { margin: 0; color: var(--ink-2); }

/* API page: MCP server and OAuth */
.mcp-section { padding-top: 0; scroll-margin-top: calc(var(--api-top, 110px) + 64px); }
.mcp-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px; color: #fff; background: radial-gradient(600px 360px at 100% 0%, rgba(124, 58, 237, 0.35), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(34, 197, 94, 0.22), transparent 70%), var(--dark-band); border-radius: 28px; }
.mcp-band .h2 { color: #fff; }
.mcp-band .lead { color: rgba(255, 255, 255, 0.78); }
.mcp-band .soon-badge { color: #fcd34d; background: rgba(252, 211, 77, 0.14); }
.mcp-band .btn { margin-top: 26px; }
.mcp-mark { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; }
.mcp-mark svg { color: #c4b5fd; }
.mcp-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.mcp-tools li { padding: 10px 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; }
.mcp-tools code { padding: 0; font-size: 0.82rem; font-weight: 700; color: #86efac; background: none; }
.mcp-tools span { display: block; margin-top: 2px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.68); }
.mcp-chat { display: grid; gap: 10px; padding: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; }
.mcp-msg { max-width: 88%; padding: 12px 16px; font-size: 0.92rem; line-height: 1.55; border-radius: 18px; }
.mcp-msg.you { justify-self: end; color: #052012; background: #4ade80; border-bottom-right-radius: 6px; font-weight: 600; }
.mcp-msg.agent { justify-self: start; color: #e6edf7; background: rgba(255, 255, 255, 0.1); border-bottom-left-radius: 6px; }
.mcp-msg.agent b { color: #fff; }
.mcp-msg.agent .mcp-good { color: #86efac; }
.mcp-call { justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 12px; font-family: var(--mono); font-size: 0.76rem; color: #c4b5fd; background: rgba(124, 58, 237, 0.16); border: 1px solid rgba(167, 139, 250, 0.3); border-radius: 999px; }
.mcp-call code { padding: 0; color: #fff; background: none; font-weight: 700; }
.mcp-call .search-spinner { width: 12px; height: 12px; border-width: 2px; border-color: rgba(196, 181, 253, 0.3); border-top-color: #c4b5fd; }
.mcp-uses { margin-top: 20px; }
.card a { color: var(--accent-text); font-weight: 700; }
.mcp-chip { gap: 6px; min-height: 46px; font-weight: 800; color: #0b1324; }
.mcp-chip svg { width: 20px; height: 20px; color: #7c3aed; }
@media (max-width: 900px) { .mcp-band { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px; border-radius: 22px; } }
@media (max-width: 520px) { .mcp-tools { grid-template-columns: 1fr; } .mcp-msg { max-width: 100%; } }

/* API page: FAQ tab */
.api-faq .faq-toc { top: calc(var(--api-top, 110px) + 80px); }
.api-faq .faq-group { scroll-margin-top: calc(var(--api-top, 110px) + 80px); }
.faq details > div ul { margin: 0 0 10px; padding-left: 1.2em; }
.faq details > div li { margin: 4px 0; }
.consent-sample { margin: 0 0 12px; padding: 14px 18px; font-size: 0.92rem; font-style: italic; color: var(--ink); background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-name { margin: 0; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.plan.featured .plan-name { color: var(--accent-text); }
.plan-price { margin: 12px 0 0; font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan-price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan-save { align-self: flex-start; margin-top: 10px; padding: 3px 10px; font-size: 0.78rem; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; }
.plan .ticks { margin-bottom: 24px; }
.plan .btn { margin-top: auto; }

/* ---------- Start (checkout placeholder) ---------- */
.notice-card { max-width: 620px; margin: 0 auto; padding: 44px 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); text-align: center; }
.notice-card .phone-big { margin: 20px 0; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.notice-card .btn { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-powered { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-powered p { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.025em; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1.5fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand p { margin: 14px 0 0; max-width: 340px; color: var(--muted); font-size: 0.92rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h2 { margin: 0 0 12px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-cols a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; font-size: 0.93rem; font-weight: 600; }
.footer-cols a:hover, .footer-cols a[aria-current="page"] { color: var(--accent-text); }
.footer-legal { padding-top: 28px; }
.footer-legal p { margin: 0 0 10px; font-size: 0.76rem; line-height: 1.6; color: var(--muted); max-width: 980px; }
.footer-legal a { color: var(--ink-2); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before { transition: none !important; animation: none !important; }
}

/* ---------- Phone details (carrier, line type, caller ID) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; font-size: 0.78rem; font-weight: 700; line-height: 1.3; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.chip.line { color: var(--sky); background: var(--sky-soft); }
.chip.cnam { color: var(--accent-text); background: var(--accent-soft); }
.cnam-text { font-family: var(--mono); font-size: 0.95em; letter-spacing: 0.03em; }

.lookup-chips { justify-content: center; margin-top: 12px; }
.result-row .chips { margin-top: 6px; }

.ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 32px; }
.ptile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface-2); border-radius: 14px; min-width: 0; }
.ptile .icon-badge { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.ptile .icon-badge svg { width: 18px; height: 18px; }
.ptile div { min-width: 0; }
.ptile small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ptile b { display: block; font-size: 1rem; font-weight: 800; overflow-wrap: anywhere; }
@media (max-width: 860px) { .ptiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .ptiles { grid-template-columns: 1fr; } }

.answers.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .answers.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .answers.four { grid-template-columns: 1fr; } }

/* Fraud score (same 0-100 scale as the caller ID lookup; higher is riskier) */
.risk-low { --risk: var(--score-very-good); }
.risk-medium { --risk: var(--score-fair); }
.risk-high { --risk: var(--score-poor); }
.chip.risk { color: var(--risk); background: color-mix(in srgb, var(--risk) 13%, transparent); }
.chip.risk b { font-weight: 800; }
.ptile .risk-label { display: block; margin-top: 1px; font-size: 0.78rem; font-weight: 700; color: var(--risk); }

/* ---------- Pre-search (after a number is entered) ---------- */
.nowrap { white-space: nowrap; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.search-page { min-height: calc(100vh - 160px); }
.search-page .h1 { margin-top: 18px; }

.search-spinner { width: 16px; height: 16px; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress-card { margin-top: 32px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 700; color: var(--ink-2); }
.progress-head b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.progress-track { position: relative; height: 12px; margin-top: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-track svg { display: block; width: 100%; height: 100%; }
.progress-fill { fill: var(--accent); }
.progress-track::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.search-steps { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.search-steps li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--muted); transition: color 0.3s; }
.step-mark { width: 22px; height: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: transparent; border: 2px solid var(--line-strong); border-radius: 50%; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.step-mark svg { width: 12px; height: 12px; }
.search-steps li.active { color: var(--ink); font-weight: 700; }
.search-steps li.active .step-mark { border-color: var(--accent-soft); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.search-steps li.done { color: var(--ink-2); }
.search-steps li.done .step-mark { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.search-found { display: none; }
.search-progress.is-done .search-working { display: none; }
.search-progress.is-done .search-found { display: block; animation: pop-in 0.5s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.found-badge { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 50%; box-shadow: 0 10px 30px -10px var(--accent); }
.found-preview { display: grid; gap: 12px; max-width: 460px; margin-top: 28px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.found-row { display: flex; align-items: center; gap: 14px; }
.found-row .icon-badge { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
.found-row small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.found-row b { display: block; font-size: 1.08rem; font-weight: 800; }
.blurred { filter: blur(7px); user-select: none; }
.found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.search-found .fine { margin-top: 16px; }
@media (max-width: 520px) { .found-actions .btn { width: 100%; } }

.lookup-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lookup-card-head h2 { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lookup-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; font-size: 0.78rem; font-weight: 700; color: var(--amber); background: var(--amber-soft); border-radius: 999px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(1) infinite; }
.search-lookup.is-done .lookup-status { color: var(--accent-text); background: var(--accent-soft); }
.search-lookup.is-done .status-dot { animation: none; }

.lookup-items { display: grid; gap: 10px; }
.lookup-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: 14px; min-width: 0; }
.lookup-item .icon-badge { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.lookup-item .icon-badge svg { width: 18px; height: 18px; }
.lookup-item > div { min-width: 0; flex: 1; }
.lookup-item small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lookup-item b { display: flex; align-items: center; min-height: 1.5em; font-size: 1rem; font-weight: 800; overflow-wrap: anywhere; }
.lookup-item .value { display: none; }
.lookup-item .value .chip { margin-left: 6px; }
.lookup-item.found .value { display: inline; animation: pop-in 0.4s ease-out; }
.lookup-item.found .skeleton { display: none; }
.lookup-item.risk-low .icon-badge, .lookup-item.risk-medium .icon-badge, .lookup-item.risk-high .icon-badge { color: var(--risk); background: color-mix(in srgb, var(--risk) 13%, transparent); }
.search-lookup.is-done .lookup-item .value { display: inline; animation: none; }
.search-lookup.is-done .lookup-item .skeleton { display: none; }

.skeleton { display: block; width: 60%; height: 12px; margin: 4px 0; border-radius: 999px; background: linear-gradient(90deg, var(--line) 25%, var(--surface) 50%, var(--line) 75%); background-size: 200% 100%; animation: skeleton 1.3s linear infinite; }
@keyframes skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.lookup-records { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.records-text.searching { color: var(--ink-2); }
.records-text.found { color: var(--accent-text); }
.records-text.none { color: var(--muted); }
/* No match, or a number that couldn't be searched: a calm amber badge, nothing alarming */
.fail-badge { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; color: var(--amber); background: var(--amber-soft); border: 1.5px solid color-mix(in srgb, var(--amber) 30%, transparent); border-radius: 50%; box-shadow: 0 10px 30px -14px var(--amber); }
.search-failed .lead { margin-left: auto; margin-right: auto; max-width: 30em; }
.search-failed .found-actions { justify-content: center; }
.search-failed .fine { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
    .search-spinner, .search-steps li.active .step-mark, .progress-track::after, .skeleton, .status-dot { animation: none; }
}
.lookup-item.locked { background: transparent; border: 1.5px dashed var(--line-strong); }
.lookup-item.locked .icon-badge { color: var(--muted); background: var(--surface-2); }
.lookup-item.locked b { font-size: 0.92rem; font-weight: 700; color: var(--muted); }

/* ---------- Save your report (your phone number or email) ---------- */
.contact-wrap { max-width: 680px; }
.step-grid .pill { margin-top: 8px; }
.contact-form .h1 { margin-top: 22px; }
.contact-form[data-mode="phone"] .for-email,
.contact-form[data-mode="email"] .for-phone { display: none; }
.promise { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.promise li { display: flex; align-items: center; gap: 14px; color: var(--ink-2); }
.promise b { color: var(--ink); }
.promise .icon-badge { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
.promise .icon-badge svg { width: 20px; height: 20px; }
.contact-field { max-width: none; }
.contact-switch { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }
.contact-switch a { font-weight: 700; color: var(--muted); text-underline-offset: 3px; }
.contact-switch a:hover { color: var(--ink); }
.contact-switch p { margin: 0 0 6px; padding: 12px 16px; line-height: 1.55; color: var(--ink-2); background: var(--accent-soft); border-radius: 12px; }
.contact-switch p b { color: var(--accent-text); }

/* ---------- "Your report" side card (after a match) ---------- */
.step-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
@media (max-width: 940px) { .step-grid { grid-template-columns: 1fr; gap: 40px; } }

.ready-card { position: relative; max-width: 460px; width: 100%; margin-left: auto; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.ready-card::before { content: ""; position: absolute; inset: -1px -1px auto; height: 5px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, var(--accent), var(--lime)); }
@media (max-width: 940px) { .ready-card { margin: 0 auto; } }
.ready-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ready-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ready-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; font-size: 0.78rem; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; }

.ready-number { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.ready-number .icon-badge { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.ready-number small, .ready-fact small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ready-number b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.ready-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ready-fact { padding: 12px 14px; background: var(--surface-2); border-radius: 14px; min-width: 0; }
.ready-fact b { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-weight: 800; overflow-wrap: anywhere; }
.ready-fact b svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--sky); }

.ready-locked { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 16px; border: 1.5px dashed var(--line-strong); border-radius: 16px; overflow: hidden; }
.ready-gauge { width: 120px; flex-shrink: 0; filter: blur(5px); opacity: 0.75; }
.ready-locked-text { display: grid; gap: 2px; }
.ready-locked-text b { font-size: 1.1rem; font-weight: 800; }
.ready-locked-text > span:last-child { font-size: 0.85rem; font-weight: 700; color: var(--accent-text); }
.ready-lock { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; margin-bottom: 4px; color: var(--ink-2); background: var(--surface-2); border-radius: 50%; }
.ready-lock svg { width: 15px; height: 15px; }

.ready-sub { margin: 20px 0 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ready-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ready-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.95rem; }
.ready-list .icon-badge { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.ready-list .icon-badge svg { width: 16px; height: 16px; }
.ready-blur { margin-left: auto; padding-left: 12px; font-weight: 800; color: var(--ink-2); filter: blur(5px); user-select: none; white-space: nowrap; }

.ready-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.ready-foot-text { font-size: 0.82rem; font-weight: 700; color: var(--muted); }

/* ---------- Check your phone / email (6-digit code) ---------- */
.verify-badge { position: relative; display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 20px; box-shadow: 0 12px 30px -12px var(--accent); }
.verify-badge svg { width: 30px; height: 30px; }
.verify-badge i { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; background: #ef4444; border: 3px solid var(--bg); border-radius: 50%; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); } 80%, 100% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } }

.verify-form { margin-top: 32px; max-width: 460px; }
.verify-label { display: block; margin-bottom: 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.verify-submit { width: 100%; margin-top: 18px; }

/* One real input (so iPhone code autofill and paste work), drawn as six boxes once the script runs */
.otp { position: relative; }
.otp-input { width: 100%; padding: 14px 18px; font: inherit; font-size: 1.6rem; font-weight: 800; letter-spacing: 0.5em; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--surface); border: 2px solid var(--line-strong); border-radius: 16px; outline: none; }
.otp-input:focus { border-color: var(--accent); }
.otp-boxes { display: none; }
.otp.enhanced .otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.otp.enhanced .otp-boxes span {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 5 / 6;
    max-height: 76px;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    background: var(--surface);
    border: 2px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.otp.enhanced .otp-boxes span:nth-child(3) { margin-right: 10px; }
.otp.enhanced .otp-boxes span.filled { border-color: var(--ink-2); }
.otp.enhanced.focused .otp-boxes span.current { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.otp.enhanced.focused .otp-boxes span.current:empty::after { content: ""; width: 2px; height: 1.1em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.otp.enhanced.complete .otp-boxes span { border-color: var(--accent); background: var(--accent-soft); }
.otp.enhanced .otp-input {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 0;
    font-size: 16px; /* 16px stops iPhone zooming in */
    color: transparent;
    caret-color: transparent;
    letter-spacing: 0;
    background: transparent;
    border: 0;
    -webkit-text-fill-color: transparent;
}
.otp.enhanced .otp-input::selection { background: transparent; }

.form-notice { max-width: 560px; margin: 12px 0 0; padding: 10px 16px; font-size: 0.9rem; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border-radius: 12px; }

.verify-tip { display: flex; gap: 14px; align-items: flex-start; max-width: 460px; margin-top: 24px; padding: 16px; background: var(--amber-soft); border-radius: 16px; }
.verify-tip .icon-badge { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; background: var(--surface); }
.verify-tip .icon-badge svg { width: 18px; height: 18px; }
.verify-tip p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); }
.verify-tip b { color: var(--ink); }

.verify-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 20px; font-size: 0.9rem; }
.verify-links form { margin: 0; }
.verify-links a, .link-button { padding: 0; font: inherit; font-weight: 700; color: var(--accent-text); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:disabled { color: var(--muted); cursor: default; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .verify-badge i { animation: none; } }

/* ---------- Plans (unlock the report) ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-dark { color: #fff; background: #0b1324; }
.btn-dark:hover { background: #1e293b; }
:root[data-theme="dark"] .btn-dark { color: #0b1324; background: #edf2f9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-dark { color: #0b1324; background: #edf2f9; } }

.offer-hero .display { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.offer-section { scroll-margin-top: 140px; }

/* Monthly / yearly switch: two radios drive which prices show, no script needed */
.billing-radio { position: absolute; opacity: 0; pointer-events: none; }
.billing-switch { display: flex; width: max-content; max-width: 100%; margin: 0 auto 40px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.billing-switch label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; font-weight: 800; color: var(--ink-2); border-radius: 999px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.billing-save { padding: 2px 8px; font-size: 0.75rem; font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 999px; }
#bill-monthly:checked ~ .billing-switch label[for="bill-monthly"],
#bill-yearly:checked ~ .billing-switch label[for="bill-yearly"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
#bill-monthly:focus-visible ~ .billing-switch label[for="bill-monthly"],
#bill-yearly:focus-visible ~ .billing-switch label[for="bill-yearly"] { outline: 3px solid var(--accent); outline-offset: 2px; }
#bill-monthly:checked ~ .memberships .is-yearly,
#bill-yearly:checked ~ .memberships .is-monthly { display: none; }

.memberships { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; align-items: stretch; }
@media (max-width: 800px) { .memberships { grid-template-columns: 1fr; max-width: 480px; } }
.member { position: relative; display: flex; flex-direction: column; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-sm); }
.member.featured { border: 2px solid var(--accent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow); }
@media (min-width: 801px) { .member.featured { transform: translateY(-10px); } }
.member-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 16px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--lime)); border-radius: 999px; box-shadow: var(--shadow-sm); }
.member-name { margin: 0; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.member.featured .member-name { color: var(--accent-text); }
.member-price { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.member-dollar { font-size: 4.2rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.member-trial { display: grid; font-size: 0.95rem; color: var(--ink-2); line-height: 1.35; }
.member-trial b { font-size: 1.1rem; color: var(--ink); }
.member-then { margin: 14px 0 0; font-size: 1.02rem; color: var(--ink-2); }
.member-then b { color: var(--ink); }
.member-was { margin-left: 4px; color: var(--muted); text-decoration: line-through; }
.member-note { display: block; margin-top: 2px; font-size: 0.85rem; color: var(--muted); }
.member .ticks { margin: 22px 0 26px; padding-top: 22px; border-top: 1px dashed var(--line-strong); }
.member-cta { margin-top: auto; }
.member-cta .btn, .pack-cta .btn { width: 100%; }
.member-terms { margin: 10px 0 0; font-size: 0.8rem; line-height: 1.5; text-align: center; color: var(--muted); }

.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 800px) { .packs { grid-template-columns: 1fr; max-width: 480px; } }
.pack { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.pack.best { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.pack-count { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 86px; color: var(--accent-text); background: var(--accent-soft); border-radius: 22px; }
.pack-count b { font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.pack-count span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pack-price { margin: 4px 0 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pack-each { margin: 4px 0 0; font-size: 0.92rem; color: var(--ink-2); }
.pack-each b { color: var(--accent-text); }
.pack-cta { grid-column: 1 / -1; margin-top: 14px; }

.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 40px; font-size: 0.92rem; font-weight: 700; color: var(--ink-2); }
.trust-row > span:not(.logo-chip) { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--accent); }

.faq-narrow { max-width: 760px; }

.fine-print-section { border-top: 1px solid var(--line); }
.fine-print { max-width: 900px; margin: 0 auto; font-size: 0.78rem; line-height: 1.65; color: var(--muted); }
.fine-print h2 { margin: 0 0 12px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.fine-print h3 { margin: 18px 0 4px; font-size: 0.8rem; font-weight: 800; color: var(--ink-2); }
.fine-print p { margin: 0; }
.fine-print a { color: inherit; }
.fine-print-foot { margin-top: 18px !important; }
.member .plan-save { display: inline-block; margin-top: 12px; }
.packs { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
@media (max-width: 1000px) { .packs { grid-template-columns: 1fr; max-width: 480px; } }
.pack-off { display: inline-block; margin-left: 4px; padding: 1px 8px; font-size: 0.75rem; font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 999px; }

/* ---------- Checkout dialog (embedded Stripe Checkout) ---------- */
.modal-open { overflow: hidden; }
.pay-modal { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.55); overflow: auto; }
.pay-modal::backdrop { background: rgba(7, 13, 26, 0.62); backdrop-filter: blur(4px); }
.pay-modal[open] { animation: pop-in 0.3s cubic-bezier(.2, .8, .2, 1); }
.pay-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pay-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.pay-eyebrow svg { width: 14px; height: 14px; }
.pay-head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.pay-terms { margin: 4px 0 0; font-size: 0.9rem; color: var(--ink-2); }
.pay-terms b { color: var(--ink); }
.pay-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; color: var(--ink-2); background: var(--surface-2); border: 0; border-radius: 50%; cursor: pointer; }
.pay-close:hover { color: var(--ink); }
.pay-test { margin: 16px 26px 0; padding: 10px 14px; font-size: 0.85rem; line-height: 1.5; color: var(--ink-2); background: var(--amber-soft); border-radius: 12px; }
.pay-test b { color: var(--amber); }
.pay-body { padding: 16px 26px; }
.pay-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 240px; font-weight: 700; color: var(--muted); }
.pay-loading[hidden] { display: none; }
.pay-body .form-error { max-width: none; margin: 0; }
.pay-mount { min-height: 0; border-radius: 16px; overflow: hidden; }
.pay-foot { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 14px 26px 20px; font-size: 0.8rem; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); }
.pay-foot svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; color: var(--accent); }
@media (max-width: 600px) {
    .pay-modal { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
    .pay-head { padding: 16px 16px 12px; }
    .pay-test { margin: 12px 16px 0; }
    .pay-body { padding: 12px 16px; }
    .pay-foot { padding: 12px 16px 18px; }
}

/* ---------- Promo code (plans page) ---------- */
.promo-row { margin-top: 18px; }
.promo-row.center { display: flex; flex-direction: column; align-items: center; margin-top: 36px; text-align: center; }
.promo-row .form-error { margin-top: 10px; }
.promo-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; font: inherit; font-weight: 800; color: var(--accent-text); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.promo-link:hover { text-decoration-color: currentColor; }
.promo-link[hidden] { display: none; }
.promo-link svg { width: 18px; height: 18px; }
.promo-applied { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 640px; margin: 0; padding: 10px 18px; font-size: 0.92rem; color: var(--ink-2); background: var(--accent-soft); border-radius: 18px; }
.promo-applied > svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent-text); }
.promo-applied b { color: var(--ink); }
.promo-applied .promo-link { font-size: 0.85rem; }
.promo-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; vertical-align: 2px; color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--lime)); border-radius: 999px; white-space: nowrap; }
.pack-was { margin-left: 6px; font-size: 1.05rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.promo-note { color: var(--accent-text); }

.promo-modal { width: min(480px, calc(100% - 32px)); padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.55); }
.promo-modal::backdrop { background: rgba(7, 13, 26, 0.62); backdrop-filter: blur(4px); }
.promo-modal[open] { animation: pop-in 0.3s cubic-bezier(.2, .8, .2, 1); }
.promo-modal form { padding: 24px 26px 28px; }
.promo-head { display: flex; align-items: flex-start; justify-content: space-between; }
.promo-title { margin: 18px 0 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.promo-lead { margin: 6px 0 0; color: var(--ink-2); }
.promo-field { margin-top: 22px; max-width: none; }
.promo-field input { padding-left: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.promo-field input::placeholder { text-transform: none; letter-spacing: 0; }
.promo-modal .form-error { max-width: none; }

/* Welcome from an affiliate's link (playground_layout.php): a dialog, with confetti drawn above it by site.js */
.ref-welcome-body { padding: 32px 28px 28px; text-align: center; }
.ref-welcome-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 50%; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.ref-welcome .promo-title { margin-top: 16px; }
.ref-welcome .promo-lead { margin-top: 10px; }
.ref-welcome-code { display: inline-block; padding: 1px 9px; font-size: 0.85em; letter-spacing: 0.06em; color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--lime)); border-radius: 999px; }
.ref-welcome-note { margin: 14px 0 0; font-size: 0.88rem; color: var(--ink-2); }
.ref-welcome .btn { margin-top: 24px; }
.ref-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; pointer-events: none; overflow: hidden; }

/* Applied code: banners, card strips and struck-through old values say where the new prices come from */
.promo-banner { display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; max-width: 100%; margin: -12px auto 32px; padding: 12px 20px; font-size: 0.95rem; color: var(--ink-2); background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 18px; }
.promo-banner > svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent-text); }
.promo-banner b { color: var(--ink); }
.member.has-promo, .pack.has-promo { border-color: var(--accent); }
.promo-win-later { display: block; margin: 12px auto 0; }
.free-unlock { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: -8px auto 32px; padding: 18px 22px; background: var(--accent-soft); border: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 20px; }
.free-unlock .icon-badge { flex-shrink: 0; }
.free-unlock > div { flex: 1; min-width: 0; }
.free-unlock-title { margin: 0; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.free-unlock-sub { margin: 2px 0 0; color: var(--ink-2); font-size: 0.92rem; }
.free-unlock .btn { flex-shrink: 0; }
@media (max-width: 560px) {
    .free-unlock { flex-wrap: wrap; padding: 16px; }
    .free-unlock .btn { width: 100%; justify-content: center; }
}
.member.has-promo:not(.featured) { border-style: dashed; }
.pack.has-promo:not(.best) { border: 2px dashed var(--accent); }
.promo-strip { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 12px; font-size: 0.82rem; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 12px; }
.promo-strip svg { flex-shrink: 0; width: 16px; height: 16px; }
.promo-strip b { padding: 1px 8px; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--lime)); border-radius: 999px; }
.member.featured .promo-strip { margin-top: 6px; }
.pack .promo-strip { grid-column: 1 / -1; margin: 0 0 6px; }
.pack.best .promo-strip { margin-top: 8px; }
.promo-was { color: var(--muted); font-weight: 600; text-decoration-thickness: 2px; }

/* "Code unlocked" dialog and confetti */
.promo-win { width: min(500px, calc(100% - 32px)); text-align: center; }
.promo-win-body { padding: 32px 28px 28px; }
.promo-win-badge { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 14px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 22px; box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--accent) 70%, transparent); animation: promo-wiggle 0.9s 0.25s ease-in-out both; }
.promo-win-badge svg { width: 34px; height: 34px; }
.promo-win .eyebrow { margin: 0; }
.promo-win .promo-title { margin-top: 6px; font-size: clamp(1.7rem, 5vw, 2.1rem); }
.promo-win-list { display: grid; gap: 12px; margin: 20px 0 24px; padding: 0; list-style: none; text-align: left; }
.promo-win-list li { padding: 14px 16px; background: var(--accent-soft); border-radius: 16px; }
.promo-win-list li > b { display: block; margin-bottom: 6px; color: var(--ink); }
.promo-win-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 0.9rem; color: var(--ink-2); }
.promo-win-row > span { font-weight: 800; color: var(--accent-text); white-space: nowrap; }
.promo-win-row s { margin-right: 4px; font-weight: 600; color: var(--muted); }
.promo-win .btn { width: 100%; }
@keyframes promo-wiggle { 0% { transform: scale(0.4) rotate(-20deg); } 55% { transform: scale(1.12) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; background: transparent; border: 0; overflow: hidden; pointer-events: none; }
.confetti.confetti-fallback { display: block; z-index: 9999; }
.confetti canvas { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .promo-win-badge { animation: none; } }

/* ---------- Header: Log in / account ---------- */
.login-btn { padding: 8px 16px; border-width: 1.5px; }
.account-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; font-size: 0.9rem; font-weight: 800; color: var(--ink); text-decoration: none; background: var(--surface-2); border-radius: 999px; transition: background 0.15s; }
.account-chip:hover { background: var(--accent-soft); }
.avatar { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 50%; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; border-radius: 16px; }
.avatar-sm { width: 30px; height: 30px; font-size: 0.75rem; color: var(--ink-2); background: var(--surface-2); }
@media (max-width: 520px) { .account-chip-name { display: none; } .account-chip { padding: 4px; } }

/* ---------- Log in (dialog and page) ---------- */
.login-modal { width: min(500px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.login-modal .login-form, .login-card .login-form { padding: 24px 26px 26px; }
.login-card { max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.login-page { display: flex; align-items: center; padding-top: 48px; }
.login-page .container { width: 100%; }
.login-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 16px; box-shadow: 0 12px 30px -12px var(--accent); }
.login-badge svg { width: 26px; height: 26px; }
.login-field { margin-top: 22px; }
.login-field input { font-size: 1.05rem; }
.login-form .form-error { max-width: none; }
.login-form .contact-switch { margin-top: 12px; }
.login-fine { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding-top: 16px; font-size: 0.82rem; color: var(--muted); border-top: 1px dashed var(--line-strong); }
.login-fine svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.login-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; font-size: 0.88rem; font-weight: 800; color: var(--ink-2); text-decoration: none; background: var(--surface-2); border-radius: 999px; }
.login-back:hover { color: var(--ink); }
.login-verify { width: 56px; height: 56px; margin: 18px 0 0; border-radius: 18px; }
.login-verify svg { width: 26px; height: 26px; }
.login-verify i { border-color: var(--surface); }
.login-otp { margin-top: 20px; }
.login-otp.enhanced .otp-boxes { gap: 8px; }
.login-otp.enhanced .otp-boxes span { max-height: 64px; font-size: 1.6rem; border-radius: 14px; }
.login-go { width: 100%; margin-top: 18px; }
.login-step[hidden], .login-demo[hidden] { display: none; }

.login-demo { padding: 18px 26px 24px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.verify-demo { max-width: 460px; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.login-demo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.login-demo-tag { display: inline-flex; align-items: center; padding: 2px 9px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #450a0a; background: #facc15; border-radius: 999px; }
.login-demo-head .demo-code { margin-left: 2px; }
.demo-code { font-family: var(--mono); font-weight: 800; letter-spacing: 0.12em; padding: 2px 8px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; user-select: all; }
.demo-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.demo-code.big { padding: 8px 14px; font-size: 1.25rem; letter-spacing: 0.32em; border-radius: 12px; box-shadow: inset 0 -2px 0 var(--line); }
.demo-fill-code[hidden] { display: none; }

/* Playground: the demo people, under the login form */
.demo-tip { margin: 14px 0 0; border: 1.5px solid var(--line); border-radius: 18px; background: var(--bg-soft); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.demo-tip[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--accent) 70%, transparent); }
.demo-tip summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 0.9rem; font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; user-select: none; }
.demo-tip summary::-webkit-details-marker { display: none; }
.demo-tip summary small { margin-left: auto; font-size: 0.78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.demo-tip summary:hover small { color: var(--ink-2); }
.demo-tip summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 16px; }
.demo-tip-chev { flex-shrink: 0; color: var(--muted); transition: transform 0.2s; }
.demo-tip[open] .demo-tip-chev { transform: rotate(180deg); }
.demo-tip-panel { padding: 2px 10px 12px; max-height: min(52vh, 420px); overflow: auto; overscroll-behavior: contain; animation: demo-tip-in 0.18s ease-out; }
@keyframes demo-tip-in { from { opacity: 0; transform: translateY(-4px); } }
.demo-tip-lead { margin: 0 4px 10px; font-size: 0.82rem; line-height: 1.5; color: var(--ink-2); }
.demo-tip-group { margin: 12px 4px 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.demo-tip-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.demo-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.demo-person:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 22px -18px color-mix(in srgb, var(--accent) 90%, transparent); }
.demo-person.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.demo-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 0.8rem; font-weight: 800; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 12px; }
.demo-who { min-width: 0; }
.demo-who b { display: block; font-size: 0.92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-who small { display: block; font-size: 0.76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-num { font-family: var(--mono); font-size: 0.84rem; font-weight: 700; padding: 4px 8px; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; white-space: nowrap; user-select: all; cursor: text; }
.demo-num::selection { color: var(--accent-ink); background: var(--accent); }
.demo-use { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer; transition: color 0.15s, background 0.15s, transform 0.15s; }
.demo-use svg { width: 16px; height: 16px; }
.demo-person:hover .demo-use, .demo-use:focus-visible { color: var(--accent-ink); background: var(--accent); }
.demo-person:hover .demo-use svg { transform: translateX(1px); }
.demo-use[hidden] { display: none; }
@media (max-width: 420px) {
    .demo-person { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
    .demo-num { grid-column: 2 / 4; justify-self: start; }
    .demo-use { grid-row: 1; grid-column: 3; }
    .demo-tip summary small { display: none; }
}
.login-demo.nudge { animation: nudge 0.5s ease-in-out; }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 600px) {
    .login-modal { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
    .login-modal .login-form { padding: 18px 16px 20px; }
    .login-demo { padding: 16px; }
}

/* ---------- Portal shell ---------- */
.portal { padding: 40px 0 88px; background: radial-gradient(900px 420px at 90% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.portal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.portal-side { position: sticky; top: 140px; display: grid; gap: 18px; }
.portal-me { display: flex; align-items: center; gap: 12px; }
.portal-me b { display: block; font-size: 1.02rem; font-weight: 800; line-height: 1.25; }
.portal-badge { display: inline-block; margin-top: 4px; padding: 2px 9px; font-size: 0.72rem; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; }
.portal-badge.amber { color: var(--amber); background: var(--amber-soft); }
.portal-nav { display: grid; gap: 2px; }
.portal-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; border-radius: 14px; transition: background 0.15s, color 0.15s; }
.portal-nav a svg { flex-shrink: 0; color: var(--muted); transition: color 0.15s; }
.portal-nav a:hover { color: var(--ink); background: var(--surface-2); }
.portal-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.portal-nav a[aria-current="page"] svg { color: var(--accent); }
.side-credits { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.15s; }
.side-credits:hover { border-color: var(--accent); }
.side-credits-num { display: inline-flex; align-items: baseline; justify-content: center; min-width: 52px; padding: 8px 10px; color: var(--accent-text); background: var(--accent-soft); border-radius: 12px; }
.side-credits-num b { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.side-credits-num small { font-size: 0.8rem; font-weight: 700; opacity: 0.75; }
.side-credits b { display: block; font-weight: 800; }
.side-credits small { display: block; font-size: 0.78rem; color: var(--muted); }
.side-credits.empty .side-credits-num { color: var(--amber); background: var(--amber-soft); }
.portal-side-foot { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.portal-side-foot form { margin: 0; }
.side-link { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px; font: inherit; font-weight: 700; color: var(--muted); background: none; border: 0; cursor: pointer; }
.side-link:hover { color: var(--ink); }
.demo-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; }
.demo-switch .link-button { margin-left: auto; font-size: 0.8rem; }
.portal-main { display: grid; gap: 24px; min-width: 0; }

@media (max-width: 980px) {
    .portal { padding-top: 20px; }
    .portal-grid { grid-template-columns: 1fr; gap: 20px; }
    .portal-side { position: static; gap: 14px; }
    .portal-nav { display: flex; gap: 6px; margin: 0 -24px; padding: 2px 24px 6px; overflow-x: auto; scrollbar-width: none; }
    .portal-nav::-webkit-scrollbar { display: none; }
    .portal-nav a { flex-shrink: 0; padding: 9px 14px; background: var(--surface-2); border-radius: 999px; }
    .portal-side-foot { display: none; }
    .side-credits { display: none; }
}
@media (max-width: 600px) { .portal-nav { margin: 0 -16px; padding: 2px 16px 6px; } }

.portal-notice { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 12px 12px 16px; font-weight: 700; color: var(--ink); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 16px; animation: pop-in 0.4s cubic-bezier(.2, .8, .2, 1); }
.portal-notice > svg { flex-shrink: 0; color: var(--accent-text); }
.portal-notice span { flex: 1; }
.notice-close { display: inline-flex; padding: 6px; color: var(--muted); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.notice-close:hover { color: var(--ink); background: var(--surface); }

.portal-hello .h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.portal-hello .lead { margin-top: 10px; }
.portal-hello.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.portal-hello .eyebrow { margin-bottom: 8px; }

/* Cards */
.pcard { min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.pcard.flush { padding: 0; overflow: hidden; }
.pcard-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.pcard-title { margin: 0 0 4px; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.015em; }
.pcard-head .pcard-title { margin: 0; }
.pcard-sub { margin: 4px 0 0; font-size: 0.92rem; color: var(--ink-2); }
.pcard-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 800; color: var(--accent-text); text-decoration: none; }
.pcard-link svg { width: 16px; height: 16px; transition: transform 0.15s; }
.pcard-link:hover svg { transform: translateX(3px); }
.pcard .btn-sm { margin-top: 16px; }
.pcard form .btn-sm { margin-top: 16px; }
.portal-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.portal-cols.wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
@media (max-width: 1100px) { .portal-cols, .portal-cols.wide-left { grid-template-columns: 1fr; } }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 0.75rem; font-weight: 800; white-space: nowrap; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.s-active, .status.s-paid { color: var(--accent-text); background: var(--accent-soft); }
.status.s-trial { color: var(--sky); background: var(--sky-soft); }
.status.s-cancelled, .status.s-refunded { color: var(--amber); background: var(--amber-soft); }
.new-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--lime)); border-radius: 999px; }

/* Home */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 24px; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } }
.credits-card { position: relative; display: flex; align-items: center; gap: 28px; padding: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.credits-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--accent), var(--lime)); }
.credits-card.empty::before { background: linear-gradient(90deg, var(--score-fair), var(--score-poor)); }
.credits-ring { position: relative; flex-shrink: 0; width: 148px; height: 148px; }
.credits-ring.sm { width: 76px; height: 76px; }
.ring { display: block; width: 100%; height: 100%; }
.ring-track { stroke: var(--surface-2); }
.ring-fill { stroke: var(--accent); transition: stroke-dasharray 0.9s cubic-bezier(.2, .8, .2, 1); }
.empty .ring-fill { stroke: var(--score-fair); }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring-text b { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; }
.ring-text small { margin-top: 4px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.credits-ring.sm .ring-text b { font-size: 1.5rem; }
.credits-text { flex: 1; min-width: 0; container-type: inline-size; }
.credits-text h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
.credits-text p { margin: 4px 0 0; color: var(--ink-2); }
.credits-text .actions { margin-top: 18px; }
.quick-check { margin-top: 18px; max-width: none; box-shadow: none; }
.quick-check input { font-size: 1.05rem; }
/* Next to the plan card (wide screens) the column is narrow: the whole number gets the row, and Check goes under it */
@container (max-width: 380px) {
    .quick-check { flex-wrap: wrap; border-radius: 24px; }
    .quick-check input { flex-basis: calc(100% - 48px); }
    .quick-check .btn { width: 100%; }
}
@media (max-width: 640px) {
    .credits-card { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 20px; }
    .credits-ring { margin: 0 auto; width: 128px; height: 128px; }
}

.plan-card { display: flex; flex-direction: column; }
.plan-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.plan-card-top .icon-badge { width: 42px; height: 42px; border-radius: 12px; }
.plan-card-price { margin: 6px 0 0; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan-card-price small { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan-facts { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; }
.plan-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 0.9rem; border-top: 1px dashed var(--line); }
.plan-facts span { color: var(--muted); }
.plan-facts b { text-align: right; font-weight: 800; }
.plan-card > .btn { align-self: flex-start; margin-top: auto; }
.plan-card .plan-facts { margin-bottom: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stat-grid.three { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } }
.stat { position: relative; display: grid; align-content: start; gap: 2px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.stat .icon-badge { width: 38px; height: 38px; margin-bottom: 12px; border-radius: 11px; }
.stat .icon-badge svg { width: 18px; height: 18px; }
.stat small { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat b { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }

/* Report list */
.rlist { display: grid; gap: 8px; }
.rrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.rrow:hover { border-color: var(--band, var(--line-strong)); box-shadow: var(--shadow); transform: translateY(-1px); }
.rrow.is-new { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 45%); }
.rrow-avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 0.85rem; font-weight: 800; color: var(--band, var(--muted)); background: color-mix(in srgb, var(--band, var(--muted)) 14%, transparent); border-radius: 14px; }
.rrow-who { min-width: 0; }
.rrow-who b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow-who small { display: block; font-size: 0.84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rrow-when { font-size: 0.84rem; font-weight: 600; color: var(--ink-2); text-align: right; white-space: nowrap; }
.rrow-when small { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.score-pill { display: grid; justify-items: center; min-width: 78px; padding: 6px 10px; line-height: 1.1; color: var(--band); background: color-mix(in srgb, var(--band) 12%, transparent); border-radius: 12px; }
.score-pill b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.score-pill small { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.muted-pill { color: var(--muted); background: var(--surface-2); }
.rrow-go { display: inline-flex; color: var(--muted); transition: transform 0.15s, color 0.15s; }
.rrow:hover .rrow-go { color: var(--band, var(--ink)); transform: translateX(3px); }
.rrow.nomatch .rrow-avatar { font-size: 1.1rem; color: var(--muted); background: var(--surface-2); }
.rlist.compact .rrow { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.rlist.compact .rrow-when { display: none; }
.pcard .rrow { box-shadow: none; }
.rrow-count { display: none; }
.rrow-via { color: var(--accent-text); font-weight: 700; }
.rrow-via svg { width: 13px; height: 13px; margin: 0 3px 0 1px; vertical-align: -2px; }
@media (max-width: 640px) {
    .rrow { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px 10px 10px; }
    .rrow-when, .rrow-go { display: none; }
    .rrow-count { display: inline; }
    .score-pill { min-width: 64px; }
}

.upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px; background: linear-gradient(120deg, var(--accent-soft), var(--sky-soft)); border-radius: 24px; }
.upsell > div { max-width: 560px; }
.upsell .eyebrow { margin-bottom: 6px; }
.upsell .h3 { margin: 0 0 6px; }
.upsell p { margin: 0; color: var(--ink-2); }

/* Check a number */
.check-card { padding: 28px; box-shadow: var(--shadow); }
.check-card form { margin: 0; }
.check-field { margin: 0; max-width: none; }
.check-field input { font-size: 1.3rem; }
.check-card .perks { margin-top: 18px; }
.check-card .form-error { max-width: none; }
.extra-confirm { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; font-size: 0.9rem; color: var(--ink-2); background: var(--amber-soft); border-radius: 14px; cursor: pointer; }
.extra-confirm input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.extra-confirm b { color: var(--ink); }
.check-searching { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; background: var(--accent-soft); border-radius: 16px; animation: pop-in 0.3s ease-out; }
.check-searching[hidden] { display: none; }
.check-searching .search-spinner { width: 22px; height: 22px; border-width: 3px; }
.check-searching b { display: block; font-weight: 800; }
.check-searching small { display: block; font-size: 0.82rem; color: var(--ink-2); }
.btn.is-busy { opacity: 0.7; cursor: progress; }
.pg-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; font-size: 0.85rem; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; }
.pcard .pg-note { margin-top: 18px; }

/* The header's "Look up a number" dialog for signed-in customers */
.check-modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.check-modal-body { padding: 24px 26px 26px; }
.check-modal form { padding: 0; }
.check-modal .promo-head { align-items: center; }
.check-modal .promo-head:has(> :only-child) { justify-content: flex-end; }
.check-modal .promo-title { font-size: clamp(1.5rem, 4vw, 1.85rem); line-height: 1.15; }
.check-modal .check-field { margin-top: 22px; }
.check-modal .check-field input { font-size: 1.15rem; }
.check-modal .form-error { max-width: none; }
.check-modal .perks { gap: 8px 16px; margin-top: 16px; font-size: 0.85rem; }
.check-modal-note { margin-top: 18px; }
.check-out { text-align: center; }
.check-modal .check-out { padding: 4px 4px 8px; }
.check-out .icon-badge { margin-bottom: 14px; }
.check-out .pcard-sub { max-width: 480px; margin: 6px auto 0; }
.check-out .actions { justify-content: center; margin-top: 22px; }
.what-list { display: grid; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.what-list li { display: flex; align-items: center; gap: 14px; }
.what-list .icon-badge { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
.what-list .icon-badge svg { width: 20px; height: 20px; }
.what-list b { display: block; font-weight: 800; }
.what-list span { font-size: 0.9rem; color: var(--ink-2); }
.what-list span b { font-size: 1rem; color: var(--ink); }
.check-fine { margin: 0; }
.out-card { text-align: center; padding: 40px 28px; }
.out-card .icon-badge { margin-bottom: 14px; }
.out-card .pcard-sub { max-width: 480px; margin: 6px auto 0; }
.out-card .actions { justify-content: center; margin-top: 22px; }

/* Reports page */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 0.9rem; font-weight: 800; color: var(--ink-2); text-decoration: none; border-radius: 999px; }
.tabs a span { padding: 0 7px; font-size: 0.75rem; color: var(--muted); background: var(--surface); border-radius: 999px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.tabs a[aria-current] span { color: var(--accent-ink); background: var(--accent); }
.list-search { display: flex; align-items: center; gap: 8px; min-width: 260px; margin: 0; padding: 0 14px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; transition: border-color 0.15s; }
.list-search:focus-within { border-color: var(--accent); }
.list-search svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--muted); }
.list-search input { flex: 1; min-width: 0; padding: 10px 0; font: inherit; font-size: 0.95rem; color: var(--ink); background: transparent; border: 0; outline: none; }
@media (max-width: 640px) { .list-search { min-width: 0; width: 100%; } }
.month-group { display: grid; gap: 10px; }
.month-head { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.month-head span { padding: 0 8px; font-size: 0.72rem; letter-spacing: 0; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; }
.month-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.empty-state { text-align: center; padding: 40px 24px; }
.empty-state .icon-badge { margin-bottom: 12px; }

/* One report */
.report-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.report-bar-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.report-bar-meta .chip { padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); }
.report-bar-meta .chip.cnam { border-color: transparent; }
.report-bar .btn-sm { margin: 0; }

/* Report: every check of the same number (a menu), and Recheck */
.check-hist { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 8px 8px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.check-hist.is-older { background: var(--amber-soft); border-color: transparent; }
.check-hist-note { flex: 1; min-width: 220px; margin: 0; font-size: 0.85rem; color: var(--ink-2); }
.check-hist .btn-sm { margin: 0; }
.check-menu { position: relative; }
.check-menu summary { list-style: none; }
.check-menu summary::-webkit-details-marker { display: none; }
.check-menu-btn { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.check-menu-btn:hover, .check-menu[open] .check-menu-btn { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.check-menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-menu-btn.is-static { cursor: default; }
.check-menu-btn.is-static:hover { border-color: var(--line); box-shadow: none; }
.check-hist-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--accent-text, var(--ink)); background: var(--accent-soft); border-radius: 10px; }
.check-hist-icon svg { width: 18px; height: 18px; }
.check-hist-text { display: flex; flex-direction: column; line-height: 1.25; }
.check-hist-text small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.check-hist-text b { font-size: 0.92rem; font-weight: 800; white-space: nowrap; }
.check-chev { margin-left: 4px; color: var(--muted); transition: transform 0.2s; }
.check-menu[open] .check-chev { transform: rotate(180deg); }
.check-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; display: grid; gap: 4px; width: 340px; max-height: min(360px, 60vh); overflow-y: auto; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); animation: pdf-pop 0.16s ease-out; }
.check-pop p { margin: 2px 6px 6px; font-size: 0.78rem; color: var(--muted); }
.check-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; color: var(--ink); text-decoration: none; border: 1.5px solid transparent; border-radius: 12px; transition: background 0.15s, border-color 0.15s; }
.check-opt:hover, .check-opt:focus-visible { background: var(--surface-2); outline: none; }
.check-opt:focus-visible { border-color: var(--accent); }
.check-opt.is-current { background: var(--accent-soft); }
.check-opt-score { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 32px; font-size: 0.9rem; font-weight: 800; color: var(--band, var(--ink)); background: var(--surface); border: 1.5px solid var(--band, var(--line)); border-radius: 10px; }
.check-opt-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.check-opt-text b { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 800; }
.check-opt-text small { font-size: 0.78rem; color: var(--muted); }
.check-opt-now { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text, var(--ink)); }
@media (max-width: 640px) {
    .check-hist { padding: 10px; }
    .check-menu, .check-menu-btn.is-static { flex: 1; }
    .check-pop { width: min(340px, calc(100vw - 32px)); }
    .check-hist-note { order: 3; flex-basis: 100%; }
}
.pdf-split { position: relative; display: inline-flex; align-items: stretch; }
.pdf-split .pdf-main { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-width: 1px; }
.pdf-split .pdf-more { align-self: stretch; height: 100%; padding-top: 0; padding-bottom: 0; padding-left: 11px; padding-right: 12px; border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-width: 1px; }
.pdf-split .pdf-main:hover, .pdf-split .pdf-more:hover { background: var(--surface-2); }
.pdf-menu { position: static; display: flex; }
.pdf-menu summary { list-style: none; margin: 0; }
.pdf-menu summary::-webkit-details-marker { display: none; }
.pdf-menu .pdf-chev { transition: transform 0.2s; }
.pdf-menu[open] .pdf-chev { transform: rotate(180deg); }
.pdf-menu[open] summary { background: var(--surface-2); }
.pdf-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 300px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); animation: pdf-pop 0.16s ease-out; }
.pdf-pop p { grid-column: 1 / -1; margin: 0 2px 2px; font-size: 0.8rem; color: var(--muted); }
@keyframes pdf-pop { from { opacity: 0; transform: translateY(-4px); } }
.pdf-opt { display: flex; flex-direction: column; gap: 10px; padding: 10px; color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.pdf-opt:hover, .pdf-opt:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); outline: none; }
.pdf-opt b { display: block; font-size: 0.92rem; font-weight: 800; }
.pdf-opt small { display: block; font-size: 0.76rem; color: var(--muted); }
.pdf-opt.is-current { border-color: var(--accent); background: var(--accent-soft); }
.pdf-opt.is-current small { font-weight: 700; color: var(--accent-text); }
/* A tiny drawing of the PDF's first page in each theme */
.pdf-thumb { display: flex; flex-direction: column; gap: 5px; height: 112px; padding: 0 0 8px; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(13, 27, 42, 0.35); }
.pdf-thumb.light { --t-bg: #ffffff; --t-card: #ffffff; --t-line: #e4eae6; --t-row: #eef2ef; --t-band: #0b1324; }
.pdf-thumb.dark { --t-bg: #0b1324; --t-card: #121f36; --t-line: #213252; --t-row: #17263f; --t-band: #070d1a; }
.pdf-thumb { background: var(--t-bg); }
.pdf-thumb i { display: block; }
.pdf-thumb .t-band { position: relative; height: 22px; background: var(--t-band); border-bottom: 2px solid #22c55e; }
.pdf-thumb .t-band::before { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 10px; border: 1.5px solid #22c55e; border-radius: 2px; }
.pdf-thumb .t-band::after { content: ""; position: absolute; right: 8px; top: 8px; width: 34px; height: 5px; background: #ffffff; border-radius: 2px; }
.pdf-thumb .t-card { position: relative; height: 32px; margin: 2px 8px 0; background: var(--t-card); border: 1px solid var(--t-line); border-radius: 6px; }
.pdf-thumb .t-gauge { position: absolute; right: 8px; top: 7px; width: 26px; height: 13px; border: 4px solid #d39b12; border-bottom: 0; border-radius: 26px 26px 0 0; }
.pdf-thumb .t-row { height: 9px; margin: 0 8px; background: var(--t-row); border-radius: 3px; }
.pdf-thumb .t-row.short { width: 55%; }
@media (max-width: 520px) { .pdf-pop { width: min(300px, calc(100vw - 32px)); } }
.btn[hidden] { display: none; }
.report-after { margin: 0; text-align: center; }
.nomatch-card { padding: 40px 32px; }
.nomatch-badge { margin-bottom: 18px; color: var(--ink-2); background: var(--surface-2); box-shadow: none; }
.nomatch-badge svg { width: 30px; height: 30px; }
.nomatch-card .h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.nomatch-card .lead { margin-top: 8px; }
.nomatch-card .actions { margin-top: 24px; }

/* Billing */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; padding: 16px 18px; color: var(--ink-2); background: var(--sky-soft); border-radius: 20px; }
.banner.amber { background: var(--amber-soft); }
.banner > div { flex: 1; min-width: 220px; }
.banner b { color: var(--ink); }
.banner .icon-badge { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); }
.banner form { margin: 0; }
.banner .btn-sm { margin: 0; }
.billing-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 24px; }
@media (max-width: 1100px) { .billing-grid { grid-template-columns: 1fr; } }
.member-card { box-shadow: var(--shadow); }
.member-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.member-card .plan-card-price { font-size: 2.6rem; }
.usage { margin-top: 20px; padding: 16px; background: var(--surface-2); border-radius: 16px; }
.usage-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--ink-2); }
.usage-head b { color: var(--ink); }
.usage .fine { margin: 8px 0 0; }
.meter { margin-top: 10px; }
.meter svg { display: block; width: 100%; height: 10px; }
.meter rect.bg { fill: var(--line); }
.meter rect.fg { fill: var(--accent); }
.usage .meter rect.bg { fill: var(--surface); }
.member-card .actions { align-items: center; margin-top: 18px; }
.member-card .actions form { margin: 0; }
.member-card .actions .btn-sm { margin: 0; }
.btn-text { padding: 6px 4px; font: inherit; font-size: 0.9rem; font-weight: 800; color: var(--ink-2); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-text.danger { color: #c2410c; }
:root[data-theme="dark"] .btn-text.danger { color: #fb923c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-text.danger { color: #fb923c; } }

.paycard { position: relative; display: grid; gap: 6px; margin-top: 12px; padding: 20px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0b1324, #1e3a5f 60%, #14532d); border-radius: 18px; box-shadow: 0 18px 40px -20px rgba(11, 19, 36, 0.7); }
.paycard::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(132, 204, 22, 0.35), transparent 70%); }
.paycard.bank { background: linear-gradient(135deg, #0b1324, #12395b 60%, #0e7490); }
.paycard-brand { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.paycard-num { font-family: var(--mono); font-size: 1.12rem; font-weight: 600; letter-spacing: 0.06em; }
.paycard-exp { font-size: 0.82rem; opacity: 0.75; }
.pcard .paycard + form .btn-sm { margin-top: 16px; }

.plan-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan-pick.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-pick.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .plan-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plan-pick, .plan-pick.three, .plan-pick.two { grid-template-columns: 1fr; } }
.pick { position: relative; display: flex; flex-direction: column; margin: 0; padding: 20px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; transition: border-color 0.15s; }
.pick:hover { border-color: var(--line-strong); }
.pick.best { border-color: var(--accent); }
.pick.current { background: var(--accent-soft); border-color: var(--accent); }
.pick.next { border-style: dashed; border-color: var(--sky); }
.pick .member-ribbon { top: -11px; padding: 3px 12px; font-size: 0.68rem; }
.pick .member-name { font-size: 0.75rem; }
.pick-price { margin: 8px 0 0; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.pick-price small { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.pick-sub { margin: 6px 0 14px; font-size: 0.85rem; color: var(--ink-2); }
.pick .btn-sm { margin-top: auto; width: 100%; }
.pick-tag { margin-top: auto; align-self: flex-start; padding: 5px 12px; font-size: 0.78rem; font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 999px; }
.pick-tag.next { color: #fff; background: var(--sky); }
.or-row { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.or-row::before, .or-row::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }  /* relative: keeps .sr-only cells inside the scroll box */
.pcard .table-wrap { margin: 8px -24px -24px; }
.pcard.flush .table-wrap { margin: 0; }
.ptable { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.92rem; }
.ptable th, .ptable td { padding: 13px 24px; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.ptable thead th { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.ptable td { color: var(--ink-2); }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; }
.ptable td.num b { color: var(--ink); }
.ptable tbody tr:hover td { background: var(--bg-soft); }
.pcard.flush .ptable thead th { border-top: 0; }
.cell-who { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }

.credits-mini.empty .ring-fill { stroke: var(--score-fair); }
.credits-mini-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.credits-mini-row b { font-size: 1.15rem; font-weight: 800; }

.confirm-modal { width: min(460px, calc(100% - 32px)); }
.confirm-body { padding: 28px 26px 24px; }
.confirm-body .ticks { margin-top: 14px; }
.confirm-actions { display: grid; gap: 10px; margin-top: 24px; }

/* Profile and forms */
.settings { margin: 0; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field > span { font-size: 0.85rem; font-weight: 800; color: var(--ink-2); }
.field > span small { font-weight: 600; color: var(--muted); }
.field .field-hint { font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.finish-from { display: block; margin: -4px 0 6px; font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.field input, .field select, .field textarea, .convo-compose textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.settings .form-error { max-width: none; }
.settings .actions { align-items: center; }
.toggles { display: grid; margin-top: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row b { display: block; font-weight: 800; }
.toggle-row small { display: block; font-size: 0.85rem; color: var(--muted); }
.switch { appearance: none; position: relative; flex-shrink: 0; width: 46px; height: 28px; margin: 0; background: var(--line-strong); border-radius: 999px; cursor: pointer; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s cubic-bezier(.2, .8, .2, 1); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.login-ways { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.login-ways li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px; background: var(--surface-2); border-radius: 16px; }
.login-ways .icon-badge { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); }
.login-ways li > span:nth-child(2) { flex: 1; min-width: 160px; }
.login-ways small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.login-ways b { display: block; font-weight: 800; overflow-wrap: anywhere; }
.login-ways form { margin: 0; }
.mini-list { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li > span:nth-child(2) { flex: 1; min-width: 0; }
.mini-list b { display: block; font-weight: 800; }
.mini-list small { display: block; font-size: 0.82rem; color: var(--muted); }
.mini-list .icon-badge { width: 38px; height: 38px; border-radius: 11px; }
.mini-list .icon-badge svg { width: 18px; height: 18px; }
.mini-list .amt { font-variant-numeric: tabular-nums; color: var(--accent-text); white-space: nowrap; }

/* Support */
.help-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .help-tiles { grid-template-columns: 1fr; } }
.help-tile { display: grid; gap: 2px; padding: 20px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; min-width: 0; }
.help-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.help-tile .icon-badge { width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; }
.help-tile b { font-weight: 800; }
.help-tile small { font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.faq-flat { margin-top: 12px; }
.faq-flat details { background: var(--bg-soft); border-color: transparent; }
.faq-flat details[open] { background: var(--surface); border-color: var(--line); }
.faq-flat details:last-child { margin-bottom: 0; }
.convos { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.convos li { padding: 14px 16px; background: var(--surface-2); border-radius: 16px; }
.convo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.convo-head .status { flex-shrink: 0; }
.convos p { margin: 6px 0 4px; font-size: 0.9rem; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.convos small { font-size: 0.8rem; color: var(--muted); }
.convos li.is-new { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.convo-reply { margin: 10px 0 6px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.convo-reply.from-staff { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.convo-reply p { margin: 4px 0 0; }
.convo-who { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em; color: var(--muted); }
.convo-reply.from-staff .convo-who { color: var(--accent-text); }
.convo-more { margin-top: 8px; }
.convo-more summary { display: inline-flex; font-size: 0.82rem; font-weight: 800; color: var(--accent-text); cursor: pointer; list-style: none; }
.convo-more summary::-webkit-details-marker { display: none; }
.convo-form { display: grid; gap: 8px; margin-top: 8px; }
.convo-form textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; resize: vertical; }
.convo-form textarea:focus { outline: none; border-color: var(--accent); }
.convo-form .btn { justify-self: start; }

/* Affiliate */
.ref-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; overflow: hidden; color: #fff; background: var(--dark-band); border-radius: 28px; }
.ref-card::before { content: ""; position: absolute; right: -100px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, 0.4), transparent 70%); }
.ref-card > * { position: relative; }
.ref-card > div:first-child { flex: 1; min-width: 260px; }
.ref-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #86efac; }
.ref-copy { display: flex; gap: 8px; padding: 6px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; }
.ref-copy input { flex: 1; min-width: 0; padding: 8px 14px; font-family: var(--mono); font-size: 0.95rem; color: #fff; background: transparent; border: 0; outline: none; }
.ref-copy .btn { flex-shrink: 0; }
.ref-copy .btn.copied { color: #052012; background: #4ade80; }
.ref-fine { margin: 12px 0 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }
.ref-fine b { color: #fff; }
.ref-code { display: grid; justify-items: center; padding: 16px 22px; text-align: center; background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 18px; }
.ref-code small { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.ref-code b { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.08em; background: linear-gradient(90deg, #4ade80, #bef264); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 600px) { .ref-card { padding: 22px 18px; border-radius: 22px; } .ref-code { width: 100%; } }

.legend { display: flex; gap: 16px; font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; }
.key-clicks::before { background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); }
.key-signups::before { border-radius: 50%; background: var(--sky); }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-bar { fill: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); transition: fill 0.15s; }
.chart-bar:hover { fill: var(--accent); }
.chart-dot circle { fill: var(--sky); stroke: var(--surface); stroke-width: 2.5; }
.chart-dot text { font-size: 10px; font-weight: 800; fill: #fff; font-family: var(--sans); }
.chart-label { font-size: 11px; font-weight: 600; fill: var(--muted); font-family: var(--sans); }
.payout-next { display: flex; flex-direction: column; }
.big-money { margin: 6px 0 0; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.payout-next .meter { margin: 14px 0 0; }
.payout-next .fine { margin: 10px 0 0; }
.payout-next .btn-sm { align-self: flex-start; margin-top: auto; }
.payout-next .fine + .btn-sm { margin-top: 18px; }
.payout-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; background: linear-gradient(120deg, var(--accent-soft), var(--sky-soft)); border-radius: 28px; }
.payout-hero > div { max-width: 460px; }
.payout-hero small { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.payout-hero b { display: block; margin-top: 4px; font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.payout-hero p { margin: 10px 0 0; color: var(--ink-2); }
.payout-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.payout-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; font-size: 0.85rem; font-weight: 800; color: var(--ink-2); background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-sm); }
.payout-steps li > span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--muted); background: var(--surface-2); border-radius: 50%; }
.payout-steps li > span svg { width: 13px; height: 13px; }
.payout-steps li.done > span { color: var(--accent-ink); background: var(--accent); }
.terms-card .ticks { margin-top: 12px; }

/* Print a report: just the report */
@media print {
    .site-header, .site-footer, .leak-actions, .portal-side, .report-bar .btn, .pdf-split, .portal-notice, .pg-note, .login-modal, .check-modal, .api-tabbar { display: none !important; }
    .api-panel[hidden] { display: block !important; }
    .site-top { position: static; }
    .portal { padding: 0; background: none; }
    .portal-grid { display: block; }
    .report { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    .login-demo.nudge, .portal-notice, .check-searching { animation: none; }
}
.login-demo .login-demo-grid { padding: 0; }
.pcard .pick .btn-sm { margin-top: auto; }
.pcard:has(> .table-wrap) { overflow: hidden; }
@media (min-width: 981px) and (max-width: 1120px) { .site-nav a { padding: 8px 10px; } }
button.login-back { font: inherit; font-size: 0.88rem; font-weight: 800; border: 0; cursor: pointer; }

/* ---------- Earn Rewards ---------- */
.portal-nav a.nav-earn svg { color: var(--accent); }
.rewards-hello .lead { margin-top: 8px; }
.rewards-tabs { margin-top: -4px; }
.rewards-tabs a { padding: 9px 20px; }
.share-start { display: flex; gap: 18px; align-items: flex-start; }
.share-start .icon-badge { flex-shrink: 0; }
.share-steps { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: share; }
.share-steps li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.share-steps li::before { counter-increment: share; content: counter(share); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 26px; height: 26px; font-size: 0.82rem; font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 50%; }
.share-steps b { color: var(--ink); }
@media (max-width: 560px) { .share-start { flex-direction: column; } }

.join-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; padding: 36px; background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 70%), linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border: 1px solid var(--line); border-radius: 28px; }
.join-hero .h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.join-hero .lead { margin-top: 12px; }
.join-hero .btn { margin-top: 24px; }
.join-example { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.join-example-head { margin: 0 0 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.join-example-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); color: var(--ink-2); }
.join-example-row b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.join-example .fine { margin: 8px 0 0; }
@media (max-width: 860px) { .join-hero { grid-template-columns: 1fr; padding: 24px 20px; } }
.join-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .join-steps { grid-template-columns: 1fr; } }
.join-step { display: grid; gap: 2px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.join-step .icon-badge { width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; }
.join-step b { font-weight: 800; }
.join-step small { font-size: 0.88rem; color: var(--ink-2); }
.join-form { box-shadow: var(--shadow); scroll-margin-top: 140px; }
.terms-box { max-height: 260px; overflow-y: auto; padding: 4px 20px 16px; font-size: 0.88rem; line-height: 1.6; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; }
.terms-box:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.terms-box h3 { margin: 16px 0 4px; font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.terms-box p { margin: 0; }
.join-checks { display: grid; gap: 10px; margin-top: 18px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; font-size: 0.92rem; color: var(--ink-2); background: var(--surface-2); border-radius: 14px; cursor: pointer; }
.check-row input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.check-row b { color: var(--ink); }
.join-form .form-error { max-width: none; }
.join-form .actions { align-items: center; }

.earn-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 20px; color: var(--ink-2); text-decoration: none; background: linear-gradient(110deg, var(--accent-soft), color-mix(in srgb, var(--lime) 14%, var(--surface))); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 22px; transition: transform 0.15s, box-shadow 0.15s; }
.earn-teaser:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.earn-teaser > span:nth-child(2) { flex: 1; min-width: 220px; }
.earn-teaser b { color: var(--ink); }
.earn-coin { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 50%; box-shadow: 0 10px 24px -10px var(--accent); }
.earn-coin svg { width: 26px; height: 26px; }
.earn-teaser .btn-sm { margin: 0; }
.join-hero .btn svg { width: 18px; height: 18px; }

/* Get more reports (pack customers' billing) */
.more-head { margin-bottom: 6px; }
.more-group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.more-group-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.more-group-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.more-group-head h3 svg { width: 18px; height: 18px; color: var(--accent); }
.more-group-head p { margin: 4px 0 0; font-size: 0.9rem; color: var(--ink-2); }
.more-switch { margin: 0 0 22px; }
.more-switch label { padding: 8px 18px; font-size: 0.92rem; }
.more-card .memberships { max-width: none; margin: 0; gap: 16px; }
.more-card .memberships, .more-card .plan-pick.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .more-card .memberships, .more-card .plan-pick.two { grid-template-columns: 1fr; } }
.pick-top { display: flex; align-items: center; gap: 14px; }
.pick-count { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 58px; height: 58px; color: var(--accent-text); background: var(--accent-soft); border-radius: 16px; line-height: 1; }
.pick-count b { font-size: 1.4rem; font-weight: 800; }
.pick-count small { margin-top: 2px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pack-pick .pick-price { margin-top: 2px; }
.pack-pick .pick-sub { margin-top: 12px; }
.pick-sub b { color: var(--accent-text); }
.member-pick { padding: 24px; }
.member-pick.best { box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.member-pick .pick-price { font-size: 2.3rem; }
.pick-note { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); }
.pick-note b { color: var(--accent-text); }
.pick-facts { display: grid; gap: 8px; margin: 16px 0 18px; padding: 16px 0 0; list-style: none; border-top: 1px dashed var(--line-strong); font-size: 0.9rem; color: var(--ink-2); }
.pick-facts li { display: flex; align-items: center; gap: 8px; }
.pick-facts li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%2316a34a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.pick-facts b { color: var(--ink); }
.pick-terms { margin: 8px 0 0; font-size: 0.78rem; text-align: center; color: var(--muted); }
.more-card .member-pick .btn-sm { padding: 12px 16px; font-size: 0.95rem; }

/* Billing: payment methods, auto charges, redeem a code, receipts */
.methods { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.method { display: flex; color: var(--ink); font-family: inherit; font-size: inherit; font-weight: inherit; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; }
.method.is-default { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 60%); }
.method-logo { flex-shrink: 0; width: 46px; height: 29px; border-radius: 5px; box-shadow: 0 1px 2px rgba(13, 27, 42, 0.12); }
.method-text { flex: 1; min-width: 160px; }
.method-text b { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.method-text .dots { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.method-mini { width: 24px; height: 15px; border-radius: 3px; }
.method-text small { display: block; font-size: 0.82rem; color: var(--muted); }
.method-text .warn { font-weight: 700; color: var(--amber); }
.method-actions { display: flex; gap: 16px; margin: 0; }
.method-actions .link-button { font-size: 0.85rem; }
.link-button.muted-link { color: var(--muted); }
.add-method { margin-top: 12px; border: 1.5px dashed var(--line-strong); border-radius: 16px; }
.add-method summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 800; color: var(--accent-text); cursor: pointer; list-style: none; }
.add-method summary::-webkit-details-marker { display: none; }
.add-method summary svg { width: 18px; height: 18px; transition: transform 0.2s; }
.add-method[open] summary svg { transform: rotate(45deg); }
.add-method[open] { border-style: solid; border-color: var(--line); background: var(--bg-soft); }
.add-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 16px 4px; }
@media (max-width: 760px) { .add-grid { grid-template-columns: 1fr; } }
.add-method .pg-note { margin: 12px 16px 16px; }
.add-method-link { margin: 0; padding: 0 16px 16px; }
.card-setup { padding: 0 16px 6px; }
.card-setup-element { min-height: 120px; padding: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; }
.card-setup-element p { margin: 0; }
.card-setup .form-error { margin: 10px 0 0; }
.card-setup .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.card-setup .actions .btn svg { width: 16px; height: 16px; margin-right: 6px; }
.card-setup .fine { margin: 0; color: var(--muted); font-size: 0.85rem; }
.pay-problem { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 18px; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--amber-soft), var(--surface) 70%); border: 1.5px solid color-mix(in srgb, var(--amber) 35%, transparent); }
.pay-problem-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--amber); background: var(--surface);
    border: 1.5px solid color-mix(in srgb, var(--amber) 30%, transparent); border-radius: 50%; box-shadow: 0 8px 24px -12px var(--amber); }
.pay-problem .pcard-sub { margin-bottom: 0; }
.pay-problem-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .pay-problem { grid-template-columns: auto 1fr; } .pay-problem-actions { grid-column: 1 / -1; } }
/* The bank wants the customer to confirm a payment (3D Secure): sky blue, not a warning */
.pay-problem-auth { background: linear-gradient(135deg, var(--sky-soft), var(--surface) 70%); border-color: color-mix(in srgb, var(--sky) 40%, transparent); scroll-margin-top: 140px; }
.pay-problem-auth .pay-problem-icon { color: var(--sky); border-color: color-mix(in srgb, var(--sky) 35%, transparent); box-shadow: 0 8px 24px -12px var(--sky); }
.pay-problem-actions .btn svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.add-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; font: inherit; text-align: left; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.add-opt:hover, .add-opt:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); outline: none; }
.add-opt img { border-radius: 5px; box-shadow: 0 1px 2px rgba(13, 27, 42, 0.12); }
.add-opt b { display: block; font-weight: 800; }
.add-opt small { display: block; font-size: 0.8rem; color: var(--muted); }
.add-cards { display: flex; gap: 4px; }
.add-cards img { width: 30px; height: 19px; border-radius: 3px; }

.auto-card { margin: 0; }
.auto-head { padding-top: 0; }
.auto-head b { font-size: 1.08rem; }
.auto-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1240px) { .auto-fields { grid-template-columns: 1fr; } }
.auto-fields .field { margin-top: 10px; }
.auto-card select { padding: 10px 12px; font-size: 0.92rem; }
.auto-summary { margin: 14px 0 0; padding: 12px 14px; font-size: 0.86rem; line-height: 1.5; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; }
.auto-summary b { color: var(--ink); }
.auto-card .actions { align-items: center; margin-top: 16px; }
.auto-card .actions .btn-sm { margin: 0; }
.extra-confirm.auto-on { align-items: flex-start; margin-bottom: 0; background: var(--accent-soft); cursor: default; }
.extra-confirm.auto-on svg { flex-shrink: 0; color: var(--accent-text); }
.extra-confirm.auto-on a { font-weight: 800; color: var(--accent-text); }

.redeem-card { display: flex; gap: 18px; align-items: flex-start; }
.redeem-body { flex: 1; min-width: 0; }
.redeem-field { margin-top: 14px; max-width: 520px; box-shadow: none; }
.redeem-deal { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 14px; max-width: 520px; font-size: 0.9rem; color: var(--ink-2); background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 14px; }
.redeem-deal > svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: var(--accent-text); }
.redeem-deal b { color: var(--ink); }
.redeem-field input { text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; }
.redeem-field input::placeholder { text-transform: none; letter-spacing: 0; }
.gift-list { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--ink-2); }
.gift-list li { display: flex; align-items: center; gap: 8px; }
.gift-list svg { flex-shrink: 0; color: var(--accent); }
.gift-list b { color: var(--ink); letter-spacing: 0.04em; }
.redeem-card .pg-note { margin-top: 14px; }
@media (max-width: 560px) { .redeem-card { flex-direction: column; } }

.pdf-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 0.82rem; font-weight: 800; color: var(--ink-2); text-decoration: none; background: var(--surface-2); border-radius: 999px; transition: background 0.15s, color 0.15s; }
.pdf-link:hover { color: var(--accent-text); background: var(--accent-soft); }
.pdf-link svg { width: 15px; height: 15px; }

/* ---------- Enhanced reports ---------- */
.enh-tag { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 2px 8px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.enh-tag svg { width: 12px; height: 12px; }
.enh-tag.gold { color: var(--gold-ink); background: var(--gold-grad); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 2px 8px -3px rgba(217, 146, 27, 0.6); }
.enh-tag.lg { padding: 5px 12px; font-size: 0.74rem; text-decoration: none; }
.enh-tag.lg svg { width: 14px; height: 14px; }
a.enh-tag:not(.gold):hover { color: var(--ink-2); border-color: var(--line-strong); }
.rrow-who b { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rrow-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rrow-who .new-tag { margin-left: 0; vertical-align: 0; }
.rrow:has(.enh-tag.gold) .rrow-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold-line); }

.icon-badge.violet { color: var(--violet); background: var(--violet-soft); }
.icon-badge.grey { color: var(--ink-2); background: var(--surface-2); }
.btn-gold { color: var(--gold-ink); background: var(--gold-grad); border: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 24px -10px rgba(217, 146, 27, 0.75); }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(1.05) saturate(1.05); transform: translateY(-1px); }
.btn-gold:disabled { opacity: 0.75; cursor: progress; transform: none; }
.btn-gold svg { width: 20px; height: 20px; }

/* Not enhanced: the one-step unlock over a blurred preview */
.enhance-offer { position: relative; display: grid; margin-top: 32px; border: 1.5px solid var(--gold-line); border-radius: 24px; overflow: hidden; background: radial-gradient(500px 260px at 100% 0%, var(--gold-soft), transparent 70%), var(--surface); scroll-margin-top: 120px; }
.enhance-ghost, .enhance-card { grid-area: 1 / 1; }
.enhance-ghost { display: grid; align-content: start; gap: 12px; padding: 24px; filter: blur(4px); opacity: 0.55; pointer-events: none; user-select: none; }
.ghost-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; background: var(--surface-2); border-radius: 14px; }
.ghost-icon { width: 40px; height: 40px; background: var(--line-strong); border-radius: 12px; }
.ghost-text { display: grid; gap: 6px; }
.ghost-text i { display: block; height: 10px; background: var(--line-strong); border-radius: 5px; }
.ghost-text i.w30 { width: 30%; } .ghost-text i.w48 { width: 48%; } .ghost-text i.w62 { width: 62%; } .ghost-text i.w70 { width: 70%; }
.ghost-strip { display: flex; gap: 3px; }
.ghost-strip i { width: 8px; height: 18px; background: #22c55e; border-radius: 2px; }
.ghost-strip i.late { background: #fb923c; }
.enhance-card { position: relative; justify-self: center; width: min(100% - 32px, 460px); margin: 28px 0; padding: 28px; text-align: center; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.enhance-card .h2 { margin: 14px 0 6px; }
.enhance-lead { margin: 0 auto; max-width: 340px; color: var(--ink-2); }
.enhance-gets { display: grid; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; text-align: left; }
.enhance-gets li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink-2); }
.enhance-gets svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--gold); }
.enhance-gets b { color: var(--ink); }
.enhance-form .btn-gold { width: 100%; justify-content: center; }
.enhance-pay { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 2px; font-size: 0.9rem; color: var(--ink-2); }
.enhance-pay b { font-variant-numeric: tabular-nums; color: var(--ink); }
.enhance-change summary { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; list-style: none; }
.enhance-change summary::-webkit-details-marker { display: none; }
.enhance-change summary:hover { color: var(--ink); }
.enhance-change[open] summary { margin-bottom: 10px; color: var(--ink); }
.enhance-methods { display: grid; gap: 8px; text-align: left; }
.enhance-method { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 0.9rem; font-weight: 700; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.enhance-method:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.enhance-method input { accent-color: var(--gold); }
.enhance-method small { display: block; font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.enhance-new { margin-top: 12px; padding-top: 12px; text-align: left; border-top: 1px dashed var(--line-strong); }
.enhance-new > p:first-child { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.enhance-new > p:first-child svg { width: 14px; height: 14px; }
.enhance-new-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.enhance-new-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; font: inherit; font-size: 0.8rem; font-weight: 800; color: var(--ink); background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.enhance-new-grid button:hover, .enhance-new-grid button:focus-visible { border-style: solid; border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-1px); outline: none; }
.enhance-new-grid img { border-radius: 4px; box-shadow: 0 1px 2px rgba(13, 27, 42, 0.12); }
.enhance-new-cards { display: flex; gap: 3px; height: 24px; align-items: center; }
.enhance-new small { display: block; margin-top: 8px; font-size: 0.76rem; color: var(--muted); }
.enhance-form .form-error { margin: 10px auto 0; }
.enhance-form .fine { margin: 14px 0 0; }
.pg-inline { color: var(--amber); font-weight: 700; }
@media (max-width: 560px) { .enhance-card { padding: 22px 18px; } .enhance-ghost { padding: 14px; } }

/* Enhanced: the full account history */
.history { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.history-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.history-head .h2 { margin: 0; }
.history-head .muted { margin: 4px 0 0; font-size: 0.9rem; }
.history-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 16px; }
.history-stats div { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface-2); border-radius: 14px; }
.history-stats b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.history-stats b small { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.history-stats span { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.history-stats .is-good b { color: var(--accent-text); }
.history-stats .is-bad b { color: #c2410c; }
@media (max-width: 700px) { .history-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.history-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.history-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pm { display: inline-block; width: 8px; height: 18px; border-radius: 2px; background: var(--line); }
.history-legend .pm { width: 10px; height: 10px; border-radius: 3px; }
.pm.ok { background: #22c55e; }
.pm.late1 { background: #facc15; }
.pm.late2 { background: #fb923c; }
.pm.late3 { background: #f87171; }
.pm.late4 { background: #dc2626; }
.pm.derog { background: #a21caf; }
.pm.none { background: var(--line); }

.accts { display: grid; gap: 10px; }
.acct { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.15s, box-shadow 0.15s; }
.acct:hover, .acct[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.acct summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "icon who status money chev" "icon strip strip strip strip"; align-items: center; gap: 10px 16px; padding: 14px 16px; cursor: pointer; list-style: none; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary > .icon-badge { grid-area: icon; align-self: start; }
.acct-who { grid-area: who; min-width: 0; }
.acct-who b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-who small { display: block; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.acct-status { grid-area: status; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.status.mop-ok { color: var(--accent-text); background: var(--accent-soft); }
.status.mop-warn { color: var(--amber); background: var(--amber-soft); }
.status.mop-bad { color: #b91c1c; background: rgba(220, 38, 38, 0.1); }
.acct-money { grid-area: money; display: grid; justify-items: end; min-width: 120px; text-align: right; }
.acct-money b { font-weight: 800; font-variant-numeric: tabular-nums; }
.acct-money small { font-size: 0.78rem; color: var(--muted); }
.acct-use { width: 90px; height: 6px; margin-top: 5px; }
.acct-use .bg { fill: var(--surface-2); }
.acct-use .fg { fill: var(--accent); }
.acct-use .fg.high { fill: #f97316; }
.acct-chev { grid-area: chev; display: inline-flex; color: var(--muted); transition: transform 0.2s; }
.acct[open] .acct-chev { transform: rotate(90deg); }
.acct-strip { grid-area: strip; display: grid; gap: 4px; min-width: 0; }
.pms { display: flex; gap: 3px; overflow: hidden; }
.pms .pm { flex: 1 1 0; max-width: 18px; min-width: 4px; }
.pms-range { display: flex; justify-content: space-between; max-width: calc(24 * 21px); font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.acct.is-closed .acct-who b, .acct.is-closed .acct-money b { color: var(--ink-2); }
.acct-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 20px; margin: 0; padding: 4px 16px 18px 72px; }
.acct-facts div { display: grid; gap: 2px; }
.acct-facts dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.acct-facts dd { margin: 0; font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.acct-facts dd small { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.acct-facts dd.bad { color: #b91c1c; }
@media (max-width: 700px) {
    .acct summary { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon who money" "icon status status" "strip strip strip"; gap: 8px 12px; padding: 12px; }
    .acct-status { justify-content: flex-start; }
    .acct-chev { display: none; }
    .acct-money { min-width: 0; }
    .acct-facts { padding: 4px 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.history-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
@media (max-width: 760px) { .history-cols { grid-template-columns: 1fr; } }
.rh .count { display: inline-block; margin-left: 4px; padding: 0 7px; font-size: 0.72rem; letter-spacing: 0; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; }
.inq-list { display: grid; margin: 0; padding: 0; list-style: none; }
.inq-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.inq-list li:first-child { border-top: 0; }
.inq-list b { display: block; font-weight: 800; }
.inq-list small { font-size: 0.82rem; color: var(--muted); }
.inq-list time { flex-shrink: 0; font-size: 0.84rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.history > .fine { margin: 24px 0 0; }
.history.is-fresh .history-head .enh-tag { animation: enh-shine 1.6s ease-out 1; }
.history.is-fresh .acct { animation: enh-in 0.5s ease-out both; }
.history.is-fresh .acct:nth-child(2) { animation-delay: 0.06s; } .history.is-fresh .acct:nth-child(3) { animation-delay: 0.12s; }
.history.is-fresh .acct:nth-child(4) { animation-delay: 0.18s; } .history.is-fresh .acct:nth-child(n+5) { animation-delay: 0.24s; }
@keyframes enh-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes enh-shine { 0% { box-shadow: 0 0 0 0 rgba(233, 173, 44, 0.7); } 100% { box-shadow: 0 0 0 18px rgba(233, 173, 44, 0); } }
@media (prefers-reduced-motion: reduce) { .history.is-fresh .acct, .history.is-fresh .history-head .enh-tag { animation: none; } }
@media print {
    .enhance-offer, .report-bar-meta .enh-tag { display: none !important; }
    .acct { break-inside: avoid; }
    .acct-chev { display: none; }
    .pm { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
.enhance-express { min-height: 44px; margin-bottom: 8px; }
.enhance-express[hidden] { display: none; }
.enhance-card-open { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 14px; font: inherit; font-size: 0.88rem; font-weight: 800; color: var(--ink); background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.enhance-card-open:hover, .enhance-card-open:focus-visible { border-style: solid; border-color: var(--gold); box-shadow: var(--shadow-sm); outline: none; }
.enhance-card-open[hidden] { display: none; }
.enhance-card-form { display: grid; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.enhance-card-form[hidden] { display: none; }
.enhance-card-form .btn-gold { justify-content: center; }
.enhance-new .form-error { margin: 10px 0 0; max-width: none; }
.enhance-new .pg-note { margin: 10px 0 0; font-size: 0.78rem; text-transform: none; letter-spacing: 0; font-weight: 500; display: block; color: var(--ink-2); }

/* ---------- API / Developer (portal) ---------- */
.portal-badge.violet { color: var(--violet); background: var(--violet-soft); }
.portal-nav a.nav-api svg { color: var(--violet); }
.side-api .side-credits-num { min-width: 60px; color: var(--violet); background: var(--violet-soft); }
.side-api:hover { border-color: var(--violet); }

.api-hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.api-hello > div:first-child { flex: 1; min-width: 260px; }
.api-hello .lead { max-width: 660px; }
.api-status { display: flex; align-items: center; gap: 14px; }
.api-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 0.8rem; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; white-space: nowrap; }
.api-live i { width: 8px; height: 8px; color: var(--accent); background: currentColor; border-radius: 50%; animation: api-pulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .api-live i { animation: none; } }

.api-tabs { margin-top: -6px; }
.api-tabs a svg { width: 16px; height: 16px; color: var(--muted); }
.api-tabs a[aria-current] svg { color: var(--violet); }
.tab-locked { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 0.9rem; font-weight: 800; color: var(--muted); opacity: 0.7; cursor: not-allowed; }
.tab-locked svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
    .api-tabs { flex-wrap: nowrap; width: auto; overflow-x: auto; scrollbar-width: none; border-radius: 18px; }
    .api-tabs::-webkit-scrollbar { display: none; }
    .api-tabs a, .tab-locked { flex-shrink: 0; }
}
.role-banner { background: var(--violet-soft); }
.banner.green { background: var(--accent-soft); }
.icon-badge.violet, .banner .icon-badge.violet { color: var(--violet); }

/* Small shared pieces */
.mode-pill { display: inline-flex; align-items: center; padding: 2px 8px; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 6px; vertical-align: 2px; }
.mode-pill.live { color: var(--accent-text); background: var(--accent-soft); }
.mode-pill.test { color: var(--violet); background: var(--violet-soft); }
.pcard-title .mode-pill { margin-right: 8px; }
.code-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 2px 8px; font-family: var(--mono); font-size: 0.75rem; font-weight: 700; border-radius: 999px; }
.code-pill.c2 { color: var(--accent-text); background: var(--accent-soft); }
.code-pill.c3 { color: var(--sky); background: var(--sky-soft); }
.code-pill.c4 { color: var(--amber); background: var(--amber-soft); }
.code-pill.c5 { color: #dc2626; background: rgba(220, 38, 38, 0.1); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; font-size: 0.76rem; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip.green { color: var(--accent-text); background: var(--accent-soft); }
.chip.amber { color: var(--amber); background: var(--amber-soft); }
.chip.red { color: #dc2626; background: rgba(220, 38, 38, 0.1); }
.count { display: inline-flex; padding: 0 8px; margin-left: 6px; font-size: 0.75rem; font-weight: 800; vertical-align: 2px; color: var(--muted); background: var(--surface-2); border-radius: 999px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.copied { color: var(--accent-text); }
.empty-line { margin: 0; padding: 14px 16px; font-size: 0.92rem; color: var(--muted); background: var(--bg-soft); border-radius: 14px; }
.empty-line a { font-weight: 800; color: var(--accent-text); }
.empty-mini { display: grid; justify-items: center; gap: 8px; padding: 20px 12px; text-align: center; }
.empty-mini p { margin: 0; max-width: 320px; color: var(--ink-2); }
.empty-mini .btn-sm { margin-top: 6px; }
.mini-list .when { flex-shrink: 0; font-size: 0.8rem; color: var(--muted); }
.mini-list code { font-family: var(--mono); font-size: 0.78rem; }
.req-list b { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-family: var(--mono); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.req-list .http-verb { font-size: 0.64rem; }
.lock-orb { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 54px; height: 54px; color: #fff; background: linear-gradient(135deg, var(--violet), #4f46e5); border-radius: 18px; box-shadow: 0 14px 30px -14px var(--violet); }
.lock-orb svg { width: 26px; height: 26px; }

/* Not on the API plan: a blurred look at the dashboard behind a lock */
.api-locked { position: relative; display: grid; border-radius: 28px; overflow: hidden; }
.api-preview { display: grid; gap: 16px; padding: 4px; filter: blur(5px) saturate(0.9); opacity: 0.7; pointer-events: none; user-select: none; }
.preview-keys { display: grid; gap: 10px; }
.key-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.key-row:last-child { border-bottom: 0; }
.key-row code { margin-left: auto; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.key-row small { color: var(--muted); }
.api-lock-card { position: absolute; inset: 50% auto auto 50%; display: grid; justify-items: center; gap: 4px; width: min(380px, calc(100% - 32px)); padding: 26px 24px; text-align: center; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); transform: translate(-50%, -50%); backdrop-filter: blur(6px); }
.api-lock-card .h3 { margin: 12px 0 0; }
.api-lock-card p { margin: 0; color: var(--ink-2); }
.api-lock-card .btn-sm { margin-top: 14px; }
@media (max-width: 640px) { .api-preview .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .preview-keys { display: none; } .api-lock-card { position: static; transform: none; width: auto; margin-top: -90px; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { display: grid; align-content: start; gap: 2px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.feature .icon-badge { width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; }
.feature b { font-weight: 800; }
.feature small { font-size: 0.88rem; color: var(--ink-2); }
.separate-card { display: flex; gap: 18px; align-items: flex-start; }
.separate-card .actions .btn-sm { margin-top: 16px; }
@media (max-width: 560px) { .separate-card { flex-direction: column; } }

/* Switching to the API plan */
.activate-card { position: relative; display: grid; gap: 20px; padding: 28px; overflow: hidden; border-color: color-mix(in srgb, var(--violet) 35%, var(--line)); box-shadow: var(--shadow); scroll-margin-top: 140px; }
.activate-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--violet), var(--sky), var(--accent)); }
.activate-card .eyebrow { color: var(--violet); }
.activate-card .h3 { margin: 0; font-size: 1.5rem; }
.bill-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
@media (max-width: 520px) { .bill-pick { grid-template-columns: 1fr; } }
.bill-opt { position: relative; cursor: pointer; }
.bill-opt input { position: absolute; opacity: 0; }
.bill-card { display: grid; gap: 2px; padding: 18px 20px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.bill-card .pick-price { margin: 4px 0 0; }
.bill-opt:hover .bill-card { border-color: var(--line-strong); }
.bill-opt input:checked + .bill-card { background: var(--violet-soft); border-color: var(--violet); box-shadow: 0 16px 34px -24px var(--violet); }
.bill-opt input:focus-visible + .bill-card { outline: 3px solid var(--violet); outline-offset: 2px; }
.bill-opt input:checked + .bill-card .member-name { color: var(--violet); }
/* The switch charges the plan only: funding the balance comes next, in the welcome guide */
.activate-next { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 18px; font-size: 0.9rem; color: var(--ink-2); background: var(--violet-soft); border-radius: 18px; }
.activate-next svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; color: var(--violet); }
.activate-next b { color: var(--ink); }
.activate-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .activate-cols { grid-template-columns: 1fr; } }
.lose-box, .keep-box { padding: 16px 18px; border-radius: 18px; }
.lose-box { background: var(--amber-soft); }
.keep-box { background: var(--accent-soft); }
.lose-box h3, .keep-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.lose-box h3 { color: var(--amber); }
.keep-box h3 { color: var(--accent-text); }
.lose-box h3 svg, .keep-box h3 svg { width: 16px; height: 16px; }
.lose-box ul, .keep-box ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; font-size: 0.9rem; color: var(--ink-2); }
.lose-box p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.lose-box b, .keep-box b { color: var(--ink); }
.method-pick { display: grid; gap: 8px; }
.method-choice { cursor: pointer; }
.method-choice input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--violet); }
.method-choice:has(input:checked) { border-color: var(--violet); background: linear-gradient(90deg, var(--violet-soft), var(--surface) 70%); }
.activate-card .field { margin-top: 0; }
.activate-card .add-method { margin-top: 8px; }
.ack-row { background: var(--surface-2); }
.ack-row input { accent-color: var(--violet); }
.activate-actions { align-items: center; }
.activate-actions .btn svg { width: 18px; height: 18px; }
.activate-card .form-error { margin: 0; max-width: none; }

/* Overview */
.start-card { border-color: color-mix(in srgb, var(--violet) 30%, var(--line)); }
.start-meter { width: 160px; height: 10px; align-self: center; }
.start-meter .bg { fill: var(--surface-2); }
.start-meter .fg { fill: var(--violet); }
.start-steps, .quick-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.quick-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 20px; }
@media (max-width: 1100px) { .start-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .start-steps, .quick-steps { grid-template-columns: 1fr; } }
.start-steps li, .quick-steps li { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; }
.quick-steps li { flex-direction: row; }
.start-steps li > span:nth-child(2), .quick-steps li > span:nth-child(2) { flex: 1; }
.start-steps b, .quick-steps b { display: block; font-weight: 800; }
.start-steps small, .quick-steps small { display: block; font-size: 0.85rem; color: var(--ink-2); }
.quick-steps a { font-weight: 800; color: var(--accent-text); }
.start-steps .btn-sm { margin: 0; align-self: flex-start; }
.start-steps li.done { background: var(--accent-soft); border-color: transparent; }
.start-steps li.done b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.step-dot { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; font-size: 0.85rem; font-weight: 800; color: var(--violet); background: var(--violet-soft); border-radius: 50%; }
.done .step-dot { color: var(--accent-ink); background: var(--accent); }
.step-dot svg { width: 16px; height: 16px; }

.api-chart .bar-match { fill: var(--accent); }
.api-chart .bar-nomatch { fill: color-mix(in srgb, var(--sky) 45%, var(--surface-2)); }
.api-chart .bar-test { fill: color-mix(in srgb, var(--violet) 45%, var(--surface-2)); }
.api-chart .bar-empty { fill: var(--line); }
.api-day { transition: opacity 0.15s; }
.api-chart:hover .api-day { opacity: 0.55; }
.api-chart .api-day:hover { opacity: 1; }
.api-legend { flex-wrap: wrap; margin-top: 8px; }
.key-match::before { background: var(--accent); }
.key-nomatch::before { background: color-mix(in srgb, var(--sky) 45%, var(--surface-2)); }
.key-test::before { background: color-mix(in srgb, var(--violet) 45%, var(--surface-2)); }

.spend { margin-top: 18px; padding: 16px; background: var(--surface-2); border-radius: 16px; }
.spend .usage-head b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.spend .usage-head small { font-weight: 600; color: var(--muted); }
.spend-bar { display: block; width: 100%; height: 12px; margin-top: 10px; overflow: visible; }
.spend-bar .bg { fill: var(--surface); }
.spend-bar .fg { fill: var(--accent); }
.spend.is-warn .spend-bar .fg { fill: var(--score-fair); }
.spend-bar .tick { stroke: var(--ink-2); stroke-width: 0.6; stroke-dasharray: 1.5 1.5; vector-effect: non-scaling-stroke; }
.spend .fine { margin: 8px 0 0; }
.spend .fine a { font-weight: 800; color: var(--accent-text); }

.ai-band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; padding: 28px; overflow: hidden; color: #fff; background: radial-gradient(500px 260px at 100% 0%, rgba(124, 58, 237, 0.55), transparent 70%), radial-gradient(420px 240px at 0% 100%, rgba(34, 197, 94, 0.3), transparent 70%), var(--dark-band); border-radius: 28px; }
.ai-band > div:first-child { flex: 1; min-width: 260px; max-width: 560px; }
.ai-band .h3 { margin: 12px 0 6px; color: #fff; font-size: 1.4rem; }
.ai-band p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.ai-band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-band .btn svg { width: 18px; height: 18px; }
.ai-band .btn.copied { color: #052012; background: #4ade80; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #ddd6fe; background: rgba(167, 139, 250, 0.18); border: 1px solid rgba(167, 139, 250, 0.35); border-radius: 999px; }
.ai-chip svg { width: 16px; height: 16px; }

/* Home for API accounts */
.api-usage-card::before { background: linear-gradient(90deg, var(--violet), var(--sky), var(--accent)); }
.api-usage-num { display: grid; justify-items: center; align-content: center; flex-shrink: 0; width: 148px; height: 148px; color: var(--violet); background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--violet) 20%, var(--surface)), var(--violet-soft)); border-radius: 50%; box-shadow: inset 0 0 0 10px color-mix(in srgb, var(--violet) 12%, transparent); }
.api-usage-num b { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.api-usage-num small { max-width: 100px; margin-top: 4px; font-size: 0.75rem; font-weight: 800; text-align: center; color: var(--muted); }
@media (max-width: 640px) { .api-usage-num { margin: 0 auto; width: 128px; height: 128px; } }
.dev-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .dev-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dev-shortcuts { grid-template-columns: 1fr; } }
.dev-shortcuts a { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.dev-shortcuts a:hover { border-color: var(--violet); box-shadow: var(--shadow); transform: translateY(-2px); }
.dev-shortcuts .icon-badge { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; }
.dev-shortcuts .icon-badge svg { width: 20px; height: 20px; }
.dev-shortcuts b { display: block; font-weight: 800; }
.dev-shortcuts small { display: block; font-size: 0.8rem; color: var(--muted); }
.invoice-card .plan-facts li.total { border-top-style: solid; border-top-color: var(--line-strong); }
.invoice-card .plan-facts li.total span, .invoice-card .plan-facts li.total b { color: var(--ink); font-size: 1rem; }

/* Keys */
.key-reveal { display: grid; gap: 14px; padding: 26px; color: #fff; background: radial-gradient(500px 260px at 100% 0%, rgba(124, 58, 237, 0.5), transparent 70%), var(--dark-band); border-radius: 26px; box-shadow: 0 24px 60px -30px rgba(124, 58, 237, 0.8); animation: pop-in 0.4s cubic-bezier(.2, .8, .2, 1); }
.key-reveal-head { display: flex; gap: 16px; align-items: flex-start; }
.key-reveal .h3 { margin: 0 0 4px; color: #fff; }
.key-reveal p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.key-reveal b { color: #fff; }
.key-reveal .fine { color: rgba(255, 255, 255, 0.6); }
.reveal-field { display: flex; gap: 8px; padding: 6px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px; }
.reveal-field input { flex: 1; min-width: 0; padding: 8px 12px; font-family: var(--mono); font-size: 0.92rem; color: #fff; background: transparent; border: 0; outline: none; }
.reveal-field .btn { flex-shrink: 0; margin: 0; }
.reveal-field .btn.copied { color: #052012; background: #4ade80; }
.reveal-env { padding: 12px 16px; font-size: 0.8rem; background: rgba(0, 0, 0, 0.3); border-radius: 12px; overflow-x: auto; white-space: pre; }
.secret-box .reveal-field { background: var(--code-bg); }
.key-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.key-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; transition: border-color 0.15s; }
.key-item:hover { border-color: var(--line-strong); }
.key-item.is-new { border-color: var(--violet); background: linear-gradient(90deg, var(--violet-soft), var(--surface) 60%); }
.key-item.is-revoked { opacity: 0.72; }
.key-main { display: grid; gap: 4px; flex: 1; min-width: 220px; }
.key-main b { font-weight: 800; }
.key-main b .mode-pill { margin-right: 8px; }
.key-main small { font-size: 0.82rem; color: var(--muted); }
.key-code { justify-self: start; padding: 4px 10px; font-family: var(--mono); font-size: 0.84rem; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; overflow-wrap: anywhere; }
.key-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.key-actions { display: flex; align-items: center; gap: 12px; }
.key-actions form { margin: 0; }
.key-actions .btn-sm, .pcard .key-actions .btn-sm { margin: 0; }
.row-pop { position: relative; }
.row-pop summary { list-style: none; }
.row-pop summary::-webkit-details-marker { display: none; }
.row-pop summary svg { width: 15px; height: 15px; }
.row-pop-body { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; display: grid; gap: 8px; width: 280px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); animation: pdf-pop 0.18s ease-out; }
.row-pop-body p { margin: 0; font-size: 0.86rem; color: var(--ink-2); }
.row-pop-body .field { margin-top: 0; }
.row-pop-body select { padding: 9px 12px; font-size: 0.92rem; }
.pcard .row-pop-body .btn-sm { margin-top: 4px; }
@media (max-width: 560px) { .row-pop-body { right: auto; left: 0; } }
.new-key-card { scroll-margin-top: 140px; }
.new-key-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
@media (max-width: 760px) { .new-key-grid { grid-template-columns: 1fr; } }
.new-key-card .field:first-child, .new-key-grid .field { margin-top: 0; }
.new-key-card > .field { margin-top: 14px; }
.mode-switch { margin: 0; padding: 0; border: 0; }
.mode-switch legend, .score-pick legend, .role-pick legend, .alert-pick legend, .settings-body fieldset legend { margin-bottom: 6px; padding: 0; font-size: 0.85rem; font-weight: 800; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; padding: 7px 12px; border-radius: 12px; transition: background 0.15s, box-shadow 0.15s; }
.seg b { font-size: 0.92rem; font-weight: 800; }
.seg small { font-size: 0.76rem; color: var(--muted); }
.seg input:checked + span { background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--violet); }
.seg input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 1px; }
.revoked-card { padding: 0; }
.revoked-card summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; cursor: pointer; list-style: none; }
.revoked-card summary::-webkit-details-marker { display: none; }
.revoked-card summary b { display: block; font-weight: 800; }
.revoked-card summary small { display: block; font-size: 0.85rem; color: var(--muted); }
.revoked-card summary svg { width: 18px; height: 18px; color: var(--muted); transform: rotate(90deg); transition: transform 0.2s; }
.revoked-card[open] summary svg { transform: rotate(-90deg); }
.revoked-card .key-list { padding: 0 24px 24px; }
.tips, .practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
@media (max-width: 860px) { .tips, .practice-grid { grid-template-columns: 1fr; } }
.tips > div, .practice-grid > div { display: grid; align-content: start; gap: 2px; padding: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; }
.tips .icon-badge, .practice-grid .icon-badge { width: 38px; height: 38px; margin-bottom: 8px; border-radius: 11px; }
.tips .icon-badge svg, .practice-grid .icon-badge svg { width: 18px; height: 18px; }
.tips b, .practice-grid b { font-weight: 800; }
.tips small, .practice-grid small { font-size: 0.86rem; color: var(--ink-2); }

/* IP rules */
.my-ip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.my-ip > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; flex: 1; min-width: 220px; }
.my-ip > div small { flex-basis: 100%; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.my-ip code { font-family: var(--mono); font-size: 1.05rem; }
.my-ip form { margin: 0; }
.my-ip .btn-sm { margin: 0; }
.my-ip .fine { flex-basis: 100%; margin: 0; }
.ip-card { scroll-margin-top: 140px; }
.ip-card.allow { border-top: 4px solid var(--accent); }
.ip-card.block { border-top: 4px solid #dc2626; }
.ip-list { display: grid; gap: 0; margin: 0 0 14px; padding: 0; list-style: none; }
.ip-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ip-list li:last-child { border-bottom: 0; }
.ip-list form { margin: 0; }
.ip-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.block .ip-dot { background: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12); }
.ip-main { flex: 1; min-width: 0; }
.ip-main code { display: block; font-family: var(--mono); font-size: 0.95rem; font-weight: 600; overflow-wrap: anywhere; }
.ip-main small { display: block; font-size: 0.8rem; color: var(--muted); }
.ip-card .empty-line { margin-bottom: 14px; }
.ip-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 1240px) { .ip-add { grid-template-columns: 1fr 1fr; } .ip-add .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ip-add { grid-template-columns: 1fr; } }
.ip-add input { min-width: 0; padding: 10px 12px; font: inherit; font-size: 0.92rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; outline: none; }
.ip-add input[name="ip"] { font-family: var(--mono); }
.ip-add input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pcard .ip-add .btn-sm { margin: 0; }
.ip-card .form-error { max-width: none; }
.rule-steps { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: rule; }
.rule-steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; }
.rule-steps li::before { counter-increment: rule; content: counter(rule); grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 0.82rem; font-weight: 800; color: var(--violet); background: var(--violet-soft); border-radius: 50%; }
.rule-steps b { font-weight: 800; }
.rule-steps small { font-size: 0.85rem; color: var(--muted); }

/* Team */
.team-head { padding: 22px 24px 0; }
.team-head .btn-sm { margin: 0; }
.team-list { display: grid; margin: 0; padding: 0; list-style: none; }
.team-list .member { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px 16px; padding: 16px 24px; border-top: 1px solid var(--line); }
.team-list .member .avatar { width: 40px; height: 40px; font-size: 0.85rem; border-radius: 13px; }
.team-list .member .avatar.ghost { color: var(--muted); background: var(--surface-2); border: 1.5px dashed var(--line-strong); }
.team-list .member.is-owner .avatar { background: linear-gradient(135deg, var(--violet), #4f46e5); color: #fff; }
.member-who { min-width: 0; }
.member-who b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 800; overflow-wrap: anywhere; }
.member-who small { display: block; font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.you-tag { padding: 1px 7px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-radius: 999px; }
.role-pill { padding: 4px 12px; font-size: 0.78rem; font-weight: 800; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; white-space: nowrap; }
.role-pill.owner { color: var(--violet); background: var(--violet-soft); }
.role-pill.admin { color: var(--accent-text); background: var(--accent-soft); }
.role-pill.developer { color: var(--sky); background: var(--sky-soft); }
.role-pill.billing { color: var(--amber); background: var(--amber-soft); }
.member-meta { font-size: 0.82rem; color: var(--muted); }
.is-owner .member-meta { max-width: 240px; }
.member-edit { display: flex; align-items: center; gap: 8px; margin: 0; }
.member-edit select { padding: 8px 10px; font: inherit; font-size: 0.88rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; }
.pcard .member-edit .btn-sm { margin: 0; padding: 8px 14px; }
.member-actions { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.member-actions form { margin: 0; }
.member-actions .link-button { font-size: 0.85rem; }
@media (max-width: 1100px) {
    .team-list .member { grid-template-columns: auto minmax(0, 1fr); }
    .member-edit, .member-actions, .team-list .member .role-pill, .member-meta { grid-column: 2; justify-content: flex-start; justify-self: start; }
    .member-edit { flex-wrap: wrap; }
}
.invite-card { scroll-margin-top: 140px; }
.invite-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
@media (max-width: 900px) { .invite-grid { grid-template-columns: 1fr; } }
.invite-grid .field { margin-top: 0; }
@media (max-width: 900px) { .invite-grid .field + .field { margin-top: 14px; } }
.role-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; border: 0; }
@media (max-width: 1100px) { .role-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .role-pick { grid-template-columns: 1fr; } }
.role-pick legend { grid-column: 1 / -1; }
.role-opt { position: relative; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; transition: border-color 0.15s, background 0.15s; }
.role-opt b { font-weight: 800; }
.role-opt small { font-size: 0.8rem; color: var(--muted); }
.role-opt input:checked + span { border-color: var(--violet); background: var(--violet-soft); }
.role-opt input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.invite-card .form-error { max-width: none; }
.role-table { min-width: 640px; }
.role-table td, .role-table th { text-align: center; }
.role-table td:first-child, .role-table th:first-child { text-align: left; white-space: normal; min-width: 240px; }
.role-table td.yes { color: var(--accent); }
.role-table td.yes svg { width: 18px; height: 18px; vertical-align: middle; }
.role-table td.no { color: var(--line-strong); }
.pcard.flush .table-wrap { margin-top: 12px; }
.preview-role { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.preview-role > div { flex: 1; min-width: 220px; }
.preview-role select { padding: 9px 12px; font: inherit; font-size: 0.92rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; }
.pcard.preview-role .btn-sm { margin: 0; }

/* Defaults */
.settings-card { display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr); gap: 24px 32px; scroll-margin-top: 140px; }
@media (max-width: 900px) { .settings-card { grid-template-columns: 1fr; } }
.settings-side .icon-badge { width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px; }
.settings-side .icon-badge svg { width: 20px; height: 20px; }
.settings-body { display: grid; gap: 4px; min-width: 0; }
.settings-body > .field:first-child, .settings-body fieldset.field { margin-top: 0; }
.settings-body form { margin: 0; }
.settings-body fieldset { margin: 14px 0 0; padding: 0; border: 0; }
.settings-body .spend { margin-top: 0; }
.score-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 6px !important; }
@media (max-width: 560px) { .score-pick { grid-template-columns: 1fr; } }
.score-pick legend { grid-column: 1 / -1; }
.score-opt { position: relative; cursor: pointer; }
.score-opt input { position: absolute; opacity: 0; }
.score-opt span { display: grid; gap: 2px; height: 100%; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; transition: border-color 0.15s, background 0.15s; }
.score-opt b { font-weight: 800; }
.score-opt small { font-size: 0.84rem; color: var(--muted); }
.score-opt code { justify-self: start; margin-top: 6px; padding: 2px 8px; font-family: var(--mono); font-size: 0.76rem; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; }
.score-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.score-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.score-opt input:disabled + span { cursor: default; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 640px) { .two-fields { grid-template-columns: 1fr; } }
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-checks label { position: relative; cursor: pointer; }
.chip-checks input { position: absolute; opacity: 0; }
.chip-checks span { display: inline-flex; padding: 7px 16px; font-weight: 800; color: var(--ink-2); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.chip-checks input:checked + span { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.chip-checks input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.event-list { display: grid; gap: 8px; }
.event-list code { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.settings-body .actions { margin-top: 14px; }
.settings-body .actions .btn-sm, .settings-body form .btn-sm { margin-top: 0; }
.secret-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 16px; background: var(--surface-2); border-radius: 16px; }
.secret-box > div:first-child { flex: 1; min-width: 220px; }
.secret-box small { display: block; margin-bottom: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.secret-box code { font-family: var(--mono); font-size: 0.95rem; }
.secret-box .actions { margin: 0; }
.secret-box .fine { margin: 6px 0 0; }
.hook-last { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 0.85rem; color: var(--ink-2); }
.settings-card .toggle-row:first-child { padding-top: 0; }
.settings-body .switch:disabled, .settings-body select:disabled, .settings-body input:disabled { opacity: 0.6; cursor: not-allowed; }

/* Docs */
.docs-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.docs-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 14px 28px; }
@media (max-width: 1240px) { .docs-facts { grid-template-columns: repeat(2, minmax(0, auto)); } }
@media (max-width: 560px) { .docs-facts { grid-template-columns: 1fr; } }
.fact { min-width: 0; }
.fact small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fact b { font-size: 0.9rem; font-weight: 700; }
.copy-field { display: flex; align-items: center; gap: 4px; }
.copy-field code { font-family: var(--mono); font-size: 0.86rem; font-weight: 600; overflow-wrap: anywhere; }
.copy-field .icon-btn { width: 28px; height: 28px; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.docs-actions .btn svg { width: 16px; height: 16px; }
.docs-toc { display: flex; flex-wrap: wrap; gap: 6px; }
.docs-toc a { padding: 6px 12px; font-size: 0.84rem; font-weight: 800; color: var(--ink-2); text-decoration: none; background: var(--surface-2); border-radius: 999px; transition: background 0.15s, color 0.15s; }
.docs-toc a:hover { color: var(--accent-text); background: var(--accent-soft); }
#quickstart, #ai, #endpoints, #try, #errors, #webhooks, #practices, .endpoint { scroll-margin-top: 140px; }
.code-group { min-width: 0; margin-top: 14px; }
.code-group:first-child { margin-top: 0; }
.code-group-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.code-group-bar .code-label { margin: 0 auto 0 0; }
.code-group .code { font-size: 0.8rem; white-space: pre; }
.code-group .code-langs button { padding: 4px 10px; font-size: 0.76rem; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font: inherit; font-size: 0.78rem; font-weight: 800; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: color 0.15s, background 0.15s; }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { color: var(--ink); }
.copy-btn.copied { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.code .k { color: #93c5fd; }
.code-resp { max-height: 420px; overflow: auto; }

.ai-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; padding: 28px; color: #fff; background: radial-gradient(600px 320px at 0% 0%, rgba(124, 58, 237, 0.5), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgba(14, 165, 233, 0.28), transparent 70%), var(--dark-band); border-radius: 28px; }
@media (max-width: 960px) { .ai-card { grid-template-columns: 1fr; padding: 22px 18px; } }
.ai-card .h3 { margin: 14px 0 8px; color: #fff; font-size: 1.45rem; }
.ai-card p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.ai-card .actions { margin-top: 20px; }
.ai-card .btn svg { width: 18px; height: 18px; }
.ai-card .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.ai-card .btn-secondary:hover { border-color: #fff; }
.ai-card .btn.copied { color: #052012; background: #4ade80; }
.ai-prompt { width: 100%; min-height: 300px; padding: 18px; font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; color: #dbe4f0; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; resize: vertical; outline: none; }
.ai-prompt:focus { border-color: rgba(167, 139, 250, 0.7); }
.ai-tip { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.ai-tip svg { flex-shrink: 0; width: 18px; height: 18px; color: #4ade80; }

.endpoints { display: grid; gap: 16px; }
.endpoints-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.endpoints-head .h3 { margin: 0; font-size: 1.4rem; }
.lang-global { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.lang-global:has([data-langs][hidden]) { display: none; }
.endpoint-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.endpoint-head .http-verb { font-size: 0.78rem; }
.endpoint-path { font-family: var(--mono); font-size: 1.02rem; font-weight: 700; overflow-wrap: anywhere; }
.price-chip { margin-left: auto; padding: 3px 10px; font-size: 0.76rem; font-weight: 800; color: var(--amber); background: var(--amber-soft); border-radius: 999px; }
.price-chip.free { color: var(--accent-text); background: var(--accent-soft); }
.endpoint-title { margin: 12px 0 4px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; }
.endpoint-desc { margin: 0 0 16px; max-width: 760px; color: var(--ink-2); }
.endpoint-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .endpoint-grid { grid-template-columns: minmax(0, 1fr); } }
.spec.params th { width: 40%; }
.spec.params th small { display: block; margin-top: 2px; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.spec.params td { font-size: 0.86rem; }
.resp-codes { flex-wrap: wrap; margin-top: 16px; }

.try-card { border-color: color-mix(in srgb, var(--violet) 30%, var(--line)); }
.try-card .pcard-title { display: flex; align-items: center; gap: 8px; }
.try-card .pcard-title svg { width: 18px; height: 18px; color: var(--violet); }
.try-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .try-grid { grid-template-columns: 1fr; } }
.try-form { display: grid; gap: 0; margin: 0; }
.try-form .field:first-of-type { margin-top: 0; }
.try-form .field > span { font-family: var(--mono); font-weight: 700; }
.try-form .field select, .try-form .field input { padding: 10px 12px; font-size: 0.95rem; }
.try-form .toggle-row { margin-top: 6px; border-bottom: 0; }
.try-form .toggle-row b { font-family: var(--mono); font-size: 0.9rem; }
.try-form > .btn { justify-self: start; margin-top: 8px; }
.try-form > .btn svg { width: 18px; height: 18px; }
.try-form .fine { margin: 10px 0 0; }
.try-out { min-width: 0; }
.try-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; background: var(--surface-2); border-radius: 14px; animation: pop-in 0.3s ease-out; }
.try-status b { font-family: var(--mono); font-weight: 700; }
.try-status small { margin-left: auto; font-size: 0.8rem; color: var(--muted); }
.try-status code { font-family: var(--mono); }
.try-empty { display: grid; place-items: center; gap: 12px; min-height: 280px; color: var(--code-ink); background: var(--code-bg); border-radius: 18px; }
.try-empty p { margin: 0; font-size: 0.9rem; color: #7c8aa3; }
.errors-table { margin-top: 16px; }
.errors-table th { width: 36%; }
.errors-table .code-pill { margin-right: 6px; }

/* Logs */
.log-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.log-filters select { padding: 9px 12px; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; }
.log-export { margin-left: auto; }
.log-export svg { width: 16px; height: 16px; }
.log-summary { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--muted); }
.log-summary b { color: var(--ink); font-variant-numeric: tabular-nums; }
.log-head, .log-row summary { display: grid; grid-template-columns: 96px minmax(0, 1.6fr) 130px minmax(0, 1fr) 88px 70px; align-items: center; gap: 12px; padding: 12px 20px; }
.log-head { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.log-head .num, .log-row .num { text-align: right; }
.log-row { border-top: 1px solid var(--line); }
.log-row summary { cursor: pointer; list-style: none; font-size: 0.88rem; transition: background 0.15s; }
.log-row summary::-webkit-details-marker { display: none; }
.log-row summary:hover, .log-row[open] summary { background: var(--bg-soft); }
.log-row.is-error .log-req code { color: var(--ink-2); }
.log-row.is-new summary { box-shadow: inset 3px 0 0 var(--violet); }
.log-time { display: grid; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.log-time small { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.log-req { display: flex; align-items: center; gap: 8px; min-width: 0; }
.log-req code { font-family: var(--mono); font-size: 0.84rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.log-req .http-verb { flex-shrink: 0; font-size: 0.64rem; }
.log-code { display: block; margin-top: 2px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.log-key { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.log-ms, .log-cost { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.log-cost { font-weight: 800; color: var(--ink); }
.log-detail { display: grid; gap: 14px; padding: 6px 20px 20px; background: var(--bg-soft); }
.log-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
@media (max-width: 1100px) { .log-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .log-facts { grid-template-columns: 1fr; } }
.log-facts dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.log-facts dd { margin: 2px 0 0; font-size: 0.86rem; overflow-wrap: anywhere; }
.log-facts code { font-family: var(--mono); font-size: 0.8rem; }
.log-bodies { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.log-bodies .code { padding: 14px 16px; font-size: 0.78rem; }
.log-bodies .code-label { margin-bottom: 6px; }
.log-detail .fine { margin: 0; }
.log-more { margin: 0; padding: 14px 20px; font-size: 0.85rem; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.log-empty { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
    .log-head { display: none; }
    .log-row summary { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; }
    .log-time { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
    .log-req { grid-column: 1; }
    .log-row summary > span:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; }
    .log-key { grid-column: 1; }
    .log-ms { grid-column: 2; grid-row: 3; }
    .log-cost { display: none; }
    .log-detail { padding: 6px 16px 16px; }
    .log-export { margin-left: 0; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-hero { position: relative; padding: 72px 0 36px; overflow: hidden; }
.blog-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); pointer-events: none; }
.blog-hero > .container { position: relative; }
.blog-hero-sm { padding: 48px 0 28px; }
.blog-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.blog-title { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.blog-hero-sm .blog-title { font-size: clamp(2rem, 4.2vw, 3rem); }
.blog-hero-tools { display: grid; justify-items: end; gap: 12px; }
.blog-search { display: flex; align-items: center; gap: 8px; width: min(340px, 100%); padding: 4px 6px 4px 16px; color: var(--muted); background: var(--surface); border: 2px solid var(--line-strong); border-radius: 999px; transition: border-color 0.15s, box-shadow 0.15s; }
.blog-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.blog-search input { flex: 1; min-width: 0; padding: 10px 4px; font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 0; outline: none; }
.blog-search .i { flex-shrink: 0; }
.blog-hero-sm .blog-search { margin-top: 24px; }
.blog-rss { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.blog-rss:hover { color: var(--accent-text); }
.i { flex-shrink: 0; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.crumbs a { color: var(--accent-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.blog-cats { display: flex; gap: 8px; margin: 0 0 36px; padding: 4px 0 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cats a { flex-shrink: 0; padding: 8px 16px; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); text-decoration: none; background: var(--surface-2); border: 1px solid transparent; border-radius: 999px; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.blog-cats a:hover { color: var(--ink); border-color: var(--line-strong); }
.blog-cats a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

/* Cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.post-grid-cta { grid-column: 1 / -1; }
.post-grid-cta .post-cta { margin: 0; }
.post-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.post-card-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); border-radius: 20px; }
.post-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.post-card:hover .post-card-media img { transform: scale(1.045); }
.post-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 18px; }
.post-chip { display: inline-block; padding: 4px 11px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); text-decoration: none; background: var(--accent-soft); border-radius: 999px; }
.post-chip:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.post-card-title { margin: 0; font-size: 1.22rem; font-weight: 800; line-height: 1.28; letter-spacing: -0.025em; }
.post-card-title a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.35s; }
.post-card-title a:hover { background-size: 100% 2px; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card-excerpt { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-chip, .post-card-media { position: relative; z-index: 1; }
.post-meta { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: auto; font-size: 0.83rem; font-weight: 600; color: var(--muted); }

.blog-feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; margin-bottom: 72px; }
.post-card-lg .post-card-media { aspect-ratio: 16 / 10.5; border-radius: 26px; }
.post-card-lg .post-card-title { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.15; letter-spacing: -0.035em; }
.post-card-lg .post-card-excerpt { font-size: 1.05rem; -webkit-line-clamp: 4; }
.blog-feature-side { display: grid; gap: 28px; align-content: start; }
.blog-feature-side .post-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 18px; align-items: start; }
.blog-feature-side .post-card-body { padding-top: 0; }
.blog-feature-side .post-card-media { aspect-ratio: 4 / 3; border-radius: 16px; }
.blog-feature-side .post-card-title { font-size: 1.08rem; }
.blog-feature-side .post-card-excerpt { -webkit-line-clamp: 2; font-size: 0.9rem; }
.blog-latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: none; margin-bottom: 28px; }
.blog-latest-head .h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.blog-latest-head p { margin: 0; font-weight: 700; }
.blog-empty { padding: 48px 0; font-size: 1.1rem; color: var(--muted); }

.blog-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 56px 0 0; }
.blog-page-nums { display: flex; gap: 6px; }
.blog-page-num, .blog-page-step { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; font-weight: 800; color: var(--ink); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; }
.blog-page-num { padding: 0; }
.blog-page-num[aria-current] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
a.blog-page-num:hover, a.blog-page-step:hover { border-color: var(--ink-2); }
.blog-page-step[aria-disabled] { color: var(--muted); opacity: 0.5; }
.blog-page-gap { align-self: center; color: var(--muted); }

.author-hero { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.author-hero p { margin: 0; }
.author-hero-title { font-weight: 800; color: var(--ink); }
.author-hero-count { font-size: 0.9rem; color: var(--muted); }
.author-avatar { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.02em; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 50%; }
.author-avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.author-avatar.xl { width: 84px; height: 84px; font-size: 1.7rem; box-shadow: 0 16px 36px -16px var(--accent); }

/* Post */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--lime)); transform: scaleX(0); transform-origin: 0 50%; }
.post-preview-bar { padding: 12px 0; font-size: 0.92rem; color: var(--gold-ink); background: var(--gold-grad); }
.post-preview-bar a { margin-left: 8px; font-weight: 800; color: inherit; }
.post-head { padding: 56px 0 36px; }
.post-head-inner { max-width: 880px; }
.post-title { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.post-dek { margin: 20px 0 0; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.post-byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.post-author { font-weight: 800; color: var(--ink); text-decoration: none; }
.post-author:hover { color: var(--accent-text); }
.post-byline-meta { display: block; font-size: 0.88rem; color: var(--muted); }
.post-hero { margin: 0 auto; }
.post-hero-img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; border-radius: 28px; background: var(--surface-2); }
.photo-credit { margin: 10px 4px 0; font-size: 0.78rem; color: var(--muted); }
.photo-credit a { color: inherit; }

.post-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; margin-top: 48px; }
.post-aside { order: -1; }
.post-aside-sticky { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 24px; max-height: calc(100vh - 170px); }
.post-aside-sticky .post-toc { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); padding-bottom: 20px; }
.post-aside-sticky .side-cta { flex: none; }
.post-toc { font-size: 0.9rem; }
.post-toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.post-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.post-toc a { display: block; margin-left: -2px; padding: 7px 0 7px 16px; line-height: 1.4; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.post-toc a:hover { color: var(--ink); }
.post-toc a[aria-current] { font-weight: 700; color: var(--accent-text); border-left-color: var(--accent); }
.post-toc-mobile { display: none; margin-bottom: 32px; padding: 4px 18px; background: var(--surface-2); border-radius: 16px; }
.post-toc-mobile summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 800; cursor: pointer; list-style: none; }
.post-toc-mobile summary::-webkit-details-marker { display: none; }
.post-toc-mobile summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--muted); }
.post-toc-mobile[open] summary::after { content: "−"; }
.post-toc-mobile ol { margin: 0 0 14px; padding-left: 22px; }
.post-toc-mobile li { padding: 5px 0; }
.post-toc-mobile a { color: var(--ink-2); text-decoration: none; }

.side-cta { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.side-cta-eyebrow { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.side-cta-title { margin: 8px 0 0; font-size: 1.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.side-cta-list { display: grid; gap: 7px; margin: 14px 0 18px; padding: 0; list-style: none; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.side-cta-list li { display: flex; align-items: center; gap: 10px; }
.side-cta-list .i { width: 18px; height: 18px; color: var(--accent); }
.btn-block { display: flex; width: 100%; }
.side-cta-price { margin: 10px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.side-cta-price b { color: var(--ink); }

/* Post text */
.post-main { min-width: 0; max-width: 740px; }
.post-body { font-size: 1.12rem; line-height: 1.78; color: var(--ink-2); }
.post-body > :first-child { margin-top: 0; }
.post-body > p:first-of-type { font-size: 1.22rem; line-height: 1.7; color: var(--ink); }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.35em; }
.post-body h2 { margin: 2.1em 0 0.6em; font-size: clamp(1.55rem, 2.6vw, 1.95rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; color: var(--ink); scroll-margin-top: 150px; text-wrap: balance; }
.post-body h3 { margin: 1.8em 0 0.5em; font-size: 1.3rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 150px; }
.post-body h4 { margin: 1.6em 0 0.4em; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.post-body strong { color: var(--ink); font-weight: 800; }
.post-body a { font-weight: 600; color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); transition: text-decoration-color 0.15s; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body a.ext::after { content: "↗"; display: inline-block; margin-left: 2px; font-size: 0.75em; text-decoration: none; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin: 0.4em 0; padding-left: 0.25em; }
.post-body li::marker { color: var(--accent); font-weight: 800; }
.post-body blockquote { margin: 1.8em 0; padding: 18px 24px; font-size: 1.08rem; color: var(--ink); background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 16px 16px 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.post-body code { padding: 2px 6px; font-family: var(--mono); font-size: 0.88em; color: var(--ink); background: var(--surface-2); border-radius: 6px; }
.post-body pre { margin: 1.6em 0; padding: 18px 20px; overflow-x: auto; font-size: 0.9rem; line-height: 1.6; color: var(--code-ink); background: var(--code-bg); border-radius: 16px; }
.post-body pre code { padding: 0; color: inherit; background: none; }
.table-scroll { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.post-body th { padding: 12px 16px; text-align: left; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); background: var(--surface-2); white-space: nowrap; }
.post-body td { padding: 12px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.post-body tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.post-figure { margin: 2.2em 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--surface-2); }

/* In-text calls to action */
.post-cta-slot { margin: 2.2em 0; }
.post-cta { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px 24px; overflow: hidden; border-radius: 22px; }
.post-cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 16px; }
.post-cta-icon .i { width: 24px; height: 24px; }
.post-cta-title { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.post-cta-sub { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.5; }
.post-cta-btn .i { transition: transform 0.2s; }
.post-cta-btn:hover .i { transform: translateX(3px); }
.post-cta-spark { background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--lime) 14%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.post-cta-spark .post-cta-icon { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); box-shadow: 0 12px 26px -12px var(--accent); }
.post-cta-spark .post-cta-title { color: var(--ink); }
.post-cta-spark .post-cta-sub { color: var(--ink-2); }
.post-cta-soft { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.post-cta-soft .post-cta-icon { color: var(--accent-text); background: var(--accent-soft); }
.post-cta-soft .post-cta-title { color: var(--ink); }
.post-cta-soft .post-cta-sub { color: var(--ink-2); }
.post-cta-dark { color: #fff; background: var(--dark-band); }
.post-cta-dark::before { content: ""; position: absolute; right: -80px; top: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, 0.4), transparent 70%); pointer-events: none; }
.post-cta-dark > * { position: relative; }
.post-cta-dark .post-cta-icon { color: #052012; background: linear-gradient(135deg, #22c55e, #a3e635); }
.post-cta-dark .post-cta-sub { color: rgba(255, 255, 255, 0.75); }
.post-body .post-cta a { color: inherit; text-decoration: none; font-weight: 800; }
.post-body .post-cta .btn-primary { color: var(--accent-ink); }
.post-body .post-cta .btn-white { color: #0b1324; }
.post-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; font-size: 0.98rem; line-height: 1.5; background: var(--surface-2); border-radius: 16px; }
.post-strip p { flex: 1; margin: 0 !important; color: var(--ink-2); }
.post-strip b { color: var(--ink); }
.post-strip-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: strip-pulse 2.4s ease-in-out infinite; }
@keyframes strip-pulse { 50% { box-shadow: 0 0 0 9px transparent; } }
.post-body .post-strip-link { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; font-weight: 800; color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.post-strip-link:hover .i { transform: translateX(3px); }
.post-strip-link .i { width: 16px; height: 16px; transition: transform 0.2s; }

.post-faq { margin-top: 56px; }
.post-faq h2 { margin: 0 0 18px; font-size: clamp(1.55rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -0.03em; scroll-margin-top: 150px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 18px 40px 18px 0; font-size: 1.08rem; font-weight: 800; line-height: 1.4; color: var(--ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-answer p { margin: 0 0 20px; font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.post-tag { padding: 6px 13px; font-size: 0.85rem; font-weight: 700; color: var(--ink-2); text-decoration: none; background: var(--surface-2); border-radius: 999px; }
.post-tag:hover { color: var(--accent-text); background: var(--accent-soft); }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-share > span { margin-right: 6px; font-size: 0.85rem; font-weight: 800; color: var(--muted); }
.post-share a, .post-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink); text-decoration: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
.post-share a:hover, .post-copy:hover { border-color: var(--ink-2); }
.post-copy .i { width: 15px; height: 15px; }
.author-box { display: flex; gap: 20px; margin-top: 36px; padding: 26px; background: var(--surface-2); border-radius: 22px; }
.author-box p { margin: 0; }
.author-box-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.author-box-name { margin-top: 4px !important; font-size: 1.15rem; font-weight: 800; }
.author-box-name a { color: var(--ink); text-decoration: none; }
.author-box-name span { margin-left: 10px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.author-box-bio { margin-top: 8px !important; font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); }
.post-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.post-pn a { display: block; padding: 18px 20px; font-weight: 800; line-height: 1.35; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.15s, transform 0.15s; }
.post-pn a:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-pn small { display: block; margin-bottom: 4px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-pn-next { text-align: right; grid-column: 2; }

.post-end-cta { position: relative; margin: 80px 0 0; padding: 56px; overflow: hidden; color: #fff; text-align: center; background: var(--dark-band); border: 1px solid var(--line); border-radius: 30px; }
.post-end-cta::before, .post-end-cta::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.post-end-cta::before { left: -140px; bottom: -200px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(132, 204, 22, 0.28), transparent 70%); }
.post-end-cta::after { right: -120px; top: -180px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(34, 197, 94, 0.38), transparent 70%); }
.post-end-cta > * { position: relative; z-index: 1; }
.post-end-cta .eyebrow { color: #86efac; }
.post-end-cta .h2 { max-width: 720px; margin: 0 auto; color: #fff; }
.post-end-cta .lead { margin: 16px auto 0; color: rgba(255, 255, 255, 0.78); }
.post-end-cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.post-related { margin: 88px 0 24px; }
.post-related .section-head { margin-bottom: 28px; }

.post-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; font-size: 0.9rem; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.6) blur(14px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 20px 50px -20px rgba(7, 13, 26, 0.45); transform: translateY(140%); transition: transform 0.35s cubic-bezier(.2, .8, .2, 1); }
.post-sticky.is-shown { transform: none; }
.post-sticky-text { flex: 1; line-height: 1.3; }
.post-sticky-text b { color: var(--ink); }

.lookup-modal { width: min(560px, calc(100% - 32px)); }
.lookup-modal-body { padding: 24px 26px 26px; }
.lookup-modal .promo-head { align-items: center; }
.lookup-modal .promo-title { font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.15; }
.lookup-modal .promo-modal form, .lookup-modal form.lookup-modal-form { margin-top: 22px; padding: 6px; max-width: none; }
.lookup-modal-form .btn { width: auto; }
.lookup-modal-perks { gap: 8px 16px; margin-top: 16px; font-size: 0.85rem; }
.lookup-modal-fine { margin: 18px 0 0; padding-top: 16px; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); }
.lookup-modal-fine a { color: inherit; }
.lookup-modal .perks .price b { color: var(--ink); }

@media (max-width: 1100px) {
    .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .post-aside { display: none; }
    .post-toc-mobile { display: block; }
    .post-main { margin: 0 auto; }
}
@media (max-width: 980px) {
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-feature { grid-template-columns: minmax(0, 1fr); }
    .blog-hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .blog-hero-tools { justify-items: start; }
}
@media (max-width: 760px) {
    .post-sticky { display: flex; }
    .post-cta { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; }
    .post-cta-btn { justify-self: start; }
}
@media (max-width: 640px) {
    .container.post-hero { padding: 0; }
    .post-hero-img { border-radius: 0; }
    .photo-credit { margin-left: 16px; }
    .post-grid { grid-template-columns: minmax(0, 1fr); }
    .blog-feature-side .post-card { grid-template-columns: 38% minmax(0, 1fr); }
    .blog-hero { padding: 48px 0 24px; }
    .post-head { padding: 36px 0 28px; }
    .post-body { font-size: 1.06rem; }
    .post-body > p:first-of-type { font-size: 1.12rem; }
    .post-end-cta { padding: 40px 22px; border-radius: 24px; }
    .post-pn { grid-template-columns: minmax(0, 1fr); }
    .post-pn-next { grid-column: 1; }
    .author-box { flex-direction: column; gap: 14px; }
    .blog-pages { flex-wrap: wrap; justify-content: center; }
    .blog-page-step { display: none; }
    .post-strip { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .post-card-media img, .post-sticky, .post-strip-dot { transition: none; animation: none; }
}
@media print {
    .read-progress, .post-aside, .post-sticky, .post-cta-slot, .post-end-cta, .post-share, .post-related, .lookup-modal, .post-toc-mobile { display: none !important; }
}

/* API plan: prepaid balance (activation, Billing, overview) */
.deposit-pick { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.deposit-pick legend { display: grid; gap: 2px; padding: 0; margin-bottom: 10px; font-weight: 800; }
.deposit-pick legend small { font-weight: 500; font-size: 0.86rem; color: var(--muted); }
.deposit-opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .deposit-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .deposit-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.deposit-opt { position: relative; cursor: pointer; }
.deposit-opt input { position: absolute; opacity: 0; }
.deposit-opt span { display: grid; gap: 2px; padding: 14px 12px; text-align: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.deposit-opt b { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.deposit-opt small { font-size: 0.78rem; color: var(--muted); }
.deposit-opt:hover span { border-color: var(--line-strong); }
.deposit-opt input:checked + span { background: var(--violet-soft); border-color: var(--violet); box-shadow: 0 14px 30px -22px var(--violet); }
.deposit-opt input:checked + span b { color: var(--violet); }
.deposit-opt input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.refill-toggle { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.refill-toggle:last-child { border-bottom: 1px solid var(--line); }

.balance-card { position: relative; display: grid; gap: 18px; overflow: hidden; scroll-margin-top: 140px; }
.balance-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--sky), var(--violet)); }
.balance-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.balance-num { display: grid; gap: 2px; }
.balance-num small { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.balance-num b { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.balance-num b.low { color: var(--amber); }
.balance-num b.neg { color: var(--score-poor); }
.balance-num span { font-size: 0.9rem; color: var(--muted); }
.balance-meter { display: block; width: 100%; height: 8px; }
.balance-meter rect.bg { fill: var(--line); }
.balance-meter rect.fg { fill: var(--accent); }
.balance-meter rect.fg.low { fill: var(--amber); }
.balance-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (max-width: 640px) { .balance-facts { grid-template-columns: 1fr; } }
.balance-facts div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.balance-facts dt { font-size: 0.78rem; color: var(--muted); }
.balance-facts dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.topup-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.topup-form .deposit-opts { flex: 1 1 420px; }
.topup-form .deposit-opt span { padding: 10px 8px; }
.topup-form .deposit-opt b { font-size: 1rem; }
.topup-form .topup-custom { display: grid; gap: 6px; flex: 0 1 170px; margin: 0; }
.topup-form .topup-custom span { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.topup-form .topup-custom input { padding: 11px 14px; }
.refill-form { display: grid; gap: 14px; }
.refill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .refill-grid { grid-template-columns: 1fr; } }
.refill-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 0.92rem; background: var(--accent-soft); color: var(--ink-2); }
.refill-status.off { background: var(--amber-soft); }
.refill-status svg { flex-shrink: 0; width: 18px; height: 18px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ledger th { padding: 8px 10px; text-align: left; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.ledger td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .in { color: var(--accent-text); font-weight: 800; }
.ledger .out { color: var(--ink-2); }
.ledger small { display: block; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 640px) { .ledger .hide-sm { display: none; } }
.ledger-wrap { overflow-x: auto; }
.hook-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hook-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 0.88rem; }
.hook-list code { font-weight: 700; }
.hook-list small { color: var(--muted); }
.hook-list .grow { flex: 1 1 auto; }
.test-numbers { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.test-numbers td, .test-numbers th { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.test-numbers th { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.test-numbers tr:last-child td { border-bottom: 0; }
.test-numbers code { white-space: nowrap; }

/* Confirm Purchase (pre_search/confirm, and the portal's account/confirm): the order, the saved card and the Compliance box */
.confirm-card { display: grid; gap: 16px; max-width: 560px; margin-top: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.confirm-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.confirm-item small { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.confirm-item b { display: block; margin-top: 4px; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); }
.confirm-change { flex-shrink: 0; font-size: 0.88rem; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.confirm-change:hover { text-decoration: underline; }
.confirm-lines { display: grid; gap: 10px; margin: 0; }
.confirm-lines div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.confirm-lines dt { font-size: 0.88rem; color: var(--muted); }
.confirm-lines dd { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.confirm-lines .confirm-total { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.confirm-method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface-2); border-radius: 16px; }
.confirm-method img { flex-shrink: 0; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); }
.confirm-method span { display: grid; flex: 1; min-width: 0; }
.confirm-method b { font-size: 0.98rem; color: var(--ink); }
.confirm-method small { font-size: 0.84rem; color: var(--muted); }
.confirm-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; font-size: 0.9rem; color: var(--amber); background: var(--amber-soft); border-radius: 14px; }
.confirm-note svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.agree-row { border: 1px solid var(--line); line-height: 1.5; }
.agree-row a { font-weight: 700; color: var(--accent-text); }
.agree-row:has(input:checked) { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.confirm-card .form-error { max-width: none; margin: 0; }
/* Back from the bank's 3D Secure page (playground/account/bank-confirm) */
.bank-confirm-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; font-size: 0.9rem; color: var(--ink); background: var(--accent-soft); border-radius: 14px; }
.bank-confirm-note svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.confirm-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.confirm-submit svg { width: 20px; height: 20px; }
.confirm-fine { margin: -4px 0 0; font-size: 0.82rem; line-height: 1.5; text-align: center; color: var(--muted); }
.confirm-fine a { color: inherit; }

/* A prepaid card on a trial: the other ways to continue */
.choice-list { display: grid; gap: 12px; max-width: 600px; margin-top: 28px; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.choice.featured { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm); }
.choice .icon-badge { width: 40px; height: 40px; }
.choice-text { display: grid; gap: 3px; min-width: 0; }
.choice-text b { color: var(--ink); }
.choice-text small { font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.choice-price { display: grid; justify-items: end; font-size: 1.2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.choice-price small { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.choice-other { display: flex; gap: 10px; align-items: center; max-width: 600px; margin: 20px 0 0; font-size: 0.92rem; color: var(--ink-2); }
.choice-other svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--muted); }
.choice-other a { font-weight: 700; color: var(--accent-text); }
.saved-card-banner a { font-weight: 700; color: var(--accent-text); }
@media (max-width: 560px) {
    .confirm-card { padding: 18px; border-radius: 20px; }
    .confirm-lines div { grid-template-columns: 1fr; gap: 2px; }
    .confirm-method { flex-wrap: wrap; row-gap: 8px; }
    .confirm-method span { flex-basis: calc(100% - 60px); }
    .confirm-method .confirm-change { margin-left: 60px; }
    .choice { grid-template-columns: auto minmax(0, 1fr) auto; }
    .choice .btn { grid-column: 1 / -1; width: 100%; }
}

/* Confirm Purchase: the membership picker (two plans, Monthly or Yearly each), "What you get" and the pack upsell */
.confirm-card:has(.confirm-plans) { max-width: 640px; }
.confirm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: -4px; }
.confirm-head small { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.confirm-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-pick-card { display: grid; align-content: start; gap: 10px; padding: 14px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 20px; transition: border-color 0.15s, background 0.15s; }
.plan-pick-card.mine { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.plan-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-pick-head b { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.plan-pick-card.featured .plan-pick-head b { color: var(--accent-text); }
.plan-pick-tag { padding: 3px 9px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--lime)); border-radius: 999px; white-space: nowrap; }
.plan-pick-sub { margin: -4px 0 0; font-size: 0.84rem; color: var(--muted); }
.plan-pick-sub b { color: var(--ink-2); }
.plan-pick-opts { display: grid; gap: 8px; }
.plan-pick-opt { position: relative; display: grid; gap: 1px; padding: 11px 40px 11px 14px; font: inherit; text-align: left; text-decoration: none; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
a.plan-pick-opt:hover, button.plan-pick-opt:hover, .plan-pick-opt:focus-visible { border-color: var(--accent); box-shadow: 0 10px 22px -18px color-mix(in srgb, var(--accent) 90%, transparent); transform: translateY(-1px); outline: none; }
.plan-pick-opt.on { cursor: default; border: 2px solid var(--accent); padding: 10.5px 39.5px 10.5px 13.5px; box-shadow: 0 0 0 4px var(--accent-soft); }
.plan-pick-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 800; color: var(--ink-2); }
.plan-pick-when .billing-save { padding: 1px 7px; font-size: 0.66rem; }
.plan-pick-price { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.plan-pick-price small { margin-left: 3px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan-pick-then { font-size: 0.8rem; line-height: 1.4; color: var(--ink-2); }
.plan-pick-each { font-size: 0.76rem; font-weight: 700; color: var(--accent-text); }
.plan-pick-mark { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.plan-pick-opt.on .plan-pick-mark { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

.confirm-gets { display: grid; gap: 14px; padding: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 65%); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 20px; }
.confirm-gets-title { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.confirm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.confirm-stat { display: grid; align-content: start; gap: 2px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.confirm-stat b { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.confirm-stat small { font-size: 0.76rem; line-height: 1.35; color: var(--muted); }
.confirm-stat.hot { background: linear-gradient(135deg, var(--accent), var(--lime)); border-color: transparent; box-shadow: 0 12px 26px -18px var(--accent); }
.confirm-stat.hot b, .confirm-stat.hot small { color: var(--accent-ink); }
.confirm-ticks { margin: 0; gap: 8px; font-size: 0.92rem; }
.confirm-hint { margin: 0; padding-top: 12px; font-size: 0.84rem; line-height: 1.5; color: var(--ink-2); border-top: 1px dashed var(--line-strong); }

.confirm-upsell { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; padding: 14px 16px; background: var(--surface); border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 16px; }
.confirm-upsell .icon-badge { width: 38px; height: 38px; }
.confirm-upsell > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.confirm-upsell b { color: var(--ink); }
.confirm-upsell small { font-size: 0.84rem; color: var(--muted); }
@media (max-width: 560px) {
    .confirm-plans { grid-template-columns: 1fr; }
    .confirm-gets { padding: 14px; }
    .confirm-stats { gap: 6px; }
    .confirm-stat { padding: 10px; }
    .confirm-stat b { font-size: 1.15rem; }
    .confirm-upsell { grid-template-columns: auto minmax(0, 1fr); }
    .confirm-upsell .btn { grid-column: 1 / -1; width: 100%; }
}
.confirm-card { scroll-margin-top: 140px; }

/* A prepaid card on a trial: both memberships at full price, then the packs, to pick from */
.blocked-pick { max-width: 640px; gap: 14px; }
.blocked-pick .confirm-head { flex-wrap: wrap; margin: 4px 0 -2px; }
.blocked-pick .confirm-head + .confirm-plans, .blocked-pick .confirm-head + .confirm-packs { margin-top: 2px; }
.blocked-pick .confirm-plans + .confirm-head { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.confirm-head-note { font-size: 0.8rem; color: var(--muted); }
.confirm-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pack-pick-opt { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 18px 12px 14px; font: inherit; text-align: center; text-decoration: none; color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 18px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.pack-pick-opt:hover, .pack-pick-opt:focus-visible { border-color: var(--accent); background: var(--surface); box-shadow: 0 12px 26px -20px color-mix(in srgb, var(--accent) 90%, transparent); transform: translateY(-1px); outline: none; }
.pack-pick-opt.best { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border: 2px solid var(--accent); padding: 17.5px 11.5px 13.5px; }
.pack-pick-opt .plan-pick-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); }
.pack-pick-count { display: flex; align-items: baseline; gap: 5px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.pack-pick-count b { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.pack-pick-price { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pack-pick-price s { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.pack-pick-each { font-size: 0.8rem; font-weight: 700; color: var(--accent-text); }
.pack-pick-opt .billing-save { font-size: 0.68rem; }
.pack-pick-none { font-size: 0.72rem; color: var(--muted); }
.pack-pick-opt .btn { width: 100%; margin-top: 8px; pointer-events: none; }
.confirm-ticks-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 0.84rem; }
@media (max-width: 560px) {
    .confirm-packs { grid-template-columns: 1fr; gap: 12px; }
    .pack-pick-opt { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left; gap: 2px 12px; padding: 14px; }
    .pack-pick-opt.best { padding: 13.5px; }
    .pack-pick-count { grid-row: span 2; flex-direction: column; align-items: center; gap: 0; min-width: 52px; }
    .pack-pick-price { grid-column: 2; }
    .pack-pick-each { grid-column: 2; }
    .pack-pick-opt .billing-save, .pack-pick-none { grid-column: 3; grid-row: 1; justify-self: end; }
    .pack-pick-opt .btn { grid-column: 3; grid-row: 2; width: auto; margin: 0; }
    .confirm-ticks-row { flex-direction: column; }
}

/* Custom plans, staff view and credit from our team (custom pricing for bulk customers) */
.custom-tag { display: inline-block; margin-left: 6px; padding: 2px 9px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; color: var(--gold-ink); background: var(--gold-grad); border-radius: 999px; }
.staff-bar { position: sticky; top: 0; z-index: 60; color: #1d1404; background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25); }
.staff-bar-in { display: flex; align-items: center; gap: 12px; min-height: 46px; padding-top: 6px; padding-bottom: 6px; font-size: 0.92rem; }
.staff-bar-dot { flex-shrink: 0; width: 9px; height: 9px; background: #1d1404; border-radius: 50%; box-shadow: 0 0 0 4px rgba(29, 20, 4, 0.16); animation: staff-pulse 2s ease-in-out infinite; }
.staff-bar-text { flex: 1; min-width: 0; }
.staff-bar-text > b:first-child { margin-right: 6px; padding: 2px 8px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fde68a; background: #1d1404; border-radius: 999px; }
.staff-bar-end { margin: 0; }
.staff-bar-end button { padding: 7px 14px; font: inherit; font-size: 0.85rem; font-weight: 800; color: #fde68a; background: #1d1404; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.staff-bar-end button:hover { background: #3a2a0a; }
@keyframes staff-pulse { 50% { box-shadow: 0 0 0 7px rgba(29, 20, 4, 0.06); } }
@media (prefers-reduced-motion: reduce) { .staff-bar-dot { animation: none; } }
.team-credit-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.team-credit { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; }
.team-credit > span:last-child { display: grid; gap: 3px; min-width: 0; }
.team-credit b { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.team-credit small { font-size: 0.85rem; color: var(--muted); }
.team-credit.gold { border-color: var(--gold-line); background: var(--gold-soft); }
.enhance-credit { margin-bottom: 4px; }
.enhance-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.enhance-or::before, .enhance-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 560px) {
    .staff-bar-in { flex-wrap: wrap; gap: 8px 10px; }
    .staff-bar-text { flex-basis: calc(100% - 24px); }
    .staff-bar-end { width: 100%; }
    .staff-bar-end button { width: 100%; }
}
.team-credit .icon-badge { flex-shrink: 0; }

/* ---------- Connect an app (OAuth consent, public/oauth/authorize.php) ---------- */
.oauth-page .container { max-width: 620px; }
.oauth-card { max-width: 560px; }
.oauth-link { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 30px 24px 26px; background: radial-gradient(420px 160px at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 75%), var(--surface-2); border-bottom: 1px solid var(--line); }
.oauth-app { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex-shrink: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; background: linear-gradient(135deg, var(--violet), var(--sky)); border-radius: 18px; box-shadow: 0 14px 30px -14px var(--violet); }
.oauth-wire { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 4px; }
.oauth-wire i { width: 6px; height: 6px; background: var(--line-strong); border-radius: 50%; animation: oauth-dot 1.4s ease-in-out infinite; }
.oauth-wire i:nth-child(2) { animation-delay: 0.2s; }
.oauth-wire i:nth-child(3) { animation-delay: 0.4s; }
.oauth-wire-lock { display: none; }
@keyframes oauth-dot { 0%, 100% { background: var(--line-strong); transform: scale(1); } 50% { background: var(--accent); transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .oauth-wire i { animation: none; } }
.oauth-us { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.oauth-us .brand-mark svg { width: 30px; height: 30px; }
.oauth-us .brand-name b { font-size: 1rem; }
.oauth-body { padding: 26px 30px 30px; }
.oauth-body .eyebrow { margin-bottom: 6px; }
.oauth-body .promo-title { margin-top: 0; font-size: 1.42rem; line-height: 1.25; }
.oauth-name { background: linear-gradient(90deg, var(--violet), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.oauth-who { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; font-size: 0.92rem; color: var(--ink-2); }
.oauth-who .btn-text { margin-left: auto; padding: 0; font-size: 0.85rem; }
.oauth-trust { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; font-size: 0.86rem; line-height: 1.5; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 22%, transparent); border-radius: 16px; }
.oauth-trust.is-known { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.oauth-trust .icon-badge { width: 36px; height: 36px; flex-shrink: 0; background: var(--surface); }
.oauth-trust b { display: block; color: var(--ink); }
.oauth-trust span { color: var(--ink-2); }
.oauth-trust code, .oauth-fine code { padding: 1px 6px; font-family: var(--mono); font-size: 0.82em; background: var(--surface); border-radius: 6px; overflow-wrap: anywhere; }
.oauth-account { margin-top: 18px; }
.oauth-scopes { margin: 20px 0 0; padding: 0; border: 0; }
.oauth-scopes legend { margin-bottom: 4px; padding: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.oauth-scope { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.oauth-scope:last-of-type { border-bottom: 0; }
.oauth-scope .icon-badge { width: 40px; height: 40px; }
.oauth-scope-text b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.97rem; }
.oauth-scope-text small { display: block; margin-top: 2px; font-size: 0.84rem; line-height: 1.45; color: var(--muted); }
.oauth-scope.is-off { cursor: not-allowed; opacity: 0.55; }
.oauth-cost { padding: 1px 8px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border-radius: 999px; }
.oauth-switch { appearance: none; -webkit-appearance: none; position: relative; width: 46px; height: 27px; margin: 0; flex-shrink: 0; background: var(--line-strong); border-radius: 999px; cursor: pointer; transition: background 0.18s; }
.oauth-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(13, 27, 42, 0.25); transition: transform 0.18s; }
.oauth-switch:checked { background: var(--accent); }
.oauth-switch:checked::before { transform: translateX(19px); }
.oauth-switch:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.oauth-switch:disabled { cursor: not-allowed; }
.oauth-more { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; }
.oauth-more summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 14px 16px; font-weight: 800; cursor: pointer; list-style: none; }
.oauth-more summary::-webkit-details-marker { display: none; }
.oauth-more summary span { display: inline-flex; align-items: center; gap: 9px; }
.oauth-more summary svg { width: 18px; height: 18px; color: var(--accent); }
.oauth-more summary small { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.oauth-more[open] summary { border-bottom: 1px solid var(--line); }
.oauth-more-body { padding: 4px 16px 18px; }
.oauth-more-body .mode-switch { margin-top: 14px; }
.oauth-more .seg small { display: block; font-size: 0.76rem; color: var(--muted); }
.oauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.oauth-never { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 16px; font-size: 0.84rem; line-height: 1.5; color: var(--ink-2); }
.oauth-never b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.oauth-never svg { width: 15px; height: 15px; color: var(--accent); }
.oauth-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.oauth-actions .btn { flex: 1 1 auto; justify-content: center; }
.oauth-actions .btn-primary { flex-grow: 2; }
.oauth-actions .btn svg { width: 18px; height: 18px; }
.oauth-cancel { display: contents; }
.oauth-body .form-error { max-width: none; }
.oauth-fine { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding-top: 16px; font-size: 0.82rem; color: var(--muted); border-top: 1px dashed var(--line-strong); }
.oauth-fine svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.login-next { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 520px; margin: 0 auto 16px; padding: 12px 18px; font-size: 0.92rem; color: var(--ink-2); background: var(--violet-soft); border-radius: 16px; }
.login-next svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--violet); }
@media (max-width: 560px) {
    .oauth-link { gap: 8px; padding: 22px 12px 20px; }
    .oauth-app { width: 50px; height: 50px; font-size: 1.05rem; border-radius: 15px; }
    .oauth-us .brand-name { display: none; }
    .oauth-us { padding: 10px; }
    .oauth-body { padding: 22px 18px 24px; }
    .oauth-body .promo-title { font-size: 1.25rem; }
    .oauth-grid { grid-template-columns: 1fr; }
    .oauth-scope { grid-template-columns: 36px 1fr auto; gap: 12px; }
    .oauth-scope .icon-badge { width: 36px; height: 36px; }
    .oauth-actions .btn { width: 100%; }
}

/* ---------- API / Developer → Apps & AI (public/account/api-apps.php) ---------- */
.mcp-connect { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; padding: 26px; color: #fff; background: radial-gradient(520px 280px at 100% 0%, rgba(124, 58, 237, 0.55), transparent 70%), radial-gradient(420px 240px at 0% 100%, rgba(22, 163, 74, 0.35), transparent 70%), var(--dark-band); border-radius: 26px; box-shadow: 0 24px 60px -30px rgba(124, 58, 237, 0.8); }
.mcp-connect .h3 { margin: 12px 0 6px; color: #fff; }
.mcp-connect p { margin: 0 0 14px; color: rgba(255, 255, 255, 0.78); }
.mcp-connect-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #ddd6fe; background: rgba(167, 139, 250, 0.18); border-radius: 999px; }
.mcp-connect-badge svg { width: 18px; height: 18px; }
.mcp-url { margin-bottom: 14px; }
.mcp-tool-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mcp-tool-chips code { display: inline-block; padding: 3px 9px; font-family: var(--mono); font-size: 0.74rem; color: #c4f5d3; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; }
.mcp-steps { display: grid; align-content: start; gap: 8px; }
.mcp-step { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; }
.mcp-step summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; }
.mcp-step summary::-webkit-details-marker { display: none; }
.mcp-step summary small { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.mcp-step[open] summary { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mcp-step ol { margin: 10px 0 10px; padding: 0 16px 0 36px; font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.mcp-step .fine { margin: 0 16px 12px; color: rgba(255, 255, 255, 0.65); }
.mcp-step .fine code { overflow-wrap: anywhere; font-family: var(--mono); color: #c4f5d3; }
.mcp-step .code { margin: 10px 12px 12px; padding: 14px 16px; font-size: 0.76rem; background: rgba(0, 0, 0, 0.3); }
.approvals-card { border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
.approvals-card .pcard-title { display: flex; align-items: center; gap: 10px; }
.approvals-card .pcard-title .icon-badge { width: 34px; height: 34px; }
.approval.is-new { border-color: var(--amber); background: linear-gradient(90deg, var(--amber-soft), var(--surface) 70%); }
.approval-actions { display: flex; gap: 8px; margin: 0; }
.approval-actions .btn { margin: 0; }
.approval-actions .btn svg { width: 15px; height: 15px; }
.app-item { align-items: flex-start; }
.app-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--violet), var(--sky)); border-radius: 14px; }
.app-avatar.sm { width: 36px; height: 36px; font-size: 0.85rem; border-radius: 11px; }
.app-avatar.mine { background: linear-gradient(135deg, var(--accent), var(--lime)); }
.app-main b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.app-main b .mode-pill { margin-right: 2px; }
.app-main .chip, .app-main b .chip { font-size: 0.72rem; }
.chip.violet-chip { color: var(--violet); background: var(--violet-soft); }
.app-spend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; font-size: 0.82rem; color: var(--ink-2); }
.app-meter { width: 140px; height: 7px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.app-meter::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.app-meter::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--lime)); border-radius: 999px; }
.app-meter::-moz-progress-bar { background: linear-gradient(90deg, var(--accent), var(--lime)); border-radius: 999px; }
.app-edit { width: 300px; }
.app-edit-scopes { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.app-edit-scopes legend { margin-bottom: 4px; padding: 0; font-size: 0.85rem; font-weight: 800; color: var(--ink-2); }
.app-edit-scopes .check { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
.app-edit-scopes input { width: 17px; height: 17px; accent-color: var(--accent); }
.app-edit textarea { font-family: var(--mono); font-size: 0.82rem; }
.new-app { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line-strong); scroll-margin-top: 140px; }
.new-app .h3 { margin: 0 0 4px; }
.new-app .field textarea { font-family: var(--mono); font-size: 0.85rem; }
.new-app .mode-switch { margin-top: 14px; }
.new-app .seg small { display: block; font-size: 0.76rem; color: var(--muted); }
.new-app .actions { margin-top: 16px; }
.danger-text { color: #c2410c; }
.toggle-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.toggle-line label { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.toggle-line b { display: block; }
.toggle-line small { display: block; font-size: 0.85rem; color: var(--muted); }
.toggle-line .btn { margin: 0; }
@media (max-width: 860px) { .mcp-connect { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 560px) {
    .app-item .key-actions, .approval-actions { width: 100%; }
    .approval-actions .btn { flex: 1; }
    .app-edit { width: min(300px, calc(100vw - 64px)); }
}
.oauth-ipwarn { margin-top: 18px; padding: 18px; background: var(--amber-soft); border: 2px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 18px; }
.oauth-ipwarn-head { display: flex; gap: 14px; align-items: flex-start; }
.oauth-ipwarn-head .icon-badge { width: 40px; height: 40px; flex-shrink: 0; background: var(--surface); }
.oauth-ipwarn-head div > b { display: block; margin-bottom: 4px; font-size: 1.02rem; line-height: 1.35; color: var(--ink); }
.oauth-ipwarn-head div > span { display: block; font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }
.oauth-ipfix { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.oauth-ipfix b { display: block; font-size: 0.92rem; color: var(--ink); }
.oauth-ipfix small { display: block; margin-top: 2px; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.oauth-ipfix:has(.oauth-switch:checked) { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.oauth-ipwarn-ask { margin: 12px 0 0; font-size: 0.86rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.oauth-docs { display: grid; gap: 16px; }
.oauth-docs .pcard-sub { margin: 0; }
.oauth-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.oauth-facts div { padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; }
.oauth-facts dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.oauth-facts dd { margin: 4px 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--ink-2); }
.oauth-facts code { font-family: var(--mono); font-size: 0.82em; overflow-wrap: anywhere; }
#oauth .pcard-title { display: flex; align-items: center; gap: 8px; }
#oauth .pcard-title svg { color: var(--violet); }
@media (max-width: 700px) { .oauth-facts { grid-template-columns: 1fr; } }

/* API page: the MCP server is live, and how connecting works (OAuth) */
.mcp-band .live-badge { color: #052012; background: #4ade80; }
.mcp-tools li.mcp-more { grid-column: 1 / -1; background: transparent; border-style: dashed; }
.mcp-tools li.mcp-more span { margin: 0; line-height: 1.7; }
.mcp-url-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.68); }
.mcp-url-line code { padding: 6px 12px; font-family: var(--mono); font-size: 0.85rem; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; overflow-wrap: anywhere; }
a.mcp-chip { text-decoration: none; }
a.mcp-chip:hover { border-color: #7c3aed; }
.oauth-band { margin-top: 20px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--api-top, 110px) + 64px); }
.oauth-band-head { max-width: 640px; }
.oauth-band-head .eyebrow { margin-bottom: 6px; }
.oauth-band-head .h3 { margin: 0 0 6px; }
.oauth-band-head p { margin: 0; color: var(--ink-2); }
.oauth-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: oauth-step; }
.oauth-steps li { position: relative; padding: 20px 18px 18px 60px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; counter-increment: oauth-step; }
.oauth-steps li::before { content: counter(oauth-step); position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--violet), var(--sky)); border-radius: 10px; }
.oauth-steps b { display: block; margin-bottom: 4px; }
.oauth-steps span { font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }
.oauth-steps code { font-family: var(--mono); font-size: 0.85em; }
.oauth-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.oauth-chips li { padding: 5px 12px; font-size: 0.78rem; font-weight: 800; color: var(--violet); background: var(--violet-soft); border-radius: 999px; }
@media (max-width: 860px) { .oauth-steps { grid-template-columns: 1fr; } .oauth-band { padding: 24px 20px; } }

/* Payout bank account (playground/account/payout-bank.php, payouts.php) */
.bank-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .bank-layout { grid-template-columns: 1fr; } }
.bank-flow { padding: 28px; scroll-margin-top: 90px; }
.bank-flow fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.bank-flow [hidden] { display: none !important; }
.bank-flow .form-error { max-width: none; margin: 0 0 6px; }
.bank-flow:not(.is-js) [data-next], .bank-flow:not(.is-js) [data-back] { display: none; }
.bank-flow:not(.is-js) .bank-step + .bank-step { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.bank-steps { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: none; }
.bank-steps li { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; font-size: 0.85rem; font-weight: 800; color: var(--muted); background: var(--surface-2); border-radius: 999px; transition: color 0.2s, background 0.2s; }
.bank-steps li span { display: grid; place-items: center; width: 24px; height: 24px; font-size: 0.78rem; color: var(--muted); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 50%; transition: inherit; }
.bank-steps li.is-on { color: var(--accent-text); background: var(--accent-soft); }
.bank-steps li.is-on span { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.bank-steps li.is-done span { color: var(--accent-text); border-color: var(--accent); }
.bank-seg { grid-template-columns: 1fr 1fr; max-width: 320px; }
.bank-seg span { place-items: center; }
.bank-seg input:checked + span { box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--accent); }
.bank-seg input:focus-visible + span { outline-color: var(--accent); }
.bank-flow input[name=routing], .bank-flow input[name=account], .bank-flow input[name=account2] { font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.06em; }

.bank-hit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px; background: var(--surface-2); border: 1.5px dashed var(--line-strong); border-radius: 16px; transition: background 0.2s, border-color 0.2s; }
.bank-hit-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-sm); transition: color 0.2s; }
.bank-hit-text { display: grid; gap: 1px; min-width: 0; }
.bank-hit-text b { font-size: 0.98rem; font-weight: 800; color: var(--ink-2); overflow-wrap: anywhere; }
.bank-hit-text small { font-size: 0.82rem; color: var(--muted); }
.bank-hit-mark { display: none; place-items: center; width: 26px; height: 26px; color: #fff; background: var(--accent); border-radius: 50%; }
.bank-hit-mark svg { width: 15px; height: 15px; }
.bank-hit[data-state="found"] { background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.bank-hit[data-state="found"] .bank-hit-icon { color: var(--accent-text); }
.bank-hit[data-state="found"] .bank-hit-text b { color: var(--ink); font-size: 1.05rem; }
.bank-hit[data-state="found"] .bank-hit-mark { display: grid; animation: bank-pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.bank-hit[data-state="not_found"], .bank-hit[data-state="unavailable"] { background: var(--amber-soft); border: 1.5px solid color-mix(in srgb, var(--amber) 35%, transparent); }
.bank-hit[data-state="not_found"] .bank-hit-icon, .bank-hit[data-state="unavailable"] .bank-hit-icon { color: var(--amber); }
.bank-hit[data-state="invalid"] { background: rgba(220, 38, 38, 0.07); border: 1.5px solid rgba(220, 38, 38, 0.35); }
.bank-hit[data-state="invalid"] .bank-hit-icon, .bank-hit[data-state="invalid"] .bank-hit-text b { color: #dc2626; }
.bank-hit[data-state="loading"] .bank-hit-icon { color: var(--accent); animation: bank-pulse 1s ease-in-out infinite; }
@keyframes bank-pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bank-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .bank-hit-mark, .bank-hit .bank-hit-icon { animation: none !important; } }
.bank-match { min-height: 1.2em; margin: 6px 0 0; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.bank-match.ok { color: var(--accent-text); }
.bank-match.bad { color: #dc2626; }

.bank-where { margin-top: 16px; }
.bank-where summary { display: inline-flex; font-size: 0.88rem; font-weight: 800; color: var(--accent-text); cursor: pointer; list-style: none; }
.bank-where summary::-webkit-details-marker { display: none; }
.bank-where summary::after { content: "›"; margin-left: 6px; transition: transform 0.15s; }
.bank-where[open] summary::after { transform: rotate(90deg); }
.check-art { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 12px; }
.ca-paper { fill: color-mix(in srgb, var(--sky-soft) 60%, var(--surface)); stroke: var(--line-strong); }
.ca-line { fill: var(--line-strong); }
.ca-line.soft { fill: var(--line); }
.ca-box { fill: none; stroke: var(--line-strong); }
.ca-mono { font-family: var(--mono); font-size: 15px; font-weight: 700; fill: var(--ink-2); }
.ca-label { font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ca-routing { fill: var(--accent-text); }
.ca-account { fill: var(--violet); }
.ca-mono.ca-num { fill: var(--muted); }
.ca-mono.ca-routing { fill: var(--accent-text); }
.ca-mono.ca-account { fill: var(--violet); }

.bank-confirm { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: center; padding: 22px; color: #fff; background: linear-gradient(135deg, #0b1324, #12395b 60%, #0e7490); border-radius: 20px; box-shadow: 0 18px 40px -20px rgba(11, 19, 36, 0.7); overflow: hidden; }
.bank-confirm::after { content: ""; position: absolute; right: -50px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(132, 204, 22, 0.3), transparent 70%); pointer-events: none; }
.bank-confirm-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #bef264; background: rgba(255, 255, 255, 0.1); border-radius: 14px; }
.bank-confirm small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.bank-confirm b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.bank-confirm > div > span { font-size: 0.88rem; opacity: 0.8; }
.bank-confirm dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.bank-confirm dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.bank-confirm dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.bank-confirm dd#confirm-account, .bank-confirm dd.mono { white-space: nowrap; overflow-wrap: normal; }
.bank-confirm dl { grid-template-columns: auto auto minmax(0, 1fr); gap: 12px 28px; }
.bank-confirm .link-btn { position: absolute; top: 18px; right: 18px; z-index: 1; color: #fff; opacity: 0.85; }
@media (max-width: 560px) { .bank-confirm dd#confirm-account { white-space: normal; } .bank-confirm dl { grid-template-columns: auto minmax(0, 1fr); } .bank-confirm dl div:last-child { grid-column: 1 / -1; } }
.link-btn { padding: 0; font: inherit; font-size: 0.88rem; font-weight: 800; color: var(--accent-text); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { text-decoration-thickness: 2px; }
.bank-yes { margin-top: 14px; }
.bank-sub { margin: 26px 0 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.bank-flow .pcard-sub { margin-top: 4px; }

.kind-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kind-chip { position: relative; cursor: pointer; }
.kind-chip input { position: absolute; opacity: 0; }
.kind-chip span { display: inline-flex; padding: 8px 14px; font-size: 0.88rem; font-weight: 800; color: var(--ink-2); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; transition: all 0.15s; }
.kind-chip input:checked + span { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent); }
.kind-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.or-line { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bank-waive { line-height: 1.5; }

.bank-safe { position: sticky; top: 90px; }
@media (max-width: 1000px) { .bank-safe { position: static; } }
.bank-safe-list { display: grid; gap: 16px; margin: 14px 0 0; padding: 0; list-style: none; }
.bank-safe-list li { display: flex; gap: 12px; align-items: flex-start; }
.bank-safe-list .icon-badge { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; }
.bank-safe-list li > span:last-child { display: grid; gap: 2px; }
.bank-safe-list b { font-weight: 800; }
.bank-safe-list small { font-size: 0.85rem; line-height: 1.45; color: var(--muted); }

.bank-pending { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin-top: 12px; padding: 16px; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); border-radius: 18px; }
.bank-pending .icon-badge { width: 40px; height: 40px; border-radius: 12px; color: var(--amber); background: var(--surface); }
.bank-pending b { display: block; font-weight: 800; }
.bank-pending p { margin: 2px 0 0; font-size: 0.88rem; color: var(--ink-2); }
.bank-pending-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; font-size: 0.88rem; }
.bank-pending-actions a { font-weight: 800; color: var(--accent-text); }
.bank-pending-actions form { margin: 0; }
.bank-pending.denied { background: rgba(220, 38, 38, 0.07); border-color: rgba(220, 38, 38, 0.3); }
.bank-pending.denied .icon-badge { color: #dc2626; }
.paycard-ok { display: inline-flex; align-items: center; gap: 5px; position: relative; z-index: 1; width: fit-content; padding: 2px 9px; font-size: 0.72rem; font-weight: 800; color: #052e16; background: #bef264; border-radius: 999px; }
.paycard-ok svg { width: 12px; height: 12px; }

/* Logos of well-known apps on the OAuth consent page and Connected apps (src/app_brands.php) */
.app-brand svg { width: 56%; height: 56%; }
.app-brand-claude { color: #fff; background: #d97757; box-shadow: 0 14px 30px -14px #d97757; }
.app-brand-chatgpt { color: #fff; background: #0d0d0d; box-shadow: 0 14px 30px -14px #0d0d0d; }
.app-brand-gemini { color: #fff; background: linear-gradient(135deg, #4285f4, #9b72cb 55%, #d96570); box-shadow: 0 14px 30px -14px #6d73e0; }
.app-brand-perplexity { color: #fff; background: #20808d; box-shadow: 0 14px 30px -14px #20808d; }
.app-brand-mistral { color: #fff; background: linear-gradient(135deg, #ffd800, #ff8205 50%, #e10500); }
.app-brand-zapier { color: #fff; background: #ff4f00; }
.app-brand-n8n { color: #fff; background: #ea4b71; }
.app-brand-make { color: #fff; background: #6d00cc; }
.app-brand-raycast { color: #fff; background: #ff6363; }
.app-brand-windsurf { color: #fff; background: #0b100f; }
.app-brand-zed { color: #fff; background: #084ccf; }
.app-brand-huggingface { color: #1f2937; background: #ffd21e; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .app-brand-chatgpt, :root:not([data-theme="light"]) .app-brand-windsurf { color: #0d0d0d; background: #fff; }
}
:root[data-theme="dark"] .app-brand-chatgpt, :root[data-theme="dark"] .app-brand-windsurf { color: #0d0d0d; background: #fff; }

/* Cancel a membership or ask for a refund (account/cancel.php, src/plan_requests.php) */
.req-page-error { max-width: none; margin: 0 0 16px; }
.req-flow { padding: 28px; }
.req-flow .bank-sub.first { margin-top: 0; }
.req-opts { display: grid; gap: 10px; margin-top: 14px; }
.req-opt { position: relative; cursor: pointer; }
.req-opt input { position: absolute; opacity: 0; }
.req-opt > span { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 18px; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.req-opt > span > b { font-size: 1rem; font-weight: 800; color: var(--ink); }
.req-opt > span > small { grid-column: 2; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }
.req-opt-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent-text); background: var(--accent-soft); border-radius: 14px; }
.req-opt-icon.amber { color: var(--amber); background: var(--amber-soft); }
.req-opt-icon svg { width: 22px; height: 22px; }
.req-opt input:checked + span { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.req-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.req-reasons { margin-top: 12px; }
.req-promise { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); background: var(--accent-soft); border-radius: 14px; }
.req-promise svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--accent-text); }
.req-charge { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; }
.req-charge-icon { display: grid; place-items: center; width: 46px; height: 46px; color: var(--accent-text); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-sm); }
.req-charge small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.req-charge b { display: block; font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.req-charge span { font-size: 0.86rem; color: var(--ink-2); }
.req-charge strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .req-charge { grid-template-columns: auto minmax(0, 1fr); } .req-charge strong { grid-column: 2; } }

/* Company name changes (/account/company) */
.co-swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 0 0 16px; padding: 18px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; }
.co-swap small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.co-swap b { display: block; margin-top: 2px; font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.co-swap b.is-old { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(220, 38, 38, 0.55); }
.co-swap b.is-none { color: var(--muted); font-weight: 600; }
.co-swap-arrow { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent-text); background: var(--surface); border-radius: 50%; box-shadow: var(--shadow-sm); }
.co-note { margin: 0 0 16px; padding: 12px 14px; font-size: 0.92rem; color: var(--ink-2); background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; overflow-wrap: anywhere; }
.co-last { margin: 18px 0 0; }
.co-link { margin-top: 16px; }
.co-asked { margin: 0 0 16px; padding: 14px 16px; background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 14px; }
.co-asked small { font-size: 0.78rem; font-weight: 800; color: var(--muted); }
.co-asked p { margin: 6px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.co-reply { margin: 0 0 16px; }
.co-file-list { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.co-file-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-radius: 12px; }
.co-file-list li span { font-weight: 700; overflow-wrap: anywhere; }
.co-file-list li small { color: var(--muted); }
.co-file-list svg { width: 18px; height: 18px; color: var(--accent-text); }
.co-reply .field { margin-top: 0; }
.co-reply .actions { margin-top: 12px; }
@media (max-width: 520px) { .co-swap { grid-template-columns: 1fr; } .co-swap-arrow { transform: rotate(90deg); } }

.req-main { display: grid; gap: 20px; min-width: 0; }
.stay-offer { position: relative; padding: 28px; color: #fff; background: linear-gradient(135deg, #0b1324, #0f3d3a 55%, #15803d); border-radius: 24px; box-shadow: 0 24px 50px -24px rgba(11, 19, 36, 0.75); overflow: hidden; }
.stay-offer::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(190, 242, 100, 0.35), transparent 70%); pointer-events: none; }
.stay-offer-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #bef264; background: rgba(255, 255, 255, 0.1); border-radius: 999px; }
.stay-offer-kicker svg { width: 16px; height: 16px; }
.stay-offer h2 { position: relative; margin: 16px 0 0; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.stay-offer-note { position: relative; margin: 12px 0 0; max-width: 560px; font-size: 1rem; line-height: 1.6; opacity: 0.9; }
.stay-offer-fine { margin: 14px 0 0; font-size: 0.84rem; opacity: 0.7; }
.stay-offer-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.stay-offer-actions form { margin: 0; }
.stay-offer .btn-primary { color: #0b1324; background: #bef264; }
.stay-offer .btn-primary:hover { background: #d9f99d; }
.btn-ghost-light { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { border-color: #fff; }
.req-money { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin: 0 0 16px; padding: 14px 16px; background: var(--surface-2); border-radius: 14px; }
.req-money span { font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.req-money b { grid-row: span 2; align-self: center; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.req-money small { font-size: 0.86rem; color: var(--ink-2); }
.req-steps-portal { margin: 4px 0 0; padding: 0; list-style: none; }
.req-steps-portal li { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; }
.req-steps-portal li:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.req-steps-portal b { display: block; font-size: 0.95rem; font-weight: 800; }
.req-steps-portal small { font-size: 0.82rem; color: var(--muted); }
.req-steps-portal .ev-dot { width: 16px; height: 16px; margin-top: 2px; background: var(--accent); border: 3px solid var(--accent-soft); border-radius: 50%; box-sizing: border-box; }
.req-steps-portal .is-next .ev-dot { background: var(--surface); border: 2px dashed var(--line-strong); }
.req-steps-portal .is-next b { color: var(--ink-2); }
.req-steps-portal .ev-offer_declined .ev-dot, .req-steps-portal .ev-offer_expired .ev-dot { background: var(--amber); border-color: var(--amber-soft); }
.req-portal-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.req-portal-actions form, .pcard .req-portal-actions .btn-sm { margin: 0; }
.req-banner .btn-sm { margin: 0; }
.score-pill { display: grid; place-items: center; min-width: 54px; padding: 8px 10px; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--band); background: color-mix(in srgb, var(--band) 12%, var(--surface)); border-radius: 14px; }
.report-problem { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; margin: 28px 0 0; font-size: 0.88rem; color: var(--muted); text-align: center; }
.report-problem a { font-weight: 800; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.report-problem a:hover { color: var(--accent-text); }
.report-problem.is-open { padding: 12px 16px; color: var(--ink-2); background: var(--sky-soft); border-radius: 16px; }
.report-problem svg { width: 18px; height: 18px; color: var(--sky); }
.receipts-fine { margin: 0; padding: 14px 24px 18px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); }
.receipts-fine a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.receipts-fine a:hover { color: var(--accent-text); }
.req-also { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0 4px; font-size: 0.86rem; color: var(--muted); cursor: pointer; }
.req-also input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); }
.req-pick { display: grid; gap: 8px; margin-top: 14px; }
.pcard .receipts-fine { margin: 24px -24px -24px; }

/* ---------- Affiliate program ("Become an affiliate", codes, applications) ---------- */
.aff-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .aff-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.aff-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.aff-hero .aff-hero-cta .btn { margin-top: 0; }
.aff-example .join-example-row b { font-size: 2rem; }
.aff-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.aff-offer { position: relative; display: flex; min-width: 0; }
.aff-offer > input { position: absolute; opacity: 0; pointer-events: none; }
.aff-offer-body { display: grid; align-content: start; gap: 12px; width: 100%; padding: 20px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.aff-offers.is-pick .aff-offer { cursor: pointer; }
.aff-offers.is-pick .aff-offer:hover .aff-offer-body { border-color: var(--line-strong); transform: translateY(-2px); }
.aff-offer > input:checked + .aff-offer-body { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.aff-offer > input:focus-visible + .aff-offer-body { outline: 3px solid var(--accent); outline-offset: 2px; }
.aff-offer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aff-offer-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.aff-offer-tag { padding: 3px 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--accent-ink); background: var(--accent); border-radius: 999px; }
.aff-offer-tag.is-yours { color: var(--sky); background: var(--sky-soft); }
.aff-offer-half { display: grid; gap: 4px; padding: 14px 16px; background: var(--surface-2); border-radius: 16px; }
.aff-offer-half small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.aff-offer-half span { color: var(--ink-2); }
.aff-offer-half b { font-weight: 800; color: var(--ink); }
.aff-offer-half em { font-size: 0.72rem; font-style: normal; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.aff-offer-earn { background: linear-gradient(135deg, var(--accent-soft), var(--surface-2) 80%); }
.aff-earn-row b { margin-right: 4px; font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.aff-apply-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; scroll-margin-top: 110px; }
@media (max-width: 960px) { .aff-apply-wrap { grid-template-columns: 1fr; gap: 32px; } .aff-apply-side { order: 2; } }
.aff-fit { display: grid; gap: 12px; margin: 18px 0 24px; padding: 0; list-style: none; }
.aff-fit li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.aff-fit li > svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; padding: 5px; color: var(--accent-ink); background: var(--accent); border-radius: 50%; }
.aff-fit b { color: var(--ink); }
.aff-faq { padding: 14px 0; border-top: 1px dashed var(--line); }
.aff-faq summary { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.aff-faq summary::-webkit-details-marker { display: none; }
.aff-faq summary::after { content: "+"; font-weight: 800; color: var(--muted); }
.aff-faq[open] summary::after { content: "–"; }
.aff-faq p { margin: 8px 0 0; font-size: 0.95rem; color: var(--ink-2); }
.aff-apply { box-shadow: var(--shadow); }
.apply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 600px) { .apply-grid { grid-template-columns: 1fr; } }
.aff-terms-title { margin: 24px 0 10px; font-size: 1rem; font-weight: 800; }
.aff-code-step { display: grid; justify-items: center; gap: 10px; padding: 12px 0; text-align: center; }
.aff-code-step .verify-badge { margin-bottom: 4px; }
.aff-code-step .pcard-title { margin: 0; }
.aff-code-step .otp { width: 100%; max-width: 360px; }
.aff-code-step .pg-note { justify-content: center; }
.aff-restart { display: flex; justify-content: center; margin-top: 8px; }
.app-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.app-track li { position: relative; display: grid; justify-items: center; gap: 2px; padding: 0 8px; text-align: center; }
.app-track li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 3px; background: var(--line); border-radius: 3px; }
.app-track li:first-child::before { display: none; }
.app-track li.done::before, .app-track li.now::before { background: var(--accent); }
.app-track li > span { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; font-weight: 800; color: var(--muted); background: var(--surface-2); border: 2px solid var(--line); border-radius: 50%; }
.app-track li.done > span { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.app-track li.now > span { color: var(--accent-text); background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.app-track b { font-size: 0.92rem; font-weight: 800; }
.app-track small { font-size: 0.8rem; color: var(--muted); }
.app-reply { margin: 0 0 18px; padding: 14px 18px; color: var(--ink-2); background: var(--sky-soft); border-left: 4px solid var(--sky); border-radius: 0 14px 14px 0; overflow-wrap: anywhere; }
.app-changes-card { border-color: color-mix(in srgb, var(--sky) 40%, var(--line)); }
.app-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.app-facts dt { font-size: 0.85rem; font-weight: 800; color: var(--muted); }
.app-facts dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 560px) { .app-facts { grid-template-columns: 1fr; gap: 2px; } .app-facts dd { margin-bottom: 8px; } }
.app-ended { display: flex; gap: 18px; align-items: flex-start; }
.app-ended .icon-badge { flex-shrink: 0; }
.app-ended .app-reply { margin: 12px 0; }
.app-withdraw { display: flex; justify-content: center; }
.code-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.code-card { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 20px; background: radial-gradient(320px 140px at 100% 0%, var(--accent-soft), transparent 70%), var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.code-card.is-off { background: var(--surface); }
.code-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.code-chip { padding: 8px 14px; font-family: var(--mono); font-size: 1.25rem; font-weight: 800; letter-spacing: 0.1em; border: 2px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 12px; overflow-wrap: anywhere; }
.code-card.is-off .code-chip { color: var(--muted); border-color: var(--line-strong); }
.code-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.code-offer { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.code-offer b { color: var(--ink); }
.code-label { display: inline-block; margin-left: 8px; padding: 1px 8px; font-size: 0.75rem; font-weight: 800; color: var(--sky); background: var(--sky-soft); border-radius: 999px; }
.code-blocked { margin: 0; padding: 10px 14px; font-size: 0.88rem; color: var(--ink-2); background: var(--amber-soft); border-radius: 12px; }
.code-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.code-stats div { min-width: 0; padding: 10px 12px; background: var(--surface-2); border-radius: 14px; }
.code-stats dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.code-stats dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.code-share { display: flex; gap: 8px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.code-share input { flex: 1; min-width: 0; padding: 6px 12px; font-family: var(--mono); font-size: 0.85rem; color: var(--ink-2); background: transparent; border: 0; outline: none; }
.code-share .btn { flex-shrink: 0; }
.code-share .btn.copied { color: var(--accent-ink); background: var(--accent); }
.code-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.code-actions form { margin: 0; }
.code-fields { margin-top: 8px; }
.code-input { font-family: var(--mono); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.code-how .ticks { margin-top: 12px; }
a.ref-code { color: inherit; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
a.ref-code:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.5); }
.ref-code .ref-code-more { margin-top: 4px; font-size: 0.68rem; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }
.code-url { overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .tabs.rewards-tabs, .tabs.filter-tabs { width: auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .tabs.rewards-tabs::-webkit-scrollbar, .tabs.filter-tabs::-webkit-scrollbar { display: none; }
    .tabs.rewards-tabs a, .tabs.filter-tabs a { flex-shrink: 0; }
}

/* Payouts: Earn Rewards members can take what's ready as account credit */
.credit-swap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 18px; margin-top: 20px; }
.credit-swap .icon-badge { width: 44px; height: 44px; border-radius: 14px; }
.credit-swap-text .pcard-sub { margin-bottom: 0; }
.credit-swap-form { display: grid; justify-items: end; gap: 6px; margin: 0; }
@media (max-width: 720px) {
    .credit-swap { grid-template-columns: auto minmax(0, 1fr); }
    .credit-swap-form { grid-column: 1 / -1; justify-items: start; }
}

/* ---------- API sign-up (api-signup.php, account/subscribe.php), the welcome guide and the first-funding bonus ---------- */
.signup-wrap { padding-top: 40px; }
.signup-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .signup-grid { grid-template-columns: 1fr; gap: 28px; } .signup-card { order: -1; } }
.signup-side .lead { margin-top: 12px; }
.signup-points { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.signup-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.signup-points li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.signup-points b { color: var(--ink); }
.signup-bonus { margin-top: 24px; padding: 18px; background: var(--amber-soft); border-radius: 18px; }
.signup-bonus-head { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
.signup-bonus-head svg { color: var(--amber); }
.signup-bonus .fine { margin: 6px 0 0; }
.signup-already { margin-top: 20px; }
.signup-card { padding: 28px; }
@media (max-width: 600px) { .signup-card { padding: 20px 16px; } }
.signup-steps { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: none; }
.signup-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; font-size: 0.85rem; font-weight: 800; color: var(--muted); border-bottom: 3px solid var(--line); }
.signup-steps li.current { color: var(--ink); border-color: var(--accent); }
.signup-steps li.done { color: var(--ink-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.signup-dot { display: inline-grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; font-size: 0.78rem; color: var(--ink-2); background: var(--surface-2); border-radius: 50%; }
.signup-dot svg { width: 14px; height: 14px; }
.signup-steps li.current .signup-dot { color: var(--accent-ink); background: var(--accent); }
.signup-steps li.done .signup-dot { color: var(--accent-text); background: var(--accent-soft); }
@media (max-width: 420px) { .signup-steps li > span:last-child { font-size: 0.75rem; } }
.signup-company { display: flex; align-items: flex-end; gap: 12px; }
.signup-company .field { flex: 1; margin-top: 0; }
.signup-company .field.is-off { opacity: 0.5; }
.check-row.check-inline { flex-shrink: 0; align-items: center; padding: 11px 14px; font-weight: 700; }
.signup-other { margin-top: 10px; }
.signup-form select { width: 100%; }
.signup-marketing.check-row { margin-top: 18px; padding: 0; font-size: 0.8rem; color: var(--muted); background: none; }
.signup-marketing.check-row input { width: 16px; height: 16px; }
.signup-form .pg-note { margin-top: 16px; }
.signup-note { display: grid; gap: 10px; justify-items: start; }
.signup-note .pcard-title, .signup-note .pcard-sub, .signup-note .fine { margin: 0; }
.signup-note .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.signup-note .actions form { margin: 0; }
.signup-restart { margin-top: 18px; }
.form-ok { max-width: 560px; margin: 0 0 14px; padding: 10px 16px; font-size: 0.9rem; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 12px; }
.signup-card > .form-error { max-width: none; margin: 0 0 14px; }

.confirm-row { padding: 16px; margin-top: 12px; border: 1px solid var(--line); border-radius: 18px; }
.confirm-row.is-done { background: var(--accent-soft); border-color: transparent; }
.confirm-row.is-locked { opacity: 0.55; }
.confirm-row-head { display: flex; align-items: center; gap: 12px; }
.confirm-row-head form { margin: 0 0 0 auto; }
.confirm-row-head > .fine { margin-left: auto; }
.confirm-what { display: grid; min-width: 0; }
.confirm-what small { font-size: 0.78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.confirm-what b { overflow: hidden; text-overflow: ellipsis; }
.confirm-ok { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 0.88rem; font-weight: 800; color: var(--accent-text); }
.confirm-ok svg { width: 18px; height: 18px; }
.confirm-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 14px; }
@media (max-width: 520px) { .confirm-code { grid-template-columns: 1fr; } }
.confirm-resend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 10px; }
.confirm-resend .fine { margin: 0; }
@media (max-width: 520px) { .confirm-row-head { flex-wrap: wrap; } .confirm-row-head form, .confirm-ok { margin-left: 0; } }

.subscribe-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-weight: 800; color: var(--ink-2); }
.subscribe-total b { font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.signup-card .add-method { margin-top: 16px; }

.bonus-tiers { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.bonus-tiers li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 0.9rem; color: var(--ink-2); background: var(--surface); border-radius: 10px; font-variant-numeric: tabular-nums; }
.bonus-tiers li b { color: var(--amber); }
.bonus-tiers-row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.bonus-tiers-row li { display: grid; gap: 2px; justify-items: center; text-align: center; background: var(--surface-2); border: 2px solid transparent; transition: border-color 0.15s, background 0.15s; }
.bonus-tiers-row li span { font-size: 0.78rem; }
.bonus-tiers-row li b { font-size: 1.15rem; }
.bonus-tiers-row li.is-on { background: var(--amber-soft); border-color: var(--amber); }
.bonus-banner { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0 4px; padding: 16px; background: var(--amber-soft); border-radius: 18px; }
.bonus-banner > div { min-width: 0; flex: 1; }
.bonus-banner p { margin: 0; color: var(--ink-2); }
.bonus-banner .bonus-tiers li { background: var(--surface); }
.bonus-banner .fine { margin-top: 10px; }
.bonus-preview { margin: 12px 0; padding: 10px 14px; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; }
.bonus-preview.is-bonus { color: var(--ink); background: var(--amber-soft); }
.bonus-callout { display: flex; justify-content: center; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 28px auto 0; padding: 10px 18px; color: var(--ink-2); background: var(--amber-soft); border-radius: 999px; }
.bonus-callout svg { flex-shrink: 0; color: var(--amber); }
.bonus-callout b { color: var(--ink); }
@media (max-width: 600px) { .bonus-callout { border-radius: 16px; } }

.api-welcome { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.api-welcome-page { padding: 30px 26px 24px; }
@media (max-width: 520px) { .api-welcome-page { padding: 24px 16px 18px; } }
.api-welcome-page[data-welcome-page="1"] { text-align: center; }
.api-welcome-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 50%; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.api-welcome-mark svg { width: 30px; height: 30px; }
.welcome-steps { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; text-align: left; }
.welcome-steps a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: inherit; text-decoration: none; background: var(--surface-2); border-radius: 14px; }
.welcome-steps a:hover { background: var(--accent-soft); }
.welcome-steps a > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.welcome-steps small { font-size: 0.82rem; color: var(--muted); }
.welcome-steps a > svg { flex-shrink: 0; color: var(--muted); }
.welcome-actions { display: grid; justify-items: center; gap: 10px; margin-top: 20px; }
.welcome-deal { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; font-size: 0.8rem; font-weight: 800; color: var(--ink); background: var(--amber-soft); border-radius: 999px; }
.welcome-deal svg { width: 16px; height: 16px; color: var(--amber); }
.api-welcome-page[data-welcome-page="2"] .promo-title { margin-top: 14px; }
.api-welcome-page .deposit-pick { margin-top: 16px; }
.api-welcome-page .refill-toggle { margin-top: 4px; }
.api-welcome-page .fine { margin: 10px 0 0; }
.api-welcome-page .login-back { margin-top: 14px; }
.api-welcome-page .deposit-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field[hidden], .signup-wrap [hidden], .api-welcome [hidden] { display: none; }
.confirm-code .otp.enhanced .otp-boxes { gap: 8px; }
.confirm-code .otp.enhanced .otp-boxes span:nth-child(3) { margin-right: 0; }
@media (max-width: 600px) { .bonus-banner { flex-direction: column; gap: 10px; } }
.pay-hint { margin: 12px 0 0; }
.signup-card .btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.pay-locked { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 22px 18px; color: var(--muted); border: 2px dashed var(--line-strong); border-radius: 18px; }
.pay-locked svg { flex-shrink: 0; width: 22px; height: 22px; }
.pay-locked span { display: grid; gap: 2px; }
.pay-locked b { color: var(--ink-2); }
.pay-locked small { font-size: 0.85rem; }
.signup-wrap .pay-locked[hidden] { display: none; }
/* Apple Pay / Google Pay above Stripe's card form (card-setup.js) */
.setup-express { margin-bottom: 14px; }
.setup-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.setup-or::before, .setup-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.setup-express[hidden] { display: none; }

/* ---------- Searching with name, address, date of birth and SSN (identity_fields.php, identity_dialog.php) ---------- */
.idf-modal { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.idf-modal form { padding: 24px 26px 26px; }
.idf-modal .promo-head { align-items: center; }
.idf-modal .promo-title { margin-top: 14px; font-size: clamp(1.5rem, 4vw, 1.85rem); line-height: 1.15; }
.idf-modal .form-error { margin-top: 14px; }
.idf-modal .extra-confirm { margin-top: 18px; }
.idf { margin-top: 6px; }
.idf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.idf .field { margin-top: 12px; }
.idf .field input, .idf .field select { padding: 11px 13px; }
.idf .field input[aria-invalid="true"], .idf .field select[aria-invalid="true"] { border-color: #dc2626; }
.field-error { font-size: 0.8rem; font-weight: 700; color: #b91c1c; }
.idf-more-label { margin: 20px 0 0; padding-top: 16px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.idf-swap { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; font: inherit; font-size: 0.82rem; font-weight: 800; color: var(--accent-text); background: none; border: 0; cursor: pointer; }
.idf-swap[hidden] { display: none; }
.idf-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; padding: 12px 14px; font-size: 0.9rem; color: var(--ink-2); background: var(--sky-soft); border-radius: 14px; animation: pop-in 0.3s cubic-bezier(.2, .8, .2, 1); }
.idf-suggest[hidden] { display: none; }
.idf-filled { animation: none; }
.idf-suggest-icon { display: inline-flex; color: var(--sky); }
.idf-suggest-text { flex: 1; min-width: 160px; }
.idf-suggest-text b { color: var(--ink); font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.02em; }
.idf-secure { display: flex; gap: 8px; margin: 16px 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.idf-secure svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.idf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.idf-note { margin: 12px 0 0; }
.again-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 20px; padding: 16px 18px; text-align: left; background: var(--accent-soft); border-radius: 18px; }
.again-card > div { flex: 1; min-width: 220px; }
.again-card b { display: block; color: var(--ink); }
.again-card span { display: block; margin-top: 2px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.again-card .btn svg { width: 18px; height: 18px; }
.search-found .again-card { margin-top: 18px; }
.idf-more { margin-top: 16px; border: 1.5px solid var(--line); border-radius: 18px; }
.idf-more > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.idf-more > summary::-webkit-details-marker { display: none; }
.idf-more > summary b { display: block; color: var(--ink); }
.idf-more > summary small { display: block; margin-top: 2px; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.idf-more > summary::after { content: ""; flex-shrink: 0; width: 9px; height: 9px; margin-left: auto; border-right: 2.4px solid var(--muted); border-bottom: 2.4px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.idf-more[open] > summary::after { transform: rotate(-135deg); }
.idf-more .icon-badge { flex-shrink: 0; }
.idf-more > .idf { margin: 0; padding: 0 16px 16px; }
.idf-more .idf-more-label { margin-top: 16px; }
.searched-with { margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.nomatch-card .searched-with { margin: 24px 0 0; text-align: left; }
.thin-who { display: grid; gap: 8px; margin: 20px 0 4px; padding: 14px 16px; background: var(--surface-2); border-radius: 16px; }
.thin-who > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; font-size: 0.95rem; }
.thin-who dt { color: var(--muted); }
.thin-who dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.searched-with > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.searched-with > summary::-webkit-details-marker { display: none; }
.searched-with > summary b { display: block; color: var(--ink); }
.searched-with > summary small { display: block; font-size: 0.8rem; color: var(--muted); }
.searched-with > summary::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-left: auto; border-right: 2.2px solid var(--muted); border-bottom: 2.2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.searched-with[open] > summary::after { transform: rotate(-135deg); }
.searched-with dl { display: grid; gap: 8px; margin: 0; padding: 4px 16px 16px; }
.searched-with dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 0.92rem; }
.searched-with dt { font-weight: 700; color: var(--muted); }
.searched-with dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .field-error { color: #fca5a5; }
}
:root[data-theme="dark"] .field-error { color: #fca5a5; }
@media (max-width: 600px) {
    .idf-modal { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
    .idf-modal form { padding: 18px 16px 24px; }
    .idf-grid { grid-template-columns: 1fr; }
    .searched-with dl > div { grid-template-columns: 1fr; gap: 0; }
    .again-card .btn { width: 100%; justify-content: center; }
}

/* File drop zones (src/dropzone.php, /assets/dropzone.js): click, drag or paste. Every upload uses one. */
.dropzone.is-off { opacity: 0.45; }  /* the payout bank form's "continue without a document" */
.dropzone { position: relative; display: grid; gap: 10px; margin-top: 12px; min-width: 0; }
.dropzone-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone:not(.is-js) .dropzone-input { position: static; width: auto; height: auto; opacity: 1; pointer-events: auto; }
.dropzone:not(.is-js) .dropzone-target { display: none; }
.dropzone-target { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 20px; text-align: center; background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--accent) 4%, transparent) 14px 28px), var(--surface-2); border: 2px dashed var(--line-strong); border-radius: 20px; cursor: pointer; outline: none; transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.dropzone-target[hidden] { display: none; }
.dropzone-target:hover, .dropzone-target:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dropzone.is-over .dropzone-target { border-color: var(--accent); background-color: var(--accent-soft); transform: scale(1.01); }
.dropzone.is-pasted .dropzone-file:last-child, .dropzone.is-pasted .dropzone-target { box-shadow: 0 0 0 6px var(--accent-soft); }
.dropzone.has-files .dropzone-target { padding: 14px 18px; }
.dropzone.has-files .dropzone-icon { width: 40px; height: 40px; border-radius: 13px; }
.dropzone.has-files .dropzone-hint { display: none; }
.dropzone-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; color: var(--accent-text); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); transition: transform 0.2s; }
.dropzone-target:hover .dropzone-icon, .dropzone.is-over .dropzone-icon { transform: translateY(-3px); }
.dropzone-title { font-size: 1rem; font-weight: 800; color: var(--ink); }
.dropzone-browse { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.dropzone-hint { max-width: 380px; font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.dropzone-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dropzone-list:empty { display: none; }
.dropzone-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 16px; transition: box-shadow 0.3s; animation: dropzone-in 0.25s ease-out; }
@keyframes dropzone-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .dropzone-file { animation: none; } .dropzone-target { transition: none; } }
.dropzone-thumb { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; color: #fff; background: linear-gradient(135deg, #0ea5e9, #6366f1); border-radius: 12px; box-shadow: var(--shadow-sm); }
.dropzone-thumb.is-pdf { background: linear-gradient(135deg, #dc2626, #f97316); }
.dropzone-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dropzone-meta { display: grid; min-width: 0; }
.dropzone-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; color: var(--ink); }
.dropzone-meta small { font-size: 0.82rem; font-weight: 700; color: var(--accent-text); }
.dropzone-remove { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: color 0.15s, border-color 0.15s, transform 0.15s; }
.dropzone-remove:hover, .dropzone-remove:focus-visible { color: #dc2626; border-color: #dc2626; transform: scale(1.06); }
.dropzone-error { margin: 0; font-size: 0.86rem; font-weight: 700; color: #dc2626; }
.dropzone-error[hidden] { display: none; }

/* "Action needed" (portal_todos): a banner on every portal page and a dot on its menu item */
.portal-todo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0 0 20px; padding: 14px 18px; color: var(--ink); text-decoration: none; background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(249, 115, 22, 0.08)); border: 1.5px solid rgba(245, 158, 11, 0.5); border-radius: 18px; transition: transform 0.15s, box-shadow 0.15s; }
.portal-todo:hover, .portal-todo:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(245, 158, 11, 0.7); }
.portal-todo-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #b45309; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-sm); }
.portal-todo-text { display: grid; gap: 2px; font-size: 0.92rem; color: var(--ink-2); overflow-wrap: anywhere; }
.portal-todo-text b { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #b45309; }
.portal-todo-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 800; color: var(--accent-text); white-space: nowrap; }
.portal-todo-link svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .portal-todo { grid-template-columns: auto minmax(0, 1fr); } .portal-todo-link { grid-column: 2; } }
.nav-todo { position: relative; width: 9px; height: 9px; margin-left: auto; background: #f59e0b; border-radius: 50%; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); }
.nav-todo.soft { background: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }

/* ---------- Support: the conversation list and one conversation (public/account/support.php) ---------- */
.convo-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.convo-list-head .pcard-title { margin: 0; }
.convo-new-count { padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; color: var(--accent-ink); background: var(--accent); }
.convo-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.convo-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
    color: var(--ink); text-decoration: none; background: var(--surface-2); border: 1px solid transparent; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s; }
.convo-card:hover, .convo-card:focus-visible { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.convo-card.is-unread { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.convo-card.is-closed { opacity: 0.8; }
.convo-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--accent-text); background: var(--accent-soft); }
.convo-card-icon svg { width: 20px; height: 20px; }
.convo-card.is-closed .convo-card-icon { color: var(--muted); background: var(--surface); }
.convo-card-body { display: grid; gap: 4px; min-width: 0; }
.convo-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.convo-card-top b { font-weight: 800; overflow-wrap: anywhere; }
.convo-card-snippet { font-size: 0.9rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.convo-card-snippet b { font-weight: 700; color: var(--ink); }
.convo-card-meta { font-size: 0.8rem; color: var(--muted); }
.convo-card-go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 800; color: var(--accent-text);
    background: var(--surface); border: 1px solid var(--line); white-space: nowrap; transition: background 0.15s, color 0.15s; }
.convo-card:hover .convo-card-go { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.convo-card-go span { transition: transform 0.15s; }
.convo-card:hover .convo-card-go span { transform: translateX(3px); }
.convo-badge { padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; color: var(--accent-ink); background: var(--accent); }

.convo-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.convo-back:hover span { transform: translateX(-3px); }
.convo-back span { transition: transform 0.15s; }
.convo-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 0 0 18px; }
.convo-page-head h1 { margin: 4px 0 6px; overflow-wrap: anywhere; }
.convo-page-head .status { margin-top: 6px; font-size: 0.82rem; padding: 5px 12px; }
.convo-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 16px; border-radius: 18px; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }
.convo-note p { margin: 0; color: var(--ink-2); }
.convo-view { padding: 24px; }
.thread { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: flex-start; max-width: 760px; scroll-margin-top: 90px; }
.msg.from-you { grid-template-columns: minmax(0, 1fr) 40px; margin-left: auto; }
.msg.from-you .msg-avatar { order: 2; }
.msg-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 0.85rem; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); }
.msg-avatar svg { width: 18px; height: 18px; }
.msg.from-you .msg-avatar { color: var(--sky); background: var(--sky-soft); }
.msg-bubble { padding: 14px 16px; border-radius: 6px 18px 18px 18px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.msg.from-you .msg-bubble { border-radius: 18px 6px 18px 18px; background: color-mix(in srgb, var(--sky) 8%, var(--surface)); border-color: color-mix(in srgb, var(--sky) 25%, var(--line)); }
.msg-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 0.82rem; }
.msg-meta b { font-weight: 800; }
.msg-meta time { color: var(--muted); margin-left: auto; }
.msg-tag { padding: 1px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); }
.msg-bubble p { margin: 0; color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
.convo-compose { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.convo-compose-label { font-weight: 800; }
.convo-compose textarea { width: 100%; min-height: 110px; resize: vertical; }
.convo-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .convo-card { grid-template-columns: 38px minmax(0, 1fr); padding: 14px; gap: 12px; }
    .convo-card-icon { width: 38px; height: 38px; }
    .convo-card-go { grid-column: 2; justify-self: start; }
    .convo-page-head { flex-direction: column; gap: 6px; }
    .convo-view { padding: 16px; }
    .msg, .msg.from-you { grid-template-columns: minmax(0, 1fr); max-width: none; }
    .msg-avatar { display: none; }
    .msg-meta time { margin-left: 0; flex-basis: 100%; }
    .convo-compose-foot .btn { width: 100%; }
}
.convo-compose textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
/* Files attached to a Support message */
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.msg-file { display: inline-flex; align-items: center; gap: 10px; max-width: 280px; padding: 8px 12px 8px 8px; border-radius: 12px; text-decoration: none; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line); transition: border-color 0.15s, box-shadow 0.15s; }
a.msg-file:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.msg-file > span:last-child { display: grid; min-width: 0; font-size: 0.85rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file small { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.msg-file-kind { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; font-size: 0.65rem; font-weight: 800; color: #b91c1c; background: rgba(220, 38, 38, 0.1); }
.msg-file-kind.is-img { color: var(--sky); background: var(--sky-soft); }
.msg-file.is-gone { opacity: 0.6; }
.convo-compose .dropzone { margin-top: 2px; }

/* "Tell us about you" (src/views/portal_finish.php): a bar above every account page that opens it as a dialog
   (lightly dimmed, so the page shows behind it, with confetti over a report that just unlocked); a card on Profile */
.finish-card { margin-bottom: 20px; border-color: var(--sky); background: linear-gradient(180deg, var(--sky-soft), var(--surface) 140px); scroll-margin-top: 90px; }
.finish-head { display: flex; align-items: flex-start; gap: 14px; }
.finish-head .icon-badge { flex: 0 0 auto; }
.finish-head .pcard-sub b { color: var(--ink); }
.finish-form { max-width: 560px; margin-top: 4px; }
.finish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.finish-otp { max-width: 260px; text-align: center; }
.finish-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 20px; }
.finish-form .fine { margin: 14px 0 0; }
.finish-form .form-error { max-width: none; }

.finish-modal { position: fixed; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 26px 26px 20px; overflow: auto; border-color: color-mix(in srgb, var(--sky) 45%, var(--line)); background: linear-gradient(180deg, var(--sky-soft), var(--surface) 180px); }
.finish-modal.is-celebrate { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 220px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.finish-modal::backdrop { background: rgba(7, 13, 26, 0.34); backdrop-filter: blur(1.5px); }
.finish-modal form.finish-form { max-width: none; padding: 0; }
.finish-modal .finish-head { padding-right: 44px; }
.finish-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; }
.finish-hero { margin: 0 0 20px; padding: 0 30px 20px; text-align: center; border-bottom: 1px dashed var(--line-strong); }
.finish-hero-mark { display: inline-grid; place-items: center; width: 60px; height: 60px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--lime)); border-radius: 20px; box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 70%, transparent); animation: promo-wiggle 0.9s 0.2s ease-in-out both; }
.finish-hero-mark svg { width: 30px; height: 30px; }
.finish-hero .eyebrow { margin: 14px 0 0; }
.finish-hero-title { margin: 4px 0 0; font-size: clamp(1.5rem, 5vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.finish-hero-sub { margin: 6px 0 0; color: var(--ink-2); }
.finish-modal.is-celebrate .finish-head { padding-right: 0; }
.finish-foot { margin: 18px 0 0; padding-top: 14px; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); }

.finish-reopen-row { margin: 0 0 20px; }
.finish-reopen { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); text-decoration: none; background: linear-gradient(90deg, var(--sky-soft), var(--surface)); border: 1.5px dashed color-mix(in srgb, var(--sky) 55%, transparent); border-radius: 16px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.finish-reopen:hover, .finish-reopen:focus-visible { border-style: solid; border-color: var(--sky); box-shadow: 0 12px 26px -20px var(--sky); transform: translateY(-1px); outline: none; }
.finish-reopen-icon { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; color: var(--sky); background: var(--surface); border-radius: 12px; }
.finish-reopen-icon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; background: var(--sky); border: 2px solid var(--surface); border-radius: 50%; }
.finish-reopen-icon svg { width: 18px; height: 18px; }
.finish-reopen-text { display: grid; gap: 1px; min-width: 0; margin-right: auto; }
.finish-reopen-text b { font-size: 0.92rem; }
.finish-reopen-text small { font-size: 0.8rem; color: var(--muted); }
.finish-reopen-go { display: inline-flex; color: var(--sky); }
.finish-reopen-go svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
    .finish-grid { grid-template-columns: 1fr; }
    .finish-modal .finish-grid { grid-template-columns: 1fr 1fr; gap: 0 10px; }
    .finish-otp { max-width: none; }
    .finish-modal { max-height: calc(100dvh - 72px); margin-bottom: 16px; padding: 18px 16px 14px; }
    .finish-modal .finish-head .icon-badge { display: none; }
    .finish-modal .finish-head { padding-right: 36px; }
    .finish-modal.is-celebrate .finish-head { padding-right: 0; }
    .finish-hero { margin-bottom: 14px; padding: 0 30px 14px; }
    .finish-hero-mark { width: 44px; height: 44px; border-radius: 15px; }
    .finish-hero-mark svg { width: 22px; height: 22px; }
    .finish-hero .eyebrow { margin-top: 8px; }
    .finish-hero-title { font-size: 1.35rem; }
    .finish-hero-sub { font-size: 0.9rem; }
    .finish-actions { margin-top: 14px; }
    .finish-foot { margin-top: 12px; padding-top: 10px; }
}
@media (max-width: 340px) { .finish-modal .finish-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .finish-hero-mark { animation: none; } }


/* A no-match that was paid for first: keep the payment as a report, or get it back (account/report) */
.held-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 16px; padding: 16px 18px; text-align: left; border: 1.5px solid var(--line); border-radius: 18px; }
.held-card > div { flex: 1; min-width: 220px; }
.held-card b { display: block; color: var(--ink); }
.held-card span { display: block; margin-top: 2px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.held-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.held-actions .btn svg { width: 18px; height: 18px; }
.nomatch-chosen { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; font-size: 0.92rem; font-weight: 600; color: var(--ink); background: var(--accent-soft); border-radius: 999px; }
.nomatch-chosen svg { width: 16px; height: 16px; flex-shrink: 0; }
form[aria-busy="true"] button[type="submit"] { opacity: 0.7; cursor: progress; }

/* Early renewal on the membership card (account/billing) */
.early-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 16px; padding: 14px 16px; background: var(--accent-soft); border-radius: 16px; }
.early-box > div { flex: 1; min-width: 200px; }
.early-box b { display: block; color: var(--ink); }
.early-box span { display: block; margin-top: 2px; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }
.early-box .btn svg { width: 16px; height: 16px; }

/* Zapier page (/zapier) */
.zp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.zp-hero .zp-hero-actions .btn { margin-top: 0; }
.zp-hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--muted); }
.zp-hero-facts b { margin-right: 4px; font-size: 1.15rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.zp-zap { position: relative; display: grid; gap: 26px; padding: 28px; background: linear-gradient(160deg, color-mix(in srgb, #ff4f00 7%, var(--surface)), var(--surface) 60%); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.zp-zap-step { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.zp-zap-step + .zp-zap-step::before { content: ""; position: absolute; left: 39px; top: -27px; width: 2px; height: 26px; background: repeating-linear-gradient(var(--line-strong) 0 4px, transparent 4px 8px); }
.zp-zap-step small { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.zp-zap-step b { display: block; font-size: 1rem; font-weight: 800; color: var(--ink); }
.zp-zap-step span:not(.zp-zap-icon):not(.zp-instant) { font-size: 0.86rem; color: var(--ink-2); }
.zp-zap-step.is-us { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm); }
.zp-zap-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); }
.zp-zap-icon img { display: block; }
.zp-zap-icon.zp-generic { color: var(--sky); background: var(--sky-soft); }
.zp-zap-out { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zp-zap-out span { padding: 8px 10px; font-size: 0.86rem; font-weight: 700; color: var(--ink) !important; background: var(--surface-2); border-radius: 10px; }
.zp-zap-out small { margin-bottom: 2px; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.zp-zap-logo { position: absolute; right: 22px; bottom: -12px; padding: 4px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-sizing: content-box; }
.zp-instant { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--zap-ink); background: color-mix(in srgb, #ff4f00 12%, transparent); border-radius: 999px; white-space: nowrap; }
.zp-instant svg { width: 13px; height: 13px; }
.zp-toc { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.zp-toc .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.zp-toc a { flex-shrink: 0; padding: 7px 14px; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); text-decoration: none; border-radius: 999px; }
.zp-toc a:hover { color: var(--ink); background: var(--surface-2); }
#setup, #triggers, #actions, #ideas, #fields, #testing, #safety, #faq-zapier { scroll-margin-top: 70px; }
.zp-setup { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: zp; }
.zp-setup li { position: relative; padding: 64px 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: zp; }
.zp-setup li::before { content: counter(zp); position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 30px; height: 30px; font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 50%; }
.zp-setup .h3 { margin: 0 0 8px; font-size: 1.08rem; }
.zp-setup p { margin: 0 0 8px; font-size: 0.95rem; color: var(--ink-2); }
.zp-note { padding: 8px 10px; font-size: 0.86rem !important; background: var(--amber-soft); border-radius: 10px; }
.zp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.zp-item { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section-soft .zp-item { box-shadow: var(--shadow-sm); }
.zp-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zp-item .h3 { margin: 16px 0 6px; font-size: 1.1rem; }
.zp-item p { flex: 1; margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.zp-item code { align-self: flex-start; margin-top: 14px; padding: 3px 8px; font-size: 0.8rem; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; }
.zp-kind { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.zp-price { align-self: flex-start; margin-top: 14px; padding: 4px 10px; font-size: 0.82rem; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; }
.zp-combo { display: flex; gap: 18px; align-items: flex-start; margin-top: 16px; padding: 24px; background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius); }
.zp-combo .h3 { margin: 4px 0 6px; }
.zp-combo p { margin: 0; color: var(--ink-2); }
.zp-combo .icon-badge { flex-shrink: 0; }
.zp-beta { color: #052012; background: #4ade80; }
.zp-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.zp-field-group { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.zp-field-group .h3 { margin: 0 0 12px; font-size: 1.02rem; }
.zp-field-group dl { display: grid; gap: 10px; margin: 0; }
.zp-field-group dl div { display: grid; gap: 2px; }
.zp-field-group dt code { font-size: 0.82rem; font-weight: 700; color: var(--accent-text); background: none; padding: 0; }
.zp-field-group dd { margin: 0; font-size: 0.88rem; color: var(--ink-2); }
.zp-sandbox { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.zp-sandbox table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.zp-sandbox th { padding: 14px 18px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; color: var(--muted); border-bottom: 1px solid var(--line); }
.zp-sandbox td { padding: 11px 18px; vertical-align: top; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.zp-sandbox tr:last-child td { border-bottom: 0; }
.zp-sandbox td code { white-space: nowrap; font-weight: 700; color: var(--ink); }
.zp-faq { max-width: 820px; }
@media (max-width: 1100px) { .zp-setup { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
    .zp-grid, .zp-fields { grid-template-columns: 1fr; }
    .zp-setup { grid-template-columns: 1fr; }
    .zp-zap { padding: 20px; }
    .zp-zap-step { grid-template-columns: auto minmax(0, 1fr); }
    .zp-zap-step .zp-instant { grid-column: 2; justify-self: start; }
    .zp-zap-step + .zp-zap-step::before { left: 41px; }
}
@media (min-width: 861px) and (max-width: 1100px) { .zp-grid, .zp-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app-hooks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; color: var(--ink-2); }
.app-hooks svg { width: 15px; height: 15px; color: var(--zap-ink); }
