/* ═══════════════════════════════════════════════════════════
   SELF-HOSTED WEBFONTS  (SEO/perf pass 2026-09-17)

   These used to load from fonts.googleapis.com + fonts.gstatic.com via a
   render-blocking <link>. That cost two extra DNS lookups, two extra TLS
   handshakes and one extra blocking round-trip before first paint.

   Both families are VARIABLE fonts: Google served the identical woff2 for
   weights 400, 500, 600 and 700, so two files cover every weight the site
   uses. Total payload 52.5 KB, served from our own origin and cached.

   font-weight uses a RANGE ("400 700") because that is how a variable font
   is declared — the browser interpolates the axis instead of synthesising
   a fake bold, which is what was happening before for weight 600.

   font-display: swap  — text paints immediately in the fallback face and
   swaps when the font arrives, so the webfont never delays LCP.

   Both families are SIL Open Font License 1.1; self-hosting is permitted.
   ═══════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════════════════════════
   BLACKSEC v2.1 — SIGNAL INTELLIGENCE SURFACE
   Restrained · Dense · Data-first · One phosphor accent
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ── Core palette ── */
    --bg-void: #050507;
    --bg-deep: #08090d;
    --bg-card: #0b0d12;
    --bg-elevated: #10131a;
    --bg-hover: #141824;
    --fg-primary: #e6e9ef;
    --fg-secondary: #9aa3b2;
    --fg-muted: #5c6470;
    --accent: #ff2e4d;
    --accent-dim: #c81f3a;
    --accent-glow: rgba(255, 46, 77, 0.12);
    --accent-soft: rgba(255, 46, 77, 0.055);
    --ok: #35c98b;
    --ok-dim: #249a68;
    --danger: #ff2d55;
    --danger-dim: #b81e3d;
    --danger-soft: rgba(255, 45, 85, 0.06);
    --amber: #ffb000;
    --amber-soft: rgba(255, 176, 0, 0.07);
    --border: #1a2029;
    --border-bright: #273040;
    --border-accent: rgba(255, 46, 77, 0.28);

    /* ── Typography ── */
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
    --font-ui: 'Space Grotesk', system-ui, sans-serif;

    /* ── Effects (restrained) ── */
    --shadow-panel: 0 1px 0 rgba(255,255,255,0.02) inset, 0 12px 32px rgba(0,0,0,0.35);
    --transition: 140ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-color: var(--border-bright) var(--bg-void); }

body {
    background: var(--bg-void);
    color: var(--fg-primary);
    font-family: var(--font-ui);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer layout — the footer always sits at the very bottom,
       never floating up under short content. */
    display: flex;
    flex-direction: column;
}

/* ── Atmosphere layers (quiet) ────────────────────────────── */
.scanlines {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.22) 0px,
        rgba(0,0,0,0.22) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.28;
}

.grid-overlay {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(255, 46, 77,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 46, 77,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 25%, transparent 80%);
}

.noise {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9997;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient radial tint — one quiet cyan bloom, top-left */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse 70% 45% at 15% -5%, rgba(255, 46, 77,0.045), transparent 70%);
}

/* ── Selection / scrollbar ───────────────────────────────── */
::selection { background: rgba(255, 46, 77,0.25); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: var(--border-bright);
    border: 1px solid var(--bg-deep);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }

/* ═══════════ BOOT SCREEN ═══════════ */
.boot-screen {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg-void);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 24px;
    transition: opacity 400ms ease;
}
.boot-screen.fade-out { opacity: 0; pointer-events: none; }

.boot-logo {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700; letter-spacing: 0.4em;
    color: var(--fg-primary);
    animation: bootIn 500ms ease-out;
}
.boot-logo b { color: var(--accent); font-weight: 700; }
@keyframes bootIn {
    from { opacity: 0; transform: translateY(6px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.boot-bar {
    width: min(300px, 60vw); height: 1px;
    background: var(--border); overflow: hidden;
}
.boot-bar i {
    display: block; height: 100%; width: 0%;
    background: var(--accent);
    animation: bootFill 900ms ease-out forwards;
}
@keyframes bootFill { to { width: 100%; } }
.boot-line {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--fg-muted); letter-spacing: 0.2em;
}

/* ═══════════ TOPBAR ═══════════ */
.topbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 52px;
    background: rgba(8,9,13,0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
    color: var(--accent); font-family: var(--font-mono); font-size: 1rem;
    letter-spacing: -0.1em;
}
.brand-name {
    font-family: var(--font-mono); font-weight: 700;
    font-size: 0.95rem; letter-spacing: 0.32em;
    color: var(--fg-primary);
}
.brand-ver {
    font-family: var(--font-mono); font-size: 0.56rem;
    color: var(--fg-muted); border: 1px solid var(--border);
    padding: 1px 5px;
}

.mainnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.nav-item {
    background: none; border: none; cursor: pointer;
    font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 0.18em; color: var(--fg-muted);
    padding: 7px 12px;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.nav-item:hover { color: var(--fg-secondary); background: var(--bg-hover); }
.nav-item.active {
    color: var(--accent);
    background: var(--accent-soft);
}
.nav-item.active::after {
    content: '';
    position: absolute; left: 12px; right: 12px; bottom: 0;
    height: 1px; background: var(--accent);
}

.clock {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--fg-secondary); letter-spacing: 0.08em;
    border: 1px solid var(--border); padding: 3px 9px;
}
.user-chip {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border-bright);
    padding: 4px 11px;
    background: var(--bg-card);
}
.user-status {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ok);
}
.user-name { font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg-primary); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-badge {
    font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.14em;
    color: var(--accent); border: 1px solid var(--border-accent);
    padding: 1px 6px;
}
.user-badge.warn { color: var(--amber); border-color: rgba(255,176,0,0.4); }
.icon-btn {
    background: none; border: 1px solid var(--border); color: var(--fg-muted);
    width: 30px; height: 30px; cursor: pointer;
    font-size: 0.85rem; transition: all var(--transition);
}
.icon-btn:hover { color: var(--danger); border-color: var(--danger-dim); }

/* ═══════════ APP SHELL ═══════════ */
/* No z-index here on purpose: a z-index would create a stacking context
   that caps every modal/widget INSIDE .app below page-level elements
   (footer). Modals must stack at root level (z 8000-9000). */
.app {
    position: relative;
    max-width: 1320px; margin: 0 auto;
    padding: 28px 22px 70px;
    /* Grow to fill the viewport so the footer stays pinned at the bottom */
    flex: 1 0 auto;
    width: 100%;
}
.view { display: none; animation: viewIn 220ms ease-out; }
.view.active { display: block; }
@keyframes viewIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-hero { margin-bottom: 22px; }
.view-title {
    font-family: var(--font-mono); font-weight: 700;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    letter-spacing: 0.14em; margin-bottom: 4px;
    color: var(--fg-primary);
}
.accent { color: var(--accent); }
.view-sub {
    color: var(--fg-muted); font-size: 0.8rem;
    letter-spacing: 0.03em; line-height: 1.5;
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    color: var(--fg-secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem; letter-spacing: 0.16em;
    padding: 8px 16px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    text-transform: uppercase;
}
.btn:hover { border-color: var(--fg-muted); color: var(--fg-primary); background: var(--bg-elevated); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--border-bright); color: var(--fg-secondary); background: var(--bg-card); }

.btn-primary {
    border-color: var(--border-accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.btn-primary:hover {
    border-color: var(--accent);
    background: rgba(255, 46, 77,0.1);
    box-shadow: 0 0 14px var(--accent-glow);
}

.btn-danger {
    border-color: rgba(255,45,85,0.4);
    color: var(--danger);
    background: var(--danger-soft);
}
.btn-danger:hover {
    border-color: var(--danger);
    background: rgba(255,45,85,0.12);
    box-shadow: 0 0 14px rgba(255,45,85,0.15);
}

.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-hover); }

.btn-sm { padding: 5px 11px; font-size: 0.64rem; }
.btn-xs { padding: 3px 8px; font-size: 0.6rem; }
.btn-lg { padding: 11px 22px; font-size: 0.76rem; }

.btn-icon { font-size: 0.85rem; line-height: 1; }

/* ═══════════ FIELDS ═══════════ */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label {
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.18em; color: var(--fg-muted);
    text-transform: uppercase;
}
.admin-input, input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: var(--fg-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 8px 11px;
    outline: none;
    transition: border-color var(--transition);
    width: 100%;
}
.admin-input:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--border-accent);
}
.admin-input::placeholder { color: var(--fg-muted); opacity: 0.6; }

/* ═══════════ HUD PANELS (corner ticks) ═══════════ */
.admin-card, .hud-panel {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-panel);
}
.admin-card-head, .hud-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.admin-card-title, .hud-title {
    font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.22em; color: var(--fg-secondary);
}
.admin-card-body, .hud-body { padding: 16px; }

/* Corner ticks — quiet HUD framing */
.hud-panel::before, .hud-panel::after {
    content: ''; position: absolute;
    width: 8px; height: 8px;
    border-color: var(--border-accent);
    border-style: solid;
    opacity: 0.55;
    pointer-events: none;
}
.hud-panel::before {
    top: -1px; left: -1px;
    border-width: 1px 0 0 1px;
}
.hud-panel::after {
    bottom: -1px; right: -1px;
    border-width: 0 1px 1px 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.table-wrap { overflow-x: auto; padding: 0; }
.table-wrap .data-table { border: none; }

/* ═══════════ DATA TABLES (dense) ═══════════ */
.data-table, .results-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    border: 1px solid var(--border);
}
.data-table thead th, .results-table thead th {
    position: sticky; top: 0; z-index: 2;
    background: rgba(11,13,18,0.96);
    backdrop-filter: blur(6px);
    color: var(--fg-muted);
    font-size: 0.6rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-bright);
    white-space: nowrap;
}
.data-table tbody td, .results-table tbody td {
    padding: 6px 12px;
    border-bottom: 1px solid rgba(26,32,41,0.55);
    color: var(--fg-secondary);
    vertical-align: top;
    word-break: break-all;
}
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--accent-soft); }
.data-table tbody tr:hover td { color: var(--fg-primary); }
.data-table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.012); }
.data-table tbody tr:nth-child(even):hover { background: var(--accent-soft); }

.td-accent { color: var(--accent) !important; }
.td-dim { color: var(--fg-muted) !important; }
.td-ok { color: var(--ok) !important; }
.td-danger { color: var(--danger) !important; }
.td-amber { color: var(--amber) !important; }

/* ═══════════ STATUS / TAG CHIPS ═══════════ */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.56rem; letter-spacing: 0.12em;
    padding: 2px 7px;
    border: 1px solid var(--border-bright);
    color: var(--fg-secondary);
    text-transform: uppercase;
    white-space: nowrap;
}
.tag-ok { color: var(--ok); border-color: rgba(0,255,156,0.35); }
.tag-warn { color: var(--amber); border-color: rgba(255,176,0,0.35); }
.tag-danger { color: var(--danger); border-color: rgba(255,45,85,0.35); }
.tag-accent { color: var(--accent); border-color: var(--border-accent); }

/* ── LEDs ── */
.led {
    display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--fg-muted);
    flex-shrink: 0;
}
.led-ok { background: var(--ok); }
.led-warn { background: var(--amber); }
.led-danger { background: var(--danger); }
.led-accent { background: var(--accent); }
.led-live { animation: ledPulse 2.4s ease-in-out infinite; }
@keyframes ledPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ═══════════ STAT CARDS (instrument readouts) ═══════════ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px 16px;
    box-shadow: var(--shadow-panel);
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--border-accent), transparent 60%);
}
.stat-label {
    font-family: var(--font-mono); font-size: 0.58rem;
    letter-spacing: 0.2em; color: var(--fg-muted);
    display: flex; align-items: center; gap: 7px;
    text-transform: uppercase;
}
.stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem; font-weight: 600;
    color: var(--fg-primary);
    margin-top: 6px;
    letter-spacing: 0.02em;
}
.stat-value small { font-size: 0.7rem; color: var(--fg-muted); font-weight: 400; }
.stat-sub {
    font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--fg-muted); margin-top: 4px; letter-spacing: 0.06em;
}
.stat-value.accent { color: var(--accent); }
.stat-value.danger { color: var(--danger); }
.stat-value.ok { color: var(--ok); }

/* ═══════════ SEARCH TYPE TABS ═══════════ */
.search-type-tabs {
    /* EIGHT type tabs (domain · login · password · email · BULK EMAIL
       · CASE TREE · IMAGE OSINT · USERNAME) plus the FAST/DEEP group.

       This used to be `repeat(6, 1fr) auto auto`, counted by hand for six
       tabs. When a seventh was added the extra one silently fell into the
       first `auto` column and pushed the mode group onto a row of its own —
       nobody noticed, because the result still looked plausible. Nine tabs
       made it obvious, so the count is gone: flex-wrap sizes the tabs
       equally and wraps them at any width, and the mode group rides at the
       end of the last row instead of being stranded on its own. */
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    align-items: stretch;
}
.search-type-tab { flex: 1 1 104px; }
.search-mode-sep { display: none; }
.search-mode-group {
    display: flex; gap: 6px; align-items: stretch;
    margin-left: auto;
}
.search-mode-btn {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 0 14px; cursor: pointer; font-family: var(--font-ui);
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
    color: var(--fg-secondary); transition: all var(--transition);
    white-space: nowrap;
}
.search-mode-btn:hover { border-color: var(--border-bright); background: var(--bg-elevated); color: var(--fg-primary); }
.search-mode-btn.active {
    border-color: var(--amber, #f2a900); background: var(--accent-soft, rgba(242,169,0,0.12));
    color: var(--amber, #f2a900); box-shadow: 0 0 12px rgba(242, 169, 0, 0.15);
}

/* ═══════════ DEEP SCAN MODULE PICKER ═══════════
   Hidden unless DEEP is the selected mode (see setMode() in terminal.js).
   Amber accent matches the DEEP button so the two read as one control. */
.deep-options {
    background: var(--bg-card); border: 1px solid var(--border);
    border-left: 2px solid var(--amber, #f2a900);
    border-radius: 3px; padding: 11px 14px 12px; margin-bottom: 14px;
}
.deep-options[hidden] { display: none; }
.deep-options-head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    flex-wrap: wrap;
}
.deep-options-title {
    font-family: var(--font-ui); font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.1em; color: var(--amber, #f2a900);
}
.deep-options-count {
    font-family: var(--font-mono); font-size: 0.66rem; color: var(--fg-muted);
}
.deep-options-head .deep-options-all,
.deep-options-head .deep-options-none {
    margin-left: auto; background: transparent; cursor: pointer;
    border: 1px solid var(--border); color: var(--fg-secondary);
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
    padding: 3px 8px; border-radius: 2px; transition: all var(--transition);
}
.deep-options-head .deep-options-none { margin-left: 0; }
.deep-options-all:hover, .deep-options-none:hover {
    border-color: var(--border-bright); color: var(--fg-primary);
    background: var(--bg-elevated);
}
.deep-options-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 5px 16px;
}
.deep-opt {
    display: flex; align-items: center; gap: 7px; cursor: pointer;
    padding: 2px 0; min-width: 0;
}
/* The real checkbox is visually hidden but still focusable/operable, so
   keyboard users and screen readers get the native control for free. */
.deep-opt-input {
    position: absolute; opacity: 0; width: 1px; height: 1px;
    margin: 0; pointer-events: none;
}
.deep-opt-box {
    flex: none; width: 12px; height: 12px; border: 1px solid var(--border-bright);
    border-radius: 2px; background: var(--bg-void);
    position: relative; transition: all var(--transition);
}
.deep-opt-box::after {
    content: ""; position: absolute; inset: 2px; background: var(--amber, #f2a900);
    opacity: 0; transform: scale(0.4); transition: all var(--transition);
}
.deep-opt-input:checked + .deep-opt-box { border-color: var(--amber, #f2a900); }
.deep-opt-input:checked + .deep-opt-box::after { opacity: 1; transform: scale(1); }
.deep-opt-input:focus-visible + .deep-opt-box {
    outline: 1px solid var(--amber, #f2a900); outline-offset: 2px;
}
.deep-opt-label {
    font-family: var(--font-mono); font-size: 0.68rem; color: var(--fg-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deep-opt:hover .deep-opt-label { color: var(--fg-primary); }
.deep-opt-input:checked ~ .deep-opt-label { color: var(--fg-primary); }
.deep-options-hint {
    margin: 10px 0 0; font-family: var(--font-mono); font-size: 0.63rem;
    line-height: 1.55; color: var(--fg-muted);
}
@media (max-width: 720px) {
    .deep-options-grid { grid-template-columns: 1fr 1fr; }
}
.search-type-tab {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 12px 14px; cursor: pointer;
    font-family: var(--font-ui); color: var(--fg-secondary);
    text-align: left; transition: all var(--transition);
    position: relative;
}
.search-type-tab:hover { border-color: var(--border-bright); background: var(--bg-elevated); }
.search-type-tab.active {
    border-color: var(--border-accent);
    background: var(--accent-soft);
}
.search-type-tab.active::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: var(--accent);
}
.tab-icon { font-size: 1rem; color: var(--fg-muted); }
.search-type-tab.active .tab-icon { color: var(--accent); }
.tab-label { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--fg-primary); }
.search-type-tab.active .tab-label { color: var(--accent); }
.tab-cmd {
    font-family: var(--font-mono); font-size: 0.58rem;
    color: var(--fg-muted); letter-spacing: 0.08em;
}

/* ═══════════ SEARCH CONSOLE ═══════════ */
.search-console {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-panel);
    margin-bottom: 16px;
}
.console-prompt {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.prompt-symbol {
    font-family: var(--font-mono); font-size: 1rem;
    color: var(--accent);
}
.prompt-path {
    font-family: var(--font-mono); font-size: 0.78rem;
    color: var(--fg-muted);
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.query-input {
    flex: 1;
    background: transparent; border: none;
    color: var(--fg-primary);
    font-family: var(--font-mono); font-size: 0.9rem;
    outline: none;
    caret-color: var(--accent);
}
.query-input::placeholder { color: var(--fg-muted); opacity: 0.55; }
.console-cursor {
    width: 7px; height: 15px;
    background: var(--accent);
    animation: cursorBlink 1.1s steps(2) infinite;
    flex-shrink: 0;
    opacity: 0.85;
}
@keyframes cursorBlink { 0%, 60% { opacity: 0.9; } 61%, 100% { opacity: 0; } }

.console-actions {
    display: flex; gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.console-meta {
    display: flex; flex-wrap: wrap; gap: 18px;
    padding: 9px 16px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--fg-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.meta-item b { color: var(--fg-secondary); font-weight: 500; }
.meta-item.status b { color: var(--fg-muted); }
.meta-item.status .led { margin-right: 5px; vertical-align: -1px; }

/* ═══════════ RESULTS / DECLASSIFIED ═══════════ */
.results-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-panel);
}
.results-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.results-title {
    font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.22em; color: var(--fg-secondary);
    text-transform: uppercase;
}
.results-title .declass {
    color: var(--accent);
    margin-left: 10px;
    border: 1px solid var(--border-accent);
    padding: 1px 6px;
    font-size: 0.56rem;
    letter-spacing: 0.18em;
}
.results-head-actions { display: flex; gap: 8px; align-items: center; }
.country-filter {
    font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.04em;
    background: var(--bg-card); color: var(--fg-primary);
    border: 1px solid var(--border); border-radius: 4px;
    padding: 4px 8px; cursor: pointer; max-width: 180px;
    transition: border-color var(--transition);
}
.country-filter:hover { border-color: var(--border-bright); }
.country-filter:focus { outline: none; border-color: var(--accent); }

/* ═══════════ THREAT ANALYSIS PANEL ═══════════ */
.threat-panel {
    border: 1px solid var(--border); background: var(--bg-card);
    margin: 10px 0; border-radius: 6px; overflow: hidden;
}
.threat-panel-head {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    cursor: pointer; user-select: none;
    background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
}
.threat-panel-head:hover { background: var(--bg-elevated); }
.threat-title { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--fg-primary); }
.threat-verdict {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.1em; padding: 2px 8px; border-radius: 3px;
    border: 1px solid currentColor;
}
.threat-verdict.v-LOW { color: #4ade80; }
.threat-verdict.v-MEDIUM { color: var(--amber, #f2a900); }
.threat-verdict.v-HIGH { color: #fb923c; }
.threat-verdict.v-CRITICAL { color: #f87171; }
.threat-verdict.v-NA { color: var(--fg-muted); }
.threat-score-wrap { margin-left: auto; font-size: 0.68rem; letter-spacing: 0.06em; color: var(--fg-muted); }
.threat-score-wrap b { font-family: var(--font-mono); font-size: 1rem; color: var(--fg-primary); }
.threat-toggle { color: var(--fg-muted); font-size: 0.7rem; }
.threat-panel-body { padding: 12px 14px; border-top: 1px solid var(--border); }
.threat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.threat-cell { min-width: 0; }
.threat-cell-wide { grid-column: span 2; }
.threat-cell h4 {
    font-size: 0.6rem; letter-spacing: 0.1em; color: var(--fg-muted);
    margin: 0 0 6px; text-transform: uppercase;
}
.threat-cell .tc-val { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--fg-primary); }
.threat-cell .tc-sub { font-size: 0.62rem; color: var(--fg-muted); margin-top: 2px; }
.threat-bar {
    height: 4px; background: var(--border); border-radius: 2px;
    margin-top: 6px; overflow: hidden;
}
.threat-bar > i {
    display: block; height: 100%; background: var(--accent);
    border-radius: 2px;
}
.threat-domains { max-height: 110px; overflow-y: auto; padding-right: 4px; }
.threat-domains .td-row {
    display: flex; justify-content: space-between; gap: 8px;
    font-family: var(--font-mono); font-size: 0.62rem;
    color: var(--fg-secondary); padding: 2px 0;
    border-bottom: 1px dashed var(--border);
}
.threat-domains .td-row b { color: var(--fg-primary); min-width: 30px; text-align: right; }
.threat-countries { display: flex; flex-wrap: wrap; gap: 5px; }
.threat-countries .ctry-tag {
    font-family: var(--font-mono); font-size: 0.6rem;
    background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--fg-secondary); padding: 2px 7px; border-radius: 10px;
}
.threat-empty { font-size: 0.7rem; color: var(--fg-muted); padding: 8px 0; }
.results-table-wrap { max-height: 520px; overflow: auto; }

.results-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.empty-glyph { font-size: 1.6rem; color: var(--border-bright); margin-bottom: 10px; }
.results-loading {
    padding: 50px 20px;
    text-align: center;
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
}
.spinner-ring {
    width: 26px; height: 26px;
    margin: 0 auto 12px;
    border: 1px solid var(--border-bright);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.results-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 16px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.62rem; color: var(--fg-muted);
    letter-spacing: 0.08em;
}
.pager { display: flex; gap: 8px; }

/* Wiretap feed — results type in line by line */
.feed-line {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--fg-secondary);
    padding: 2px 12px;
    border-bottom: 1px solid rgba(26,32,41,0.35);
    animation: feedIn 140ms ease-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-line:hover { background: var(--accent-soft); color: var(--fg-primary); }
.feed-line .feed-c { color: var(--fg-muted); }
@keyframes feedIn {
    from { opacity: 0; transform: translateX(-4px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ═══════════ HISTORY ═══════════ */
.history-filters {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 14px;
}
.filter-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: 0.62rem; letter-spacing: 0.14em;
    padding: 5px 12px;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
}
.filter-chip:hover { color: var(--fg-secondary); border-color: var(--border-bright); }
.filter-chip.active {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-soft);
}
.history-list {
    display: flex; flex-direction: column; gap: 6px;
}
.history-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 9px 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    transition: background var(--transition);
}
.history-item:hover { background: var(--bg-hover); }
.history-empty {
    padding: 40px; text-align: center;
    color: var(--fg-muted); font-family: var(--font-mono);
    font-size: 0.74rem;
}
.history-pager { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.history-pager span {
    font-family: var(--font-mono); font-size: 0.62rem; color: var(--fg-muted);
}

/* ═══════════ STAT BREAKDOWN ═══════════ */
.stat-breakdown { margin-top: 18px; }
.stat-breakdown h3 {
    font-family: var(--font-mono); font-size: 0.64rem;
    letter-spacing: 0.22em; color: var(--fg-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.breakdown-bars { display: flex; flex-direction: column; gap: 7px; }
.breakdown-row {
    display: grid;
    grid-template-columns: 110px 1fr 60px;
    align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--fg-secondary);
}
.breakdown-bar {
    height: 4px; background: var(--bg-elevated);
    position: relative; overflow: hidden;
}
.breakdown-bar i {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    transition: width 400ms ease-out;
}

/* ═══════════ LANDING ═══════════ */
.landing-hero {
    padding: 64px 0 36px;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.62rem; letter-spacing: 0.3em;
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 5px 12px;
    background: var(--accent-soft);
    margin-bottom: 22px;
}
.hero-badge .led { width: 5px; height: 5px; }
.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(1.7rem, 4.6vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--fg-primary);
    margin-bottom: 14px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
    color: var(--fg-muted);
    font-size: 0.9rem;
    max-width: 560px;
    margin: 0 auto 26px;
    line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Landing live traffic ticker — REAL platform aggregates */
.ticker-wrap {
    border: 1px solid var(--border);
    background: var(--bg-card);
    margin-bottom: 30px;
    overflow: hidden;
}
.ticker-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.ticker-label {
    font-family: var(--font-mono); font-size: 0.58rem;
    letter-spacing: 0.24em; color: var(--fg-muted);
    display: flex; align-items: center; gap: 8px;
    text-transform: uppercase;
}
.ticker-line {
    display: flex; gap: 28px;
    padding: 9px 14px;
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--fg-secondary);
    overflow: hidden;
    white-space: nowrap;
}
.ticker-item { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ticker-item .led { width: 5px; height: 5px; }
.ticker-item b { color: var(--accent); font-weight: 500; }
.ticker-item .t-ts { color: var(--fg-muted); font-size: 0.6rem; }

/* Feature spec-sheets */
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 34px;
}
.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow-panel);
}
.feature-card::before {
    content: ''; position: absolute; top: -1px; left: -1px;
    width: 10px; height: 10px;
    border-top: 1px solid var(--border-accent);
    border-left: 1px solid var(--border-accent);
    opacity: 0.6;
}
.feature-icon {
    font-family: var(--font-mono); font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: inline-block;
    border: 1px solid var(--border);
    padding: 4px 7px;
}
.feature-card h2,
.feature-card h3 {
    font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.2em; color: var(--fg-primary);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.78rem; color: var(--fg-muted);
    line-height: 1.6;
}
.feature-card .feature-meta {
    margin-top: 12px;
    font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--fg-muted);
    letter-spacing: 0.08em;
}

/* ═══════════ PRICING ═══════════ */
.landing-pricing { margin-bottom: 20px; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}
.plan-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-panel);
    transition: border-color var(--transition), transform var(--transition);
}
.plan-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.plan-card.featured { border-color: var(--border-accent); }
.plan-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute; top: -1px; right: 12px;
    font-family: var(--font-mono); font-size: 0.52rem;
    letter-spacing: 0.2em; color: var(--accent);
    background: var(--bg-deep);
    border: 1px solid var(--border-accent);
    padding: 2px 8px;
}
.plan-name {
    font-family: var(--font-mono); font-size: 0.78rem;
    letter-spacing: 0.24em; color: var(--fg-primary);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.plan-price {
    font-family: var(--font-mono);
    font-size: 1.7rem; font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
}
.plan-price small {
    font-size: 0.65rem; color: var(--fg-muted); font-weight: 400;
    letter-spacing: 0.06em;
}
.plan-duration {
    font-family: var(--font-mono); font-size: 0.62rem;
    color: var(--fg-muted);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}
.plan-features {
    list-style: none;
    margin-bottom: 18px;
    flex: 1;
}
.plan-features li {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--fg-secondary);
    padding: 5px 0 5px 18px;
    position: relative;
    border-bottom: 1px dashed rgba(26,32,41,0.6);
}
.plan-features li::before {
    content: '▸';
    position: absolute; left: 0;
    color: var(--accent-dim);
}
.plan-features li:last-child { border-bottom: none; }

/* ═══════════ AUTH GATE ═══════════ */
.gate-body {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    padding: 24px;
}
.gate {
    position: relative; z-index: 1;
    width: 100%; max-width: 420px;
}
.gate-terminal {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-panel);
}
.gate-terminal::before, .gate-terminal::after {
    content: ''; position: absolute;
    width: 12px; height: 12px;
    border-color: var(--border-accent);
    border-style: solid;
    opacity: 0.6;
}
.gate-terminal::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.gate-terminal::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.gate-terminal-head {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.gate-dots { display: flex; gap: 5px; }
.gate-dots i {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--border-bright);
}
.gate-dots i:first-child { background: var(--danger-dim); }
.gate-dots i:nth-child(2) { background: var(--amber); }
.gate-dots i:last-child { background: var(--ok-dim); }
.gate-terminal-title {
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.16em; color: var(--fg-muted);
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gate-terminal-body { padding: 26px 24px; }
.gate-logo { margin-bottom: 20px; }
.logo-glitch {
    font-family: var(--font-mono);
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: 0.32em;
    color: var(--fg-primary);
    position: relative;
}
.logo-glitch .accent { color: var(--accent); }
.gate-tagline {
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.24em; color: var(--fg-muted);
    margin-top: 6px;
}
.gate-hint {
    font-family: var(--font-mono); font-size: 0.62rem;
    text-align: center; color: var(--fg-muted);
}
.gate-hint a { color: var(--fg-secondary); text-decoration: none; }
.gate-hint a:hover { color: var(--accent); }
.gate-secure {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.56rem;
    letter-spacing: 0.2em; color: var(--fg-muted);
    margin-bottom: 22px;
    text-transform: uppercase;
}

/* ═══════════ MODAL ═══════════ */
/* The hidden attribute must always win — every modal/field toggle in the
   JS relies on it, and any display rule on the element (flex/grid) silently
   overrides [hidden], leaving modals stuck open and fields always visible. */
[hidden] {
    display: none !important;
}

.modal-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(3,4,6,0.72);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: overlayIn 160ms ease-out;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
    position: relative;
    width: 100%; max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    box-shadow: 0 24px 70px rgba(0,0,0,0.6);
    animation: modalIn 180ms ease-out;
}
.modal.lg { max-width: 860px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.modal-head > span {
    font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.22em; color: var(--fg-secondary);
    text-transform: uppercase;
}
.modal-close {
    background: none; border: none; color: var(--fg-muted);
    font-size: 0.9rem; cursor: pointer; padding: 2px 6px;
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 20px 18px; }
.modal-hint {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--fg-muted); line-height: 1.6;
    margin-bottom: 16px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.modal-status {
    font-family: var(--font-mono); font-size: 0.66rem;
    margin-top: 12px; min-height: 1em;
    letter-spacing: 0.05em;
}
.modal-status.ok { color: var(--ok); }
.modal-status.error { color: var(--danger); }
.modal-status.warn { color: var(--amber); }

/* ═══════════ TOASTS ═══════════ */
.toasts {
    position: fixed; bottom: 20px; right: 20px; z-index: 9500;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    min-width: 240px; max-width: 380px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-bright);
    padding: 11px 14px;
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--fg-secondary);
    box-shadow: 0 12px 34px rgba(0,0,0,0.5);
    animation: toastIn 200ms ease-out;
    border-left: 2px solid var(--accent);
}
.toast.ok { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--amber); }
@keyframes toastIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }

