/* =========================================================================
   imeihub — design system
   Tokens → Reset → Layout → Components → Pages → Responsive
   ========================================================================= */

:root {
    /* Surfaces */
    --bg: #0b1020;
    --bg-deep: #070b1a;
    --bg-soft: #11162b;
    --surface: #ffffff;
    --surface-alt: #f6f8fc;
    --surface-line: #eef2f7;

    /* Text */
    --text: #0b1220;
    --text-strong: #050818;
    --text-soft: #475569;
    --text-muted: #64748b;
    --on-dark: #e2e8f0;
    --on-dark-soft: #94a3b8;
    --on-dark-muted: #64748b;

    /* Borders */
    --border: #e5e9f0;
    --border-strong: #cdd5e0;
    --hairline: rgba(15, 23, 42, .06);

    /* Brand / accent */
    --primary: #4f46e5;
    --primary-600: #4338ca;
    --primary-700: #3730a3;
    --accent: #0ea5e9;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 4px 14px -6px rgba(15, 23, 42, .12), 0 2px 6px -2px rgba(15, 23, 42, .06);
    --shadow-lg: 0 24px 48px -24px rgba(15, 23, 42, .35), 0 4px 12px -4px rgba(15, 23, 42, .12);
    --ring-primary: 0 0 0 3px rgba(79, 70, 229, .18);

    /* Geometry */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    /* Type */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

    /* Layout */
    --container-w: 1120px;
    --container-pad: 24px;
    --header-h: 68px;
}

/* ------------------- Reset ------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--surface-alt);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
a { color: var(--primary); }
a:hover { color: var(--primary-600); }

/* ------------------- Layout ------------------- */
.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 var(--container-pad); }
.container--prose { max-width: 760px; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------- Header ------------------- */
.site-header {
    background: rgba(7, 11, 26, .9);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    color: #fff;
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; height: 100%;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none;
    font-weight: 700; font-size: 1.02rem;
    letter-spacing: -.01em;
}
.brand-mark { border-radius: 9px; flex-shrink: 0; }
.brand-text { line-height: 1; }

.site-nav {
    display: flex; gap: 4px;
}
.site-nav a {
    color: var(--on-dark);
    text-decoration: none;
    font-size: .92rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color .15s, background .15s;
}
.site-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    width: 40px; height: 38px;
    border-radius: 9px;
    cursor: pointer;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ------------------- Hero ------------------- */
.hero {
    position: relative;
    background:
        radial-gradient(60% 80% at 70% -10%, rgba(14, 165, 233, .25), transparent 60%),
        radial-gradient(50% 70% at 20% 10%, rgba(79, 70, 229, .35), transparent 60%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
    color: #fff;
    padding: 88px 0 96px;
    text-align: center;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .035) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero > .container { position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-block;
    color: #93c5fd;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 14px;
    padding: 6px 12px;
    border: 1px solid rgba(147, 197, 253, .25);
    border-radius: var(--radius-pill);
    background: rgba(14, 165, 233, .06);
}
.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
}
.hero .lede {
    color: var(--on-dark);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 38px;
}
.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    margin-top: 40px;
}
.hero-stats > div {
    display: flex; flex-direction: column; align-items: center;
    color: var(--on-dark-soft);
}
.hero-stats strong {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    font-feature-settings: 'tnum';
}
.hero-stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.hero-stats--counters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: 780px;
    margin: 40px auto 0;
}
.hero-stats--counters .stat {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    backdrop-filter: blur(6px);
}
.hero-stats--counters .stat-num {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    margin-bottom: 4px;
}
.hero-stats--counters span {
    color: var(--on-dark-soft);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}
@media (max-width: 720px) {
    .hero-stats--counters {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hero-stats--counters .stat { padding: 14px 8px; }
    .hero-stats--counters .stat-num { font-size: 1.15rem; }
}

/* ------------------- Lookup form ------------------- */
.lookup-form {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid var(--hairline);
}
.lookup-form input[type="text"] {
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: 1.05rem;
    font-family: var(--font);
    font-feature-settings: 'tnum';
    width: 100%;
    outline: none;
    letter-spacing: 0;
    color: var(--text-strong);
}
.lookup-form input[type="text"]::placeholder { color: var(--text-muted); }
.lookup-form:focus-within {
    box-shadow: var(--shadow-lg), var(--ring-primary);
    border-color: var(--primary);
}
.lookup-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 24px;
    font-size: .98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .05s, box-shadow .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), inset 0 -1px 0 rgba(0, 0, 0, .15);
}
.lookup-form button:hover { background: var(--primary-600); }
.lookup-form button:active { transform: translateY(1px); }
.lookup-form button[disabled] { opacity: .7; cursor: progress; }

.btn-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.lookup-form.loading .btn-label { opacity: .85; }
.lookup-form.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.hint {
    grid-column: 1 / -1;
    margin: 8px 4px 2px;
    color: var(--on-dark-soft);
    font-size: .85rem;
    text-align: center;
}
.hint code {
    background: rgba(255, 255, 255, .08);
    color: #cbd5e1;
    border-radius: 4px;
    padding: 1px 8px;
    font-family: var(--font-mono);
}
.hero .lookup-form .hint { color: var(--text-muted); }
.hero .lookup-form .hint code { background: var(--surface-alt); color: var(--text); }

/* ------------------- Result ------------------- */
.result {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 720px;
    margin: 28px auto 0;
    padding: 30px 32px 28px;
    text-align: left;
    border: 1px solid var(--hairline);
    scroll-margin-top: 88px;
}
.result.error {
    border-left: 4px solid var(--danger);
}
.result h2 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    letter-spacing: -.01em;
    color: var(--text-strong);
}
.result .imei-meta {
    color: var(--text-soft);
    font-size: .88rem;
    margin-bottom: 22px;
    font-family: var(--font-mono);
}
.result .imei-meta code {
    background: var(--surface-alt);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .82rem;
}
/* Line-by-line provider report. Each row is "Label: value", with the
   value colored by classifyValue() in main.js (success/warn/danger). */
