/* =========================================================
   Malware Analysis Platform — Login
   Ultra 2026 redesign (Joe Sandbox / ANY.RUN / Hybrid Analysis tier)
   Palette dark + alert red, accent amber, success teal
   ========================================================= */

:root {
    --bg: #0a0c14;
    --bg-2: #07090f;
    --surface: #141822;
    --surface-2: #1a1f2b;
    --surface-3: #212735;
    --border: #262c3a;
    --border-strong: #3a4152;
    --text: #e6edf3;
    --text-dim: #8d96a0;
    --muted: #6a7381;
    --primary: #dc2626;          /* alert red */
    --primary-hover: #ef4444;
    --primary-dim: #991b1b;
    --accent: #f59e0b;           /* amber/orange */
    --accent-hover: #fbbf24;
    --success: #10b981;          /* teal */
    --info: #38bdf8;
    --warn: #eab308;

    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}
a { color: var(--info); text-decoration: none; transition: color .15s; }
a:hover { color: #7dd3fc; text-decoration: underline; }

/* ===== Background layers ===== */
.bg-fx {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(1100px 650px at 15% 12%, rgba(245, 158, 11, 0.07), transparent 60%),
        radial-gradient(950px 520px at 88% 88%, rgba(220, 38, 38, 0.10), transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    opacity: 0.55;
}
.bg-scan {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(245,158,11,0.025) 50%, transparent 100%);
    animation: bgScan 9s linear infinite;
    will-change: transform;
}
@keyframes bgScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ===== Top warning strip ===== */
.warn-strip {
    position: fixed; top: 0; left: 0; right: 0; z-index: 30;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.22), rgba(245, 158, 11, 0.10) 50%, rgba(220, 38, 38, 0.22));
    border-bottom: 1px solid rgba(220, 38, 38, 0.5);
    color: #ffd7d5;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 8px 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.warn-strip .sev {
    display: inline-flex; align-items: center; gap: 8px;
    color: #ffb4ab; font-weight: 700;
}
.warn-strip .sev::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 10px var(--primary);
    animation: pulseDot 1.8s ease-in-out infinite;
}
.warn-strip .dot-sep { color: rgba(255, 215, 213, 0.35); margin: 0 4px; }
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.25); }
}

/* ===== Layout shell ===== */
.shell {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    padding-top: 36px;
}

/* ===== LEFT visual panel (60%) ===== */
.panel {
    position: relative;
    padding: 52px 60px 44px;
    display: flex; flex-direction: column;
    border-right: 1px solid var(--border);
    overflow: hidden;
}
.panel::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(620px 320px at 18% 28%, rgba(245,158,11,0.12), transparent 60%),
        radial-gradient(520px 280px at 82% 82%, rgba(220,38,38,0.10), transparent 60%);
    pointer-events: none;
}

/* Brand */
.brand {
    display: flex; align-items: center; gap: 14px;
    position: relative; z-index: 2;
}
.brand-mark {
    position: relative;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(220,38,38,0.18), rgba(245,158,11,0.10));
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(245,158,11,0.12), 0 8px 24px rgba(220,38,38,0.25);
}
.brand-mark svg { width: 26px; height: 26px; position: relative; z-index: 2; }
.brand-mark .pulse-ring {
    position: absolute; inset: -4px;
    border-radius: 14px;
    border: 1.5px solid rgba(245, 158, 11, 0.6);
    opacity: 0;
    animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
    0% { opacity: 0.8; transform: scale(0.9); }
    80%, 100% { opacity: 0; transform: scale(1.35); }
}
.brand-text strong {
    font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
    display: block; color: var(--text);
}
.brand-text small {
    font-family: var(--mono);
    font-size: 10.5px; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.14em;
}

/* Intro block */
.intro {
    position: relative; z-index: 2;
    margin-top: 52px;
    max-width: 560px;
}
.intro .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 11px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    color: var(--success);
    font-family: var(--mono);
    font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.intro .eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--success); box-shadow: 0 0 8px var(--success);
}
.intro h1 {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700; line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 18px 0 14px;
    color: var(--text);
}
.intro h1 .hl {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(220, 38, 38, 0.30);
}
.intro p.lead {
    font-size: 15px;
    color: var(--text-dim);
    max-width: 520px;
    margin-bottom: 8px;
}