/* ═══════════ UPLINK ═══════════ */
.status-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.18em;
    border: 1px solid var(--border-bright);
    color: var(--fg-muted);
    padding: 4px 10px;
    text-transform: uppercase;
}
.status-pill.ok { color: var(--ok); border-color: rgba(0,255,156,0.35); }
.status-pill.err { color: var(--danger); border-color: rgba(255,45,85,0.35); }
.status-pill.warn { color: var(--amber); border-color: rgba(255,176,0,0.35); }

.uplink-live {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 0.2em; color: var(--ok);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.tg-account {
    font-family: var(--font-mono); font-size: 0.74rem;
    color: var(--fg-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}
.tg-account .kv { display: flex; gap: 10px; }
.tg-account .kv b { color: var(--fg-primary); font-weight: 500; min-width: 130px; display: inline-block; }
.tg-account .kv span { color: var(--fg-muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Heartbeat waveform */
.heartbeat {
    display: flex; align-items: flex-end; gap: 2px;
    height: 44px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.heartbeat i {
    flex: 1;
    min-width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dim));
    opacity: 0.75;
    transition: height 300ms ease;
}
.heartbeat i:nth-child(3n) { background: var(--ok-dim); }
.heartbeat-empty {
    font-family: var(--font-mono); font-size: 0.62rem;
    color: var(--fg-muted); letter-spacing: 0.1em;
    display: flex; align-items: center; justify-content: center;
    height: 44px;
}

/* ═══════════ ADMIN SIDEBAR SHELL ═══════════ */
.admin-shell {
    display: grid;
    grid-template-columns: 216px 1fr;
    gap: 18px;
    align-items: start;
}
.sidebar {
    position: sticky; top: 68px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-panel);
    padding: 8px 0;
}
.sidebar-group-label {
    font-family: var(--font-mono); font-size: 0.54rem;
    letter-spacing: 0.26em; color: var(--fg-muted);
    padding: 12px 16px 6px;
    text-transform: uppercase;
}
.rail-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    background: none; border: none;
    font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--fg-muted);
    padding: 9px 16px;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: all var(--transition);
    text-transform: uppercase;
}
.rail-item:hover { color: var(--fg-secondary); background: var(--bg-hover); }
.rail-item.active {
    color: var(--accent);
    background: var(--accent-soft);
}
.rail-item.active::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: var(--accent);
}
.rail-item .rail-icon {
    width: 16px; text-align: center;
    font-size: 0.8rem; color: inherit;
    opacity: 0.8;
}
.rail-item .rail-led { margin-left: auto; }
.admin-content { min-width: 0; }

/* ═══════════ SPARKLINE (real data bars) ═══════════ */
.sparkline {
    display: flex; align-items: flex-end; gap: 3px;
    height: 46px;
    padding: 6px 2px 0;
}
.sparkline .bar {
    flex: 1;
    background: var(--accent-soft);
    border-top: 1px solid var(--border-accent);
    min-height: 1px;
    position: relative;
    transition: height 400ms ease-out;
}
.sparkline .bar:hover { background: rgba(255, 46, 77,0.25); }
.sparkline .bar:hover::after {
    content: attr(data-v);
    position: absolute; top: -16px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 0.52rem;
    color: var(--accent);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 1px 5px;
    white-space: nowrap;
    z-index: 5;
}
.spark-axes {
    display: flex; justify-content: space-between;
    font-family: var(--font-mono); font-size: 0.54rem;
    color: var(--fg-muted);
    margin-top: 5px;
    letter-spacing: 0.06em;
}

/* ═══════════ USER DETAIL MODAL ═══════════ */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.detail-cell {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    padding: 10px 12px;
}
.detail-cell label {
    display: block;
    font-family: var(--font-mono); font-size: 0.54rem;
    letter-spacing: 0.2em; color: var(--fg-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}
.detail-cell b {
    font-family: var(--font-mono); font-size: 0.76rem;
    font-weight: 500; color: var(--fg-primary);
    word-break: break-all;
}
.detail-section-title {
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.22em; color: var(--fg-muted);
    margin: 18px 0 8px;
    display: flex; align-items: center; gap: 8px;
    text-transform: uppercase;
}
.detail-section-title::after {
    content: '';
    flex: 1; height: 1px;
    background: var(--border);
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ═══════════ SYSTEM TAB ═══════════ */
.sys-row {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 4px;
    border-bottom: 1px dashed rgba(26,32,41,0.6);
    font-family: var(--font-mono); font-size: 0.72rem;
}
.sys-row:last-child { border-bottom: none; }
.sys-row .sys-name { color: var(--fg-muted); min-width: 170px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.62rem; }
.sys-row .sys-val { color: var(--fg-primary); flex: 1; }
.sys-row .sys-val.dim { color: var(--fg-muted); }

/* ═══════════ FOOTER ═══════════ */
.site-footer {
    position: relative; z-index: 1;
    text-align: center;
    /* Single-line footer — no extra clearance below the text */
    padding: 18px 20px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--fg-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}

/* ═══════════ NOTIFICATION BAR (admin-controlled text) ═══════════ */
.notice-bar {
    position: relative; z-index: 40;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 9px 16px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: var(--accent);
    background:
        linear-gradient(90deg, rgba(255, 46, 77,0.05), rgba(255,45,85,0.05), rgba(255, 46, 77,0.05)),
        var(--bg-deep);
    border-bottom: 1px solid var(--border);
    text-align: center;
    animation: noticePulse 3.5s ease-in-out infinite;
}
@keyframes noticePulse {
    0%, 100% { box-shadow: inset 0 0 0 rgba(255, 46, 77,0); }
    50% { box-shadow: inset 0 -14px 30px -18px rgba(255, 46, 77,0.5); }
}
.notice-bar-icon {
    color: var(--accent2);
    animation: markFlicker 2s steps(1) infinite;
}

/* ═══════════ REFER & EARN ═══════════ */
.referral-card-wrap { margin-bottom: 20px; }
.ref-card {
    position: relative;
    background:
        radial-gradient(1200px 300px at 20% -10%, rgba(255, 46, 77, 0.12), transparent 60%),
        radial-gradient(900px 260px at 90% 120%, rgba(255, 45, 85, 0.08), transparent 60%),
        var(--bg-panel);
    border: 1px solid rgba(255, 46, 77, 0.25);
    border-radius: 6px;
    overflow: hidden;
}
.ref-card::before {
    content: "";
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent 55%, rgba(255, 46, 77, 0.035));
    animation: sweep 6s linear infinite;
}
.ref-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 46, 77, 0.05);
}
.ref-card-title {
    font-family: var(--font-mono);
    font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--fg);
}
.ref-card-icon { color: var(--amber); animation: iconPulse 2.2s ease-in-out infinite; display: inline-block; }
.ref-card-credit {
    font-family: var(--font-mono);
    font-size: 0.68rem; letter-spacing: 0.16em; color: var(--fg-muted);
}
.ref-card-credit b { color: var(--acid); text-shadow: 0 0 12px rgba(0, 255, 136, 0.4); }
.ref-card-body { padding: 18px; }
.ref-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-bottom: 14px;
}
.ref-stat {
    text-align: center;
    padding: 12px 6px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
}
.ref-stat-num {
    font-size: 1.5rem; font-weight: 700; color: var(--fg);
    font-family: var(--font-mono);
    text-shadow: 0 0 14px rgba(255, 46, 77, 0.3);
}
.ref-stat-lab { margin-top: 3px; font-size: 0.55rem; letter-spacing: 0.24em; color: var(--dim); }
.ref-tier-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ref-tier {
    font-family: var(--font-mono);
    font-size: 0.58rem; letter-spacing: 0.14em;
    padding: 4px 10px;
    border: 1px solid var(--border);
    color: var(--dim);
}
.ref-tier.on {
    color: var(--acid);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}
.ref-progress {
    position: relative;
    height: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.ref-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--acid-dim), var(--acid));
    box-shadow: 0 0 14px var(--acid);
    transition: width 0.8s ease;
}
.ref-progress-label {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.56rem; letter-spacing: 0.16em;
    color: var(--fg);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.ref-link-row { display: flex; gap: 8px; margin-bottom: 12px; }
.ref-link-input { flex: 1; min-width: 0; font-size: 0.68rem; }
.ref-share-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ref-note {
    font-family: var(--font-mono);
    font-size: 0.6rem; letter-spacing: 0.1em;
    color: var(--fg-muted);
    margin-left: auto;
}
.ref-note b { color: var(--amber); }

/* Referral invite banner (register page, via ?ref=CODE) */
.referral-invite-banner {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px dashed rgba(255, 176, 0, 0.5);
    border-left: 3px solid var(--amber);
    background: rgba(255, 176, 0, 0.06);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--fg);
}
.referral-invite-icon { animation: iconPulse 2s ease-in-out infinite; }
.referral-invite-text b { color: var(--amber); }

@media (max-width: 560px) {
    .ref-grid { grid-template-columns: 1fr 1fr 1fr; }
    .ref-note { margin-left: 0; width: 100%; }
}
/* ═══════════ STATUS PAGES (403 / maintenance) ═══════════ */
.status-page {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 70vh;
    text-align: center;
    position: relative; z-index: 1;
}
.status-code {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700;
    color: var(--fg-primary);
    letter-spacing: 0.06em;
}
.status-code .accent { color: var(--accent); }
.status-page h1 {
    font-family: var(--font-mono);
    font-size: 0.9rem; letter-spacing: 0.3em;
    color: var(--fg-secondary);
    margin: 10px 0 8px;
    text-transform: uppercase;
}
.status-page p {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--fg-muted);
    max-width: 420px; line-height: 1.7;
    margin-bottom: 22px;
}
.stamp {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--danger);
    border: 2px solid var(--danger-dim);
    padding: 4px 14px;
    transform: rotate(-4deg);
    opacity: 0.8;
    margin-bottom: 26px;
    text-transform: uppercase;
}

/* ═══════════ PAYMENT PANEL ═══════════ */
.payment-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-panel);
    margin-top: 18px;
}
.payment-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.payment-head .results-title { color: var(--fg-secondary); }
.payment-body { padding: 18px; max-width: 520px; }
.payment-summary {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--fg-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}
.payment-instructions {
    font-family: var(--font-mono); font-size: 0.66rem;
    color: var(--fg-muted);
    line-height: 1.7;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    padding: 12px;
    margin: 14px 0;
    white-space: pre-line;
}

/* ═══════════ MISC ═══════════ */
.meta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-ok { color: var(--ok); }
.text-danger { color: var(--danger); }
.text-amber { color: var(--amber); }
.text-accent { color: var(--accent); }
.text-dim { color: var(--fg-muted); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; display: flex; flex-wrap: wrap; padding: 6px; }
    .rail-item { width: auto; padding: 7px 12px; }
    .rail-item.active::before { width: auto; height: 2px; left: 0; right: 0; top: auto; bottom: 0; }
    .sidebar-group-label { display: none; }
}

@media (max-width: 768px) {
    .app { padding: 20px 14px 60px; }
    .topbar { padding: 0 12px; }
    .brand-name { font-size: 0.8rem; letter-spacing: 0.2em; }
    .clock { display: none; }
    .search-type-tab { flex: 1 1 calc(50% - 4px); }
    .search-mode-group { margin-left: 0; flex: 1 1 100%; }
    .search-mode-btn { flex: 1; padding: 8px 0; text-align: center; }
    .console-meta { gap: 10px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .mainnav { gap: 0; }
    .nav-item { padding: 7px 9px; letter-spacing: 0.12em; }
    .ticker-line { gap: 16px; }
    .landing-hero { padding: 44px 0 28px; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .console-actions { flex-wrap: wrap; }
    .results-head { flex-direction: column; align-items: flex-start; }
    .user-chip .user-badge { display: none; }
    .country-filter { max-width: 140px; }
    .search-type-tab { flex: 1 1 calc(50% - 4px); }
    .search-mode-group { margin-left: 0; flex: 1 1 100%; }
    .search-mode-btn { flex: 1; padding: 8px 0; text-align: center; }
    .country-filter { max-width: 140px; }
}

/* ═══════════════════════════════════════════════════════════
   BLACKSEC v2.2 — VIP DARKWEB SURFACE
   CRT phosphor · glitch · live pulse · chat threads
   ═══════════════════════════════════════════════════════════ */

:root {
    --accent2: #d4a95c;
    --accent2-dim: #b08d45;
    --accent2-soft: rgba(212, 169, 92, 0.08);
    --glow-cyan: 0 0 18px rgba(255, 46, 77, 0.22);
    --glow-violet: 0 0 18px rgba(212, 169, 92, 0.22);
}

/* ── Breathing atmosphere: scanlines crawl, noise flickers ── */
.scanlines { animation: scanDrift 9s linear infinite; }
@keyframes scanDrift {
    0% { background-position: 0 0; }
    100% { background-position: 0 6px; }
}
.noise { animation: noiseFlicker 0.45s steps(2) infinite; }
@keyframes noiseFlicker {
    0% { opacity: 0.018; } 50% { opacity: 0.035; } 100% { opacity: 0.022; }
}
.grid-overlay { animation: gridPulse 5s ease-in-out infinite; }
@keyframes gridPulse {
    0%, 100% { opacity: 0.7; } 50% { opacity: 1; }
}
body::before { animation: bloomBreath 7s ease-in-out infinite; }
@keyframes bloomBreath {
    0%, 100% { opacity: 0.55; } 50% { opacity: 1; }
}

/* ── CRT glitch brand (darkweb signature) ── */
.brand-name, .logo-glitch { position: relative; display: inline-block; }
.brand-name::before, .brand-name::after,
.logo-glitch::before, .logo-glitch::after {
    content: attr(data-text);
    position: absolute; inset: 0;
    opacity: 0;
    pointer-events: none;
}
.brand-name::before, .logo-glitch::before { color: var(--accent); z-index: -1; }
.brand-name::after, .logo-glitch::after { color: var(--accent2); z-index: -2; }
.brand:hover .brand-name::before,
.gate-terminal:hover .logo-glitch::before,
.brand:hover .brand-name::after,
.gate-terminal:hover .logo-glitch::after { animation: glitchShift 1.6s steps(2) infinite; }
@keyframes glitchShift {
    0% { opacity: 0; transform: translate(0); clip-path: inset(0 0 0 0); }
    10% { opacity: 0.8; transform: translate(-2px, 1px); clip-path: inset(20% 0 55% 0); }
    20% { opacity: 0; }
    30% { opacity: 0.7; transform: translate(2px, -1px); clip-path: inset(60% 0 10% 0); }
    40% { opacity: 0; }
    100% { opacity: 0; }
}
.brand-mark { animation: markFlicker 3.2s steps(1) infinite; text-shadow: var(--glow-cyan); }
@keyframes markFlicker {
    0%, 92%, 100% { opacity: 1; }
    93% { opacity: 0.4; } 94% { opacity: 1; } 96% { opacity: 0.6; } 97% { opacity: 1; }
}

/* ── Phosphor titles: animated gradient + soft glow ── */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .view-title .accent, .hero-title .accent {
        background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
        background-size: 200% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: gradientSlide 6s linear infinite;
    }
}
@keyframes gradientSlide { to { background-position: 200% 0; } }

/* ── HUD panels: lift + edge glow on hover ── */
.hud-panel, .admin-card, .stat-card, .search-console, .results-panel, .plan-card, .feature-card {
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.hud-panel:hover, .admin-card:hover, .search-console:hover, .results-panel:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-panel), var(--glow-cyan);
}
.stat-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-panel), 0 0 14px var(--accent-glow); transform: translateY(-1px); }

/* ── Featured plan: animated neon border ── */
.plan-card.featured {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, var(--accent), var(--accent2), var(--accent)) border-box;
    background-size: 100% 100%, 300% 300%;
    animation: borderFlow 5s linear infinite;
    box-shadow: var(--shadow-panel), var(--glow-cyan);
}
@keyframes borderFlow { to { background-position: 0 0, 300% 300%; } }

/* ── LED pulse rings (live heartbeat) ── */
.led-live { position: relative; }
.led-live::after {
    content: '';
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 1px solid currentColor;
    animation: ledRing 2.4s ease-out infinite;
    opacity: 0;
}
@keyframes ledRing {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ── Sparkline bars: rise + pulse ── */
.sparkline .bar {
    animation: barRise 500ms ease-out backwards;
    background: linear-gradient(180deg, var(--accent), rgba(255, 46, 77, 0.08));
    box-shadow: 0 0 6px rgba(255, 46, 77, 0.35);
}
@keyframes barRise { from { height: 2px !important; opacity: 0.4; } }
.sparkline .bar:nth-child(odd) { animation-delay: 30ms; }

/* ── Live strip (dashboard) ── */
.live-strip {
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: 0.56rem; letter-spacing: 0.2em;
    color: var(--ok);
    border: 1px solid rgba(0, 255, 156, 0.25);
    padding: 2px 8px;
    text-transform: uppercase;
    background: rgba(0, 255, 156, 0.04);
    vertical-align: middle;
}
.live-strip #dash-live-ts { color: var(--fg-muted); }

/* ── LIVE FEED (rolling platform events) ── */
.live-feed { display: flex; flex-direction: column; }
.feed-row {
    display: flex; align-items: center; gap: 12px;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(26, 32, 41, 0.45);
    font-family: var(--font-mono); font-size: 0.7rem;
    animation: feedSlide 260ms ease-out;
}
.feed-row:hover { background: var(--accent-soft); }
.feed-row:last-child { border-bottom: none; }
.feed-who { color: var(--fg-primary); font-weight: 500; white-space: nowrap; }
.feed-what { color: var(--fg-secondary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-when { color: var(--fg-muted); font-size: 0.6rem; white-space: nowrap; }
@keyframes feedSlide { from { opacity: 0; transform: translateY(-6px); } }

/* ── btn-accent (LOGIN AS etc.) ── */
.btn-accent {
    border-color: rgba(176, 38, 255, 0.4);
    color: #d9a6ff;
    background: var(--accent2-soft);
}
.btn-accent:hover {
    border-color: var(--accent2);
    background: rgba(176, 38, 255, 0.14);
    box-shadow: var(--glow-violet);
}

/* ── Row active highlight (open ticket) ── */
.data-table tbody tr.row-active {
    background: rgba(255, 46, 77, 0.035);
    box-shadow: inset 2px 0 0 var(--accent);
}
.data-table tbody tr.row-active td { color: var(--fg-primary); }

/* ── Rail ticket badge ── */
.rail-count { margin-left: auto; font-size: 0.5rem; padding: 1px 6px; }
.rail-count:not([hidden]) { animation: badgePop 300ms ease-out; }
@keyframes badgePop { from { transform: scale(0.6); opacity: 0; } }

/* ── CHAT THREADS (support desk, both sides) ── */
.chat-thread {
    display: flex; flex-direction: column; gap: 10px;
    max-height: 420px; overflow-y: auto;
    padding: 6px 2px 10px;
}
.msg {
    max-width: 82%;
    padding: 10px 13px;
    border: 1px solid var(--border-bright);
    font-family: var(--font-mono); font-size: 0.74rem;
    line-height: 1.6;
    animation: msgIn 200ms ease-out;
    position: relative;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg-user { align-self: flex-start; background: var(--bg-deep); color: var(--fg-secondary); border-left: 2px solid var(--ok-dim); }
.msg-admin { align-self: flex-end; background: var(--accent-soft); border-color: var(--border-accent); border-right: 2px solid var(--accent); color: var(--fg-primary); }
.msg-meta {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px;
    font-size: 0.56rem; letter-spacing: 0.1em;
    color: var(--fg-muted); text-transform: uppercase;
}
.msg-who { font-weight: 700; color: var(--fg-secondary); }
.msg-admin .msg-who { color: var(--accent); }
.msg-when { margin-left: auto; }
.msg-body { white-space: pre-wrap; word-break: break-word; }

/* Typing indicator (live chat feel) */
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing i {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
    animation: typingBounce 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-composer { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.chat-composer-actions { display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end; }

.tickets-layout { grid-template-columns: minmax(380px, 1fr) minmax(380px, 1.4fr); }
.support-user-grid { grid-template-columns: minmax(340px, 1fr) minmax(360px, 1.3fr); }

/* ── Terminal stat cards (mini snapshot row) ── */
.terminal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 14px 0 4px;
}
.stat-card.mini { padding: 10px 14px; }
.stat-card.mini .stat-value { font-size: 1.05rem; margin-top: 3px; }

/* ── Impersonation banner ── */
.imp-banner {
    position: sticky; top: 52px; z-index: 90;
    display: flex; align-items: center; gap: 12px;
    padding: 8px 20px;
    background: linear-gradient(90deg, rgba(176, 38, 255, 0.12), rgba(255, 45, 85, 0.10));
    border-bottom: 1px solid rgba(176, 38, 255, 0.35);
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--fg-secondary);
    animation: bannerDrop 260ms ease-out;
}
@keyframes bannerDrop { from { transform: translateY(-100%); } }
.imp-banner b { color: var(--accent2); font-weight: 700; }
.imp-banner-icon { color: var(--accent2); animation: markFlicker 2s steps(1) infinite; }
.imp-banner .btn { margin-left: auto; }

/* ── Email template blocks ── */
.tpl-block {
    border: 1px solid var(--border);
    background: var(--bg-deep);
    padding: 12px;
    margin-bottom: 14px;
}
.tpl-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}

/* ── Scrollbar glow ── */
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent-dim), var(--border-bright)); }
::selection { background: rgba(255, 46, 77, 0.3); text-shadow: 0 0 8px rgba(255, 46, 77, 0.6); }