.result-fields {
    margin: 18px 0 0;
    padding: 22px 24px;
    background: var(--surface-alt);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: .92rem;
    line-height: 1.7;
    color: var(--text);
}
.result-field { display: block; }
.result-field dt {
    display: inline;
    color: var(--text-strong);
    font-weight: 600;
}
.result-field dt::after {
    content: ': ';
    color: var(--text-strong);
    font-weight: 600;
}
.result-field dd {
    display: inline;
    margin: 0;
    color: var(--text);
    word-break: break-word;
}
.result-field dd.rv-success { color: var(--success); font-weight: 600; }
.result-field dd.rv-danger  { color: var(--danger);  font-weight: 600; }
.result-field dd.rv-warn    { color: var(--warning); font-weight: 600; }
.result-field dd.rv-muted   { color: var(--text-muted); }
.result-empty {
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: .9rem;
    font-style: italic;
}

/* Async (DHRU) "we placed the order, polling for the result" state. */
.result-processing {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 22px 24px;
    background: var(--surface-alt);
    border: 1px solid var(--surface-line);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
}
.result-processing strong { color: var(--text-strong); font-size: 1rem; }
.result-processing .dashboard-subtitle { font-size: .88rem; }
.result-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(79, 70, 229, .18);
    border-top-color: var(--primary);
    animation: result-spin .9s linear infinite;
    flex-shrink: 0;
}
@keyframes result-spin {
    to { transform: rotate(360deg); }
}
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(22, 163, 74, .12);
    color: var(--success);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.badge.cached {
    background: rgba(79, 70, 229, .12);
    color: var(--primary);
}

/* ---- Report card: "Order Processed!" banner + centered lines +
   status pills + time/date chips (rendered by renderResult in main.js) ---- */