/* Hex dump box */
.hexbox {
    position: relative; z-index: 2;
    margin-top: 28px;
    background: rgba(20, 24, 34, 0.75);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 600px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hexbox-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
}
.hexbox-head .dots { display: inline-flex; gap: 6px; }
.hexbox-head .dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: #3a3f47;
}
.hexbox-head .dots span:nth-child(1) { background: #ff5f57; }
.hexbox-head .dots span:nth-child(2) { background: #febc2e; }
.hexbox-head .dots span:nth-child(3) { background: #28c840; }
.hexbox-head .tag { color: var(--accent); font-weight: 600; }
.hexbox-head .ro {
    color: var(--primary); letter-spacing: 0.08em; font-weight: 700;
}

.hexbox-body {
    padding: 14px 16px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.85;
    color: #c9d1d9;
    white-space: pre;
    overflow: hidden;
    max-height: 220px;
    position: relative;
}
.hexbox-body::after {
    /* Subtle fade top/bottom + scan line effect */
    content: "";
    position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(20,24,34,0.6), transparent 20%, transparent 80%, rgba(20,24,34,0.6));
}
.hex-row {
    animation: hexStream 14s linear infinite;
    will-change: transform, opacity;
}
.hex-row:nth-child(1)  { animation-delay: 0s; }
.hex-row:nth-child(2)  { animation-delay: -1.4s; }
.hex-row:nth-child(3)  { animation-delay: -2.8s; }
.hex-row:nth-child(4)  { animation-delay: -4.2s; }
.hex-row:nth-child(5)  { animation-delay: -5.6s; }
.hex-row:nth-child(6)  { animation-delay: -7s; }
.hex-row:nth-child(7)  { animation-delay: -8.4s; }
.hex-row:nth-child(8)  { animation-delay: -9.8s; }
.hex-row:nth-child(9)  { animation-delay: -11.2s; }
.hex-row:nth-child(10) { animation-delay: -12.6s; }
.hex-row:nth-child(11) { animation-delay: -14s; }
@keyframes hexStream {
    0%   { transform: translateY(8px); opacity: 0; }
    6%   { opacity: 0.9; }
    92%  { opacity: 0.9; }
    100% { transform: translateY(-100%); opacity: 0; }
}
.hexbox-body .off  { color: var(--muted); }
.hexbox-body .hl-r { color: var(--primary); font-weight: 700; }
.hexbox-body .hl-b { color: var(--info); font-weight: 700; }
.hexbox-body .hl-g { color: var(--success); font-weight: 700; }
.hexbox-body .hl-a { color: var(--accent); font-weight: 700; }
.hexbox-body .cursor::after {
    content: "_"; color: var(--accent);
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hexbox-foot {
    display: flex; flex-wrap: wrap; gap: 14px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hexbox-foot .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.hexbox-foot .dot.ok { background: var(--success); box-shadow: 0 0 6px var(--success); }
.hexbox-foot .dot.warn { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.hexbox-foot .tag-mono { margin-left: auto; color: var(--muted); text-transform: none; letter-spacing: 0.04em; }
.hexbox-foot .hl-g { color: var(--success); font-weight: 600; }

/* Capabilities */
.caps {
    position: relative; z-index: 2;
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 600px;
}
.cap {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 13px;
    background: rgba(20, 24, 34, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12.5px;
    color: var(--text-dim);
    transition: border-color .15s, background .15s, transform .15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.cap:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(26, 31, 43, 0.8);
    transform: translateY(-1px);
}
.cap .ico {
    flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 7px;
    background: rgba(245, 158, 11, 0.10);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.cap .ico svg { width: 14px; height: 14px; }
.cap strong { display: block; color: var(--text); font-weight: 600; font-size: 12.5px; margin-bottom: 2px; }
.cap span { font-size: 11.5px; color: var(--text-dim); }

/* Stats badges */
.stats {
    position: relative; z-index: 2;
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 600px;
}
.stat {
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(20, 24, 34, 0.9), rgba(20, 24, 34, 0.5));
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; flex-direction: column; gap: 2px;
    transition: border-color .15s;
}
.stat:hover { border-color: rgba(245, 158, 11, 0.35); }
.stat .num {
    font-family: var(--mono);
    font-size: 20px; font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.stat .lbl {
    font-family: var(--mono);
    font-size: 10px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.09em;
}

/* ===== RIGHT form panel (40%) with glassmorphism ===== */
.auth-wrap {
    padding: 40px 48px;
    display: flex; align-items: center; justify-content: center;
}
.auth-card {
    width: 100%; max-width: 430px;
    background: linear-gradient(180deg, rgba(20, 24, 34, 0.78), rgba(20, 24, 34, 0.62));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 34px 30px 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    isolation: isolate;
}
/* gradient border red -> orange with pseudo */
.auth-card .grad-border {
    position: absolute; inset: -1px; z-index: -1;
    border-radius: calc(var(--radius) + 1px);
    padding: 1px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 60%, rgba(220,38,38,0.2) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.auth-card::before {
    content: "";
    position: absolute; top: 0; left: 18px; right: 18px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    border-radius: 2px;
    filter: blur(0.3px);
}

.auth-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
}
.auth-head .icn {
    width: 42px; height: 42px; border-radius: 11px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(220, 38, 38, 0.45);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-hover);
}
.auth-head .icn svg { width: 19px; height: 19px; }
.auth-head h2 {
    font-size: 17px; font-weight: 700; color: var(--text);
    letter-spacing: -0.01em;
}
.auth-head p {
    font-size: 12.5px; color: var(--text-dim);
    margin-top: 2px;
}

.status-row {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-dim);
}
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px;
    background: rgba(10, 12, 20, 0.7);
    border: 1px solid var(--border);
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}
.chip .d { width: 6px; height: 6px; border-radius: 50%; }
.chip.ok .d    { background: var(--success); box-shadow: 0 0 6px var(--success); }
.chip.tls .d   { background: var(--info);    box-shadow: 0 0 6px var(--info); }
.chip.csrf .d  { background: var(--warn);    box-shadow: 0 0 6px var(--warn); }

.alert-err {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
    background: rgba(220, 38, 38, 0.10);
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    font-size: 13px;
    color: #ffb4ab;
}
.alert-err svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--primary-hover); }

.field { margin-bottom: 14px; }
.field label {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--mono);
    font-size: 10.5px; font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 7px;
}
.field .hint { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 10.5px; font-weight: 500; }

.input { position: relative; }
.input > svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; color: var(--muted);
    pointer-events: none;
    transition: color .15s;
}
.input input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: var(--sans);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    min-height: 44px;
}
.input input::placeholder { color: var(--muted); }
.input input:hover { border-color: var(--border-strong); }
.input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22), 0 0 18px rgba(220, 38, 38, 0.15);
    background: #05060b;
}
.input:focus-within > svg { color: var(--primary-hover); }