/* ── Motion safety: calm everything for reduced-motion users ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── PLAN ACTIVATION POPUP (darkweb congratulation) ── */
.activation-modal {
    max-width: 520px;
    border-color: rgba(255, 45, 85, 0.45);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 45, 85, 0.15);
    overflow: visible;
    animation: modalIn 260ms ease-out;
}
.activation-stamp {
    position: absolute; top: -18px; right: -14px;
    transform: rotate(9deg);
    font-family: var(--font-mono);
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.2em; line-height: 1.5;
    text-align: center;
    color: var(--danger);
    border: 2px solid var(--danger);
    padding: 5px 10px;
    background: var(--bg-card);
    box-shadow: 0 0 14px rgba(255, 45, 85, 0.3);
    animation: stampFlicker 2.4s steps(1) infinite;
    z-index: 2;
    text-transform: uppercase;
}
@keyframes stampFlicker {
    0%, 91%, 100% { opacity: 1; }
    92% { opacity: 0.5; } 93% { opacity: 1; } 96% { opacity: 0.7; }
}
.activation-body { text-align: center; padding: 30px 26px 26px; }
.activation-warn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.58rem;
    letter-spacing: 0.24em; color: var(--danger);
    border: 1px solid rgba(255, 45, 85, 0.35);
    background: var(--danger-soft);
    padding: 4px 12px;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.activation-title {
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--fg-primary);
    margin-bottom: 8px;
}
.activation-title.glitch-title { position: relative; display: inline-block; }
.activation-title.glitch-title::before, .activation-title.glitch-title::after {
    content: attr(data-text);
    position: absolute; inset: 0;
    opacity: 0; pointer-events: none;
}
.activation-title.glitch-title::before { color: var(--accent); z-index: -1; }
.activation-title.glitch-title::after { color: var(--danger); z-index: -2; }
.activation-modal:hover .activation-title.glitch-title::before,
.activation-modal:hover .activation-title.glitch-title::after { animation: glitchShift 1.4s steps(2) infinite; }
.activation-sub {
    font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--fg-secondary);
    margin-bottom: 20px;
}
.activation-sub b { color: var(--ok); }
.activation-card {
    text-align: left;
    background: var(--bg-deep);
    border: 1px solid var(--border-bright);
    border-left: 2px solid var(--accent);
    padding: 6px 16px;
    margin-bottom: 18px;
}
.activation-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(26, 32, 41, 0.7);
    font-family: var(--font-mono); font-size: 0.7rem;
}
.activation-row:last-child { border-bottom: none; }
.activation-row span { color: var(--fg-muted); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; }
.activation-row b { color: var(--fg-primary); font-weight: 500; }
.activation-danger {
    font-family: var(--font-mono); font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: var(--amber);
    background: var(--amber-soft);
    border: 1px solid rgba(255, 176, 0, 0.3);
    padding: 8px 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* ── PLAN CROWN (package tier badge) ── */
.plan-crown {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
}
.plan-crown.crown-gold { color: #ffd54a; text-shadow: 0 0 10px rgba(255, 213, 74, 0.55); animation: crownGlow 2.4s ease-in-out infinite; }
.plan-crown.crown-cyan { color: var(--accent); text-shadow: 0 0 8px rgba(255, 46, 77, 0.5); }
.plan-crown.crown-dim { color: var(--fg-muted); }
@keyframes crownGlow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 213, 74, 0.4)); }
    50% { filter: drop-shadow(0 0 8px rgba(255, 213, 74, 0.8)); }
}
.user-chip .plan-crown { font-size: 0.8rem; }
.myplan-crown { font-size: 1.6rem; }

/* ── MY PLAN card (account tab) ── */
.myplan { display: flex; flex-direction: column; gap: 14px; }
.myplan-head {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.myplan-id { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.myplan-name {
    font-family: var(--font-mono); font-weight: 700;
    font-size: 1.05rem; letter-spacing: 0.1em;
    color: var(--fg-primary);
}
.myplan-days {
    font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.14em; color: var(--ok);
    border: 1px solid rgba(0, 255, 156, 0.3);
    padding: 3px 9px;
    white-space: nowrap;
}
.myplan-rows { display: flex; flex-direction: column; }
.myplan-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(26, 32, 41, 0.6);
    font-family: var(--font-mono); font-size: 0.68rem;
}
.myplan-row:last-child { border-bottom: none; }
.myplan-row span { color: var(--fg-muted); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; }
.myplan-row b { color: var(--fg-primary); font-weight: 500; text-align: right; }
.myplan-features {
    list-style: none;
    border: 1px solid var(--border);
    background: var(--bg-deep);
    padding: 10px 14px;
}
.myplan-features li {
    font-family: var(--font-mono); font-size: 0.66rem;
    color: var(--fg-secondary);
    padding: 4px 0 4px 16px;
    position: relative;
}
.myplan-features li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-dim); }

/* ═══════════════════════════════════════════════════════════
   BLACKSEC v2.2.16 — UI ENHANCE PASS
   ═══════════════════════════════════════════════════════════ */

/* ── Landing ticker: seamless marquee (live-signal feel) ── */
.ticker-line {
    width: max-content;
    animation: tickerScroll 42s linear infinite;
}
.ticker-wrap:hover .ticker-line { animation-play-state: paused; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ── Input focus glow ── */
.admin-input:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 1px var(--border-accent), 0 0 14px var(--accent-glow);
}

/* ── Button press + primary glow ── */
.btn:active { transform: translateY(1px); }
.btn-primary { box-shadow: 0 0 10px rgba(255, 46, 77, 0.08); }

/* ── Search type tabs: hover lift + glow ── */
.search-type-tab { transition: all var(--transition); }
.search-type-tab:hover { transform: translateY(-1px); border-color: var(--border-accent); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), var(--accent-glow); }
.search-type-tab.active { box-shadow: 0 4px 18px rgba(255, 46, 77, 0.1); }

/* ── Page fade-in on load ── */
body { animation: pageFade 320ms ease-out; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

/* ── Keyboard focus outline (accessibility) ── */
:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

/* ── Rail item hover slide ── */
.rail-item { overflow: hidden; }
.rail-item::after {
    content: '';
    position: absolute; left: -100%; top: 0; bottom: 0;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255, 46, 77, 0.06), transparent);
    transition: left 400ms ease;
    pointer-events: none;
}
.rail-item:hover::after { left: 120%; }

/* ── Terminal stat cards: hover glow ── */
.terminal-stats .stat-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-panel), 0 0 14px var(--accent-glow); }

/* ── Plan card hover: stronger lift + glow ── */
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-panel), 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-cyan); }
.plan-card.featured:hover { box-shadow: var(--shadow-panel), 0 10px 34px rgba(0, 0, 0, 0.45), var(--glow-cyan), var(--glow-violet); }

/* ── Admin dashboard stat value pulse on update ── */
.stat-value { transition: color 300ms ease; }
.stat-card:hover .stat-value { color: var(--accent); }

/* ── Gate logo glow (login/register) ── */
.gate-logo .logo-glitch { text-shadow: 0 0 24px rgba(255, 46, 77, 0.12); }

/* ── Toast slide refinement ── */
.toast { border-left-width: 3px; }

/* ── Boot screen (admin panel) ── */
.boot-screen .boot-logo { text-shadow: 0 0 30px rgba(255, 46, 77, 0.25); }

/* ── Terminal console status pulse ── */
.meta-item.status.active { color: var(--accent); animation: ledPulse 1.4s ease-in-out infinite; }
.meta-item.status.done { color: var(--ok); }
.meta-item.status.error { color: var(--danger); }

/* ── Feature card hover glow (landing) ── */
.feature-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-panel), 0 6px 24px rgba(0, 0, 0, 0.35), var(--glow-cyan); transform: translateY(-2px); }
.feature-card { transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }

/* ── Result table row interaction: hover + click-to-copy affordance ── */
.results-table tbody tr { transition: background var(--transition); cursor: pointer; }
.results-table tbody tr:hover { background: var(--accent-soft); }
.results-table tbody tr:hover td { color: var(--fg-primary); }
.results-table tbody tr:active { background: rgba(255, 46, 77, 0.12); }

/* ── Toasts clear of the chat FAB on small screens ── */
@media (max-width: 480px) {
    .toasts { bottom: 76px; right: 12px; }
}

/* ── Generic key/value rows (INTEL last operation, etc.) ── */
.kv {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(26, 32, 41, 0.5);
    font-family: var(--font-mono); font-size: 0.7rem;
}
.kv:last-child { border-bottom: none; }
.kv b { color: var(--fg-muted); min-width: 130px; font-weight: 500; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.kv span { color: var(--fg-primary); word-break: break-all; }

/* ── Warning strip (auto-approve test payments) ── */
.warn-strip {
    border: 1px solid rgba(255, 176, 0, 0.4);
    background: var(--amber-soft);
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    line-height: 1.6;
    padding: 10px 14px;
    margin-bottom: 16px;
}
.warn-strip b { color: var(--amber); }

/* ── FREE + CUSTOM plan cards ── */
.plan-card.plan-free { border-color: rgba(0, 255, 156, 0.25); }
.plan-card.plan-free::before {
    content: 'FREE TIER';
    position: absolute; top: -1px; right: 12px;
    font-family: var(--font-mono); font-size: 0.52rem;
    letter-spacing: 0.2em; color: var(--ok);
    background: var(--bg-deep);
    border: 1px solid rgba(0, 255, 156, 0.3);
    padding: 2px 8px;
}
.plan-free-badge {
    font-family: var(--font-mono); font-size: 0.56rem;
    letter-spacing: 0.14em; color: var(--fg-muted);
    text-align: center;
    border: 1px dashed var(--border-bright);
    padding: 6px 8px;
    text-transform: uppercase;
}
.plan-card.plan-custom {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, var(--accent2), var(--accent), var(--accent2)) border-box;
    background-size: 100% 100%, 300% 300%;
    animation: borderFlow 6s linear infinite;
}
.plan-custom-mark {
    font-family: var(--font-mono); font-size: 0.58rem;
    letter-spacing: 0.24em; color: var(--accent2);
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.4);
}
.plan-buy-custom { width: 100%; justify-content: center; }

/* ── PLAN REQUIRED state (no-sub users) ── */
.plan-required-banner {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(90deg, rgba(255, 45, 85, 0.10), rgba(255, 176, 0, 0.08));
    border: 1px solid rgba(255, 45, 85, 0.35);
    border-left: 3px solid var(--danger);
    padding: 12px 16px;
    margin-bottom: 18px;
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--fg-secondary);
    animation: bannerDrop 260ms ease-out;
}
.plan-required-icon { font-size: 1.1rem; }
.plan-required-text b { color: var(--danger); }
.plan-required-banner .btn { margin-left: auto; }
.nav-lock { margin-left: 5px; font-size: 0.6rem; opacity: 0.8; }

/* ── ANIMATED EMOJIS (devil-side life) ── */
.emoji-skull {
    display: inline-block;
    margin-right: 6px;
    font-size: 1.1em;
    animation: skullDance 2.2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(176, 38, 255, 0.5));
}
@keyframes skullDance {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    25% { transform: translateY(-4px) rotate(6deg); }
    50% { transform: translateY(0) rotate(-3deg) scale(1.08); }
    75% { transform: translateY(-2px) rotate(3deg); }
}
.emoji-skull::after {
    content: '💀';
    position: absolute;
    opacity: 0;
    animation: skullGhost 2.2s ease-in-out infinite;
}
@keyframes skullGhost {
    0%, 60%, 100% { opacity: 0; transform: translateX(0) scale(0.8); }
    75% { opacity: 0.5; transform: translateX(4px) scale(1.2); }
}

.plan-required-icon {
    display: inline-block;
    animation: iconPulse 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 45, 85, 0.6));
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25) rotate(8deg); }
}

.emoji-lock {
    display: inline-block;
    animation: lockFloat 3s ease-in-out infinite;
}
@keyframes lockFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.pw-toggle .emoji-eye, .pw-toggle {
    animation: eyeBlink 3.4s steps(1) infinite;
}
@keyframes eyeBlink {
    0%, 88%, 100% { opacity: 1; }
    90% { opacity: 0.2; }
    92% { opacity: 1; }
}

/* ── Payment methods manager ── */
.pm-list { display: flex; flex-direction: column; gap: 6px; }
.pm-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    padding: 10px 14px;
}
.pm-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pm-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pm-name {
    font-family: var(--font-mono); font-size: 0.74rem;
    color: var(--fg-primary); letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 9px;
}
.pm-detail-preview {
    font-family: var(--font-mono); font-size: 0.62rem;
    color: var(--fg-secondary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pm-detail-preview.dim { color: var(--fg-muted); font-style: italic; }
.pm-fields { display: flex; flex-wrap: wrap; gap: 4px; }

/* User-facing per-method payment info */
.pm-details {
    font-family: var(--font-mono); font-size: 0.68rem;
    line-height: 1.7;
    color: var(--fg-secondary);
    background: var(--bg-deep);
    border: 1px solid rgba(255, 176, 0, 0.3);
    border-left: 2px solid var(--amber);
    padding: 10px 12px;
    margin-bottom: 14px;
    white-space: pre-line;
}
.pm-details.dim { border-color: var(--border); border-left-color: var(--border-bright); color: var(--fg-muted); }
.pm-details-label {
    display: block;
    font-size: 0.56rem; letter-spacing: 0.2em;
    color: var(--amber);
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* Structured payment fields shown in the admin note modal */
.pm-note-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.pm-note-row {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    padding: 8px 12px;
    font-family: var(--font-mono); font-size: 0.7rem;
}
.pm-note-row span { color: var(--fg-muted); min-width: 150px; text-transform: uppercase; font-size: 0.6rem; letter-spacing: 0.08em; }
.pm-note-row b { color: var(--fg-primary); font-weight: 500; word-break: break-all; }

/* ── Realtime notifications (nav badge, offline banner, bump) ── */
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 15px; height: 15px;
    margin-left: 6px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--danger);
    color: #fff;
    font-family: var(--font-mono); font-size: 0.52rem; font-weight: 700;
    vertical-align: middle;
    animation: badgePop 300ms ease-out;
    box-shadow: 0 0 10px rgba(255, 45, 85, 0.5);
}
.cw-offline {
    padding: 8px 14px;
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.04em;
    color: var(--amber);
    background: rgba(255, 176, 0, 0.06);
    border-bottom: 1px solid rgba(255, 176, 0, 0.25);
    animation: bannerDrop 220ms ease-out;
}
.rail-count-bump { animation: badgePop 400ms ease-out !important; }
#cw-presence { font-size: 0.54rem; padding: 2px 7px; margin: 0 6px 0 auto; }
#sup-presence { font-size: 0.56rem; margin-left: 8px; }

/* ── Result table data cells (visual hierarchy: url/logins vs passwords) ── */
.cell-url { color: var(--accent); }
.cell-email { color: var(--accent); }
.cell-login { color: var(--fg-primary); }
.cell-pass { color: var(--fg-muted); filter: saturate(0.6); }
.results-table tbody tr:hover .cell-pass { color: var(--fg-secondary); }
.cell-pass::after {
    content: ' ⬤⬤⬤';
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--border-bright);
    vertical-align: 1px;
}
.results-table tbody tr:hover .cell-pass::after { content: ''; }

/* ── Password visibility toggle (gates) ── */
.field { position: relative; }
.pw-toggle {
    position: absolute;
    right: 8px;
    top: 26px;
    background: none;
    border: none;
    color: var(--fg-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 4px;
    line-height: 1;
    transition: color var(--transition);
}
.pw-toggle:hover { color: var(--accent); }
.field .admin-input[type="password"], .field input[type="password"] { padding-right: 34px; }

/* ── Maintenance page bits ── */
.gate-lock {
    font-size: 2rem;
    color: var(--amber);
    margin: 6px 0 10px;
    animation: ledPulse 2.4s ease-in-out infinite;
}
.gate-msg {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.8;
    color: var(--fg-secondary);
    margin-bottom: 16px;
}

/* ── Plan access modal (no-subscription prompt) ── */
.modal-pay {
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 6px;
}
#plan-modal .pricing-grid { margin-bottom: 4px; }
#plan-modal .plan-buy { cursor: pointer; }

/* ── LIVE CHAT WIDGET (floating support chat) ── */
.chat-fab {
    position: fixed; bottom: 72px; right: 22px; z-index: 8000;
    display: flex; align-items: center; gap: 9px;
    background: linear-gradient(135deg, rgba(255, 46, 77, 0.14), rgba(176, 38, 255, 0.14));
    border: 1px solid var(--border-accent);
    color: var(--fg-primary);
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: var(--shadow-panel), var(--glow-cyan);
    animation: fabPulse 3s ease-in-out infinite;
    transition: transform var(--transition), box-shadow var(--transition);
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: var(--shadow-panel), var(--glow-cyan), var(--glow-violet); }
.chat-fab-icon { color: var(--accent); font-size: 1rem; }
.chat-fab-dot {
    position: absolute; top: -4px; right: -4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--amber);
    border: 2px solid var(--bg-void);
    animation: ledPulse 1.4s ease-in-out infinite;
}
@keyframes fabPulse {
    0%, 100% { box-shadow: var(--shadow-panel), 0 0 14px rgba(255, 46, 77, 0.25); }
    50% { box-shadow: var(--shadow-panel), 0 0 26px rgba(255, 46, 77, 0.5); }
}
.chat-widget {
    position: fixed; bottom: 134px; right: 22px; z-index: 8001;
    width: min(360px, calc(100vw - 44px));
    height: min(480px, calc(100vh - 140px));
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), var(--glow-cyan);
    animation: cwIn 220ms ease-out;
}
@keyframes cwIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.chat-widget-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.chat-widget-title {
    font-family: var(--font-mono); font-size: 0.64rem;
    letter-spacing: 0.2em; color: var(--ok);
    display: flex; align-items: center; gap: 8px;
}
.chat-widget-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.chat-widget-foot {
    display: flex; gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}
.chat-widget-foot .admin-input { flex: 1; font-size: 0.72rem; }
.cw-closed-note {
    flex: 1; text-align: center;
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.2em; color: var(--fg-muted);
    padding: 8px;
}
.cw-toolbar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.cw-thread-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.6rem; }
.cw-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(26, 32, 41, 0.55);
    cursor: pointer;
    transition: background var(--transition);
}
.cw-row:hover { background: var(--accent-soft); }
.cw-row-main { flex: 1; min-width: 0; }
.cw-row-subj {
    display: block; font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--fg-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cw-row-meta { display: block; font-family: var(--font-mono); font-size: 0.56rem; color: var(--fg-muted); margin-top: 2px; }
.cw-msg { max-width: 88%; }
.chat-widget .chat-thread { max-height: none; padding: 12px 12px 8px; }

@media (max-width: 480px) {
    .chat-fab { bottom: 60px; right: 14px; padding: 10px 14px; }
    .chat-fab-label { display: none; }
    .chat-widget { bottom: 116px; right: 14px; width: calc(100vw - 28px); height: calc(100vh - 170px); }
}

/* ── Responsive: support desk stacks on smaller screens ── */
@media (max-width: 1024px) {
    .tickets-layout, .support-user-grid { grid-template-columns: 1fr; }
    .msg { max-width: 92%; }
}
@media (max-width: 480px) {
    .imp-banner { flex-wrap: wrap; }
    .imp-banner .btn { margin-left: 0; }
}

/* ═══════════ UI ENHANCEMENTS v2.3.9 ═══════════ */

/* Keyboard focus — visible ring everywhere (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Buttons — disabled state + loading spinner */
.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none !important;
}
.btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}
.btn.loading::after {
    content: "";
    position: absolute; inset: 0; margin: auto;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinRing 0.7s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

/* Results table — row hover, URL accent, copy glyph */
.results-body tr {
    transition: background var(--transition);
}
.results-body tr:hover {
    background: var(--bg-hover);
    cursor: pointer;
}
.results-body tr td:first-child {
    color: var(--accent);
}
.results-body .cell-pass {
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}
.results-body .row-copy-hint {
    display: inline-block;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    color: var(--fg-muted);
    border: 1px dashed var(--border-bright);
    padding: 1px 6px;
    margin-left: 8px;
    opacity: 0;
    transition: opacity var(--transition);
    vertical-align: middle;
}
.results-body tr:hover .row-copy-hint { opacity: 1; }

/* History items — hover lift + accent edge */
.history-item {
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    border-left: 2px solid transparent;
}
.history-item:hover {
    background: var(--bg-hover);
    border-left-color: var(--accent);
    transform: translateX(2px);
}
.history-item .history-query {
    transition: color var(--transition);
}
.history-item:hover .history-query { color: var(--fg-primary); }
/* FAST / DEEP mode tag inside history rows */
.history-mode {
    font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em;
    padding: 2px 7px; border-radius: 3px; border: 1px solid currentColor;
    white-space: nowrap;
}
.history-mode.fast { color: var(--accent); }
.history-mode.deep { color: var(--amber, #f2a900); }

/* Empty states — terminal flavored */
.history-empty {
    padding: 34px 16px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--fg-muted);
    border: 1px dashed var(--border-bright);
    background:
        radial-gradient(400px 120px at 50% 0%, rgba(255, 46, 77,0.04), transparent);
}
.history-empty .empty-glyph {
    display: block;
    font-size: 1.4rem;
    color: var(--dim);
    margin-bottom: 10px;
    animation: skullBreathe 3.5s ease-in-out infinite;
}

/* Status pill — soft pulse while active */
.status-pill.active, .status-pill.unknown {
    animation: pillPulse 2.4s ease-in-out infinite;
}
@keyframes pillPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0); }
    50% { box-shadow: 0 0 10px 0 rgba(255, 46, 77, 0.18); }
}

/* Toasts — smoother entrance */
.toasts .toast {
    animation: toastIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* My plan card — crown glow already exists; add subtle scan line */
.myplan { position: relative; }
.myplan::after {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: sweep 4.5s linear infinite;
}

/* Reduced-motion users — kill decorative animation */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Sticky results header — rows scroll, header stays */
.results-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-bright);
}

/* Mobile — plan cards stack tighter, search type tabs scroll */
@media (max-width: 640px) {
    .search-type-tabs { overflow-x: auto; scrollbar-width: none; }
    .search-type-tabs::-webkit-scrollbar { display: none; }
    .search-type-tab { flex-shrink: 0; }
    .ref-share-row .btn { flex: 1; justify-content: center; }
}

/* Query input — subtle glow while focused (terminal feel) */
#query-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(255, 46, 77, 0.12);
}

/* Stat cards — hover glow + value shimmer */
.stat-card {
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 0 22px rgba(255, 46, 77, 0.08);
    transform: translateY(-2px);
}
.stat-value {
    transition: color var(--transition), text-shadow var(--transition);
}
.stat-card:hover .stat-value {
    color: var(--fg-primary);
    text-shadow: 0 0 16px rgba(255, 46, 77, 0.35);
}

/* Landing — mini terminal strip under the hero */
.hero-terminal {
    width: 100%;
    max-width: 560px;
    margin: 26px auto 0;
    border: 1px solid var(--border);
    background: rgba(6, 8, 12, 0.85);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    font-family: var(--font-mono);
    text-align: left;
    overflow: hidden;
}
.hero-terminal-head {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
}
.hero-terminal-title {
    font-size: 0.58rem; letter-spacing: 0.2em; color: var(--fg-muted);
}
.hero-terminal-body {
    padding: 14px 16px;
    font-size: clamp(0.62rem, 1.8vw, 0.72rem);
    line-height: 1.85;
    color: var(--fg-secondary);
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}
.hero-terminal-body .t-line {
    display: block;
    white-space: normal;
    max-width: 100%;
}
.hero-terminal-body .t-p { color: var(--accent); }
.hero-terminal-body .t-ok { color: var(--ok); }
.hero-terminal-body .t-dim { color: var(--fg-muted); }
.hero-terminal-body .t-cur { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: middle; animation: blink 1s steps(1) infinite; }

/* Admin rail — active glow + entrance */
.rail-item { transition: all var(--transition), box-shadow var(--transition); }
.rail-item.active {
    box-shadow: inset 0 0 22px rgba(255, 46, 77, 0.06);
}
.rail-item .rail-icon { transition: transform var(--transition), text-shadow var(--transition); }
.rail-item:hover .rail-icon { transform: translateX(2px); }
.rail-item.active .rail-icon { text-shadow: 0 0 10px rgba(255, 46, 77, 0.6); }

/* Live feed rows — entrance slide */
.live-feed-row, .feed-row {
    animation: feedIn 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes feedIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Admin section panels — soft hover edge */
.hud-panel {
    transition: border-color var(--transition), box-shadow var(--transition);
}
.hud-panel:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

/* Checkbox/radio accent (plan modal, credit toggle) */
input[type="checkbox"], input[type="radio"] {
    accent-color: var(--accent);
    width: 15px; height: 15px;
    vertical-align: middle;
    cursor: pointer;
}

/* Chat widget — bubble polish + FAB unread pulse */
.msg { animation: feedIn 0.24s ease; }
.chat-widget-foot .admin-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(255, 46, 77, 0.1);
}
.chat-fab-dot:not([hidden]) {
    animation: fabDot 1.4s ease-in-out infinite;
}
@keyframes fabDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}
.chat-widget { animation: widgetIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes widgetIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Plan modal — current plan crown ring */
.plan-card.owned {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 26px rgba(255, 46, 77, 0.12);
}
.plan-card.owned .plan-name::after {
    content: " ◆ ACTIVE";
    color: var(--acid);
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    margin-left: 6px;
}

/* Jump-to-page box */
.jump-box { display: inline-flex; align-items: center; gap: 6px; }
.jump-box .admin-input {
    width: 64px;
    padding: 4px 8px;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    text-align: center;
}
.jump-box .admin-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.jump-box .admin-input { -moz-appearance: textfield; appearance: textfield; }

/* ═══════════ PROFESSIONAL REFINEMENT v2.4.1 ═══════════
   Restrained dark-web polish: precise borders, muted glows,
   disciplined accent use. No gaudy effects. */

/* Text selection — terminal cyan, subtle */
::selection { background: rgba(255, 46, 77, 0.22); color: #fff; }

/* Header — refined glass + hairline accent */
.topbar {
    background: linear-gradient(180deg, rgba(10, 11, 16, 0.92), rgba(8, 9, 13, 0.86));
    box-shadow: 0 1px 0 rgba(255, 46, 77, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.brand-mark { text-shadow: 0 0 12px rgba(255, 46, 77, 0.35); }
.brand-ver { color: var(--fg-muted); letter-spacing: 0.18em; }

/* Buttons — professional: layered border, press feedback */
.btn { border-radius: 3px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.09), rgba(255, 46, 77, 0.035));
    border-color: rgba(255, 46, 77, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 0 rgba(255, 46, 77, 0);
    transition: all var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
    border-color: rgba(255, 46, 77, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 14px rgba(255, 46, 77, 0.06);
}
.btn-ghost { border-radius: 3px; }

/* Nav items — underline indicator instead of box glow */
.nav-item { position: relative; }
.nav-item::after {
    content: "";
    position: absolute; left: 14px; right: 14px; bottom: 6px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.3, 1);
    opacity: 0.7;
}
.nav-item.active::after { transform: scaleX(1); }

/* Search type tabs — professional active state */
.search-type-tab {
    position: relative;
    border-radius: 3px 3px 0 0;
    transition: color var(--transition), background var(--transition);
}
.search-type-tab.active {
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.08), transparent);
    color: var(--accent);
}
.search-type-tab.active::after {
    content: "";
    position: absolute; left: 10px; right: 10px; bottom: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(255, 46, 77, 0.4);
}

/* Modal — refined entrance: subtle scale + blur backdrop */
.modal-overlay { backdrop-filter: blur(6px); }
.modal { border-radius: 6px; border-color: var(--border-bright); }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.04), transparent);
    border-bottom: 1px solid var(--border);
}

/* Featured plan — restrained gradient ring (static, no rotation) */
.plan-card.featured {
    border-color: rgba(255, 46, 77, 0.5);
    background:
        linear-gradient(180deg, rgba(255, 46, 77, 0.035), rgba(0, 0, 0, 0.2)),
        var(--bg-card);
    box-shadow:
        0 0 0 1px rgba(255, 46, 77, 0.15),
        0 0 34px rgba(255, 46, 77, 0.035),
        0 18px 50px rgba(0, 0, 0, 0.5);
}