.result.result--report {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 720px;
    text-align: left;
}
.result-banner {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.01em;
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 22px;
}
.result-banner--success { background: var(--success); }
.result-banner--error   { background: var(--danger); }
.result-banner--warn    { background: var(--warning); color: #fff; }
.result-banner--info    { background: var(--primary); }
.result-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px 32px;
    text-align: center;
    overflow: hidden;
}
.result-lines { padding-bottom: 2px; }
.result-msg {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin: 6px 0;
}
.result-cta { margin: 16px 0 2px; }
.rline {
    font-size: 1rem;
    line-height: 2.05;
    color: var(--text);
    word-break: break-word;
}
.rline--model { font-size: 1.08rem; margin-bottom: 2px; }
.rline .rk { color: var(--text-strong); }
.rline strong { color: var(--text-strong); font-weight: 700; }
.rline--section { margin-top: 12px; font-weight: 700; }
.rline--section .rk { color: var(--text-strong); }
.rline--sub {
    text-align: left;
    padding-left: 14px;
    margin-left: 3px;
    border-left: 2px solid var(--border);
    color: var(--text-soft);
    font-size: .9rem;
    line-height: 1.6;
    word-break: break-word;
}
.pill {
    display: inline-block;
    padding: 3px 13px;
    border-radius: var(--radius-pill);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #fff;
    vertical-align: middle;
}
.pill-success { background: var(--success); }
.pill-danger  { background: var(--danger); }
.pill-warn    { background: var(--warning); color: #1f2937; }
.pill-muted   { background: var(--text-muted); }
.result-chips {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 20px -32px -30px;
}
.result-chip {
    background: var(--surface-alt);
    color: var(--text-soft);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: 9px 18px;
    border-radius: 16px 16px 0 0;
}
@media (max-width: 560px) {
    .result-card { padding: 24px 18px; }
    .result-chips { margin: 16px -18px -24px; }
    .result-chip { padding: 8px 12px; font-size: .72rem; }
}

/* Crypto top-up page (topup/crypto.php): address panels + verify form. */
.crypto-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: 28px 28px 30px;
    margin-top: 22px;
    box-shadow: 0 6px 20px rgba(11, 18, 32, .06);
}
.crypto-h {
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: var(--text, #0b1220);
}
.crypto-h--step2 { margin-top: 26px; }
.crypto-sub { color: var(--text-soft, #475569); font-size: .92rem; margin: 0 0 18px; line-height: 1.55; }
.crypto-addr {
    background: #f6f8fc;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.crypto-addr-h { margin-bottom: 8px; }
.crypto-chip {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.crypto-addr-row { display: flex; align-items: center; gap: 10px; }
.crypto-addr-val {
    flex: 1; min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    color: #0b1220;
    overflow-wrap: anywhere;
    word-break: break-all;
}
.crypto-copy {
    border: 1px solid #c7d2fe;
    background: #fff;
    color: #4f46e5;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.crypto-copy:hover { background: #4f46e5; color: #fff; }
.crypto-form { margin-top: 4px; }
.crypto-input { display: block; }
.crypto-input span {
    display: block;
    font-weight: 600;
    color: var(--text-soft, #475569);
    font-size: .82rem;
    margin-bottom: 6px;
}
.crypto-input input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9rem;
    background: #fff;
    box-sizing: border-box;
}
.crypto-input input:focus { outline: 2px solid #c7d2fe; border-color: #818cf8; }
.crypto-msg {
    margin: 14px 0 4px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: .88rem;
    line-height: 1.5;
}
.crypto-msg--info  { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.crypto-msg--ok    { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.crypto-msg--warn  { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.crypto-msg--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.crypto-msg a { color: inherit; text-decoration: underline; font-weight: 600; }
@media (max-width: 560px) {
    .crypto-card { padding: 22px 18px 24px; }
    .crypto-addr-row { flex-direction: column; align-items: stretch; }
    .crypto-copy { align-self: flex-end; }
}

/* Inline note shown on FREE lookup results explaining that the community
   blacklist alert is paid-only. Keeps absence-of-alert from reading as
   "this IMEI is clean". */
.result-free-note {
    margin: 16px 0 0;
    padding: 12px 16px;
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    color: #3730a3;
    font-size: .82rem;
    line-height: 1.5;
    text-align: left;
}
.result-free-note strong { color: #312e81; }
.result-free-note a { color: #4f46e5; text-decoration: underline; font-weight: 600; }

/* Save / share the result as an image (small icon buttons under the card). */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.result-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--surface, #fff);
    color: var(--text-soft);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.result-action svg { width: 16px; height: 16px; }
.result-action:hover { border-color: #c7d2fe; color: #4f46e5; background: #f5f7ff; }
.result-action:active { transform: scale(.97); }

/* Order-history result popup (#order-modal): a past lookup can carry ~30
   fields, which made the modal taller than the viewport so the banner and
   Close button were clipped off-screen. Cap the field list and let it scroll
   internally; the overlay itself scrolls as a fallback on short screens.
   Scoped to the modal so the inline result card elsewhere is untouched. */
#order-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 24px 16px;
}
#order-modal .result-banner {
    font-size: 1.15rem;
    padding: 14px 22px;
    margin-bottom: 14px;
}
#order-modal .result-card { padding: 22px 24px; }
#order-modal .result-lines {
    max-height: 58vh;
    overflow-y: auto;
}
#order-modal .rline { line-height: 1.75; font-size: .95rem; }
#order-modal .rline--model { font-size: 1.05rem; }

/* ---- Community blacklist warning (inline + popup) ---- */
.bl-inline {
    background: rgba(220, 38, 38, .08);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, .3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}
.bl-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15, 17, 23, .62);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: bl-fade .15s ease;
}
.bl-overlay[hidden] { display: none; }
@keyframes bl-fade { from { opacity: 0; } to { opacity: 1; } }
.bl-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 440px; width: 100%;
    padding: 28px 28px 24px;
    text-align: center;
    border-top: 5px solid var(--danger);
}
.bl-badge {
    display: inline-block;
    background: var(--danger); color: #fff;
    font-size: .78rem; font-weight: 700; letter-spacing: .04em;
    padding: 5px 14px; border-radius: var(--radius-pill);
    margin-bottom: 14px;
}
.bl-card h3 { margin: 0 0 10px; font-size: 1.25rem; color: var(--text-strong); }
.bl-card p { margin: 0 0 8px; color: var(--text); line-height: 1.6; font-size: .95rem; }
.bl-reason { color: var(--text-soft); font-size: .9rem; font-style: italic; }
.bl-dismiss {
    margin-top: 16px;
    background: var(--danger); color: #fff; border: 0;
    padding: 11px 24px; border-radius: var(--radius-pill);
    font-weight: 700; cursor: pointer; font-size: .95rem;
}
.bl-dismiss:hover { filter: brightness(1.08); }

/* Order-history row action buttons (view / report). */
.order-act {
    background: var(--surface-alt);
    border: 1px solid var(--hairline);
    color: var(--text-soft);
    width: 34px; height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: 6px;
    vertical-align: middle;
}
.order-act:hover { color: var(--text-strong); border-color: var(--text-muted); }
.order-act--report:hover { color: var(--danger); border-color: var(--danger); }
.order-act.is-reported { color: var(--danger); border-color: var(--danger); background: rgba(220, 38, 38, .08); }
.order-act.is-reported:hover { background: rgba(220, 38, 38, .16); }
.order-act.busy { opacity: .5; cursor: progress; }

/* ---- Blacklist import toolbar (orders page) ---- */
.bl-import-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-outline {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.btn-outline:hover { border-color: var(--text-muted); color: var(--text-strong); }
.btn-outline:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline--primary { border-color: var(--primary); color: var(--primary); }
.btn-outline--primary:hover { background: rgba(79, 70, 229, .06); color: var(--primary-600); border-color: var(--primary-600); }
.bl-import-msg {
    margin: 12px 0 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-soft);
}
.bl-import-msg--ok  { color: var(--success); }
.bl-import-msg--err { color: var(--danger); }
.bl-sample {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}
.bl-sample th, .bl-sample td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
}
.bl-sample th { background: var(--surface-alt); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.bl-sample td { color: var(--text); }

/* ------------------- Section heading utility ------------------- */
.section-head { text-align: center; margin: 0 auto 36px; max-width: 600px; }
.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    letter-spacing: -.015em;
    color: var(--text-strong);
}
.section-head p { margin: 0; color: var(--text-soft); }

/* ------------------- Brands ------------------- */
.brands-preview, .brands-list { padding: 80px 0; background: var(--surface); }
.brands-preview { background: var(--surface); }
.brands-list   { background: var(--surface-alt); }

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.brand-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 14px 18px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, transform .15s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.brand-tile:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.brand-tile-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: -.02em;
    box-shadow: var(--shadow-xs);
}
.brand-tile-mark--lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 1.7rem;
}
.brand-tile-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    transition: background .15s, border-color .15s;
}
.brand-tile-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: grayscale(100%) opacity(.85);
    transition: filter .15s, transform .15s;
}
.brand-tile:hover .brand-tile-logo {
    background: #fff;
    border-color: var(--text-strong);
}
.brand-tile:hover .brand-tile-logo img {
    filter: none;
    transform: scale(1.05);
}
.brand-tile-name { font-weight: 600; font-size: .98rem; }
.brand-tile-meta { color: var(--text-muted); font-size: .8rem; }

/* Name-only variant (compact wordmark tiles) */
.brand-grid--names {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.brand-tile--name-only {
    padding: 18px 14px;
    min-height: 64px;
    justify-content: center;
}
.brand-tile--name-only .brand-tile-name {
    font-size: 1.02rem;
    letter-spacing: -.005em;
    color: var(--text-strong);
}
.brand-tile--name-only:hover .brand-tile-name { color: var(--primary); }

.brand-headline {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
}
.brand-headline h1 { margin: 0; color: #fff; }
.brand-meta { color: var(--on-dark-soft); margin: 4px 0 0; font-size: .9rem; }

.brand-grid-more {
    text-align: center;
    margin-top: 28px;
}
.link-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.link-more:hover { text-decoration: underline; }
.link-more svg { transition: transform .15s; }
.link-more:hover svg { transform: translateX(2px); }

/* ------------------- How it works ------------------- */
.how { padding: 80px 0; background: var(--surface-alt); }
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    transition: border-color .15s, transform .15s, box-shadow .2s;
}
.card:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.card-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(14, 165, 233, .12));
    color: var(--primary);
    margin-bottom: 16px;
}
.card-num {
    position: absolute;
    top: 22px;
    right: 26px;
    color: var(--border-strong);
    font-weight: 700;
    font-feature-settings: 'tnum';
    font-size: .85rem;
    letter-spacing: .04em;
}
.card h3 { margin: 0 0 6px; font-size: 1.08rem; letter-spacing: -.005em; }
.card p { color: var(--text-soft); margin: 0; }
.card code, .faq code, .prose code, .article-body code {
    background: var(--surface-alt);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: .9em;
}

/* ------------------- FAQ ------------------- */
.faq { padding: 80px 0; background: var(--surface); }
.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] {
    border-color: rgba(79, 70, 229, .35);
    box-shadow: var(--shadow-sm);
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    padding-right: 28px;
    position: relative;
    color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s;
}
.faq details[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}
.faq details p { margin: 12px 0 0; color: var(--text-soft); }