.toggle-pw {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 6px;
    background: transparent;
    border: 0;
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.toggle-pw:hover { color: var(--accent); background: rgba(245, 158, 11, 0.08); }
.toggle-pw:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}
.toggle-pw svg { width: 16px; height: 16px; }
.toggle-pw.on { color: var(--accent); }

.row {
    display: flex; align-items: center; justify-content: space-between;
    margin: 6px 0 18px;
    font-size: 12.5px;
    color: var(--text-dim);
    gap: 10px;
    flex-wrap: wrap;
}
.row .check {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    user-select: none;
}
.row input[type="checkbox"] {
    appearance: none; width: 14px; height: 14px;
    border: 1px solid var(--border-strong); border-radius: 3px;
    background: var(--bg-2); cursor: pointer;
    display: inline-grid; place-content: center;
    flex-shrink: 0;
}
.row input[type="checkbox"]:checked {
    background: var(--primary); border-color: var(--primary);
}
.row input[type="checkbox"]:checked::after {
    content: ""; width: 7px; height: 4px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}
.row input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35);
}
.row .hash-ph {
    font-family: var(--mono); font-size: 11px; color: var(--muted);
    letter-spacing: 0.02em;
}

/* Primary button */
.btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dim));
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    font-size: 14px; font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .15s, transform .05s, box-shadow .15s, filter .15s;
    letter-spacing: 0.01em;
    min-height: 46px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35), inset 0 1px 0 rgba(255,255,255,0.12);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform .6s ease;
    pointer-events: none;
}
.btn:hover {
    background: linear-gradient(180deg, var(--primary-hover), var(--primary));
    box-shadow: 0 6px 22px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255,255,255,0.18);
    filter: brightness(1.02);
}
.btn:hover::before { transform: translateX(100%); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.55), 0 4px 14px rgba(220, 38, 38, 0.35);
}
.btn svg { width: 15px; height: 15px; }