/* Stat cards — precision border, restrained hover */
.stat-card {
    border-radius: 4px;
    border-color: var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent), var(--bg-card);
}
.stat-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 46, 77, 0.05);
    transform: translateY(-1px);
}

/* Tables — refined spacing + hairline separators */
.data-table th {
    font-size: 0.56rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.data-table tbody td { padding: 9px 12px; }

/* History items — cleaner rhythm */
.history-item {
    border-radius: 3px;
    margin-bottom: 3px;
}

/* Inputs — precision focus (replaces raw border-color change) */
.admin-input {
    border-radius: 3px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.admin-input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 1px rgba(255, 46, 77, 0.18);
}

/* Loading rings — calm glow */
.spinner-ring {
    border-color: rgba(255, 46, 77, 0.12) !important;
    border-top-color: var(--accent) !important;
    box-shadow: 0 0 18px rgba(255, 46, 77, 0.12);
}

/* Landing hero title — subtle premium sheen ONLY when background-clip:text
   is supported; otherwise the solid color stays (text must never vanish) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title {
        background: linear-gradient(180deg, #f6f4f2 0%, #e8c6cb 55%, #d97a86 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}
.hero-badge {
    border-color: rgba(255, 46, 77, 0.3);
    background: rgba(255, 46, 77, 0.05);
}

/* Gate pages — refined terminal frame + ambient glow */
.gate-terminal {
    border-color: var(--border-bright);
    box-shadow:
        var(--shadow-panel),
        0 0 60px rgba(255, 46, 77, 0.04),
        0 30px 80px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    overflow: hidden;
}
.gate-terminal-head {
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.04), transparent);
}
.gate-body {
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(255, 46, 77, 0.05), transparent 65%),
        radial-gradient(700px 380px at 85% 110%, rgba(255, 45, 85, 0.03), transparent 60%),
        var(--bg-void);
}

/* Footer — hairline top, refined type */
.site-footer {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
    font-size: 0.56rem;
    letter-spacing: 0.24em;
}

/* Chat widget — refined frame */
.chat-widget {
    border-radius: 8px;
    border-color: var(--border-bright);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 46, 77, 0.04);
}

/* Clock — steady, readable */
.clock {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.1em;
}

/* Status pills — sharper */
.status-pill { border-radius: 2px; }

/* Results table — refined header + row separators */
.results-table thead th {
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.05), rgba(0, 0, 0, 0.2));
    letter-spacing: 0.2em;
    font-size: 0.56rem;
    text-transform: uppercase;
    padding: 10px 12px;
}
.results-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* HUD panels — hairline top accent */
.hud-head {
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.03), transparent);
}

/* Auth links — proper button row (login gate) */
.auth-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.auth-link {
    justify-content: center;
    width: 100%;
    padding: 9px 10px;
    text-decoration: none;
    border-radius: 3px;
}
.auth-link.btn-ghost {
    color: var(--fg-secondary);
    border-color: var(--border-bright);
}
.auth-link.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-soft);
}
@media (max-width: 420px) {
    .auth-links { grid-template-columns: 1fr; }
}

/* Logo images — brand (header) + gate pages */
.brand-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
    /* Dark logo on dark site needs a readable badge surface — slate disc
       + cyan ring so the mark never disappears into the background */
    background: radial-gradient(circle at 50% 42%, #2a2e38 0%, #12151c 68%, #0a0c11 100%);
    border: 1px solid rgba(255, 46, 77, 0.4);
    box-shadow: 0 0 10px rgba(255, 46, 77, 0.18), inset 0 0 10px rgba(0, 0, 0, 0.55);
    padding: 2px;
    flex-shrink: 0;
}
.gate-logo-img {
    display: block;
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    object-fit: contain;
    border-radius: 50%;
    /* Readable badge on dark gate pages */
    background: radial-gradient(circle at 50% 42%, #2a2e38 0%, #12151c 68%, #0a0c11 100%);
    border: 1px solid rgba(255, 46, 77, 0.45);
    box-shadow: 0 0 18px rgba(255, 46, 77, 0.25), inset 0 0 14px rgba(0, 0, 0, 0.6);
    padding: 3px;
    animation: logoBreathe 4s ease-in-out infinite;
}
@keyframes logoBreathe {
    0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(255, 46, 77, 0.2), inset 0 0 14px rgba(0, 0, 0, 0.6); }
    50% { transform: scale(1.03); box-shadow: 0 0 26px rgba(255, 46, 77, 0.4), inset 0 0 14px rgba(0, 0, 0, 0.6); }
}
@media (max-width: 480px) {
    .brand-logo-img { width: 26px; height: 26px; }
    .gate-logo-img { width: 76px; height: 76px; }
}

/* Hero terminal — small screens: tighter padding, no overflow */
@media (max-width: 640px) {
    .hero-terminal { max-width: 100%; margin: 18px auto 0; }
    .hero-terminal-body { padding: 10px 12px; line-height: 1.7; }
    .hero-terminal-head { padding: 6px 10px; }
}

/* Landing sections — FULL-WIDTH feel (no boxed column): ticker, features
   and pricing stretch across the app, the hero content stays centered */
.ticker-wrap {
    width: 100%;
    margin: 0 auto 34px;
    border-radius: 6px;
}
.landing-features {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin: 0 auto 38px;
}
.landing-pricing {
    width: 100%;
    margin: 0 auto;
}
.landing-pricing .view-title { text-align: center; margin-bottom: 20px; }
/* "How it works" — mirrors .landing-pricing so the three step cards share the
   exact grid/spacing of the feature row above them. The h3 step headings are
   styled by the .feature-card h2,h3 rule; the h2 section title keeps the page
   outline correct (h1 → h2 section → h3 step). */
.landing-steps {
    width: 100%;
    margin: 0 auto;
}
.landing-steps .view-title { text-align: center; margin-bottom: 20px; }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Hero content — wider centered stage (content centered, page breathes) */
.landing-hero { max-width: 1080px; }
.hero-terminal { max-width: 640px; }

/* ═══════════ RED/BLACK THEME + ZOOM-FIT v2.4.9 ═══════════ */

/* Zoom-fit — tighter rhythm at high zoom / small effective widths */
@media (max-width: 1100px) {
    .app { padding: 22px 16px 60px; }
    .landing-hero { padding: 44px 0 28px; }
    .search-hero { padding: 18px 0 16px; }
    .stat-grid { gap: 10px; }
}
@media (max-width: 700px) {
    .app { padding: 16px 12px 50px; }
    .topbar { padding: 0 12px; }
    .admin-grid { grid-template-columns: 1fr !important; }
    .settings-grid { grid-template-columns: 1fr !important; }
    .detail-grid { grid-template-columns: 1fr 1fr !important; }
    .modal { max-width: 96vw; }
    .ref-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Hero — realtime feel: scanline sweep + pulse ring + staggered lines */
.hero-terminal { position: relative; }
.hero-terminal::after {
    content: "";
    position: absolute; left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: heroScan 3.6s linear infinite;
    pointer-events: none;
}
@keyframes heroScan {
    0% { top: 0; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.hero-badge {
    position: relative;
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0); }
    50% { box-shadow: 0 0 0 5px rgba(255, 46, 77, 0.05), 0 0 18px rgba(255, 46, 77, 0.14); }
}
.hero-terminal-body .t-line {
    opacity: 0;
    animation: lineIn 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.hero-terminal-body .t-line:nth-child(1) { animation-delay: 0.2s; }
.hero-terminal-body .t-line:nth-child(2) { animation-delay: 0.9s; }
.hero-terminal-body .t-line:nth-child(3) { animation-delay: 1.6s; }
.hero-terminal-body .t-line:nth-child(4) { animation-delay: 2.3s; }
@keyframes lineIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.t-cur { animation: blink 1s steps(1) infinite; }

/* Title — red sheen shimmer */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title {
        background: linear-gradient(180deg, #f6f4f2 0%, #e8c6cb 55%, #d97a86 100%);
        background-size: 100% 120%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        animation: titleGlow 4s ease-in-out infinite;
    }
}
@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 46, 77, 0.15)); }
    50% { filter: drop-shadow(0 0 14px rgba(255, 46, 77, 0.22)); }
}

/* Reduced-motion users — no hero animations */
@media (prefers-reduced-motion: reduce) {
    .hero-terminal::after, .hero-terminal-body .t-line,
    .hero-badge, .hero-title { animation: none !important; opacity: 1 !important; }
}

/* ═══════════ WIDE-SCREEN ATMOSPHERE v2.5.0 ═══════════ */

/* Ambient red glows — the page breathes instead of a flat void */
body {
    background:
        radial-gradient(1100px 500px at 8% -5%, rgba(255, 46, 77, 0.035), transparent 60%),
        radial-gradient(900px 460px at 96% 12%, rgba(212, 169, 92, 0.025), transparent 55%),
        var(--bg-void);
    background-attachment: fixed;
}
.app {
    background:
        radial-gradient(1200px 520px at 50% -8%, rgba(255, 46, 77, 0.022), transparent 60%);
}

/* (section dividers removed — they rendered as an empty box at the start
   of each section; spacing handled by the sections' own margins) */

/* Feature cards — lift + red edge on hover */
.feature-card {
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 46, 77, 0.4);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 46, 77, 0.08);
}
.feature-card .feature-icon { transition: text-shadow var(--transition); }
.feature-card:hover .feature-icon { text-shadow: 0 0 14px rgba(255, 46, 77, 0.6); }

/* Plan cards — consistent spacing on wide rows */
.plan-card { border-radius: 5px; }

/* Terminal view — full-width tables on wide screens (no cramped box) */
.table-wrap { width: 100%; }
@media (min-width: 1400px) {
    .app { max-width: 1520px; }
    .results-table-wrap { max-height: 640px; }
}

/* ═══════════ REFINED DARKWEB PALETTE v2.5.3 ═══════════
   Muted blood-red accents used sparingly, premium gold for
   highlights, desaturated green for success. No neon. */

/* Premium gold — featured plan + key values */
.plan-card.featured {
    border-color: rgba(212, 169, 92, 0.45);
    background:
        linear-gradient(180deg, rgba(212, 169, 92, 0.05), rgba(0, 0, 0, 0.2)),
        var(--bg-card);
    box-shadow:
        0 0 0 1px rgba(212, 169, 92, 0.12),
        0 0 30px rgba(212, 169, 92, 0.06),
        0 18px 50px rgba(0, 0, 0, 0.5);
}
.plan-card.featured .plan-name { color: var(--accent2); }
.stat-value, .ref-stat-num {
    text-shadow: 0 0 12px rgba(255, 46, 77, 0.16);
}
.ref-card-credit b { color: var(--accent2); text-shadow: 0 0 12px rgba(212, 169, 92, 0.3); }
.ref-tier.on {
    color: var(--accent2);
    border-color: rgba(212, 169, 92, 0.4);
    box-shadow: 0 0 10px rgba(212, 169, 92, 0.1);
}

/* Neutral text hierarchy — warm grays, not stark white */
.hero-title { color: #f2f0ee; }
.hero-sub { color: #8b8a8c; }
.brand-name { color: #f2f0ee; }

/* Feature icons — muted accent instead of loud */
.feature-icon { color: var(--accent); opacity: 0.85; }

/* Ticker — quieter LEDs */
.ticker-item .led { opacity: 0.75; }

/* Section titles — red→gold gradient (premium) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .view-title .accent {
        background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
        background-size: 200% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: gradientSlide 7s linear infinite;
    }
}

/* Status pills — desaturated */
.status-pill.ok { color: var(--ok); border-color: rgba(53, 201, 139, 0.4); }
.status-pill.error { color: var(--danger); border-color: rgba(255, 46, 77, 0.4); }

/* Logo badge — softer ring */
.brand-logo-img, .gate-logo-img {
    border-color: rgba(255, 46, 77, 0.32);
    box-shadow: 0 0 10px rgba(255, 46, 77, 0.12), inset 0 0 10px rgba(0, 0, 0, 0.5);
}
.gate-logo-img {
    box-shadow: 0 0 14px rgba(255, 46, 77, 0.16), inset 0 0 14px rgba(0, 0, 0, 0.55);
}

/* ═══════════ CALM SEARCH CONSOLE v2.5.4 ═══════════
   Dashboard search area: neutral by default, red reserved
   for a single thin active line — no red overload. */

/* Tabs — neutral resting + hover, subtle active */
.search-type-tab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px 4px 0 0;
}
.search-type-tab:hover {
    border-color: var(--border-bright);
    background: var(--bg-elevated);
    box-shadow: none;
    transform: none;
}
.search-type-tab.active {
    border-color: var(--border-bright);
    border-bottom-color: transparent;
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.05), rgba(0, 0, 0, 0.12));
    box-shadow: none;
}
.search-type-tab.active::before {
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.search-type-tab.active .tab-icon { color: var(--accent); opacity: 0.9; }
.search-type-tab.active .tab-label { color: var(--fg-primary); }
.tab-cmd { color: var(--fg-muted); }
.search-type-tab.active .tab-cmd { color: var(--accent); opacity: 0.75; }

/* Query input — neutral focus, faint red tint only */
#query-input {
    border-color: var(--border);
}
#query-input:focus {
    border-color: var(--border-bright);
    box-shadow: 0 0 0 1px rgba(255, 46, 77, 0.14), 0 0 12px rgba(255, 46, 77, 0.05);
}

/* Console prompt symbol — muted */
.console-prompt .prompt-sym, .console-prompt > span:first-child {
    color: var(--fg-muted);
}

/* Results table header — neutral, no red wash */
.results-table thead th {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.25));
    color: var(--fg-secondary);
}

/* 403 page — professional access-denied */
.forbidden-code {
    font-family: var(--font-mono);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    color: var(--danger);
    text-shadow: 0 0 34px rgba(255, 46, 77, 0.3);
    margin-bottom: 8px;
}
.forbidden-lock {
    color: var(--fg-muted);
    margin: 16px 0 4px;
    display: flex;
    justify-content: center;
}
.gate-msg { color: var(--fg-primary); font-family: var(--font-mono); letter-spacing: 0.12em; }

/* ═══════════ NEWS TICKER v2.5.6 — realtime news strip ═══════════ */
.news-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(255, 46, 77, 0.05), rgba(0, 0, 0, 0.2));
    font-family: var(--font-mono);
    overflow: hidden;
    position: relative;
}
.news-ticker-label {
    flex-shrink: 0;
    font-size: 0.6rem;
    letter-spacing: 0.24em;
    color: var(--accent2);
    border: 1px solid rgba(212, 169, 92, 0.35);
    padding: 2px 8px;
    border-radius: 2px;
}
.news-ticker-track {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.news-ticker-item {
    flex-shrink: 0;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--fg-secondary);
    white-space: nowrap;
    padding-right: 48px;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.news-ticker-item.active { opacity: 1; }
.news-ticker-item::before { content: "▸ "; color: var(--accent); }

/* ═══════════ PRO POLISH v2.5.7 ═══════════ */

/* Results rows — staggered entrance (realtime data feel) */
.results-body tr {
    animation: rowIn 0.3s ease both;
}
.results-body tr:nth-child(1) { animation-delay: 0.02s; }
.results-body tr:nth-child(2) { animation-delay: 0.06s; }
.results-body tr:nth-child(3) { animation-delay: 0.10s; }
.results-body tr:nth-child(4) { animation-delay: 0.14s; }
.results-body tr:nth-child(5) { animation-delay: 0.18s; }
.results-body tr:nth-child(6) { animation-delay: 0.22s; }
.results-body tr:nth-child(7) { animation-delay: 0.26s; }
.results-body tr:nth-child(8) { animation-delay: 0.30s; }
.results-body tr:nth-child(n+9) { animation-delay: 0.34s; }
@keyframes rowIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Terminal stats strip — subtle lift on hover */
.terminal-stats .stat-card {
    border-radius: 4px;
}
.terminal-stats .stat-card:hover {
    border-color: rgba(255, 46, 77, 0.25);
    box-shadow: var(--shadow-panel), 0 0 12px rgba(255, 46, 77, 0.05);
}

/* Landing feature cards — load stagger */
.landing-features .feature-card {
    animation: cardUp 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.landing-features .feature-card:nth-child(1) { animation-delay: 0.05s; }
.landing-features .feature-card:nth-child(2) { animation-delay: 0.15s; }
.landing-features .feature-card:nth-child(3) { animation-delay: 0.25s; }
.landing-features .feature-card:nth-child(4) { animation-delay: 0.35s; }
@keyframes cardUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Plan cards — gentle hover lift */
.plan-card { transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.plan-card:hover { transform: translateY(-4px); }

/* Admin dashboard sparkline bars — grow-in */
.sparkline i, .spark-bar {
    animation: barGrow 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both;
    transform-origin: bottom;
}
@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* INTEL breakdown bars — same grow-in */
.breakdown-bars .bar-fill {
    animation: barGrow 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

/* Reduced motion — kill entrances */
@media (prefers-reduced-motion: reduce) {
    .results-body tr, .landing-features .feature-card,
    .sparkline i, .spark-bar, .breakdown-bars .bar-fill {
        animation: none !important;
    }
}

/* Settings groups — sectioned admin form */
.settings-group {
    grid-column: 1 / -1;
    margin-top: 22px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.settings-group-title {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    color: var(--accent2);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.settings-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-bright), transparent);
}

/* ═══════════ PRO LIVE-FEEL v2.5.9 ═══════════ */

/* Terminal app — faint scan drift (darkweb atmosphere) */
.app::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.06) 4px,
        transparent 5px
    );
    z-index: 5;
}

/* Hero terminal — "nodes online" pulse */
.hero-terminal-body .t-ok {
    animation: nodePulse 2.6s ease-in-out infinite;
}
@keyframes nodePulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; text-shadow: 0 0 10px rgba(255, 46, 77, 0.3); }
}

/* LIVE strip — timestamp chip */
.live-strip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    color: var(--ok);
    border: 1px solid rgba(53, 201, 139, 0.3);
    padding: 2px 9px;
    border-radius: 2px;
    background: rgba(53, 201, 139, 0.05);
    vertical-align: middle;
}

/* "Most popular" badge — featured plan */
.plan-card.featured .plan-name::before {
    content: "★ MOST POPULAR";
    display: block;
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    color: var(--accent2);
    border: 1px solid rgba(212, 169, 92, 0.4);
    background: rgba(212, 169, 92, 0.07);
    padding: 2px 8px;
    margin-bottom: 8px;
    width: fit-content;
    border-radius: 2px;
    animation: badgeGlow 2.8s ease-in-out infinite;
}
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 169, 92, 0); }
    50% { box-shadow: 0 0 12px rgba(212, 169, 92, 0.25); }
}

/* INTEL refresh button — hover accent */
#intel-refresh { margin-left: 4px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .app::before, .hero-terminal-body .t-ok, .plan-card.featured .plan-name::before {
        animation: none !important;
    }
}

/* ═══════════ PRO DETAILS v2.6.0 ═══════════ */

/* Shortcut hints under the search console */
.console-shortcuts {
    margin-left: auto;
    align-self: center;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
    white-space: nowrap;
}
.console-shortcuts span { color: var(--accent2); opacity: 0.85; }

/* Footer quick links */
.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.56rem;
    letter-spacing: 0.2em;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* Card corner brackets — terminal frame on hover (pro darkweb) */
.admin-card, .hud-panel, .stat-card, .search-console, .results-panel, .plan-card, .feature-card {
    position: relative;
}
.admin-card::before, .hud-panel::before, .stat-card::before, .search-console::before,
.results-panel::before, .plan-card::before, .feature-card::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px;
    width: 10px; height: 10px;
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 2;
}
.admin-card:hover::before, .hud-panel:hover::before, .stat-card:hover::before,
.search-console:hover::before, .results-panel:hover::before, .plan-card:hover::before,
.feature-card:hover::before {
    border-color: var(--accent);
    width: 14px; height: 14px;
}

/* Button icon micro-slide */
.btn .btn-icon { transition: transform var(--transition); }
.btn:hover .btn-icon { transform: translateX(2px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .admin-card::before, .hud-panel::before, .stat-card::before,
    .search-console::before, .results-panel::before, .plan-card::before,
    .feature-card::before { transition: none; }
}

/* ═══════════ v2.6.1 — sessions + recent chips + modal stagger ═══════════ */

/* Account — active sessions list */
.acc-sessions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.acc-sess-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.66rem;
}
.acc-sess-row.cur { border-color: rgba(53, 201, 139, 0.3); }
.acc-sess-dev { color: var(--fg-primary); font-family: var(--font-mono); }
.acc-sess-meta { color: var(--fg-muted); font-family: var(--font-mono); white-space: nowrap; }

/* Recent query chips */
.recent-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 16px 12px;
}
.recent-chip {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: var(--fg-secondary);
    border: 1px solid var(--border-bright);
    background: var(--bg-card);
    padding: 3px 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition);
}
.recent-chip:hover {
    color: var(--accent);
    border-color: rgba(255, 46, 77, 0.35);
}

/* Modal content — gentle stagger */
.modal-body > * { animation: modalItem 0.3s ease both; }
@keyframes modalItem {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .modal-body > * { animation: none; }
}
.recent-chip-label {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.2em;
    color: var(--fg-muted);
    align-self: center;
}

/* Payments export button — inline with the section title */
#sec-payments .search-hero, #sec-audit .search-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#audit-export-btn { flex-shrink: 0; }
#payments-export-btn { flex-shrink: 0; }

/* Trust badges — front page under the hero CTA */
.hero-trust {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--fg-secondary);
    border: 1px solid var(--border-bright);
    padding: 6px 14px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.015);
    animation: cardUp 0.5s ease both;
}
.hero-trust-item:nth-child(2) { animation-delay: 0.12s; }
.hero-trust-item:nth-child(3) { animation-delay: 0.24s; }
.hero-trust-item b { color: var(--accent2); font-weight: 600; }

/* ═══════════ DARKWEB ANIMATION BATCH v2.6.3 ═══════════ */

/* Brand — auto glitch burst every few seconds */
.brand-name {
    position: relative;
    animation: brandGlitchAuto 6s steps(1) infinite;
}
@keyframes brandGlitchAuto {
    0%, 92%, 100% { text-shadow: none; transform: none; }
    93% { text-shadow: -2px 0 rgba(255, 46, 77, 0.7), 2px 0 rgba(212, 169, 92, 0.6); transform: translateX(1px); }
    94% { text-shadow: 2px 0 rgba(255, 46, 77, 0.6), -2px 0 rgba(212, 169, 92, 0.5); transform: translateX(-1px); }
    95% { text-shadow: -1px 0 rgba(255, 46, 77, 0.8); transform: none; }
    96% { text-shadow: none; }
}

/* LIVE LEDs — radar ping rings */
.led-live { position: relative; }
.led-live::after {
    content: "";
    position: absolute; inset: -4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0;
    animation: radarPing 2.4s ease-out infinite;
}
@keyframes radarPing {
    0% { transform: scale(0.4); opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Diagonal light sweep across the page — every few seconds */
body::after {
    content: "";
    position: fixed;
    top: -20%; bottom: -20%; left: -60%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 46, 77, 0.035), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 60;
    animation: pageSweep 9s linear infinite;
}
@keyframes pageSweep {
    0% { left: -60%; }
    100% { left: 130%; }
}

/* Hero trust badges — hover glow */
.hero-trust-item { transition: all var(--transition); }
.hero-trust-item:hover {
    border-color: rgba(255, 46, 77, 0.35);
    box-shadow: 0 0 14px rgba(255, 46, 77, 0.12);
    transform: translateY(-2px);
}

/* Hero terminal — subtle frame flicker (CRT alive) */
.hero-terminal {
    animation: termFlicker 7s steps(1) infinite;
}
@keyframes termFlicker {
    0%, 100% { opacity: 1; }
    97% { opacity: 0.985; }
    98% { opacity: 1; }
    99% { opacity: 0.99; }
}

/* Primary button — ambient border pulse */
.btn-primary { animation: btnPulse 3.4s ease-in-out infinite; }
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0); }
    50% { box-shadow: 0 0 12px 1px rgba(255, 46, 77, 0.08); }
}

/* Reduced motion — kill everything new */
@media (prefers-reduced-motion: reduce) {
    .brand-name, .led-live::after, body::after, .hero-terminal,
    .btn-primary, .hero-trust-item { animation: none !important; }
}

/* ═══════════ v2.6.4 — expiry banner + loading dots + reveal ═══════════ */

/* Plan expiry banner — amber warning */
.plan-expiry-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 176, 0, 0.4);
    border-left: 3px solid var(--amber);
    background: rgba(255, 176, 0, 0.05);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--fg-primary);
    animation: expiryGlow 2.6s ease-in-out infinite;
}
.plan-expiry-icon { color: var(--amber); animation: iconPulse 1.8s ease-in-out infinite; }
.plan-expiry-text { flex: 1; }
.plan-expiry-text b { color: var(--amber); }
@keyframes expiryGlow {
    0%, 100% { box-shadow: inset 0 0 0 rgba(255, 176, 0, 0); }
    50% { box-shadow: inset 0 0 22px rgba(255, 176, 0, 0.06); }
}

/* Loading dots — "awaiting response from the void…" */
.results-loading p::after {
    content: "";
    animation: dots 1.4s steps(4) infinite;
}
@keyframes dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
    100% { content: ""; }
}

/* History items — staggered entrance */
.history-item { animation: histIn 0.3s ease both; }
.history-item:nth-child(1) { animation-delay: 0.03s; }
.history-item:nth-child(2) { animation-delay: 0.07s; }
.history-item:nth-child(3) { animation-delay: 0.11s; }
.history-item:nth-child(4) { animation-delay: 0.15s; }
.history-item:nth-child(5) { animation-delay: 0.19s; }
.history-item:nth-child(n+6) { animation-delay: 0.23s; }
@keyframes histIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal (landing sections) — hidden until IntersectionObserver */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .plan-expiry-banner, .results-loading p::after, .history-item { animation: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ═══════════ v2.6.5 — help modal + title underline + copy flash ═══════════ */

/* Help modal rows */
.help-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(26, 32, 41, 0.6);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--fg-secondary);
}
.help-row:last-of-type { border-bottom: none; }
.help-row kbd {
    min-width: 56px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    border: 1px solid rgba(255, 46, 77, 0.35);
    border-radius: 3px;
    padding: 3px 8px;
    background: rgba(255, 46, 77, 0.05);
}

/* View titles — animated gradient underline */
.view-title {
    position: relative;
    padding-bottom: 8px;
}
.view-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
    animation: titleLine 3.4s ease-in-out infinite;
}
@keyframes titleLine {
    0%, 100% { width: 64px; opacity: 0.7; }
    50% { width: 120px; opacity: 1; }
}