/* ------------------- Testimonials carousel ------------------- */
.testimonials {
    padding: 80px 0;
    background: var(--surface-alt);
}
.testimonial-carousel {
    position: relative;
    margin: 32px 0 22px;
    padding: 0 56px;
}
.testimonial-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3);
    column-gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 14px;
}
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    min-height: 220px;
}
.testimonial-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.testimonial-rating {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
}
.testimonial-quote {
    margin: 0;
    color: var(--text-soft);
    font-size: .98rem;
    line-height: 1.65;
    flex: 1;
}
.testimonial-quote::before { content: "\201C"; color: var(--primary); font-size: 1.5em; line-height: 0; margin-right: 2px; vertical-align: -0.2em; }
.testimonial-quote::after  { content: "\201D"; color: var(--primary); font-size: 1.5em; line-height: 0; margin-left: 2px;  vertical-align: -0.2em; }
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.01em;
    flex-shrink: 0;
}
.testimonial-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}
.testimonial-meta strong { color: var(--text-strong); font-size: .94rem; font-weight: 600; }
.testimonial-meta span   { color: var(--text-muted); font-size: .82rem; }

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-strong);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    transition: background .15s, transform .1s, border-color .15s;
    z-index: 2;
}
.testimonial-nav:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.testimonial-nav:active { transform: translateY(-50%) scale(.96); }
.testimonial-nav--prev { left: 4px; }
.testimonial-nav--prev svg { transform: rotate(180deg); }
.testimonial-nav--next { right: 4px; }

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border-strong);
    padding: 0;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.testimonial-dot:hover { transform: scale(1.15); }
.testimonial-dot.is-active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 900px) {
    .testimonial-track { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 620px) {
    .testimonial-carousel { padding: 0 8px; }
    .testimonial-track    { grid-auto-columns: 100%; column-gap: 12px; }
    .testimonial-nav { top: auto; bottom: -68px; transform: none; }
    .testimonial-nav:active { transform: scale(.96); }
    .testimonial-nav--prev { left: calc(50% - 50px); }
    .testimonial-nav--next { right: calc(50% - 50px); }
    .testimonial-dots { margin-top: 56px; }
}

/* ------------------- Services ------------------- */
.services-list { padding: 80px 0; background: var(--surface); }
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 24px 26px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, transform .15s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.service-card:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.service-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(14, 165, 233, .12));
    color: var(--primary);
}
.service-card h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.005em; color: var(--text-strong); }
.service-card p { margin: 0; color: var(--text-soft); }
.service-link {
    color: var(--primary);
    font-weight: 600;
    margin-top: 8px;
    font-size: .92rem;
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap .15s;
}
.service-card:hover .service-link { gap: 10px; }

.pill {
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.2;
}
.pill-free { background: rgba(22, 163, 74, .12); color: var(--success); }
.pill-paid { background: rgba(79, 70, 229, .12); color: var(--primary); }
.pill-tag  { background: rgba(15, 23, 42, .07); color: var(--text-soft); }

.lookup-form--hero { margin-top: 28px; max-width: 540px; }
.service-headline {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin-bottom: 6px;
}
.service-headline h1 { margin: 0; color: #fff; }
.service-headline-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    display: inline-grid; place-items: center;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, .1);
}
.service-body {
    padding: 64px 0;
    background: var(--surface-alt);
}
.service-body h2 { margin: 0 0 12px; color: var(--text-strong); }
.service-body h3 { margin: 28px 0 8px; }
.service-body ul { padding-left: 22px; line-height: 1.85; color: var(--text-soft); }