.divider {
    display: flex; align-items: center; gap: 10px;
    margin: 18px 0;
    color: var(--muted);
    font-family: var(--mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.15em;
}
.divider::before, .divider::after {
    content: ""; flex: 1; height: 1px; background: var(--border);
}

.foot-links {
    display: flex; flex-direction: column; gap: 4px;
    text-align: center;
    font-size: 13px; color: var(--text-dim);
}
.foot-links a { font-weight: 500; color: var(--accent); }
.foot-links a:hover { color: var(--accent-hover); }

.card-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.05em;
}

.legal {
    position: fixed; bottom: 14px; left: 0; right: 0;
    text-align: center;
    font-family: var(--mono); font-size: 10.5px;
    color: var(--muted); letter-spacing: 0.06em;
    z-index: 5;
    pointer-events: none;
}
.legal a { pointer-events: auto; color: var(--text-dim); }
.legal a:hover { color: var(--accent); }

/* ===== Cookie consent floating icon ===== */
.cab-wrap {
    position: fixed; bottom: 18px; right: 18px;
    z-index: 999999;
    font-family: var(--sans);
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.cab-wrap.cab-show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cab-icon-btn {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    transition: all .15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.cab-icon-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}
.cab-icon-btn svg { width: 16px; height: 16px; }
.cab-pop {
    position: absolute;
    bottom: calc(100% + 10px); right: 0;
    min-width: 240px; max-width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    color: var(--text-dim);
    font-size: 12px; line-height: 1.5;
    opacity: 0; transform: translateY(6px) scale(0.96); transform-origin: bottom right;
    transition: all .18s ease;
    pointer-events: none;
}
.cab-wrap.cab-open .cab-pop { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cab-pop-title { color: var(--text); font-weight: 600; font-size: 12.5px; margin-bottom: 4px; }
.cab-pop-text { margin-bottom: 10px; }
.cab-pop-text a { color: var(--accent); text-decoration: none; }
.cab-pop-text a:hover { text-decoration: underline; }
.cab-pop-btn {
    width: 100%; padding: 8px 12px;
    border-radius: 6px; border: 1px solid var(--primary-dim);
    font-weight: 600; font-size: 12px; cursor: pointer;
    font-family: inherit;
    background: var(--primary); color: #fff;
    transition: background .15s;
}
.cab-pop-btn:hover { background: var(--primary-hover); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .shell { grid-template-columns: 1fr; padding-top: 42px; }
    .panel {
        padding: 36px 28px 22px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .intro { margin-top: 28px; }
    .auth-wrap { padding: 28px 20px 90px; }
    .caps { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .panel { padding: 26px 18px 18px; }
    .intro h1 { font-size: clamp(24px, 7vw, 30px); }
    .intro p.lead { font-size: 14px; }
    .hexbox-body { font-size: 11px; }
    .stats { grid-template-columns: 1fr 1fr 1fr; }
    .stat { padding: 10px 11px; }
    .stat .num { font-size: 17px; }
    .caps { grid-template-columns: 1fr; }
    .auth-card { padding: 26px 20px; border-radius: 12px; }
    .warn-strip { font-size: 10px; padding: 7px 10px; }
    .warn-strip .detail { display: none; }
}
@media (max-width: 420px) {
    .panel { padding: 22px 14px 16px; }
    .hexbox-foot { gap: 8px; font-size: 9.5px; padding: 8px 10px; }
    .hexbox-foot .tag-mono { display: none; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .warn-strip .sev::before,
    .hexbox-body .cursor::after,
    .hex-row,
    .bg-scan,
    .brand-mark .pulse-ring,
    .btn::before {
        animation: none !important;
        transform: none !important;
    }
    .hex-row { opacity: 1 !important; }
}