/* Copy flash — row hint turns green briefly after copy */
.results-body tr.copied .row-copy-hint {
    color: var(--ok);
    border-color: rgba(53, 201, 139, 0.5);
    opacity: 1;
}
.results-body tr.copied { animation: copyFlash 0.7s ease; }
@keyframes copyFlash {
    0% { background: rgba(53, 201, 139, 0.12); }
    100% { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .view-title::after { animation: none; }
}

/* ═══════════ v2.6.6 — progress bar + chips + footer glow ═══════════ */

/* Top navigation progress bar */
#nav-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: 0 0 10px rgba(255, 46, 77, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

/* Filter chips — refined hover/active */
.filter-chip {
    transition: all var(--transition);
}
.filter-chip:hover {
    border-color: rgba(255, 46, 77, 0.4);
    color: var(--fg-primary);
    background: var(--bg-hover);
}
.filter-chip.active {
    border-color: rgba(255, 46, 77, 0.5);
    color: var(--accent);
    background: rgba(255, 46, 77, 0.07);
}

/* Footer — hairline glow top edge */
.site-footer {
    border-top: 1px solid transparent;
    background:
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45)),
        radial-gradient(500px 1px at 50% 0%, rgba(255, 46, 77, 0.35), transparent 70%);
}

/* Led-amber — amber indicator used by expiring panel */
.led-amber { background: var(--amber); box-shadow: 0 0 8px rgba(255, 176, 0, 0.6); }

/* ═══════════ v2.6.7 — gauge + tab icon + INTEL autopoll ═══════════ */

/* Success gauge — conic ring */
.stat-gauge-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.gauge-wrap { padding: 8px 0; }
.gauge-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#35c98b 0deg, rgba(255,255,255,0.06) 0deg);
    position: relative;
    transition: background 0.6s ease;
}
.gauge-ring::before {
    content: "";
    position: absolute; inset: 8px;
    border-radius: 50%;
    background: var(--bg-card);
}
.gauge-num {
    position: relative;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: #35c98b;
    text-shadow: 0 0 12px rgba(53, 201, 139, 0.3);
}

/* Search type tab — icon animates on switch */
.search-type-tab.active .tab-icon {
    animation: iconSwap 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes iconSwap {
    0% { transform: rotate(-12deg) scale(0.8); opacity: 0.4; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .search-type-tab.active .tab-icon { animation: none; }
}

/* ═══════════ v2.6.8 — scroll-top + referral network ═══════════ */

/* Scroll-to-top button */
.scroll-top-btn {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 40px; height: 40px;
    border: 1px solid var(--border-bright);
    background: rgba(10, 11, 16, 0.85);
    color: var(--fg-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 5000;
    border-radius: 4px;
}
.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    color: var(--accent);
    border-color: rgba(255, 46, 77, 0.45);
    box-shadow: 0 0 14px rgba(255, 46, 77, 0.15);
}

/* Referral network list */
.ref-friends {
    margin-top: 14px;
    border-top: 1px dashed var(--border-bright);
    padding-top: 12px;
}
.ref-friends-title {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.24em;
    color: var(--fg-muted);
    margin-bottom: 8px;
}
.ref-friend-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--fg-secondary);
    padding: 3px 0;
}
.footer-status {
    font-family: var(--font-mono);
    font-size: 0.54rem;
    letter-spacing: 0.16em;
    color: var(--fg-muted);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 2px;
}
.footer-status b { color: var(--ok); }

/* ═══════════ v2.6.9 — wipe trace + audit export ═══════════ */

/* History wipe button */
.history-wipe {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--fg-muted);
    border: 1px solid var(--border);
    padding: 1px 7px;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition);
}
.history-item:hover .history-wipe { opacity: 1; }
.history-wipe:hover {
    color: var(--danger);
    border-color: rgba(255, 46, 77, 0.5);
    box-shadow: 0 0 10px rgba(255, 46, 77, 0.15);
}

/* ═══════════ v2.7.1 — icon polish + card refinement ═══════════ */

/* Terminal stats — icons */
.stat-card.mini { position: relative; padding-left: 40px; }
.ts-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--accent);
    opacity: 0.8;
}

/* History type chips with icon */
.history-type { display: inline-flex; align-items: center; gap: 5px; }
.ht-icon { font-size: 0.8rem; color: var(--accent2); opacity: 0.9; }

/* Admin dashboard tile icons */
.dash-tile-icon {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--fg-muted);
    opacity: 0.22;
    pointer-events: none;
}
.stat-card { position: relative; }

/* Query input placeholder — subtle red tint */
.query-input::placeholder { color: var(--fg-muted); opacity: 0.7; transition: opacity var(--transition); }
.query-input:focus::placeholder { opacity: 0.45; }

/* Card radius normalization — consistent 6px across surfaces */
.admin-card, .hud-panel, .stat-card, .search-console, .results-panel,
.plan-card, .feature-card, .modal, .chat-widget, .notice-bar {
    border-radius: 6px;
}

/* ═══════════ v2.7.2 — FAQ + chart tooltips + fluid hovers ═══════════ */

/* Landing FAQ — accordion darkweb style */
.landing-faq {
    max-width: 860px;
    margin: 44px auto 0;
}
.landing-faq .view-title { text-align: center; margin-bottom: 20px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.012);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover {
    border-color: var(--border-bright);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 13px 16px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--fg-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    /* Terminal all-caps look. The source text is sentence case (views/page.php
       $faqItems) so the visible FAQ and the FAQPage JSON-LD share one wording;
       the caps are purely presentational. */
    text-transform: uppercase;
}
.faq-item summary::before {
    content: "▸";
    color: var(--accent);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
    padding: 0 16px 14px;
    font-size: 0.78rem;
    line-height: 1.75;
    color: var(--fg-secondary);
}

/* INTEL sparkline bars — hover highlight + tooltip glow */
#stat-series .spark-bar, .sparkline .bar {
    transition: filter var(--transition), opacity var(--transition);
}
#stat-series .spark-bar:hover, .sparkline .bar:hover {
    filter: brightness(1.35);
    opacity: 1;
}

/* Admin sparkline — glow on hover */
.sparkline:hover {
    filter: drop-shadow(0 0 8px rgba(255, 46, 77, 0.12));
}

/* Fluid hovers — nav icons + chips */
.search-type-tab .tab-icon { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1); }
.search-type-tab:hover .tab-icon { transform: translateY(-1px); }
.filter-chip { transition: all 0.2s cubic-bezier(0.2, 0.8, 0.3, 1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .faq-item summary::before, .search-type-tab .tab-icon { transition: none; }
}

/* ═══════════ v2.7.3 — saved queries ═══════════ */

/* Save button states */
#save-query-btn.saved-on {
    color: var(--accent2);
    border-color: rgba(212, 169, 92, 0.5);
    box-shadow: 0 0 10px rgba(212, 169, 92, 0.15);
}

/* Saved queries panel */
.history-saved {
    margin-bottom: 16px;
    border: 1px dashed var(--border-bright);
    border-radius: 6px;
    padding: 12px 14px;
    background: rgba(212, 169, 92, 0.03);
}
.history-saved-title {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    color: var(--accent2);
    margin-bottom: 8px;
}
.saved-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background var(--transition);
}
.saved-item:hover { background: var(--bg-hover); }
.saved-icon { color: var(--accent2); font-size: 0.8rem; }
.saved-q {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--fg-primary);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.saved-meta {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    color: var(--fg-muted);
}
.saved-item .btn { padding: 2px 8px; font-size: 0.56rem; }

/* ═══════════ v2.7.4 — priority + poll toggle ═══════════ */

/* Ticket priority tag colors */
.tag-dim {
    color: var(--fg-muted);
    border-color: var(--border-bright);
}
.tag-danger { color: var(--danger); border-color: rgba(255, 46, 77, 0.45); }

/* Dashboard poll toggle states */
#dash-poll-toggle.paused {
    color: var(--amber);
    border-color: rgba(255, 176, 0, 0.5);
}
#dash-poll-toggle:not(.paused) { color: var(--ok); border-color: rgba(53, 201, 139, 0.4); }
.footer-site {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.2em;
    color: var(--accent2);
    text-decoration: none;
    border: 1px solid rgba(212, 169, 92, 0.3);
    padding: 3px 10px;
    border-radius: 2px;
    transition: all var(--transition);
}
.footer-site:hover {
    color: var(--accent);
    border-color: rgba(255, 46, 77, 0.45);
    box-shadow: 0 0 12px rgba(255, 46, 77, 0.12);
}

/* ═══════════ v2.8.2 — online error log viewer ═══════════ */
.sys-log {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    line-height: 1.6;
    color: var(--fg-secondary);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}
#sys-log-clear { margin-left: auto; }

/* ═══════════ v2.9.16 — BULK EMAIL lookup ═══════════
   Replaces the single-query console when the BULK EMAIL tab is active.
   It reads as a QUEUE, not a progress bar: one line per address, because
   the shared Telegram session runs the emails strictly one at a time and
   the user needs to see which one is on the wire right now. */
.bulk-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-panel);
    margin-bottom: 16px;
    border-radius: 4px 4px 0 0;
}
.bulk-panel[hidden] { display: none; }
.bulk-head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 13px 16px; border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.bulk-title {
    font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.1em; color: var(--accent);
}
.bulk-cap {
    margin-left: auto; font-family: var(--font-mono); font-size: 0.58rem;
    letter-spacing: 0.08em; color: var(--fg-muted);
}
.bulk-input {
    display: block; width: 100%; resize: vertical;
    background: var(--bg-void); border: none;
    border-bottom: 1px solid var(--border);
    color: var(--fg-primary);
    font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7;
    padding: 13px 16px; outline: none;
    caret-color: var(--accent); min-height: 120px;
}
.bulk-input:focus { background: var(--bg-deep); }
.bulk-input::placeholder { color: var(--fg-muted); opacity: 0.5; }
.bulk-meta {
    display: flex; flex-wrap: wrap; gap: 18px;
    padding: 10px 16px; border-bottom: 1px solid var(--border);
}
.bulk-meta .meta-item { font-family: var(--font-mono); font-size: 0.64rem; color: var(--fg-muted); letter-spacing: 0.05em; }
.bulk-meta b { color: var(--fg-primary); }
.bulk-meta b.warn { color: var(--amber); }
.bulk-meta b.bad { color: var(--danger); }
.bulk-actions {
    display: flex; gap: 10px; padding: 12px 16px; flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}

/* ── Live progress ── */
.bulk-progress { padding: 14px 16px 16px; }
.bulk-progress[hidden] { display: none; }
.bulk-progress-top {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 9px;
}
.bulk-progress-label {
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em;
    color: var(--fg-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0; flex: 1;
}
.bulk-progress-count {
    margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--fg-primary); flex: none;
}
.bulk-bar {
    height: 3px; background: var(--bg-void);
    border: 1px solid var(--border); border-radius: 2px; overflow: hidden;
    margin-bottom: 14px;
}
.bulk-bar-fill {
    height: 100%; width: 0;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    transition: width 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
.bulk-bar-fill.done { background: var(--ok); box-shadow: 0 0 8px rgba(53, 201, 139, 0.25); }

/* ── Per-email queue rows ── */
.bulk-list {
    display: flex; flex-direction: column; gap: 1px;
    max-height: 340px; overflow-y: auto;
    border: 1px solid var(--border); border-radius: 3px;
    background: var(--border);
}
.bulk-row {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) 96px 78px 30px;
    align-items: center; gap: 10px;
    padding: 7px 10px; background: var(--bg-card);
    font-family: var(--font-mono); font-size: 0.68rem;
}
.bulk-row-seq { color: var(--fg-muted); font-size: 0.6rem; }
.bulk-row-email {
    color: var(--fg-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bulk-row-state {
    font-size: 0.58rem; letter-spacing: 0.08em; text-align: right;
    color: var(--fg-muted);
}
.bulk-row-lines { text-align: right; color: var(--fg-muted); font-size: 0.64rem; }
.bulk-row-dl {
    text-align: center; color: var(--fg-muted); text-decoration: none;
    font-size: 0.72rem; opacity: 0.35; pointer-events: none;
}
/* Running row — the one address the shared session is on right now */
.bulk-row[data-state="running"] { background: var(--bg-elevated); }
.bulk-row[data-state="running"] .bulk-row-email { color: var(--fg-primary); }
.bulk-row[data-state="running"] .bulk-row-state { color: var(--amber); }
.bulk-row[data-state="running"] .bulk-row-seq { color: var(--amber); }
.bulk-row[data-state="completed"] .bulk-row-email { color: var(--fg-primary); }
.bulk-row[data-state="completed"] .bulk-row-state { color: var(--ok); }
.bulk-row[data-state="completed"] .bulk-row-lines { color: var(--ok); }
.bulk-row[data-state="completed"] .bulk-row-dl { opacity: 1; pointer-events: auto; }
.bulk-row[data-state="completed"] .bulk-row-dl:hover { color: var(--accent); }
.bulk-row[data-state="failed"] .bulk-row-state { color: var(--danger); }
.bulk-row[data-state="failed"] .bulk-row-email { color: var(--danger-dim); }
.bulk-row-error {
    grid-column: 2 / -1; color: var(--danger-dim); font-size: 0.6rem;
    padding-bottom: 3px; word-break: break-word;
}
.bulk-row-cancel .bulk-row-state { color: var(--fg-muted); text-decoration: line-through; }

.bulk-summary {
    margin-top: 12px; font-family: var(--font-mono); font-size: 0.66rem;
    line-height: 1.7; color: var(--fg-secondary);
}
.bulk-summary b { color: var(--fg-primary); }
.bulk-summary .ok { color: var(--ok); }
.bulk-summary .bad { color: var(--danger); }
.bulk-exports {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--border);
}
.bulk-exports[hidden] { display: none; }
.bulk-exports-label {
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
    color: var(--fg-muted);
}

@media (max-width: 640px) {
    .bulk-row { grid-template-columns: 26px minmax(0, 1fr) 74px 26px; }
    .bulk-row-lines { display: none; }
    .bulk-meta { gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   v3.0.0 — CASE TREE (credential pivot investigation)
   A forensic console: controls, live SVG graph, node inspector,
   key findings table, case-file exports.
   ═══════════════════════════════════════════════════════════ */

.case-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px 18px;
    margin-bottom: 16px;
}

.case-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.case-title {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.13em;
    color: var(--accent2); font-weight: 600;
}
.case-cap {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
    color: var(--fg-muted);
}

/* ── controls ── */
.case-controls {
    display: grid;
    grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(78px, 0.55fr)) auto;
    gap: 10px; align-items: end;
}
.case-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.case-label {
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
    color: var(--fg-muted);
}
.case-input, .case-select {
    background: var(--bg-void); color: var(--fg-primary);
    border: 1px solid var(--border-bright); border-radius: 7px;
    padding: 9px 11px; font-family: var(--font-mono); font-size: 12.5px;
    width: 100%; min-width: 0; transition: border-color var(--transition);
}
.case-input:focus, .case-select:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.case-input:disabled, .case-select:disabled { opacity: 0.55; cursor: not-allowed; }
.case-select { cursor: pointer; }
.case-buttons { display: flex; gap: 8px; }

.case-hint {
    margin: 12px 0 0; font-size: 11.5px; line-height: 1.65;
    color: var(--fg-muted); font-family: var(--font-mono);
}
.case-hint b { color: var(--fg-secondary); }

/* ── progress ── */
.case-progress { margin-top: 14px; }
.case-progress-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 7px; flex-wrap: wrap;
}
.case-progress-label {
    font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-secondary);
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.case-progress-count {
    font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-muted);
    letter-spacing: 0.06em; white-space: nowrap;
}
.case-bar {
    height: 4px; background: var(--bg-void); border-radius: 999px;
    overflow: hidden; border: 1px solid var(--border);
}
.case-bar-fill {
    height: 100%; width: 0%; border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    transition: width 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.case-bar-fill.done { background: linear-gradient(90deg, var(--ok-dim), var(--ok)); }

/* ── stats ── */
.case-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 8px; margin-top: 14px;
}
.case-stat {
    background: var(--bg-void); border: 1px solid var(--border);
    border-radius: 8px; padding: 9px 11px; display: flex; flex-direction: column; gap: 3px;
}
.case-stat-k {
    font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em;
    color: var(--fg-muted); text-transform: uppercase;
}
.case-stat-v {
    font-family: var(--font-mono); font-size: 14.5px; color: var(--fg-primary);
    font-variant-numeric: tabular-nums;
}
.case-stat-hot { border-color: rgba(255, 176, 0, 0.35); background: var(--amber-soft); }
.case-stat-hot .case-stat-v { color: var(--amber); }
.case-stat-good { border-color: rgba(53, 201, 139, 0.3); }
.case-stat-good .case-stat-v { color: var(--ok); }
.case-stat-bad { border-color: rgba(255, 45, 85, 0.3); }
.case-stat-bad .case-stat-v { color: var(--danger); }

/* ── body: canvas + inspector ── */
.case-body {
    display: grid; grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px; margin-top: 16px;
}
.case-canvas-wrap {
    border: 1px solid var(--border); border-radius: 9px;
    background: var(--bg-void); overflow: hidden; display: flex; flex-direction: column;
}
.case-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 8px 11px; border-bottom: 1px solid var(--border);
    background: var(--bg-elevated); flex-wrap: wrap;
}
.case-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.case-key {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
    color: var(--fg-muted);
}
.case-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.case-dot-email { background: #58a6ff; }
.case-dot-pass { background: var(--accent); }
.case-dot-reuse { background: var(--amber); box-shadow: 0 0 0 2px rgba(255, 176, 0, 0.25); }
.case-dot-fail { background: var(--danger); }
.case-dot-queued { background: transparent; border: 1.5px dashed var(--fg-muted); }
.case-zoom { display: flex; gap: 5px; }
.case-zoom-btn {
    background: var(--bg-hover); color: var(--fg-secondary);
    border: 1px solid var(--border-bright); border-radius: 6px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
    padding: 4px 10px; cursor: pointer; transition: var(--transition);
}
.case-zoom-btn:hover { border-color: var(--accent); color: var(--fg-primary); }

.case-canvas {
    position: relative; flex: 1; min-height: 460px;
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.045) 1px, transparent 0) 0 0 / 26px 26px,
        var(--bg-void);
    overflow: hidden;
}
.case-graph {
    width: 100%; height: 100%; display: block; cursor: grab;
    transition: opacity 200ms ease;
}
.case-graph.case-grabbing { cursor: grabbing; }
.case-empty {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px; text-align: center;
    color: var(--fg-muted); padding: 24px; pointer-events: none;
}
.case-empty .empty-glyph { font-size: 30px; opacity: 0.35; }
.case-empty p { margin: 0; font-family: var(--font-mono); font-size: 11.5px; max-width: 320px; }

/* ── graph primitives ── */
.case-edge {
    fill: none; stroke: var(--border-bright); stroke-width: 1.3;
    vector-effect: non-scaling-stroke;
}
.case-edge-reuse {
    stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 5 4;
    opacity: 0.8;
}
.case-node { cursor: pointer; }
.case-node .case-dot-main {
    fill: var(--accent); stroke: var(--bg-void); stroke-width: 1.5;
    transition: fill 200ms ease;
}
.case-node-email .case-dot-main { fill: #58a6ff; }
.case-node-pass .case-dot-main { fill: var(--accent); }
.case-node-root .case-dot-main { fill: var(--accent2); }

.case-node.case-st-queued .case-dot-main { fill: transparent; stroke: var(--fg-muted); stroke-dasharray: 2.5 2.5; }
.case-node.case-st-running .case-dot-main { fill: var(--accent2); animation: case-pulse 1.15s ease-in-out infinite; }
.case-node.case-st-failed .case-dot-main { fill: var(--danger); opacity: 0.85; }
.case-node.case-st-cancelled .case-dot-main { fill: var(--bg-elevated); stroke: var(--fg-muted); opacity: 0.7; }

.case-ring-reuse {
    fill: none; stroke: var(--amber); stroke-width: 1.4; opacity: 0.85;
}
.case-ring-root { fill: none; stroke: var(--accent2); stroke-width: 1.2; opacity: 0.55; }

.case-label {
    font-family: var(--font-mono); font-size: 10.5px;
    fill: var(--fg-secondary); pointer-events: none; user-select: none;
}
.case-node-sel .case-label { fill: var(--fg-primary); }
.case-node-sel .case-dot-main { stroke: var(--fg-primary); stroke-width: 2; }

.case-node:hover .case-label { fill: var(--fg-primary); }

.case-halo {
    fill: none; stroke: var(--accent2); stroke-width: 1.5;
    transform-box: fill-box; transform-origin: center;
    animation: case-halo 1.5s ease-out 1;
    pointer-events: none;
}
.case-node-fresh .case-label { animation: case-fade 700ms ease-out 1; }

@keyframes case-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes case-halo {
    0% { transform: scale(0.35); opacity: 0.95; }
    100% { transform: scale(2.6); opacity: 0; }
}
@keyframes case-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ── inspector ── */
.case-detail {
    border: 1px solid var(--border); border-radius: 9px;
    background: var(--bg-void); overflow: auto; max-height: 620px;
    padding: 13px 14px;
}
.case-detail-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 9px; min-height: 220px; text-align: center; color: var(--fg-muted);
}
.case-detail-empty .empty-glyph { font-size: 24px; opacity: 0.32; }
.case-detail-empty p { margin: 0; font-family: var(--font-mono); font-size: 11px; }

.case-detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.case-type {
    font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.11em;
    padding: 2px 7px; border-radius: 4px; font-weight: 600;
}
.case-type-email { background: rgba(88, 166, 255, 0.13); color: #58a6ff; border: 1px solid rgba(88,166,255,0.3); }
.case-type-pass { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border-accent); }
.case-st {
    font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
    padding: 2px 7px; border-radius: 4px; color: var(--fg-muted);
    border: 1px solid var(--border-bright);
}
.case-st-completed { color: var(--ok); border-color: rgba(53,201,139,0.35); }
.case-st-running { color: var(--accent2); border-color: rgba(212,169,92,0.35); }
.case-st-failed { color: var(--danger); border-color: rgba(255,45,85,0.35); }

.case-detail-value {
    font-family: var(--font-mono); font-size: 13px; color: var(--fg-primary);
    word-break: break-all; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 7px; padding: 9px 11px;
    user-select: all;
}
.case-detail-actions { display: flex; gap: 6px; margin: 9px 0 12px; }
.case-detail-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 12px;
}
.case-detail-grid > div {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 7px; padding: 7px 9px; display: flex; flex-direction: column; gap: 2px;
}
.case-detail-grid span {
    font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; color: var(--fg-muted);
}
.case-detail-grid b {
    font-family: var(--font-mono); font-size: 13px; color: var(--fg-primary);
    font-variant-numeric: tabular-nums;
}
.case-detail-alert {
    background: var(--amber-soft); border: 1px solid rgba(255,176,0,0.3);
    border-radius: 7px; padding: 9px 11px; margin-bottom: 11px;
    font-family: var(--font-mono); font-size: 10.5px; color: var(--amber); line-height: 1.55;
}
.case-detail-err {
    background: var(--danger-soft); border: 1px solid rgba(255,45,85,0.28);
    border-radius: 7px; padding: 8px 10px; margin-bottom: 11px;
    font-family: var(--font-mono); font-size: 10px; color: var(--danger); word-break: break-word;
}
.case-detail-sec { margin-top: 12px; }
.case-detail-sec-t {
    display: block; font-family: var(--font-mono); font-size: 9px;
    letter-spacing: 0.13em; color: var(--fg-muted); margin-bottom: 6px;
}
.case-link {
    display: flex; align-items: center; gap: 7px; width: 100%;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 6px; padding: 6px 8px; margin-bottom: 4px;
    cursor: pointer; text-align: left; transition: var(--transition);
}
.case-link:hover { border-color: var(--border-bright); background: var(--bg-hover); }
.case-link-reuse { border-left: 2px solid var(--amber); }
.case-link-val {
    flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 11px;
    color: var(--fg-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.case-link-hop {
    font-family: var(--font-mono); font-size: 9px; color: var(--fg-muted);
}

.case-rec {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 7px; max-height: 190px; overflow: auto; padding: 5px 0;
}
.case-rec-row {
    font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-secondary);
    padding: 3px 10px; word-break: break-all; border-bottom: 1px solid rgba(26,32,41,0.55);
}
.case-rec-row:last-child { border-bottom: none; }
.case-rec-load, .case-rec-more {
    font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); padding: 5px 2px;
}

/* ── exports + findings ── */
.case-exports {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border);
}
.case-exports-label {
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--fg-muted);
}

.case-findings { margin-top: 16px; }
.case-findings-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 9px;
}
.case-findings-title {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.13em; color: var(--accent2);
}
.case-findings-tabs { display: flex; gap: 5px; }
.case-find-tab {
    background: var(--bg-elevated); border: 1px solid var(--border-bright);
    color: var(--fg-muted); border-radius: 5px; padding: 3px 9px;
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
    cursor: pointer; transition: var(--transition);
}
.case-find-tab:hover { color: var(--fg-secondary); }
.case-find-tab.active { color: var(--accent); border-color: var(--border-accent); background: var(--accent-soft); }