/* ------------------- Page hero ------------------- */
.page-hero {
    background:
        radial-gradient(50% 70% at 30% 0%, rgba(79, 70, 229, .25), transparent 60%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
    color: #fff;
    padding: 64px 0 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .035) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent, #000 50%, transparent);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 14px;
    letter-spacing: -.022em;
    color: #fff;
}
.page-hero .lede {
    color: var(--on-dark);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
}
.page-hero .lede a { color: #93c5fd; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs {
    color: var(--on-dark-muted);
    font-size: .88rem;
    margin: 0 0 14px;
    letter-spacing: .01em;
}
.breadcrumbs a {
    color: var(--on-dark-soft);
    text-decoration: none;
}
.breadcrumbs a:hover { color: #fff; }
.page-hero .hero-eyebrow { margin-bottom: 16px; }

/* ------------------- Model list ------------------- */
.model-list { padding: 64px 0; background: var(--surface); }
.model-list h2 { margin: 0 0 22px; color: var(--text-strong); }
.models {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.models li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-weight: 500;
    transition: border-color .15s, transform .1s;
}
.models li:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

/* ------------------- Articles ------------------- */
.articles-list { padding: 64px 0; background: var(--surface-alt); }
.article-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 14px;
    transition: border-color .15s, transform .15s, box-shadow .2s;
}
.article-card:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 10px;
}
.article-card-meta time { font-family: var(--font-mono); font-size: .82rem; }
.article-card h2 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -.01em; color: var(--text-strong); }
.article-card p { margin: 0 0 10px; color: var(--text-soft); }
.article-link { color: var(--primary); font-weight: 600; font-size: .92rem; }

.article-page { background: var(--surface); }
.article-date { color: var(--on-dark-soft); font-size: .9rem; margin: 14px 0 0; font-family: var(--font-mono); }
.article-body { padding: 56px 0 80px; }
.article-cta {
    margin-top: 36px;
    padding: 18px 22px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ------------------- Prose ------------------- */
.prose { padding: 64px 0 80px; background: var(--surface); }
.prose h2, .article-body h2 { margin-top: 36px; font-size: 1.45rem; letter-spacing: -.01em; color: var(--text-strong); }
.prose h3, .article-body h3 { margin-top: 28px; font-size: 1.15rem; }
.prose p, .article-body p { line-height: 1.8; color: var(--text); }
.prose ul, .article-body ul { line-height: 1.9; padding-left: 22px; color: var(--text); }
.prose table, .article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.prose th, .prose td, .article-body th, .article-body td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.prose th, .article-body th {
    background: var(--surface-alt);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-soft);
    font-weight: 600;
}
.prose tr:last-child td, .article-body tr:last-child td { border-bottom: none; }
.prose hr, .article-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* ------------------- Contact form ------------------- */
.contact-form { display: grid; gap: 18px; max-width: 560px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span { font-weight: 600; font-size: .9rem; color: var(--text-strong); }
.contact-form input,
.contact-form textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    font-size: 1rem;
    font-family: var(--font);
    background: var(--surface);
    color: var(--text-strong);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring-primary);
}
.contact-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    justify-self: start;
    transition: background .15s;
    box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 -1px 0 rgba(0,0,0,.15);
}
.contact-form button:hover { background: var(--primary-600); }
.field-error { color: var(--danger); font-size: .84rem; font-style: normal; }
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid transparent;
}
.alert-success {
    background: rgba(22, 163, 74, .08);
    color: var(--success);
    border-color: rgba(22, 163, 74, .25);
}

/* ------------------- Footer ------------------- */
.site-footer {
    background: var(--bg-deep);
    color: var(--on-dark-soft);
    padding: 56px 0 28px;
    font-size: .9rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.footer-col h4 {
    color: #f1f5f9;
    font-size: .8rem;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}
.footer-col a {
    color: var(--on-dark-soft);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-col strong { color: #fff; font-size: 1.05rem; }
.footer-col p { margin: 8px 0 0; }
.footer-col--bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin-top: 16px;
    padding-top: 20px;
    text-align: center;
    font-size: .85rem;
    color: var(--on-dark-muted);
}

/* ------------------- Auth (login + account chip) ------------------- */
.site-account { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.btn-signin {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background .15s, border-color .15s;
}
.btn-signin:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn-signup {
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: filter .15s;
}
.btn-signup:hover { filter: brightness(1.1); color: #fff; }

.account-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 4px 4px 4px 12px;
    border-radius: var(--radius-pill);
    color: #fff;
    text-decoration: none;
    font-size: .88rem;
    transition: background .15s;
}
.account-chip:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.account-balance {
    font-weight: 700;
    font-feature-settings: 'tnum';
    letter-spacing: 0;
}
.account-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
}
.account-avatar--initial { font-family: var(--font); }

.container--narrow { max-width: 460px; }
.auth-shell { min-height: 70vh; display: grid; place-items: center; padding: 56px 0; background: var(--surface-alt); }
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 36px 32px;
    text-align: center;
}
.auth-card-head h1 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -.015em; color: var(--text-strong); }
.auth-card-head p { margin: 0 0 28px; color: var(--text-soft); }
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: var(--surface);
    color: var(--text-strong);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background .15s, border-color .15s;
}
.btn-google:hover {
    background: var(--surface-alt);
    border-color: var(--text-muted);
    color: var(--text-strong);
}
.auth-fineprint {
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.6;
}
.auth-form {
    display: grid;
    gap: 14px;
    text-align: left;
    margin-bottom: 8px;
}
.auth-form[hidden] { display: none; }
.auth-form label { display: grid; gap: 6px; }
.auth-form label > span {
    font-weight: 600;
    font-size: .85rem;
    color: var(--text-strong);
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--font);
    background: var(--surface);
}
.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring-primary);
}
.pw-field { position: relative; }
.pw-field > input { padding-right: 46px !important; }
.pw-field .pw-toggle {
    position: absolute;
    right: 8px;
    bottom: 7px;
    background: none; border: 0; padding: 5px;
    color: var(--text-muted); cursor: pointer;
    display: inline-flex; align-items: center;
    border-radius: 6px;
}
.pw-field .pw-toggle:hover { color: var(--text-strong); }
.pw-field .pw-toggle.is-on { color: var(--primary); }
.auth-forgot { text-align: right; margin: -4px 0 2px; font-size: .88rem; }
.auth-forgot a { color: var(--primary); text-decoration: none; }
.auth-forgot a:hover { text-decoration: underline; }
.auth-note {
    background: rgba(22, 163, 74, .1);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, .25);
    border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: .9rem; margin: 0 0 18px;
}
.auth-form .otp-input {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    letter-spacing: .35em;
    font-weight: 700;
}
.btn-primary-block {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 -1px 0 rgba(0,0,0,.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-primary-block:hover { background: var(--primary-600); }
.btn-primary-block[disabled] { opacity: .7; cursor: progress; }
.btn-primary-block .btn-spinner { display: none; }
.auth-form.loading .btn-primary-block .btn-spinner { display: inline-block; }

.auth-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: .82rem;
    margin: 18px 0;
    position: relative;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    border-top: 1px solid var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-divider span {
    background: var(--surface);
    padding: 0 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.otp-info {
    color: var(--text-soft);
    font-size: .92rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* ------------------- Unified Check page ------------------- */
.check-shell { padding: 48px 0 80px; background: var(--surface-alt); min-height: 70vh; }
.check-head { text-align: center; margin-bottom: 28px; }
.check-head h1 { margin: 14px 0 8px; font-size: 1.7rem; color: var(--text-strong); letter-spacing: -.015em; }
.check-sub { color: var(--text-soft); margin: 0 auto 8px; max-width: 460px; }
.check-balance {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 12px 0 0;
}
.check-balance strong { color: var(--text-strong); font-feature-settings: 'tnum'; }

.check-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 26px 28px;
    display: grid;
    gap: 20px;
}
.check-form fieldset { border: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-form legend {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0;
    margin: 0 0 4px;
}
.check-form select,
.check-form input[type="text"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    font-size: 1rem;
    font-family: var(--font);
    background: var(--surface);
    color: var(--text-strong);
    appearance: none;
    -webkit-appearance: none;
}
.check-form select {
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                      linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) center, calc(100% - 13px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
    cursor: pointer;
}
.check-form select optgroup {
    font-weight: 700;
    color: var(--text-strong);
    background: var(--surface-alt);
}
.check-form select option {
    font-weight: 500;
    color: var(--text);
    padding: 6px;
}
.check-form select:focus,
.check-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring-primary);
}

.check-summary {
    background: var(--surface-alt);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.check-summary-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.check-summary-name {
    font-weight: 600;
    color: var(--text-strong);
}
.check-summary-cost {
    text-align: right;
    font-feature-settings: 'tnum';
}
.check-summary-cost strong {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 520px) {
    .check-form { padding: 20px; }
    .check-summary { flex-direction: column; align-items: flex-start; gap: 8px; }
    .check-summary-cost { text-align: left; }
}

/* ------------------- Hero dropdown (homepage) ------------------- */
/* Vertical stack like baseimei.com: IMEI input -> service dropdown -> button. */
.hero-lookup {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 18px;
    display: grid;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid var(--hairline);
    text-align: left;
}
.hero-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 14px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.hero-field:focus-within {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: var(--ring-primary);
}
.hero-field-icon {
    display: grid;
    place-items: center;
    color: var(--text-muted);
    width: 22px;
}
.hero-lookup input[type="text"],
.hero-lookup .hero-select {
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 1rem;
    font-family: var(--font);
    font-feature-settings: 'tnum';
    width: 100%;
    outline: none;
    color: var(--text-strong);
    appearance: none;
    -webkit-appearance: none;
}
.hero-lookup .hero-select {
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                      linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 12px) center, calc(100% - 7px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 26px;
    font-weight: 500;
}
.hero-lookup .hero-select optgroup {
    font-weight: 700;
    color: var(--text-strong);
    background: var(--surface-alt);
}
.hero-lookup .hero-select option { color: var(--text); font-weight: 500; }
.hero-lookup input[type="text"]::placeholder { color: var(--text-muted); }
.hero-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .05s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 -1px 0 rgba(0,0,0,.15);
}
.hero-submit:hover { background: var(--primary-600); }
.hero-submit[disabled] { opacity: .7; cursor: progress; }
.hero-lookup.loading .hero-submit .btn-label { opacity: .85; }
.hero-lookup.loading .hero-submit .btn-spinner { display: inline-block; }
.hero-lookup .hero-submit .btn-spinner { display: none; }
.hero-lookup .hint {
    margin: 4px 2px 0;
    color: var(--text-muted);
    font-size: .85rem;
    text-align: center;
}
.hero-lookup .hint code {
    background: var(--surface-alt);
    color: var(--text);
    border-radius: 4px;
    padding: 1px 8px;
    font-family: var(--font-mono);
}
.hero-lookup .hint a { color: var(--primary); font-weight: 600; }

/* ------------------- Dashboard ------------------- */
.dashboard { padding: 56px 0 80px; background: var(--surface-alt); min-height: 70vh; }
.dashboard-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}
.dashboard-head h1 { margin: 8px 0 6px; font-size: 1.7rem; letter-spacing: -.015em; color: var(--text-strong); }
.dashboard-subtitle { margin: 0; color: var(--text-soft); }
.link-quiet {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}
.link-quiet:hover { color: var(--text); background: var(--surface); }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-card-label {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    font-weight: 600;
}
.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text-strong);
    font-feature-settings: 'tnum';
}
.stat-card-meta { font-size: .85rem; color: var(--text-muted); }
.stat-card .btn-primary {
    align-self: flex-start;
    margin-top: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .92rem;
}
.stat-card .btn-primary:hover { background: var(--primary-600); }
.dashboard-coming {
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--text-muted);
    text-align: center;
}