.case-findings-scroll {
    border: 1px solid var(--border); border-radius: 8px; overflow: auto; max-height: 340px;
}
.case-findings-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.case-findings-table th {
    position: sticky; top: 0; z-index: 1;
    background: var(--bg-elevated); color: var(--fg-muted);
    font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em;
    text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-weight: 600;
}
.case-findings-table th.num, .case-findings-table td.num { text-align: right; }
.case-findings-table td {
    padding: 7px 10px; border-bottom: 1px solid rgba(26,32,41,0.55);
    color: var(--fg-secondary); vertical-align: middle;
}
.case-findings-table tbody tr { cursor: pointer; transition: background var(--transition); }
.case-findings-table tbody tr:hover { background: var(--bg-hover); }
.case-row-active { background: var(--accent-soft); }
.case-hop { font-family: var(--font-mono); color: var(--fg-muted); }
.case-val {
    font-family: var(--font-mono); color: var(--fg-primary); font-size: 11.5px;
    max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.case-flag {
    display: inline-block; font-family: var(--font-mono); font-size: 8.5px;
    letter-spacing: 0.09em; padding: 2px 6px; border-radius: 4px; margin-right: 4px;
}
.case-flag-reuse { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(255,176,0,0.3); }
.case-flag-seed { background: rgba(212,169,92,0.1); color: var(--accent2); border: 1px solid rgba(212,169,92,0.3); }
.case-flag-fail { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(255,45,85,0.3); }
.case-flag-new { background: rgba(88,166,255,0.1); color: #58a6ff; border: 1px solid rgba(88,166,255,0.28); }
.case-flag-none { color: var(--fg-muted); }
.case-findings-more {
    font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); padding: 7px 2px;
}

/* ── responsive ── */
@media (max-width: 1100px) {
    .case-body { grid-template-columns: minmax(0, 1fr); }
    .case-detail { max-height: 420px; }
}
@media (max-width: 900px) {
    .case-controls { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(70px, 0.5fr)); }
    .case-buttons { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .case-panel { padding: 13px 12px 15px; }
    .case-controls { grid-template-columns: repeat(2, 1fr); }
    .case-field-seed { grid-column: 1 / -1; }
    .case-buttons { grid-column: 1 / -1; }
    .case-buttons .btn { flex: 1; }
    .case-canvas { min-height: 340px; }
    .case-val { max-width: 150px; }
    .case-legend { gap: 9px; }
}

/* ══ FLOW DIRECTION + SEED HUB (2026-10-12) ══════════════════════════════
   A case is a DIRECTED flow — seed -> password -> fresh email -> ... — so
   every edge carries an arrowhead and the seed is emphasised as the hub the
   whole case radiates from. #3d4a63 here must match FLOW_COLOR in
   investigation.js, and the reuse colour must match REUSE_COLOR. */
.case-edge { stroke: #3d4a63; stroke-width: 1.4; }
.case-edge-reuse { stroke: var(--amber); stroke-width: 1.7; }

.case-node-root { filter: drop-shadow(0 0 10px rgba(212, 169, 92, 0.5)); }
.case-node-root .case-ring-root { stroke-width: 1.6; opacity: 0.85; }

.case-node-reuse .case-dot-main { filter: drop-shadow(0 0 5px rgba(255, 176, 0, 0.55)); }
.case-node-email .case-dot-main { filter: drop-shadow(0 0 4px rgba(88, 166, 255, 0.45)); }
/* ══ INTERESTING INFO (2026-10-12) ═════════════════════════════════════════
 * The highlight panel under the case tree. Surfaces the investigator-grade
 * slices of a case — banks, crypto, payments, admin panels, government — out
 * of thousands of otherwise undifferentiated rows. Deliberately mirrors the
 * findings table below it so the two read as one continuous surface.
 */
.case-interest {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}
.case-interest-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.case-interest-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent2);
    white-space: nowrap;
}
.case-interest-sum {
    font-size: 11px;
    color: var(--fg-muted);
    min-width: 0;
}
.case-interest-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-left: auto;
}
.case-interest-tab {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: transparent;
    color: var(--fg-muted);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.case-interest-tab:hover { color: var(--fg-secondary); border-color: var(--border-bright); }
.case-interest-tab.active {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-soft);
}
.case-interest-scroll {
    max-height: 340px;
    overflow: auto;
}
.case-interest-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.case-interest-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 500;
    padding: 8px 10px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.case-interest-table th.num, .case-interest-table td.num { text-align: right; }
.case-interest-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--fg-secondary);
    vertical-align: middle;
}
.case-interest-table tbody tr:last-child td { border-bottom: none; }
.case-interest-table tbody tr:hover { background: var(--bg-hover); }
.case-interest-host, .case-interest-login, .case-interest-pass {
    font-family: var(--font-mono);
    font-size: 11.5px;
}
.case-interest-login { color: var(--fg-primary); }
.case-interest-pass { color: var(--fg-muted); }
.case-interest-cat {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.case-interest-note {
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--fg-muted);
}
.case-interest-empty {
    padding: 16px 12px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--fg-muted);
}

/* Per-category chip colours — one hue per bucket so a glance at the CATEGORY
 * column tells you what kind of asset a row is, without reading the label. */
.case-interest-cat-bank    { background: rgba(255,200, 87,0.13); color: #ffc857; border: 1px solid rgba(255,200, 87,0.30); }
.case-interest-cat-crypto  { background: rgba(247,147, 26,0.13); color: #f7931a; border: 1px solid rgba(247,147, 26,0.30); }
.case-interest-cat-payment { background: rgba( 46,196,182,0.13); color: #2ec4b6; border: 1px solid rgba( 46,196,182,0.30); }
.case-interest-cat-admin   { background: rgba(255, 92, 92,0.13); color: #ff5c5c; border: 1px solid rgba(255, 92, 92,0.30); }
.case-interest-cat-gov     { background: rgba(122,162,247,0.13); color: #7aa2f7; border: 1px solid rgba(122,162,247,0.30); }
.case-interest-cat-shop    { background: rgba(247,118,142,0.13); color: #f7768e; border: 1px solid rgba(247,118,142,0.30); }
.case-interest-cat-social  { background: rgba( 97,175,239,0.13); color: #61afef; border: 1px solid rgba( 97,175,239,0.30); }
.case-interest-cat-hosting { background: rgba(187,154,247,0.13); color: #bb9af7; border: 1px solid rgba(187,154,247,0.30); }
.case-interest-cat-mail    { background: rgba( 86,212,221,0.13); color: #56d4dd; border: 1px solid rgba( 86,212,221,0.30); }
.case-interest-cat-telco   { background: rgba(158,206,106,0.13); color: #9ece6a; border: 1px solid rgba(158,206,106,0.30); }
.case-interest-cat-game    { background: rgba(224,108,159,0.13); color: #e06c9f; border: 1px solid rgba(224,108,159,0.30); }
.case-interest-cat-edu     { background: rgba(192,160,128,0.13); color: #c0a080; border: 1px solid rgba(192,160,128,0.30); }

.image-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.image-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent2);
    white-space: nowrap;
}
.image-cap {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--fg-muted);
}

/* ── status line ── */
.image-status {
    font-family: var(--font-mono);
    font-size: 11.5px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--fg-secondary);
}
.image-status-busy  { color: var(--accent2); border-color: rgba(212,169,92,0.35); }
.image-status-ok    { color: var(--ok);      border-color: rgba(53,201,139,0.35); }
.image-status-error { color: var(--danger);  border-color: rgba(255,45,85,0.35); }
.image-status-info  { color: var(--fg-secondary); }
@media (max-width: 820px) { }

/* ── alerts: GPS, stripped EXIF, perceptual neighbours ── */
.image-alert {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--fg-secondary);
}
.image-alert a { color: #58a6ff; text-decoration: none; }
.image-alert a:hover { text-decoration: underline; }
.image-handoff-note { font-size: 11.5px; line-height: 1.6; color: var(--fg-muted); }

/* ── input bar ── */
.uname-panel { display: flex; flex-direction: column; gap: 14px; }

.uname-bar { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.uname-at {
    display: flex; align-items: center; justify-content: center;
    min-width: 34px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: 6px;
    background: var(--bg-elevated);
    font-family: var(--font-mono); font-size: 14px; color: var(--fg-muted);
}
.uname-input {
    flex: 1 1 260px; min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 6px;
    padding: 10px 12px;
    font-family: var(--font-mono); font-size: 12.5px;
    color: var(--fg-primary); outline: none;
    transition: border-color var(--transition), background var(--transition);
}
.uname-input::placeholder { color: var(--fg-muted); }
.uname-input:focus { border-color: var(--border-accent); background: var(--bg-elevated); }

/* ── result shell ── */
.uname-result { display: flex; flex-direction: column; gap: 12px; }

.uname-sum {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.uname-stat {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
    color: var(--fg-secondary);
    border: 1px solid var(--border); border-radius: 5px;
    padding: 4px 9px; background: var(--bg-card);
}
.uname-stat b { color: var(--fg-primary); font-weight: 700; }
.uname-stat.dim { color: var(--fg-muted); }

/* ── found, grouped by category ── */
.uname-found { display: flex; flex-direction: column; gap: 14px; }
.uname-cat { display: flex; flex-direction: column; gap: 6px; }
.uname-cat-head {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.1em; color: var(--accent2);
}
.uname-cat-n {
    font-size: 9.5px; color: var(--fg-muted);
    border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px;
}

.uname-hit {
    display: flex; align-items: baseline; gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--border); border-radius: 7px;
    background: var(--bg-card); text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}
.uname-hit:hover { border-color: var(--border-accent); background: var(--bg-hover); }
.uname-hit-site {
    flex: 0 0 auto; min-width: 112px;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.04em; color: var(--ok);
}
.uname-hit-url {
    flex: 1 1 auto; min-width: 0;
    font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uname-hit-go {
    flex: 0 0 auto;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.06em; color: var(--accent2);
}

/* ── could-not-answer / manual ── */
.uname-block { display: flex; flex-direction: column; gap: 6px; }
.uname-block-head {
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.09em; color: var(--fg-secondary);
}
.uname-block-head .dim { color: var(--fg-muted); letter-spacing: 0.03em; }

.uname-misses { display: flex; flex-wrap: wrap; gap: 6px; }
.uname-miss {
    display: inline-flex; align-items: baseline; gap: 7px;
    padding: 5px 9px;
    border: 1px solid var(--border); border-radius: 5px;
    background: var(--bg-card);
    font-family: var(--font-mono); font-size: 10.5px;
    color: var(--fg-secondary); text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}
.uname-miss:hover { border-color: var(--border-bright); color: var(--fg-primary); }
.uname-miss .dim { color: var(--fg-muted); }

/* ── narrow phones: let the URL take its own line ── */
@media (max-width: 640px) {
    .uname-hit { flex-wrap: wrap; }
    .uname-hit-site { min-width: 0; }
    .uname-hit-url { flex-basis: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   BLACKSEC v3.0 — "OBSIDIAN"
   ───────────────────────────────────────────────────────────
   Deep-black intelligence surface. Three signal colours, each
   with exactly one job:
     · CRIMSON  (#ff2e4d) — brand + the one primary action
     · PHOSPHOR (#2ff0a8) — live / healthy / verified
     · ICE      (#4fd8ff) — informational, secondary emphasis
     · GOLD     (#e8b25c) — the DEEP mode + tier accents
   Depth comes from layered gradients and hairline highlights
   rather than from lighter greys, so the surface stays black.

   This block is the LAST layer in the file: it only overrides
   values, never removes a rule. Every class above keeps its
   layout; only colour, depth, motion and finish change.
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ── Core surface: true black, layered ── */
    --bg-void: #000000;
    --bg-deep: #04050a;
    --bg-card: #080a11;
    --bg-elevated: #0e1119;
    --bg-hover: #151a26;

    --fg-primary: #f4f7fb;
    --fg-secondary: #9aa5b5;
    --fg-muted: #5c6675;

    /* ── Signal: crimson ── */
    --accent: #ff2e4d;
    --accent-dim: #c81f3a;
    --accent-glow: rgba(255, 46, 77, 0.22);
    --accent-soft: rgba(255, 46, 77, 0.055);
    --accent-line: rgba(255, 46, 77, 0.34);

    /* ── Signal: gold (DEEP mode, tiers) ── */
    --accent2: #e8b25c;
    --accent2-dim: #b98a3c;
    --accent2-soft: rgba(232, 178, 92, 0.08);

    /* ── Signal: ice (informational) ── */
    --ice: #4fd8ff;
    --ice-soft: rgba(79, 216, 255, 0.07);

    --ok: #2ff0a8;
    --ok-dim: #1fae79;
    --danger: #ff3b5c;
    --danger-dim: #c02040;
    --danger-soft: rgba(255, 59, 92, 0.06);
    --amber: #ffb020;
    --amber-soft: rgba(255, 176, 0, 0.07);

    --border: #151b26;
    --border-bright: #24303f;
    --border-accent: rgba(255, 46, 77, 0.34);

    /* Deeper, softer shadow — panels read as lifted, not outlined */
    --shadow-panel:
        0 1px 0 rgba(255, 255, 255, 0.028) inset,
        0 1px 1px rgba(0, 0, 0, 0.5),
        0 20px 48px -12px rgba(0, 0, 0, 0.7);
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);

    --glow-cyan: 0 0 20px rgba(255, 46, 77, 0.25);
    --glow-violet: 0 0 20px rgba(232, 178, 92, 0.22);
}

/* ═══════════ ATMOSPHERE ═══════════ */

/* Two blooms instead of one: crimson above, a cold ice wash at the
   bottom-right so the black never reads as flat grey. */
body::before {
    background:
        radial-gradient(ellipse 70% 45% at 15% -5%, rgba(255, 46, 77, 0.06), transparent 70%),
        radial-gradient(ellipse 55% 45% at 102% 108%, rgba(79, 216, 255, 0.035), transparent 72%);
}

/* Finer grid, drifting slowly — reads as a live surface, not wallpaper */
.grid-overlay {
    background-image:
        linear-gradient(rgba(255, 46, 77, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 46, 77, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 44px 44px, 44px 44px; }
}

/* Scanlines a touch finer + a slower crawl: less "old TV", more terminal */
.scanlines {
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.26) 0px,
        rgba(0, 0, 0, 0.26) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0.22;
}

/* ═══════════ SCROLLBAR / SELECTION ═══════════ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #232b38, #141a24);
    border: 2px solid #000;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #33404f, #1b222d); }
html { scrollbar-color: #232b38 #000; }
::selection { background: rgba(255, 46, 77, 0.3); color: #fff; }

/* ═══════════ TOPBAR ═══════════ */
.topbar {
    height: 56px;
    background: rgba(4, 5, 10, 0.8);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(255, 46, 77, 0.07), 0 14px 44px -14px rgba(0, 0, 0, 0.9);
}
.brand-name { text-shadow: 0 0 22px rgba(255, 46, 77, 0.35); }
.brand-ver { border-color: var(--border-bright); color: var(--fg-muted); background: rgba(255, 255, 255, 0.02); }

.nav-item { letter-spacing: 0.2em; }
.nav-item:hover { color: var(--fg-primary); background: var(--bg-hover); }
.nav-item.active {
    color: var(--accent);
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.14), rgba(255, 46, 77, 0.03));
}
.nav-item.active::after {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.clock { background: rgba(255, 255, 255, 0.02); border-color: var(--border-bright); }
.user-chip { background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--bg-card); }
.user-status { box-shadow: 0 0 10px var(--ok); }
.icon-btn:hover { color: var(--danger); border-color: var(--danger-dim); background: var(--danger-soft); }

/* ═══════════ HEADINGS ═══════════ */
.view-title {
    letter-spacing: 0.12em;
    text-shadow: 0 0 30px rgba(255, 46, 77, 0.18);
}
.stat-value { letter-spacing: 0.01em; text-shadow: 0 0 26px rgba(255, 255, 255, 0.07); }
.stat-value.accent { text-shadow: 0 0 26px rgba(255, 46, 77, 0.35); }
.stat-value.ok { text-shadow: 0 0 26px rgba(47, 240, 168, 0.3); }
.stat-value.danger { text-shadow: 0 0 26px rgba(255, 59, 92, 0.35); }

/* ═══════════ BUTTONS ═══════════ */
.btn {
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)) , var(--bg-card);
}
.btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)) , var(--bg-elevated);
    border-color: var(--fg-muted);
    color: var(--fg-primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.8);
}
.btn:active { transform: translateY(0); }

.btn-primary {
    border-color: rgba(255, 46, 77, 0.42);
    color: #ffd7dd;
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.18), rgba(255, 46, 77, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px -8px rgba(255, 46, 77, 0.5);
}
.btn-primary:hover {
    border-color: var(--accent);
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.3), rgba(255, 46, 77, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 26px rgba(255, 46, 77, 0.4);
}
.btn-danger {
    border-color: rgba(255, 59, 92, 0.4);
    color: var(--danger);
    background: linear-gradient(180deg, rgba(255, 59, 92, 0.14), rgba(255, 59, 92, 0.03));
}
.btn-danger:hover {
    border-color: var(--danger);
    color: #fff;
    box-shadow: 0 0 24px rgba(255, 59, 92, 0.35);
}
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-hover); }

/* ═══════════ FIELDS ═══════════ */
.admin-input, input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], select, textarea {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--border);
    border-radius: 3px;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.admin-input:hover, input[type="text"]:hover, input[type="password"]:hover,
input[type="email"]:hover, select:hover, textarea:hover { border-color: var(--border-bright); }
.admin-input:focus, input:focus, select:focus, textarea:focus {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 46, 77, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 46, 77, 0.09), 0 0 22px -6px rgba(255, 46, 77, 0.5);
}
.field label { color: var(--fg-secondary); }

/* ═══════════ PANELS ═══════════ */
.admin-card, .hud-panel, .stat-card, .results-panel, .plan-card, .feature-card, .search-console {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0) 42%) , var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-panel);
}
.admin-card-head, .hud-head {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    border-bottom-color: var(--border);
}

/* The hairline on top of a stat card becomes a real crimson signal edge */
.stat-card::before {
    height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 46, 77, 0.25) 35%, transparent 75%);
    box-shadow: 0 0 14px rgba(255, 46, 77, 0.4);
}

/* ═══════════ SEARCH TYPE TABS ═══════════ */
.search-type-tab {
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0) 60%) , var(--bg-card);
    border-color: var(--border);
    transition: transform var(--transition), border-color var(--transition),
                box-shadow var(--transition), background var(--transition);
}
.search-type-tab:hover {
    border-color: var(--border-bright);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.9);
}
.search-type-tab.active {
    border-color: rgba(255, 46, 77, 0.45);
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.13), rgba(255, 46, 77, 0.015) 70%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 -10px 30px -12px rgba(255, 46, 77, 0.55);
}
.search-type-tab.active::before {
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: 0 0 14px var(--accent-glow);
}
.search-type-tab.active .tab-icon { color: var(--accent); opacity: 1; }
.search-type-tab.active .tab-label { color: var(--fg-primary); }
.tab-cmd { color: var(--fg-muted); }
.search-type-tab.active .tab-cmd { color: var(--accent); opacity: 0.8; }

/* DEEP mode button keeps its gold identity, just cleaner */
.search-mode-btn { border-radius: 3px; background: var(--bg-card); }
.search-mode-btn.active {
    border-color: rgba(232, 178, 92, 0.55);
    background: linear-gradient(180deg, rgba(232, 178, 92, 0.16), rgba(232, 178, 92, 0.04));
    color: var(--accent2);
    box-shadow: 0 0 20px -4px rgba(232, 178, 92, 0.45);
}

/* ═══════════ SEARCH CONSOLE ═══════════ */
#query-input { background: rgba(0, 0, 0, 0.55); }
#query-input:focus {
    border-color: rgba(255, 46, 77, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 46, 77, 0.08), 0 0 26px -8px rgba(255, 46, 77, 0.6);
}
.console-prompt .prompt-sym, .console-prompt > span:first-child {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
}
.console-shortcuts span { color: var(--fg-muted); }

/* ═══════════ CHIPS / LEDS ═══════════ */
.tag { border-radius: 2px; background: rgba(255, 255, 255, 0.018); }
.tag-accent { background: var(--accent-soft); }
.led-ok { box-shadow: 0 0 9px var(--ok); }
.led-accent { box-shadow: 0 0 9px var(--accent); }
.led-danger { box-shadow: 0 0 9px var(--danger); }
.led-warn { box-shadow: 0 0 9px var(--amber); }
.user-status { box-shadow: 0 0 9px var(--ok); }

/* ═══════════ TABLES ═══════════ */
.results-table thead th {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.35));
    color: var(--fg-secondary);
    border-bottom-color: var(--border-bright);
}
.results-table tbody tr:hover { background: rgba(255, 46, 77, 0.045); }

/* ═══════════ MODALS ═══════════ */
.modal-overlay { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal, .modal-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 30%) , var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 5px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 40px 90px -30px rgba(0, 0, 0, 0.95);
}

/* ═══════════ FOOTER ═══════════ */
.footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(255, 46, 77, 0.02));
}

/* ═══════════ LANDING ═══════════ */
.hero-title, .landing-title {
    text-shadow: 0 0 60px rgba(255, 46, 77, 0.3), 0 0 18px rgba(255, 46, 77, 0.15);
}
.feature-card:hover, .plan-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 26px 60px -22px rgba(0, 0, 0, 0.95),
                0 0 0 1px rgba(255, 46, 77, 0.12);
}
.plan-card.featured, .plan-card.is-featured {
    border-color: rgba(255, 46, 77, 0.5);
    box-shadow: 0 0 40px -12px rgba(255, 46, 77, 0.45), var(--shadow-panel);
}

/* ═══════════ GATE (login / register) ═══════════ */
.gate-terminal {
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 50px 110px -40px rgba(0, 0, 0, 0.95),
                0 0 0 1px rgba(255, 46, 77, 0.08);
}
.gate-terminal-head { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)); }
.gate-dots i { box-shadow: 0 0 8px currentColor; }
.gate-logo-img { filter: drop-shadow(0 0 26px rgba(255, 46, 77, 0.5)); }
.logo-glitch { text-shadow: 0 0 28px rgba(255, 46, 77, 0.5); }

/* ═══════════ MOTION SAFETY ═══════════ */
@media (prefers-reduced-motion: reduce) {
    .grid-overlay, .scanlines, .noise, body::before { animation: none !important; }
    .btn:hover, .search-type-tab:hover { transform: none; }
}
/* ==== BLACKSEC OBSIDIAN THEME ====
   v3.1 — deep-black intelligence surface.

   Four signal colours, each with exactly one job:
     CRIMSON  #ff2e4d  brand, the primary action, active state
     GOLD     #e8b25c  DEEP mode + tier accents
     PHOSPHOR #2ff0a8  live / healthy / verified
     ICE      #4fd8ff  informational

   The previous surface was flat: page, card and border all sat within a few
   percent of the same black, so nothing read as an object. Depth here comes
   from three things instead of from lighter greys —
     1. a lifted card surface (a real gradient, not a flat fill),
     2. a 1px white top-highlight inside every panel,
     3. a deep, wide drop shadow underneath it.
   The page itself stays true black, so the panels float.

   This block is the LAST layer in the file. It only overrides values; it never
   removes a rule, so every existing layout (7 tabs, panels, case tree,
   username, modals, admin shell) keeps working.
   ==== */

:root {
    /* ── Page: true black ── */
    --bg-void: #000000;
    --bg-deep: #05070c;

    /* ── Surfaces: lifted, so panels read as objects on the black ── */
    --bg-card: #0b0f16;
    --bg-elevated: #131926;
    --bg-hover: #1b2231;

    --fg-primary: #f5f8fc;
    --fg-secondary: #a3aebd;
    --fg-muted: #616c7c;

    /* ── CRIMSON ── */
    --accent: #ff2e4d;
    --accent-dim: #c81f3a;
    --accent-glow: rgba(255, 46, 77, 0.28);
    --accent-soft: rgba(255, 46, 77, 0.07);
    --accent-line: rgba(255, 46, 77, 0.38);

    /* ── GOLD ── */
    --accent2: #e8b25c;
    --accent2-dim: #b98a3c;
    --accent2-soft: rgba(232, 178, 92, 0.09);

    /* ── ICE ── */
    --ice: #4fd8ff;
    --ice-soft: rgba(79, 216, 255, 0.08);

    --ok: #2ff0a8;
    --ok-dim: #1fae79;
    --danger: #ff3b5c;
    --danger-dim: #c02040;
    --danger-soft: rgba(255, 59, 92, 0.07);
    --amber: #ffb020;
    --amber-soft: rgba(255, 176, 0, 0.08);

    --border: #1d2531;
    --border-bright: #2e3b4d;
    --border-accent: rgba(255, 46, 77, 0.38);

    /* Panel depth: inner top highlight + deep float shadow */
    --shadow-panel:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 26px 52px -22px rgba(0, 0, 0, 0.95);
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);

    --glow-cyan: 0 0 22px rgba(255, 46, 77, 0.3);
    --glow-violet: 0 0 22px rgba(232, 178, 92, 0.26);
}

/* ═══════════════ ATMOSPHERE ═══════════════ */

/* Two blooms: crimson from above, a cold ice wash bottom-right, so the black
   never flattens into grey. */
body::before {
    background:
        radial-gradient(ellipse 70% 45% at 15% -5%, rgba(255, 46, 77, 0.07), transparent 70%),
        radial-gradient(ellipse 55% 45% at 102% 108%, rgba(79, 216, 255, 0.04), transparent 72%);
}

/* Finer grid, drifting slowly — a live surface, not wallpaper */
.grid-overlay {
    background-image:
        linear-gradient(rgba(255, 46, 77, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 46, 77, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 42px 42px, 42px 42px; }
}

/* Scanlines: finer and slower — terminal, not old television */
.scanlines {
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.26) 0px,
        rgba(0, 0, 0, 0.26) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0.2;
}

/* ═══════════════ SCROLLBAR / SELECTION ═══════════════ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2a3444, #161d28);
    border: 2px solid #000;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #3b4a5e, #1f2733); }
html { scrollbar-color: #2a3444 #000; }
::selection { background: rgba(255, 46, 77, 0.32); color: #fff; }

/* ═══════════════ TOPBAR ═══════════════ */
.topbar {
    height: 58px;
    background: rgba(3, 4, 8, 0.82);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(255, 46, 77, 0.09), 0 18px 48px -18px rgba(0, 0, 0, 0.95);
}
/* a thin crimson pulse riding the bottom edge of the bar */
.topbar::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 46, 77, 0.55), transparent);
    animation: topbarPulse 6s ease-in-out infinite;
}
@keyframes topbarPulse {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1; }
}
.brand-name { text-shadow: 0 0 24px rgba(255, 46, 77, 0.45); }
.brand-ver { background: rgba(255, 255, 255, 0.025); border-color: var(--border-bright); }

.nav-item { letter-spacing: 0.2em; }
.nav-item:hover { color: var(--fg-primary); background: var(--bg-hover); }
.nav-item.active {
    color: var(--accent);
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.16), rgba(255, 46, 77, 0.03));
}
.nav-item.active::after {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 14px var(--accent-glow);
}
.clock { background: rgba(255, 255, 255, 0.025); border-color: var(--border-bright); }
.user-chip {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)) , var(--bg-card);
    border-color: var(--border-bright);
}
.user-status { box-shadow: 0 0 10px var(--ok); }
.icon-btn:hover { color: var(--danger); border-color: var(--danger-dim); background: var(--danger-soft); }

/* ═══════════════ HEADINGS ═══════════════ */
.view-title {
    letter-spacing: 0.11em;
    text-shadow: 0 0 34px rgba(255, 46, 77, 0.22);
}
.view-sub { color: var(--fg-muted); }

/* ═══════════════ PANELS — the depth system ═══════════════ */
.admin-card, .hud-panel, .stat-card, .results-panel,
.plan-card, .feature-card, .search-console {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #0e1219, #090c12);
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: var(--shadow-panel);
}
.admin-card-head, .hud-head {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    border-bottom: 1px solid var(--border);
}

/* Stat cards: a crimson signal rail down the left edge + bigger readout */
.stat-card {
    border-radius: 5px;
    padding: 16px 18px 15px 19px;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(255, 46, 77, 0.15));
    box-shadow: 0 0 16px rgba(255, 46, 77, 0.5);
}
.stat-card::before {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 46, 77, 0.7), rgba(255, 46, 77, 0.15) 40%, transparent 80%);
}
.stat-value { font-size: 1.65rem; letter-spacing: 0; text-shadow: 0 0 30px rgba(255, 255, 255, 0.08); }
.stat-value.accent { text-shadow: 0 0 30px rgba(255, 46, 77, 0.4); }
.stat-value.ok     { text-shadow: 0 0 30px rgba(47, 240, 168, 0.35); }
.stat-value.danger { text-shadow: 0 0 30px rgba(255, 59, 92, 0.4); }
.stat-label { color: var(--fg-muted); }