.dashboard-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
}
.dashboard-block-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.dashboard-block-head h2 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -.005em;
    color: var(--text-strong);
}

.empty-state {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-muted);
}
.empty-state p { margin: 0 0 6px; }
.empty-state strong { color: var(--text); }

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.ledger-table thead th {
    text-align: left;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.ledger-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--surface-line);
    color: var(--text);
    vertical-align: middle;
}
.ledger-table tbody tr:last-child td { border-bottom: none; }
.ledger-table .num {
    text-align: right;
    font-feature-settings: 'tnum';
    font-weight: 600;
}
.ledger-table .muted { color: var(--text-muted); font-family: var(--font-mono); font-size: .85rem; }
.ledger-sub {
    display: block;
    font-size: .78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: normal;
    margin-top: 2px;
}

.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.status--success  { background: rgba(22, 163, 74, .12); color: var(--success); }
.status--pending  { background: rgba(217, 119, 6, .12); color: var(--warning); }
.status--failed   { background: rgba(220, 38, 38, .12); color: var(--danger); }
.status--refunded { background: rgba(100, 116, 139, .15); color: var(--text-soft); }

.amount {
    font-feature-settings: 'tnum';
    font-weight: 600;
}
.amount--positive { color: var(--success); }
.amount--negative { color: var(--text); }

/* ------------------- Top-up ------------------- */
.topup-shell { padding: 48px 0 80px; background: var(--surface-alt); min-height: 70vh; }
.topup-shell h1 { font-size: 1.7rem; letter-spacing: -.015em; margin: 14px 0 6px; color: var(--text-strong); }
.topup-shell .breadcrumbs { color: var(--text-muted); margin: 0 0 4px; }
.topup-shell .breadcrumbs a { color: var(--text-soft); }

.topup-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    margin-top: 28px;
    display: grid;
    gap: 24px;
}
.topup-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.topup-form legend {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0;
    margin: 0 0 12px;
}

.topup-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.topup-presets label { cursor: pointer; }
.topup-presets input[type="radio"] {
    position: absolute; opacity: 0; pointer-events: none;
}
.preset-card {
    display: block;
    text-align: center;
    padding: 18px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .15s, background .15s, transform .1s;
}
.topup-presets input:checked + .preset-card {
    border-color: var(--primary);
    background: rgba(79, 70, 229, .06);
    box-shadow: var(--ring-primary);
}
.topup-presets label:hover .preset-card {
    border-color: var(--text-muted);
}
.preset-card-amount {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-strong);
    font-feature-settings: 'tnum';
}

.topup-custom {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}
.topup-custom span {
    color: var(--text-muted);
    font-size: .9rem;
}
.topup-custom input {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    font-size: 1rem;
    font-family: var(--font);
    background: var(--surface-alt);
}
.topup-custom input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring-primary);
    background: var(--surface);
}

.btn-primary--lg {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px 26px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    justify-self: stretch;
    text-align: center;
    transition: background .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 -1px 0 rgba(0,0,0,.15);
}
.btn-primary--lg:hover { background: var(--primary-600); }
.btn-primary--lg.loading .btn-label { opacity: .85; }
.btn-primary--lg.loading .btn-spinner { display: inline-block; }
.btn-primary--lg .btn-spinner { display: none; }

.topup-foot {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.7;
}

.alert-warning {
    background: rgba(217, 119, 6, .08);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, .25);
    padding: 14px 18px;
    border-radius: var(--radius);
}

.topup-status {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 48px 40px;
    margin-top: 28px;
    text-align: center;
}
.topup-status h1 { margin: 0 0 12px; font-size: 1.6rem; color: var(--text-strong); }
.topup-status p { color: var(--text-soft); margin: 0 0 8px; }
.topup-status .btn-primary {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary); color: #fff; text-decoration: none;
    padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 600;
}
.topup-status--credited h1 { color: var(--success); }
.topup-status--failed h1 { color: var(--danger); }
.topup-amount {
    font-size: 1.4rem;
    color: var(--text-strong);
    font-weight: 700;
    font-feature-settings: 'tnum';
    margin: 4px 0 8px !important;
}

@media (max-width: 520px) {
    .topup-presets { grid-template-columns: repeat(2, 1fr); }
    .topup-form { padding: 20px; }
}

/* ------------------- Payment methods ----------------------------------- */
.pm-list {
    display: grid;
    gap: 12px;
}
.pm-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s, transform .08s;
}
.pm-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.pm-card-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(14, 165, 233, .12));
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pm-card-body { flex: 1 1 auto; min-width: 0; }
.pm-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}
.pm-card-name {
    font-weight: 700;
    color: var(--text-strong);
    font-size: 1rem;
}
.pm-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(22, 163, 74, .12);
    color: var(--success);
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    letter-spacing: .02em;
}
.pm-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 7px;
    color: var(--text-soft);
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}
.pm-card-meta > span { white-space: nowrap; }
.pm-meta-k {
    color: var(--text-muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 4px;
}
.pm-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 106px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .05s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 -1px 0 rgba(0, 0, 0, .12);
}
.pm-btn:hover { background: var(--primary-600); }
.pm-btn:active { transform: translateY(1px); }
.pm-btn:disabled { opacity: .55; cursor: not-allowed; }
.pm-btn.loading .pm-btn-label { opacity: .75; }
.pm-btn.loading .btn-spinner { display: inline-block; }
.pm-btn .btn-spinner { display: none; }

@media (max-width: 520px) {
    .pm-card { flex-wrap: wrap; row-gap: 12px; }
    .pm-card-body { flex: 1 1 0; }
    .pm-btn { order: 3; width: 100%; flex-basis: 100%; }
}

/* Binance Pay QR page */
.bp-pay {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    margin-top: 28px;
}
.bp-pay-head h1 { margin: 0 0 4px; font-size: 1.6rem; color: var(--text-strong); }
.bp-pay-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 22px;
}
.bp-pay-qr {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-pay-qr img { display: block; max-width: 100%; height: auto; }
.bp-pay-qr-empty {
    color: var(--text-muted);
    font-size: .9rem;
    padding: 60px 20px;
    text-align: center;
}
.bp-pay-info h2 { font-size: 1.05rem; color: var(--text-strong); margin: 0 0 12px; }
.bp-pay-info ol { margin: 0 0 18px 18px; padding: 0; color: var(--text-soft); line-height: 1.7; }
.bp-pay-info ol li { margin: 0 0 4px; }
.bp-pay-bonus {
    margin-top: 18px;
    padding: 12px 14px;
    background: rgba(16, 185, 129, .08);
    border: 1px solid rgba(16, 185, 129, .25);
    border-radius: var(--radius-sm);
    color: var(--text-strong);
    font-size: .92rem;
}
@media (max-width: 720px) {
    .bp-pay { padding: 20px; }
    .bp-pay-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ------------------- Filter pills + pagination + secondary btn ------------------- */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    text-decoration: none;
    color: var(--text-soft);
    font-size: .88rem;
    font-weight: 500;
    transition: border-color .15s, background .15s, color .15s;
}
.pill-link:hover { border-color: var(--text-muted); color: var(--text); }
.pill-link.is-active {
    background: var(--text-strong);
    border-color: var(--text-strong);
    color: #fff;
}
.pill-link-count {
    font-size: .72rem;
    color: var(--text-muted);
    background: var(--surface-alt);
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    font-feature-settings: 'tnum';
    font-weight: 600;
}
.pill-link.is-active .pill-link-count {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-strong);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: background .15s, border-color .15s;
}
.btn-secondary:hover {
    background: var(--surface-alt);
    border-color: var(--text-muted);
    color: var(--text-strong);
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    gap: 16px;
}
.pagination-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: background .15s, border-color .15s;
}
.pagination-link:hover {
    background: var(--surface-alt);
    border-color: var(--text-muted);
}
.pagination-link.is-disabled {
    color: var(--text-muted);
    opacity: .55;
    cursor: not-allowed;
    border-color: var(--surface-line);
}
.pagination-info {
    color: var(--text-muted);
    font-size: .9rem;
    font-feature-settings: 'tnum';
}

/* ------------------- Bot settings ------------------- */
.token-pill {
    background: var(--surface-alt);
    color: var(--text-strong);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid var(--border);
    letter-spacing: .04em;
}
.btn-tiny {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    font-family: var(--font);
}
.btn-tiny:hover { border-color: var(--text-muted); background: var(--surface-alt); }
.btn-tiny--danger { color: var(--danger); border-color: rgba(220,38,38,.25); }
.btn-tiny--danger:hover { background: rgba(220,38,38,.06); border-color: var(--danger); }

.bot-steps {
    margin: 0;
    padding-left: 22px;
    line-height: 2;
    color: var(--text);
}
.bot-steps code {
    background: var(--surface-alt);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: .92em;
}

#new-token-banner {
    padding: 16px 18px;
    margin-bottom: 18px;
}

/* ------------------- Icon helper ------------------- */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ------------------- Responsive ------------------- */
@media (max-width: 760px) {
    .lookup-form {
        grid-template-columns: 1fr;
    }
    .lookup-form button { width: 100%; padding: 14px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        gap: 2px;
        background: rgba(7, 11, 26, .98);
        -webkit-backdrop-filter: saturate(180%) blur(8px);
        backdrop-filter: saturate(180%) blur(8px);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        padding: 8px 16px 14px;
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 11px 12px; font-size: .95rem; }
    .hero { padding: 56px 0 72px; }
    .hero h1 { font-size: 2rem; letter-spacing: -.02em; }
    .hero-stats { gap: 28px; }
    .hero-stats strong { font-size: 1.2rem; }
    .how, .faq, .brands-list, .brands-preview, .services-list, .articles-list { padding: 56px 0; }
    .result { padding: 22px 18px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .brand-headline { flex-direction: column; gap: 12px; }
    .service-headline { flex-direction: column; }
    .site-account { margin-left: auto; gap: 7px; }
    .btn-signin, .btn-signup { padding: 6px 11px; font-size: .82rem; }
    .account-chip { padding: 3px 3px 3px 10px; font-size: .8rem; gap: 6px; }
    .account-avatar { width: 24px; height: 24px; }
    .dashboard-head { flex-direction: column; }
}

/* ===== Check page dark theme (match hero) ===== */
.check-shell {
    padding: 48px 0 80px;
    background:
        radial-gradient(60% 80% at 70% -10%, rgba(14, 165, 233, .25), transparent 60%),
        radial-gradient(50% 70% at 20% 10%, rgba(79, 70, 229, .35), transparent 60%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
    color: #fff;
    min-height: 70vh;
    position: relative;
}
.check-shell::after {
    content: ;
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .035) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.check-shell > .container { position: relative; z-index: 1; }
.check-head h1 { color: #fff; }
.check-sub { color: var(--on-dark-soft); }
.check-balance { color: var(--on-dark-soft); }
.check-balance strong { color: #fff; }
.check-shell .hero-eyebrow { color: var(--on-dark-soft) !important; border-color: rgba(255,255,255,.15) !important; background: rgba(255,255,255,.06) !important; }
.check-shell .hint { color: var(--on-dark-muted) !important; }