/* ═══════════════ SEARCH TYPE TABS ═══════════════ */
.search-type-tabs { gap: 9px; }
.search-type-tab {
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 55%) , var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 14px 11px;
    transition: transform var(--transition), border-color var(--transition),
                box-shadow var(--transition), background var(--transition);
}
.search-type-tab:hover {
    border-color: var(--border-bright);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.95);
}
/* the icon becomes a real chip */
.tab-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-bright);
    color: var(--fg-secondary);
    font-size: 0.92rem; line-height: 1;
    margin-bottom: 3px;
    transition: all var(--transition);
}
.search-type-tab.active {
    border-color: rgba(255, 46, 77, 0.5);
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.17), rgba(255, 46, 77, 0.02) 72%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 0 34px -8px rgba(255, 46, 77, 0.6),
        0 18px 40px -18px rgba(0, 0, 0, 0.95);
}
.search-type-tab.active::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: 0 0 16px var(--accent-glow);
    border-radius: 6px 6px 0 0;
}
.search-type-tab.active .tab-icon {
    background: linear-gradient(180deg, #ff4761, #c81f3a);
    border-color: rgba(255, 46, 77, 0.9);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 46, 77, 0.6);
}
.search-type-tab.active .tab-label { color: #fff; }
.tab-label { letter-spacing: 0.04em; }
.tab-cmd { color: var(--fg-muted); }
.search-type-tab.active .tab-cmd { color: rgba(255, 255, 255, 0.6); }

/* DEEP mode keeps its gold identity, just cleaner */
.search-mode-btn { border-radius: 5px; background: var(--bg-card); }
.search-mode-btn:hover { border-color: var(--border-bright); }
.search-mode-btn.active {
    border-color: rgba(232, 178, 92, 0.6);
    background: linear-gradient(180deg, rgba(232, 178, 92, 0.2), rgba(232, 178, 92, 0.05));
    color: var(--accent2);
    box-shadow: 0 0 26px -6px rgba(232, 178, 92, 0.6);
}

/* ═══════════════ SEARCH CONSOLE ═══════════════ */
.search-console { border-radius: 5px; }
.console-prompt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) , var(--bg-deep); }
.console-prompt .prompt-sym, .console-prompt > span:first-child {
    color: var(--accent);
    text-shadow: 0 0 14px var(--accent-glow);
}
#query-input { background: rgba(0, 0, 0, 0.55); }
#query-input:focus {
    border-color: rgba(255, 46, 77, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 46, 77, 0.09), 0 0 30px -8px rgba(255, 46, 77, 0.7);
}
.console-shortcuts span { color: var(--fg-muted); }

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)) , var(--bg-card);
    border-color: var(--border-bright);
}
.btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0)) , var(--bg-elevated);
    border-color: var(--fg-muted);
    color: var(--fg-primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.9);
}
.btn:active { transform: translateY(0); }

.btn-primary {
    border-color: rgba(255, 46, 77, 0.45);
    color: #ffdbe1;
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.2), rgba(255, 46, 77, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 22px -10px rgba(255, 46, 77, 0.7);
}
.btn-primary:hover {
    border-color: var(--accent);
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.34), rgba(255, 46, 77, 0.13));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 30px rgba(255, 46, 77, 0.45);
}
.btn-danger {
    border-color: rgba(255, 59, 92, 0.45);
    color: var(--danger);
    background: linear-gradient(180deg, rgba(255, 59, 92, 0.16), rgba(255, 59, 92, 0.03));
}
.btn-danger:hover { border-color: var(--danger); color: #fff; box-shadow: 0 0 26px rgba(255, 59, 92, 0.4); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-hover); }

/* ═══════════════ FIELDS ═══════════════ */
.admin-input, input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], select, textarea {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--border);
    border-radius: 4px;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.admin-input:hover, input[type="text"]:hover, input[type="password"]:hover,
input[type="email"]:hover, select:hover, textarea:hover { border-color: var(--border-bright); }
.admin-input:focus, input:focus, select:focus, textarea:focus {
    background: rgba(0, 0, 0, 0.66);
    border-color: rgba(255, 46, 77, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 46, 77, 0.1), 0 0 26px -8px rgba(255, 46, 77, 0.6);
}
.field label { color: var(--fg-secondary); }

/* ═══════════════ CHIPS / LEDS ═══════════════ */
.tag { border-radius: 3px; background: rgba(255, 255, 255, 0.025); }
.tag-accent { background: var(--accent-soft); }
.led-ok     { box-shadow: 0 0 10px var(--ok); }
.led-accent { box-shadow: 0 0 10px var(--accent); }
.led-danger { box-shadow: 0 0 10px var(--danger); }
.led-warn   { box-shadow: 0 0 10px var(--amber); }

/* ═══════════════ TABLES ═══════════════ */
.results-table thead th {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.4));
    color: var(--fg-secondary);
    border-bottom: 1px solid var(--border-bright);
}
.results-table tbody tr { transition: background var(--transition); }
.results-table tbody tr:hover { background: rgba(255, 46, 77, 0.055); }

/* ═══════════════ MODALS ═══════════════ */
.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
.modal, .modal-box, .modal-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, #0e1219, #090c12);
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 50px 110px -40px rgba(0, 0, 0, 0.98);
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(255, 46, 77, 0.025));
}

/* ═══════════════ LANDING ═══════════════ */
.hero-badge {
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.14), rgba(255, 46, 77, 0.03));
    border: 1px solid rgba(255, 46, 77, 0.35);
    box-shadow: 0 0 30px -8px rgba(255, 46, 77, 0.55);
}
/* gradient wordmark with a real glow behind it */
.hero-title {
    background: linear-gradient(180deg, #ffffff 18%, #ffb3bf 58%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
    text-shadow: none;
    filter: drop-shadow(0 0 46px rgba(255, 46, 77, 0.4));
    letter-spacing: 0.02em;
}
.hero-sub { color: var(--fg-secondary); }
.hero-trust-item { border: 1px solid var(--border); background: rgba(255, 255, 255, 0.022); border-radius: 4px; }
.hero-trust-item b { color: var(--fg-primary); }
.hero-terminal {
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 40%) , var(--bg-card);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -34px rgba(0, 0, 0, 0.95);
}
.hero-terminal-head { background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); }

.feature-card, .plan-card { border-radius: 6px; }
.feature-card:hover, .plan-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 46, 77, 0.35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 64px -26px rgba(0, 0, 0, 0.98),
                0 0 40px -14px rgba(255, 46, 77, 0.5);
}
.plan-card.featured, .plan-card.is-featured {
    border-color: rgba(255, 46, 77, 0.55);
    box-shadow: 0 0 50px -14px rgba(255, 46, 77, 0.6), var(--shadow-panel);
}

/* ═══════════════ GATE (login / register) ═══════════════ */
.gate-terminal {
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 35%) , var(--bg-card);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset,
                0 60px 130px -50px rgba(0, 0, 0, 0.98),
                0 0 0 1px rgba(255, 46, 77, 0.1),
                0 0 70px -24px rgba(255, 46, 77, 0.45);
}
.gate-terminal-head { background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)); }
.gate-dots i { box-shadow: 0 0 9px currentColor; }
.gate-logo-img { filter: drop-shadow(0 0 30px rgba(255, 46, 77, 0.55)); }
.logo-glitch { text-shadow: 0 0 32px rgba(255, 46, 77, 0.55); }
.gate-secure { color: var(--ok); }

/* ═══════════════ REFINEMENTS ═══════════════ */

/* Hero wordmark — a punchy crimson gradient. The first attempt faded
   white→pink→red and read as washed-out; this keeps the hot end. */
.hero-title {
    background: linear-gradient(180deg, #ff7183 0%, #ff2e4d 52%, #b81833 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 54px rgba(255, 46, 77, 0.5));
    letter-spacing: 0.03em;
}

/* Section headings get a short crimson rule under them */
.landing-steps .view-title,
.landing-pricing .view-title,
.landing-faq .view-title {
    position: relative;
    padding-bottom: 13px;
    margin-bottom: 20px;
}
.landing-steps .view-title::after,
.landing-pricing .view-title::after,
.landing-faq .view-title::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 68px; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* Feature icons become chips instead of bare glyphs */
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.16), rgba(255, 46, 77, 0.03));
    border: 1px solid rgba(255, 46, 77, 0.32);
    color: var(--accent);
    font-size: 1rem; line-height: 1;
    margin-bottom: 12px;
    box-shadow: 0 0 24px -9px rgba(255, 46, 77, 0.7);
}
.feature-card h2, .feature-card h3 { letter-spacing: 0.08em; }

/* Live ticker — was a hot red band. Make it a quiet instrument strip. */
.ticker-wrap {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 55%) , var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: var(--shadow-panel);
}
.ticker-head { border-bottom: 1px solid var(--border); background: transparent; }
.ticker-item b { color: var(--accent); text-shadow: 0 0 16px rgba(255, 46, 77, 0.55); }
.ticker-label { color: var(--fg-secondary); }

/* ═══════════════ MOTION SAFETY ═══════════════ */
@media (prefers-reduced-motion: reduce) {
    .grid-overlay, .scanlines, .noise, body::before, .topbar::after { animation: none !important; }
    .btn:hover, .search-type-tab:hover, .feature-card:hover, .plan-card:hover { transform: none; }
}
/* ==== BLACKSEC HUD THEME ====
   v3.0 — instrument, not costume.

   v1 was dressed as a movie HUD. The operator's verdict: too sci-fi, and the
   motion was decoration rather than information. v2 keeps the dark instrument
   identity and deletes the costume.

   WHAT WENT
     · the drifting background grid, CRT scanlines and animated film grain
     · the infinite decorative loops — pulsing tab orbs, a pulsing topbar
       edge, blinking LEDs, a breathing grid
     · three hard-coded mini charts (an ECG trace, a tier meter and a 62%
       gauge) that drew the same invented shape on every account
     · blanket neon — up to five stacked glows on a single element

   WHAT REPLACED IT
     · one static hairline grid, a flat 1px border language, soft shadows
     · real numbers, drawn by assets/js/hud-viz.js from the API the app
       already exposes (stats -> 7-day series / totals / success rate;
       me -> quota usage / plan term). A card with no data draws nothing.
     · state-driven, expo-eased motion: count-up, draw-on sparkline, meters
       and rings that fill to their real value. All of it is skipped under
       `prefers-reduced-motion`.
     · tabular numerals, so a counting figure never shifts its own width

   v3 — LIVE, WITHOUT INVENTING ANYTHING (section 14)
     · the single-search console used to report progress as a rotating
       sentence with no indication of how far along it was. hud-live.js reads
       the state terminal.js already publishes (#meta-status, #meta-rate) and
       drives a rail: a state word, a track, and a trace of the last 24 REAL
       ln/s samples. The one loop it adds runs only while a job is genuinely
       in flight; a queued job is held, not moving, and gets a static track.
     · a finished search moves real counters, so the four telemetry cards are
       re-read when it lands instead of showing the state at page load.
     · one consistent press/hover response across every control, a finite
       settle for arriving result rows, tabular figures throughout.

   The palette is unchanged from v1, and the rule still holds: structural or
   informational is cyan; crimson is spent on exactly one armed control and
   one live edge per screen.

       CYAN      #4fd8ff   the brand — chrome, tabs, borders, links
       CRIMSON   #ff2e4d   ARMED only — the primary action, the live edge
       PHOSPHOR  #3ff08a   online / healthy / verified
       AMBER     #ffb020   DEEP mode, warnings

   Appended last in the file. It overrides values only and never removes a
   rule, so every existing layout (7 tabs, panels, case tree, username,
   modals, admin shell) keeps working untouched.
   ==== */

/* ═══════════════════ 1 · TOKENS ═══════════════════ */
:root {
    --bg-void: #02050a;
    --bg-deep: #060b14;

    --bg-card: #0a121f;
    --bg-elevated: #101b2c;
    --bg-hover: #16243a;

    --fg-primary: #e8f6ff;
    --fg-secondary: #9cb6cc;
    --fg-muted: #5b7488;

    /* ── CYAN — the brand ── */
    --accent: #4fd8ff;
    --accent-dim: #1f93bd;
    --accent-glow: rgba(79, 216, 255, 0.30);
    --accent-soft: rgba(79, 216, 255, 0.08);
    --accent-line: rgba(79, 216, 255, 0.40);

    /* ── CRIMSON — armed ── */
    --armed: #ff2e4d;
    --armed-dim: #c81f3a;
    --armed-glow: rgba(255, 46, 77, 0.45);
    --armed-soft: rgba(255, 46, 77, 0.10);

    --ok: #3ff08a;
    --ok-dim: #1fae79;

    --danger: #ff3b5c;
    --danger-dim: #c02040;
    --danger-soft: rgba(255, 59, 92, 0.08);

    --amber: #ffb020;
    --amber-soft: rgba(255, 176, 32, 0.10);

    /* DEEP mode keeps its amber identity */
    --accent2: #ffb020;
    --accent2-dim: #b98a3c;
    --accent2-soft: rgba(255, 176, 32, 0.10);

    --border: #16283d;
    --border-bright: #24425f;
    --border-accent: rgba(79, 216, 255, 0.42);

    --hud-hair: rgba(79, 216, 255, 0.16);
    --hud-hair-soft: rgba(79, 216, 255, 0.07);

    --glow-cyan: 0 0 22px rgba(79, 216, 255, 0.30);
    --glow-violet: 0 0 22px rgba(255, 176, 32, 0.24);

    --shadow-panel:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 24px 48px -24px rgba(0, 0, 0, 0.95);

    /* ── motion ──
       expo-out for anything that arrives, a touch of overshoot for presses.
       Every transition in this layer uses one of these, so the timing reads
       as one system instead of per-rule guesswork. */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --dur-fast: 130ms;
    --dur: 200ms;
    --dur-slow: 420ms;
    --transition: var(--dur) var(--ease-out-quint);
}

/* ═══════════════════ 2 · ATMOSPHERE ═══════════════════ */

/* Two cold blooms from above, one warm rim below — the page never reads flat */
body::before {
    background:
        radial-gradient(ellipse 72% 48% at 12% -6%, rgba(79, 216, 255, 0.11), transparent 68%),
        radial-gradient(ellipse 58% 42% at 104% 4%, rgba(79, 216, 255, 0.05), transparent 70%),
        radial-gradient(ellipse 62% 46% at 50% 112%, rgba(255, 46, 77, 0.05), transparent 72%);
}

/* A single STATIC hairline grid. It used to drift; motion that carries no
   information is exactly what made the first pass read as a movie prop. */
.grid-overlay {
    background-image:
        linear-gradient(rgba(79, 216, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 216, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: none;
    opacity: 0.55;
}

/* The CRT costume from the layers below — scanline stripes and animated film
   grain. Switched off rather than restyled: they were the single biggest
   source of the "fake" read. */
.scanlines,
.noise {
    display: none;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #02050a; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1d3550, #0d1826);
    border: 2px solid #02050a;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #2b5178, #14243a); }
html { scrollbar-color: #1d3550 #02050a; }
::selection { background: rgba(79, 216, 255, 0.30); color: #fff; }

/* ═══════════════════ 3 · TOPBAR ═══════════════════ */
.topbar {
    background: rgba(3, 7, 13, 0.86);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 var(--hud-hair), 0 18px 48px -18px rgba(0, 0, 0, 0.95);
}
/* a static hairline along the bottom edge — this used to pulse */
.topbar::after {
    background: linear-gradient(90deg, transparent, var(--hud-hair), transparent);
    animation: none;
    opacity: 1;
}
.brand-name { text-shadow: 0 0 18px rgba(79, 216, 255, 0.24); }
.brand-ver {
    background: rgba(79, 216, 255, 0.08);
    border-color: var(--border-accent);
    color: var(--accent);
}

.nav-item { letter-spacing: 0.2em; }
.nav-item:hover { color: var(--fg-primary); background: var(--bg-hover); }
.nav-item.active {
    color: var(--accent);
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.16), rgba(79, 216, 255, 0.02));
}
.nav-item.active::after {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px rgba(79, 216, 255, 0.4);
}
.clock {
    background: rgba(79, 216, 255, 0.05);
    border-color: var(--border-bright);
    color: var(--accent);
}
.user-chip {
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.06), rgba(255, 255, 255, 0)) , var(--bg-card);
    border-color: var(--border-bright);
}
.user-status { box-shadow: 0 0 8px var(--ok); }
.icon-btn:hover { color: var(--armed); border-color: var(--armed-dim); background: var(--armed-soft); }

/* ═══════════════════ 4 · HEADINGS ═══════════════════ */
.view-title {
    letter-spacing: 0.1em;
    text-shadow: none;
}
/* the console heading carries the reference's gradient rule: crimson into
   cyan, then out — the one place the two signal colours meet */
.search-hero .view-title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 10px;
}
.search-hero .view-title::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: min(100%, 430px); height: 2px;
    background: linear-gradient(90deg,
        var(--armed) 0%, var(--armed) 20%, var(--accent) 62%, transparent 100%);
    box-shadow: 0 0 10px rgba(79, 216, 255, 0.22);
}
.view-sub { color: var(--fg-muted); }

/* ═══════════════════ 5 · PANEL DEPTH ═══════════════════ */
.admin-card, .hud-panel, .stat-card, .results-panel,
.plan-card, .feature-card, .search-console {
    background:
        linear-gradient(180deg, rgba(79, 216, 255, 0.055), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, #0c1626, #070d17);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-panel);
}
.admin-card-head, .hud-head {
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.05), rgba(255, 255, 255, 0));
    border-bottom: 1px solid var(--border);
}

.stat-card { border-radius: 5px; padding: 16px 18px 15px 19px; overflow: hidden; }
.stat-card::after {
    background: linear-gradient(180deg, var(--accent), rgba(79, 216, 255, 0.08));
    box-shadow: 0 0 10px rgba(79, 216, 255, 0.35);
}
.stat-card::before {
    height: 1px;
    background: linear-gradient(90deg, rgba(79, 216, 255, 0.5), rgba(79, 216, 255, 0.08) 42%, transparent 82%);
}
/* No neon on the figures — tabular numerals instead. A number that counts up
   must not shift its own width while it runs. */
.stat-value {
    text-shadow: none;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}
.stat-value.accent, .stat-value.ok, .stat-value.danger { text-shadow: none; }
.stat-label { color: var(--fg-muted); }

/* ─── the four telemetry cards on the search console ───
   No corner ticks, no glowing orb, no decorative chart. Each card is a flat
   surface with a real chart slot along the bottom that assets/js/hud-viz.js
   fills — and leaves empty when there is no data to show. */
.terminal-stats { gap: 12px; }
.terminal-stats .stat-card.mini {
    position: relative;
    min-height: 112px;
    padding: 14px 16px 40px;
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(79, 216, 255, 0.03), rgba(255, 255, 255, 0) 46%),
        #08111c;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease-out-quint);
}
.terminal-stats .stat-card.mini:hover { border-color: var(--border-bright); }
.terminal-stats .stat-card.mini .stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--fg-muted);
}
.terminal-stats .stat-card.mini .stat-value {
    font-family: var(--font-mono);
    font-size: 1.12rem;
    letter-spacing: 0.02em;
    color: var(--fg-primary);
    margin-top: 4px;
}
/* the glyph: a small flat chip, not a glowing orb */
.terminal-stats .stat-card.mini .ts-icon {
    position: absolute;
    top: 12px; right: 12px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    font-size: 0.6rem; line-height: 1;
    color: var(--accent);
    background: rgba(79, 216, 255, 0.06);
    border: 1px solid rgba(79, 216, 255, 0.14);
    box-shadow: none;
}
/* Card 4's glyph doubles as the account LED. Its colour comes from the real
   status via hud-viz.js, and there is no blinking. */
.terminal-stats .stat-card.mini .ts-icon.ts-led {
    color: var(--fg-muted);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
.terminal-stats .stat-card.mini .ts-icon.ts-led.is-ok {
    color: var(--ok);
    background: rgba(63, 240, 138, 0.09);
    border-color: rgba(63, 240, 138, 0.28);
}
.terminal-stats .stat-card.mini .ts-icon.ts-led.is-bad {
    color: var(--danger);
    background: rgba(255, 59, 92, 0.09);
    border-color: rgba(255, 59, 92, 0.28);
}
/* The OBSIDIAN layer pins .stat-card::after to the top edge to draw its
   signal rail. These cards don't want it — and `top: auto` is load-bearing,
   because without resetting it the pseudo-element lands over the label. */
.terminal-stats .stat-card.mini::after {
    content: none;
    background: none;
    box-shadow: none;
}
.terminal-stats .stat-card.mini::before { opacity: 0.32; }

/* ── the real-chart slot, filled by assets/js/hud-viz.js ── */
.ts-viz {
    position: absolute;
    left: 16px; right: 16px; bottom: 12px;
    height: 16px;
    pointer-events: none;
}
.ts-svg { display: block; width: 100%; height: 100%; }

/* meter — a real ratio: quota used/limit, or the plan's remaining term */
.ts-viz-meter { bottom: 16px; height: 4px; }
.ts-meter {
    display: block; width: 100%; height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.ts-meter-fill {
    display: block; width: 100%; height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 900ms var(--ease-out-expo);
}
.ts-meter.is-warn .ts-meter-fill { background: linear-gradient(90deg, #b9812a, var(--amber)); }
.ts-meter.is-danger .ts-meter-fill { background: linear-gradient(90deg, var(--danger-dim), var(--danger)); }
.ts-meter.is-unlimited .ts-meter-fill { opacity: 0.4; }

/* sparkline — the real 7-day series, drawn on from left to right */
.ts-viz-spark { bottom: 10px; height: 26px; }
.ts-spark-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* the path is stretched to the card, so pin the stroke to real pixels */
    vector-effect: non-scaling-stroke;
}
.ts-spark-area { fill: rgba(79, 216, 255, 0.09); opacity: 0; transition: opacity 520ms ease; }
.ts-spark-area.is-drawn { opacity: 1; }

/* ring — the real success rate */
.ts-viz-ring {
    left: auto; right: 14px; bottom: 11px;
    width: 28px; height: 28px;
}
.ts-ring-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 3; }
.ts-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 900ms var(--ease-out-expo);
}
.ts-ring-fill.is-ok { stroke: var(--ok); }
.ts-ring-fill.is-warn { stroke: var(--amber); }

/* Loading: a real wait gets a real skeleton. The class is added by
   hud-viz.js only while the requests are actually in flight, so nothing
   shimmers at rest. */
.terminal-stats .stat-card.mini.is-loading .stat-value {
    color: transparent;
    max-width: calc(100% - 34px);
    border-radius: 3px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.11) 37%,
        rgba(255, 255, 255, 0.05) 63%);
    background-size: 400% 100%;
    animation: hudSkeleton 1.4s ease-in-out infinite;
}
@keyframes hudSkeleton {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ═══════════════════ 6 · SEARCH TYPE TABS ═══════════════════ */
.search-type-tabs { position: relative; gap: 10px; }
.search-type-tab {
    flex: 1 1 104px;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 14px 10px 12px;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(79, 216, 255, 0.05), rgba(255, 255, 255, 0) 56%),
        linear-gradient(180deg, #0b1524, #070d17);
    border: 1px solid var(--border);
    transition: transform var(--dur) var(--ease-out-quint),
                border-color var(--dur) var(--ease-out-quint),
                box-shadow var(--dur) var(--ease-out-quint),
                background var(--dur) var(--ease-out-quint);
}
.search-type-tab:hover {
    border-color: var(--border-bright);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.95), 0 0 16px -12px rgba(79, 216, 255, 0.6);
}
/* the icon is a flat disc — it used to be a glowing, pulsing orb */
.tab-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 0.92rem; line-height: 1;
    margin-bottom: 2px;
    color: #a9e7ff;
    background: rgba(79, 216, 255, 0.07);
    border: 1px solid rgba(79, 216, 255, 0.20);
    box-shadow: none;
    transition: color var(--dur) var(--ease-out-quint),
                background var(--dur) var(--ease-out-quint),
                border-color var(--dur) var(--ease-out-quint),
                transform var(--dur) var(--ease-spring);
}
.search-type-tab:hover .tab-icon { transform: translateY(-2px); }
.search-type-tab.active {
    border-color: rgba(79, 216, 255, 0.55);
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.16), rgba(79, 216, 255, 0.02) 74%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.07) inset,
        0 0 20px -10px rgba(79, 216, 255, 0.55),
        0 18px 40px -18px rgba(0, 0, 0, 0.95);
}
.search-type-tab.active::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--armed));
    box-shadow: 0 0 10px rgba(79, 216, 255, 0.4);
    border-radius: 6px 6px 0 0;
}
.search-type-tab.active .tab-icon {
    color: #04121c;
    background: radial-gradient(circle at 50% 32%, #b8f0ff, var(--accent) 72%);
    border-color: #9fe8ff;
    box-shadow: 0 0 18px -6px rgba(79, 216, 255, 0.8);
    animation: none;
}
.tab-label { letter-spacing: 0.06em; color: var(--fg-primary); }
.search-type-tab.active .tab-label { color: #fff; }
.tab-cmd { color: var(--fg-muted); }
.search-type-tab.active .tab-cmd { color: rgba(184, 240, 255, 0.75); }

/* mode toggles — small pills riding the bottom-right of the tab row. The base
   sheet sets `align-items: stretch` on both the bar and the group, which blows
   them up to full tab-card height; both have to be reset. */
.search-mode-group { gap: 8px; align-self: flex-end; align-items: center; }
.search-mode-btn {
    border-radius: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    letter-spacing: 0.1em;
    padding: 8px 14px;
}
.search-mode-btn:hover { border-color: var(--border-bright); }
.search-mode-btn.active {
    border-color: rgba(79, 216, 255, 0.55);
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.18), rgba(79, 216, 255, 0.04));
    color: var(--accent);
    box-shadow: 0 0 18px -8px rgba(79, 216, 255, 0.6);
}
.search-mode-btn[data-mode="deep"].active {
    border-color: rgba(255, 176, 32, 0.6);
    background: linear-gradient(180deg, rgba(255, 176, 32, 0.20), rgba(255, 176, 32, 0.05));
    color: var(--accent2);
    box-shadow: 0 0 18px -8px rgba(255, 176, 32, 0.55);
}

/* ═══════════════════ 7 · SEARCH CONSOLE ═══════════════════ */
.search-console {
    border-radius: 5px;
    border-color: var(--border);
    box-shadow: var(--shadow-panel), 0 0 0 1px rgba(79, 216, 255, 0.05);
}
.console-prompt {
    position: relative;
    gap: 10px;
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.05), rgba(255, 255, 255, 0)) , var(--bg-deep);
    border-bottom: 1px solid var(--border);
    transition: background var(--dur) var(--ease-out-quint),
                box-shadow var(--dur) var(--ease-out-quint);
}
/* THE live edge — the only crimson on an idle screen */
.console-prompt::after {
    content: '';
    position: absolute; right: 0; top: 6px; bottom: 6px; width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, var(--armed), transparent);
    box-shadow: 0 0 12px rgba(255, 46, 77, 0.4);
}
/* arming the console lights the whole prompt cyan */
.console-prompt:focus-within {
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.11), rgba(255, 255, 255, 0)) , var(--bg-deep);
    box-shadow: inset 0 0 0 1px rgba(79, 216, 255, 0.35), 0 0 26px -12px rgba(79, 216, 255, 0.6);
}
.console-prompt .prompt-sym,
.console-prompt .prompt-symbol,
.console-prompt > span:first-child {
    color: var(--accent);
    text-shadow: none;
}
.prompt-path {
    padding: 3px 9px;
    border: 1px solid rgba(79, 216, 255, 0.28);
    border-radius: 4px;
    background: rgba(79, 216, 255, 0.07);
    color: var(--accent);
}
#query-input, .query-input { background: transparent; color: var(--fg-primary); caret-color: var(--accent); }
#query-input:focus, .query-input:focus { border-color: transparent; box-shadow: none; background: transparent; }
.console-shortcuts span { color: var(--fg-muted); }

.console-actions { gap: 9px; background: rgba(255, 255, 255, 0.012); }

/* the status strip under the action row */
.console-meta {
    gap: 20px;
    padding: 10px 16px;
    border-top: 1px solid var(--hud-hair-soft);
    background: linear-gradient(90deg, rgba(79, 216, 255, 0.05), transparent 45%);
}
.meta-item { letter-spacing: 0.13em; }
.meta-item b { color: var(--accent); }
.meta-item.status b { color: var(--fg-secondary); }
.meta-item.status .led { box-shadow: 0 0 8px currentColor; }

/* ═══════════════════ 8 · BUTTONS / FIELDS ═══════════════════ */
.btn {
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.05), rgba(255, 255, 255, 0)) , var(--bg-card);
    border-color: var(--border-bright);
    letter-spacing: 0.09em;
    transition: transform var(--dur-fast) var(--ease-out-quint),
                background var(--dur) var(--ease-out-quint),
                border-color var(--dur) var(--ease-out-quint),
                color var(--dur) var(--ease-out-quint),
                box-shadow var(--dur) var(--ease-out-quint);
}
.btn:hover {
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.10), rgba(255, 255, 255, 0)) , var(--bg-elevated);
    border-color: var(--accent-dim);
    color: var(--fg-primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.9), 0 0 14px -10px rgba(79, 216, 255, 0.6);
}
.btn:active { transform: translateY(0) scale(0.985); }

/* the one armed control on the page */
.btn-primary {
    border-color: rgba(255, 46, 77, 0.55);
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.30), rgba(255, 46, 77, 0.10));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 24px -10px rgba(255, 46, 77, 0.85);
}
.btn-primary:hover {
    border-color: var(--armed);
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 46, 77, 0.46), rgba(255, 46, 77, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 26px rgba(255, 46, 77, 0.45);
}
.btn-danger {
    border-color: rgba(255, 59, 92, 0.5);
    color: #ffd6dd;
    background: linear-gradient(180deg, rgba(255, 59, 92, 0.20), rgba(255, 59, 92, 0.04));
}
.btn-danger:hover { border-color: var(--danger); color: #fff; box-shadow: 0 0 20px rgba(255, 59, 92, 0.38); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-hover); }

.admin-input, input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], select, textarea {
    background: rgba(2, 8, 14, 0.6);
    border-color: var(--border);
    border-radius: 4px;
    transition: border-color var(--dur) var(--ease-out-quint),
                box-shadow var(--dur) var(--ease-out-quint),
                background var(--dur) var(--ease-out-quint);
}
.admin-input:hover, input[type="text"]:hover, input[type="password"]:hover,
input[type="email"]:hover, select:hover, textarea:hover { border-color: var(--border-bright); }
.admin-input:focus, input:focus, select:focus, textarea:focus {
    background: rgba(2, 8, 14, 0.78);
    border-color: rgba(79, 216, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(79, 216, 255, 0.10), 0 0 20px -10px rgba(79, 216, 255, 0.6);
}
.field label { color: var(--fg-secondary); }

/* ═══════════════════ 9 · CHIPS / LEDS / TABLES / MODALS ═══════════════════ */
.tag { border-radius: 3px; background: rgba(79, 216, 255, 0.03); }
.tag-accent { background: var(--accent-soft); border-color: var(--border-accent); color: var(--accent); }
.led-ok     { box-shadow: 0 0 8px var(--ok); }
.led-accent { box-shadow: 0 0 8px var(--accent); }
.led-danger { box-shadow: 0 0 8px var(--danger); }
.led-warn   { box-shadow: 0 0 8px var(--amber); }

.results-table thead th {
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.08), rgba(0, 0, 0, 0.35));
    color: var(--fg-secondary);
    border-bottom: 1px solid var(--border-bright);
}
.results-table tbody tr { transition: background var(--dur-fast) var(--ease-out-quint); }
.results-table tbody tr:hover { background: rgba(79, 216, 255, 0.055); }

.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
.modal, .modal-box, .modal-card {
    background:
        linear-gradient(180deg, rgba(79, 216, 255, 0.05), rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, #0c1626, #070d17);
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 50px 110px -40px rgba(0, 0, 0, 0.98);
}

/* ═══════════════════ 10 · FOOTER + TELEMETRY STRIP ═══════════════════ */
.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(79, 216, 255, 0.03));
}

.hud-telemetry {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 18px 0 12px;
    /* right gutter reserved for the floating `.chat-fab`, which is fixed at
       right:22px / bottom:72px and therefore lands in this band once the page
       is scrolled to the bottom. The gutter keeps the two from colliding. */
    padding: 10px 194px 10px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(79, 216, 255, 0.05), rgba(255, 255, 255, 0) 60%),
        linear-gradient(180deg, #0a1220, #060b14);
    box-shadow: var(--shadow-panel);
}
.hud-tel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 12px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.hud-tel-label {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-muted);
}
.hud-tel-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(79, 216, 255, 0.5);
    animation: none;
    flex-shrink: 0;
}
.hud-tel-dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(63, 240, 138, 0.5); }
.hud-tel-value {
    display: block;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--fg-primary);
    text-shadow: none;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}
/* The strip's ECG trace and equaliser bars were decorative. Every figure in
   this strip is a real counter the app already maintains, so it does not need
   a fake waveform drawn underneath them. */
.hud-tel-chart { display: none; }

/* ─── the live-chat pill ───
   The reference's CHAT EN VIVO pill is the app's own floating `.chat-fab`
   (already fixed at right:22px / bottom:72px, which lands it level with this
   strip). It is restyled here rather than duplicated, so the strip and the
   button can never render the same label twice. */
.chat-fab {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.16), rgba(79, 216, 255, 0.03));
    border: 1px solid rgba(79, 216, 255, 0.5);
    color: var(--accent);
    box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.95), 0 0 16px -10px rgba(79, 216, 255, 0.7);
    animation: none;
    transition: color var(--dur) var(--ease-out-quint),
                background var(--dur) var(--ease-out-quint),
                border-color var(--dur) var(--ease-out-quint),
                box-shadow var(--dur) var(--ease-out-quint);
}
.chat-fab:hover {
    color: #fff;
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.30), rgba(79, 216, 255, 0.10));
    box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.95), 0 0 24px -6px rgba(79, 216, 255, 0.75);
}
.chat-fab-icon { color: inherit; }
/* The gutter above has to survive every width at which the chat pill still
   shows its label — the app only collapses it to a bare icon at 480px. */
@media (max-width: 900px) {
    .hud-telemetry { flex-wrap: wrap; }
    .hud-tel { flex: 1 1 calc(50% - 5px); }
}
@media (max-width: 480px) {
    .hud-telemetry { padding: 10px 72px 10px 10px; }
    .hud-tel { flex: 1 1 100%; }
}

/* ═══════════════════ 11 · LANDING / GATE (keep the family together) ═══════════════════ */
.hero-badge {
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.14), rgba(79, 216, 255, 0.03));
    border: 1px solid rgba(79, 216, 255, 0.35);
    box-shadow: 0 0 20px -10px rgba(79, 216, 255, 0.5);
    color: var(--accent);
}
.hero-title {
    background: linear-gradient(180deg, #ffffff 12%, #a9e7ff 56%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
    text-shadow: none;
    filter: drop-shadow(0 0 26px rgba(79, 216, 255, 0.26));
    letter-spacing: 0.03em;
}
.hero-sub { color: var(--fg-secondary); }
.hero-trust-item { border: 1px solid var(--border); background: rgba(79, 216, 255, 0.02); border-radius: 4px; }
.hero-trust-item b { color: var(--fg-primary); }
.hero-terminal {
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.03), rgba(255, 255, 255, 0) 40%) , var(--bg-card);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -34px rgba(0, 0, 0, 0.95);
}
.hero-terminal-head { background: linear-gradient(180deg, rgba(79, 216, 255, 0.06), rgba(255, 255, 255, 0)); }

.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.18), rgba(79, 216, 255, 0.03));
    border: 1px solid rgba(79, 216, 255, 0.32);
    color: var(--accent);
    font-size: 1rem; line-height: 1;
    margin-bottom: 12px;
    box-shadow: 0 0 16px -10px rgba(79, 216, 255, 0.7);
}
.feature-card, .plan-card {
    transition: transform var(--dur) var(--ease-out-quint),
                border-color var(--dur) var(--ease-out-quint),
                box-shadow var(--dur) var(--ease-out-quint);
}
.feature-card:hover, .plan-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 216, 255, 0.38);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 64px -26px rgba(0, 0, 0, 0.98),
                0 0 28px -16px rgba(79, 216, 255, 0.55);
}
.plan-card.featured, .plan-card.is-featured {
    border-color: rgba(79, 216, 255, 0.55);
    box-shadow: 0 0 34px -18px rgba(79, 216, 255, 0.6), var(--shadow-panel);
}
.landing-steps .view-title::after,
.landing-pricing .view-title::after,
.landing-faq .view-title::after {
    background: linear-gradient(90deg, var(--accent), transparent);
    box-shadow: 0 0 10px rgba(79, 216, 255, 0.25);
}
.ticker-wrap {
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.05), rgba(255, 255, 255, 0) 55%) , var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: var(--shadow-panel);
}
.ticker-head { border-bottom: 1px solid var(--border); background: transparent; }
.ticker-item b { color: var(--accent); text-shadow: none; }
.ticker-label { color: var(--fg-secondary); }

.gate-terminal {
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.035), rgba(255, 255, 255, 0) 35%) , var(--bg-card);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset,
                0 60px 130px -50px rgba(0, 0, 0, 0.98),
                0 0 0 1px rgba(79, 216, 255, 0.10),
                0 0 44px -28px rgba(79, 216, 255, 0.45);
}
.gate-terminal-head { background: linear-gradient(180deg, rgba(79, 216, 255, 0.055), rgba(255, 255, 255, 0)); }
.gate-dots i { box-shadow: 0 0 8px currentColor; }
.gate-logo-img { filter: drop-shadow(0 0 16px rgba(79, 216, 255, 0.35)); }
.logo-glitch { text-shadow: none; }
.gate-secure { color: var(--ok); }
/* On the login gate the armed action is AUTHENTICATE. "Create account" sits
   next to it as a peer link, so it drops to the cyan outline rather than being
   a second crimson trigger. Scoped to `.auth-link.btn-primary`, which exists
   only on that gate — every other auth page keeps its single crimson CTA. */
.auth-link.btn-primary {
    border-color: rgba(79, 216, 255, 0.5);
    color: var(--accent);
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.13), rgba(79, 216, 255, 0.02));
    box-shadow: none;
}
.auth-link.btn-primary:hover {
    border-color: var(--accent);
    color: #fff;
    background: linear-gradient(180deg, rgba(79, 216, 255, 0.26), rgba(79, 216, 255, 0.08));
    box-shadow: 0 0 20px -8px rgba(79, 216, 255, 0.6);
}

/* ═══════════════════ 12 · MOTION POLICY ═══════════════════ */
/* The layers below ship 39 endless animations between them: a pulsing primary
   button, a drifting grid, glowing borders, dancing emoji, a flickering
   stamp, a light sweeping across the whole page. That ambient motion is the
   single biggest reason the first pass read as a fake HUD — it is decoration
   that never stops and never says anything.

   So the policy is inverted here. Motion is OFF by default, and only the
   short list of animations that genuinely carry information keeps running:

       .console-cursor / .t-cur        a real terminal caret
       .spinner-ring, .btn.loading::after, .results-loading p::after
                                       a real wait
       .case-node.case-st-running .case-dot-main
                                       a node that is actually running
       .ticker-line                    the live activity marquee
       .stat-card.mini.is-loading .stat-value
                                       our own skeleton, while data is in flight
       .console-live[data-state="live"] .cl-fill
                                       a search that is actually running
                                       (section 14; unknown duration, so no
                                       honest determinate value exists)

   `!important` is deliberate: this is a policy rather than a value tweak, and
   it has to outrank the per-component declarations in the layers above. */
body::after, body::before, .activation-modal:hover .activation-title.glitch-title::after,
    .activation-modal:hover .activation-title.glitch-title::before, .activation-stamp, .brand-mark,
    .brand-name, .brand:hover .brand-name::after, .brand:hover .brand-name::before,
    .btn-primary, .chat-fab, .chat-fab-dot,
    .chat-fab-dot:not([hidden]), .emoji-lock, .emoji-skull,
    .emoji-skull::after, .gate-lock, .gate-logo-img,
    .gate-terminal:hover .logo-glitch::after, .gate-terminal:hover .logo-glitch::before, .grid-overlay,
    .hero-badge, .hero-terminal, .hero-terminal-body .t-ok,
    .hero-terminal::after, .hero-title, .hero-title .accent,
    .history-empty .empty-glyph, .imp-banner-icon, .led-live,
    .led-live::after, .meta-item.status.active, .myplan::after,
    .noise, .notice-bar, .notice-bar-icon,
    .plan-card.featured, .plan-card.featured .plan-name::before, .plan-card.plan-custom,
    .plan-crown.crown-gold, .plan-expiry-banner, .plan-expiry-icon,
    .plan-required-icon, .pw-toggle, .pw-toggle .emoji-eye,
    .ref-card-icon, .ref-card::before, .referral-invite-icon,
    .scanlines, .status-pill.active, .status-pill.unknown,
    .topbar::after, .typing i, .view-title .accent,
    .view-title::after {
    animation: none !important;
}

/* ═══════════════════ 13 · MOTION SAFETY ═══════════════════ */
/* v2 animates to inform, so honouring the OS preference is part of the
   design rather than an afterthought: with reduced motion every transition
   resolves instantly and every keyframe runs once. hud-viz.js checks the same
   query and draws its charts at their final value instead of animating. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .btn:hover, .search-type-tab:hover, .feature-card:hover,
    .plan-card:hover, .search-type-tab:hover .tab-icon { transform: none; }
}

/* ═══════════════════ 14 · LIVE STATE + CONTROL POLISH ═══════════════════ */
/* v3. The single-search console reports progress as a rotating sentence —
   "PROCESANDO", "EN COLA — ESPERANDO SESIÓN", "Huellando la infraestructura
   del objetivo…" — with nothing that says how far along it is. Every other
   number on the screen is honest; this closes that gap.

   The rail is built by assets/js/hud-live.js and does not exist until that
   script runs, so nothing here can leave an empty box behind. It reads only
   state terminal.js already maintains (#meta-status, #meta-rate) and adds:

     .cl-state   a short state word derived from the app's own status class
     .cl-track   a progress track — determinate for the bulk batch, whose
                 real settled/total ratio the app already computes, and
                 indeterminate for a single search, which has no honest
                 determinate value to show
     .cl-trace   the last 24 REAL ln/s samples, newest at the right edge

   The one loop this section adds is `liveSweep`, and it runs only while
   data-state="live" — only while a job is genuinely in flight. Queued is
   deliberately NOT live: a job held for the shared Telegram session is not
   progressing, so it gets a static striped track that says "held" rather
   than a sweep that would say "moving". Under reduced motion the sweep is
   replaced by a flat fill and the trace stops transitioning.

   The rest of the section is a pass over the controls themselves: one
   consistent press/hover response instead of the per-rule values the layers
   above accumulated, a finite settle for arriving result rows, and tabular
   figures so a live counter never shifts its own width while it ticks. */
.console-live {
    flex: 1 0 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--hud-hair-soft);
    min-height: 18px;
}
.cl-led {
    flex: 0 0 auto;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--fg-muted);
    transition: background var(--dur) var(--ease-out-quint),
                box-shadow var(--dur) var(--ease-out-quint);
}
.cl-state {
    flex: 0 0 auto;
    min-width: 76px;
    color: var(--fg-muted);
    letter-spacing: 0.14em;
    transition: color var(--dur) var(--ease-out-quint);
}
.cl-track {
    position: relative;
    /* Spans the row between the trace and the readout, so the four parts read
       as one instrument rather than four items with dead space between them. */
    flex: 1 1 auto;
    min-width: 56px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    overflow: hidden;
}
.cl-fill {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    display: block;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transform: translateX(-110%);
}
.cl-rate {
    flex: 0 0 auto;
    /* wide enough for "MÁX 1.150 ln/s" without the row reflowing */
    min-width: 104px;
    text-align: right;
    color: var(--fg-secondary);
}
.cl-trace {
    position: relative;
    flex: 0 0 auto;
    width: 72px; height: 16px;
}
/* a baseline, so an empty trace reads as an empty chart rather than a gap */
.cl-trace::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}
/* Bars sit at full height and are moved with scaleY, so each new sample is a
   transition rather than a re-render — the difference between a chart that
   glides and one that flickers. */
.cl-bar {
    fill: var(--accent);
    opacity: 0.2;
    transform-box: fill-box;
    transform-origin: bottom center;
    transform: scaleY(0);
    transition: transform var(--dur-slow) var(--ease-out-quint),
                opacity var(--dur) linear;
}

/* idle — nothing running: the trace dims out, the track stays empty */
.console-live[data-state="idle"] .cl-fill { opacity: 0; }

/* queued — held for the shared session. Held, not moving: no sweep. */
.console-live[data-state="queued"] .cl-led {
    background: var(--amber);
    box-shadow: 0 0 9px -2px var(--amber);
}
.console-live[data-state="queued"] .cl-state { color: var(--amber); }
.console-live[data-state="queued"] .cl-track {
    background-image: repeating-linear-gradient(115deg,
        rgba(255, 176, 32, 0.20) 0 6px,
        rgba(255, 176, 32, 0.03) 6px 12px);
}
.console-live[data-state="queued"] .cl-fill { opacity: 0; }

/* live — a job is genuinely in flight */
.console-live[data-state="live"] .cl-led {
    background: var(--accent);
    box-shadow: 0 0 9px -2px var(--accent);
}
.console-live[data-state="live"] .cl-state { color: var(--accent); }
.console-live[data-state="live"] .cl-bar { opacity: 0.62; }
.console-live[data-state="live"] .cl-fill {
    width: 34%;
    opacity: 1;
    animation: liveSweep 1.5s var(--ease-out-quint) infinite;
}
@keyframes liveSweep {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(300%); }
}

/* done / error — terminal states: the sweep stops and the fill holds */
.console-live[data-state="done"] .cl-led {
    background: var(--ok);
    box-shadow: 0 0 9px -2px var(--ok);
}
.console-live[data-state="done"] .cl-state { color: var(--ok); }
.console-live[data-state="done"] .cl-fill {
    width: 100%;
    opacity: 1;
    transform: none;
    animation: none;
    background: linear-gradient(90deg, rgba(63, 240, 138, 0.12), var(--ok));
}
.console-live[data-state="error"] .cl-led {
    background: var(--danger);
    box-shadow: 0 0 9px -2px var(--danger);
}
.console-live[data-state="error"] .cl-state { color: var(--danger); }
.console-live[data-state="error"] .cl-fill {
    width: 100%;
    opacity: 0.5;
    transform: none;
    animation: none;
    background: linear-gradient(90deg, transparent, var(--danger));
}

/* Narrow: the state word and the rail carry it. The trace is the widest
   element, and the peak readout is meaningless without the trace beside it —
   the meta row above still prints the live rate either way. */
@media (max-width: 720px) {
    .cl-trace { display: none; }
    .cl-rate { display: none; }
}

/* ── press + hover physics ────────────────────────────────────────────────
   One consistent response across every control: the layers above animate
   borders and glows instead, which reads as decoration. A short lift on
   hover and a 1px sink on press reads as a physical control. Focus rings are
   already global (`:focus-visible`, 2px accent) and are left alone. */
.btn, .search-type-tab, .nav-item, .chat-fab, .history-item, .plan-card {
    transition: transform var(--dur-fast) var(--ease-out-quint),
                background var(--dur) var(--ease-out-quint),
                border-color var(--dur) var(--ease-out-quint),
                color var(--dur) var(--ease-out-quint),
                box-shadow var(--dur) var(--ease-out-quint);
}
.btn:active:not(:disabled):not(.loading),
.search-type-tab:active,
.nav-item:active,
.chat-fab:active {
    transform: translateY(1px);
}
.btn:disabled { transform: none; }

/* ── arriving rows settle once ────────────────────────────────────────────
   Finite (a single 160ms run) and only for the first eight rows, so it reads
   as the table filling rather than as an entrance effect on every page. */
@keyframes rowSettle {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: none; }
}
.results-table tbody tr { animation: rowSettle 160ms var(--ease-out-quint) both; }
.results-table tbody tr:nth-child(n+9) { animation: none; }

/* ── figures ──────────────────────────────────────────────────────────────
   Tabular numerals on every counter, so a number that is ticking or being
   re-measured never shifts the layout around it. */
.meta-item b,
.stat-value,
.bulk-progress-count,
.bulk-summary b,
.results-footer b,
.threat-score-wrap b,
.cl-rate {
    font-variant-numeric: tabular-nums;
}

/* ── the bulk bar is real progress; let it glide between real values ── */
.bulk-bar-fill {
    transition: width var(--dur-slow) var(--ease-out-quint),
                background var(--dur) linear;
}

/* ── the caret follows the theme ── */
.query-input, .bulk-input, .admin-input, .country-filter { caret-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    /* an unknown-duration wait has no determinate value, but it does not need
       to move to say so — the state word and the colour already carry it */
    .console-live[data-state="live"] .cl-fill {
        animation: none !important;
        width: 100%;
        opacity: 0.35;
        transform: none;
    }
    .cl-bar { transition: none !important; }
    .results-table tbody tr { animation: none !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   SINDICATO POLISH PASS v5.3.0 — hero entrance, CTA shine,
   FAQ accordion, reveal stagger, parallax, form micro-polish
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. HERO ENTRANCE — staggered rise via @starting-style so the
       existing titleGlow / btnPulse / lineIn keyframes keep their
       `animation` property entirely to themselves ── */
.landing-hero .hero-badge,
.landing-hero .hero-title,
.landing-hero .hero-sub,
.landing-hero .hero-cta,
.landing-hero .hero-trust,
.landing-hero .hero-terminal {
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}
.landing-hero .hero-badge    { transition-delay: .05s; }
.landing-hero .hero-title    { transition-delay: .14s; }
.landing-hero .hero-sub      { transition-delay: .24s; }
.landing-hero .hero-cta      { transition-delay: .34s; }
.landing-hero .hero-trust    { transition-delay: .44s; }
.landing-hero .hero-terminal { transition-delay: .52s; }

@starting-style {
    .landing-hero .hero-badge,
    .landing-hero .hero-title,
    .landing-hero .hero-sub,
    .landing-hero .hero-cta,
    .landing-hero .hero-trust,
    .landing-hero .hero-terminal {
        opacity: 0;
        transform: translateY(22px);
    }
}

/* ── 2. CTA SHINE — light sweep across the hero primary button ── */
.hero-cta .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.hero-cta .btn-primary::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .30) 50%, transparent 68%);
    transform: translateX(-130%);
    animation: ctaShine 3.8s cubic-bezier(.4, 0, .2, 1) infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes ctaShine {
    0%   { transform: translateX(-130%); }
    55%  { transform: translateX(130%); }
    100% { transform: translateX(130%); }
}

/* ── 3. FAQ SMOOTH ACCORDION — native details/summary height
       interpolation (graceful no-op where unsupported) ── */
.landing-faq .faq-item { interpolate-size: allow-keywords; }
.landing-faq .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size .4s cubic-bezier(.4, 0, .2, 1),
                opacity .3s ease .06s,
                content-visibility .4s allow-discrete;
}
.landing-faq .faq-item[open]::details-content {
    block-size: auto;
    opacity: 1;
}

/* ── 4. REVEAL STAGGER — grid cards and FAQ rows cascade in ── */
.landing-features .feature-card.reveal:nth-child(2) { transition-delay: .08s; }
.landing-features .feature-card.reveal:nth-child(3) { transition-delay: .16s; }
.landing-features .feature-card.reveal:nth-child(4) { transition-delay: .24s; }
.landing-faq .faq-item.reveal:nth-child(3) { transition-delay: .06s; }
.landing-faq .faq-item.reveal:nth-child(4) { transition-delay: .12s; }
.landing-faq .faq-item.reveal:nth-child(5) { transition-delay: .18s; }
.landing-faq .faq-item.reveal:nth-child(6) { transition-delay: .24s; }
.landing-faq .faq-item.reveal:nth-child(7) { transition-delay: .30s; }

/* ── 5. FORM MICRO-POLISH — checkboxes/radios follow the accent ── */
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* ── 6. REDUCED MOTION — kill everything added by this pass ── */
@media (prefers-reduced-motion: reduce) {
    .landing-hero .hero-badge,
    .landing-hero .hero-title,
    .landing-hero .hero-sub,
    .landing-hero .hero-cta,
    .landing-hero .hero-trust,
    .landing-hero .hero-terminal {
        transition: none !important;
        transition-delay: 0s !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-cta .btn-primary::before { animation: none !important; opacity: 0; }
    .landing-faq .faq-item::details-content { transition: none; }
}

/* ── Plan crowns — MASTER (platinum) + UNLIMITED (royal), same glow
       family as .crown-gold (crownGlow keyframe) ── */
.plan-crown.crown-platinum { color: #f2f4f8; text-shadow: 0 0 10px rgba(242, 244, 248, 0.55); animation: crownGlow 2.4s ease-in-out infinite; }
.plan-crown.crown-royal    { color: #b47cff; text-shadow: 0 0 10px rgba(180, 124, 255, 0.55); animation: crownGlow 2.4s ease-in-out infinite; }
/* Cap upsell — plan results_cap clamped a bigger set; offer the upgrade */
.cap-upsell {
    display: flex; align-items: center; gap: 12px;
    margin: 12px 0 0; padding: 12px 16px;
    border: 1px solid rgba(255, 196, 0, 0.35);
    border-left: 3px solid #ffc400;
    background: linear-gradient(90deg, rgba(255, 196, 0, 0.08), rgba(255, 196, 0, 0.02));
    border-radius: 8px;
}
.cap-upsell[hidden] { display: none; }
.cap-upsell-lock { font-size: 20px; line-height: 1; }
.cap-upsell-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cap-upsell-title { color: #ffd45c; font-size: 13px; letter-spacing: 0.02em; }
.cap-upsell-sub { color: #b9a37a; font-size: 12px; }
