/* ============================================================
   AIR SHIELD — Quantum Cybersecurity
   Theme: Red & Black (dark default) with light/dark toggle
   ============================================================ */

:root {
  --red: #cc0001;
  --red-bright: #ff3131;
  --red-deep: #7a0000;
  --red-glow: rgba(255, 49, 49, 0.45);

  /* Dark mode — navy base (matches Electron reference) */
  --bg: #0e1527;
  --bg-2: #0a1020;
  --bg-3: #131b30;
  --panel: #101830;
  --panel-2: #16203a;
  --border: #1e2a44;
  --border-2: #2a3a58;
  --text: #e8eaf2;
  --text-dim: #8a96b4;
  --text-faint: #5a6680;
  --accent: var(--red-bright);
  --accent-soft: rgba(204, 0, 1, 0.14);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px var(--red-glow);
  --ok: #2ecc71;
  --warn: #f1c40f;
  --danger: var(--red-bright);
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --bg-3: #ededf0;
  --panel: #ffffff;
  --panel-2: #f7f7fa;
  --border: #e0e0e6;
  --border-2: #c8c8d2;
  --text: #14141a;
  --text-dim: #5a5a6a;
  --text-faint: #9a9aa6;
  --accent: var(--red);
  --accent-soft: rgba(204, 0, 1, 0.08);
  --shadow: 0 8px 28px rgba(20, 20, 30, 0.08);
  --glow: 0 0 18px rgba(204, 0, 1, 0.18);
  --ok: #1a9c52;
  --warn: #d4a017;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.55; overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.accent { color: var(--accent); }

/* ============================================================ NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(14, 21, 39, 0.72);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease;
}
[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.78); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 34px; height: 34px; }
.nav-name { font-weight: 800; font-size: 17px; letter-spacing: 1.5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.cta-link { color: var(--accent); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { background: var(--panel-2); border: 1px solid var(--border); width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); transition: all 0.2s; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }
.nav-menu { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-menu span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; }

/* ============================================================ HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 28px 80px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.35; }
.hero-content { position: relative; z-index: 2; max-width: 1000px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--border); background: var(--panel); border-radius: 100px; font-size: 11px; letter-spacing: 2px; font-weight: 600; color: var(--text-dim); margin-bottom: 28px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 1.8s infinite; }
.pulse-dot.ok { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.pulse-dot.warn { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.hero-title { font-size: clamp(36px, 6vw, 72px); font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-sub { font-size: clamp(15px, 1.6vw, 19px); color: var(--text-dim); max-width: 720px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.3px; border: 1px solid var(--border); transition: all 0.25s; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: var(--glow); }
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); transform: translateY(-2px); }
.btn-ghost { background: var(--panel); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats { display: flex; gap: 56px; justify-content: center; flex-wrap: wrap; }
.stat-num { font-size: 38px; font-weight: 800; color: var(--accent); font-family: 'JetBrains Mono', monospace; letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1.5px; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 3px; color: var(--text-faint); z-index: 2; }
.scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============================================================ SECTIONS */
.section { padding: 120px 28px; max-width: 1280px; margin: 0 auto; }
.section.alt { background: var(--bg-2); max-width: none; }
.section.alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 56px; max-width: 820px; }
.section-tag { font-size: 11px; letter-spacing: 3px; font-weight: 700; color: var(--accent); margin-bottom: 14px; font-family: 'JetBrains Mono', monospace; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 20px; }
.section-lead { font-size: 17px; color: var(--text-dim); max-width: 680px; }

/* ============================================================ TIMELINE */
.timeline { position: relative; margin: 56px 0 80px; padding-left: 24px; }
.timeline-line { position: absolute; left: 31px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--red), var(--red-deep), var(--border)); }
.timeline-node { position: relative; padding-left: 56px; margin-bottom: 32px; }
.timeline-node .node-year { position: absolute; left: -24px; top: -4px; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--text-faint); letter-spacing: 1px; }
.node-dot { position: absolute; left: 22px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--red), 0 0 16px var(--red-glow); }
.node-dot.danger { background: var(--red-bright); box-shadow: 0 0 0 2px var(--red-bright), 0 0 24px var(--red-bright); }
.node-dot.shield { background: var(--ok); box-shadow: 0 0 0 2px var(--ok), 0 0 16px rgba(46,204,113,0.5); }
.node-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; transition: all 0.25s; }
.node-card h4 { font-size: 17px; margin-bottom: 6px; }
.node-card p { font-size: 14px; color: var(--text-dim); }
.node-card.danger { border-color: var(--red-bright); box-shadow: 0 0 24px rgba(255,49,49,0.15); }
.node-card.shield { border-color: var(--ok); }

/* ============================================================ THREAT GRID */
.threat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.threat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; transition: all 0.3s; position: relative; overflow: hidden; }
.threat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: 0; transition: opacity 0.3s; }
.threat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.threat-card:hover::before { opacity: 1; }
.threat-icon { font-size: 28px; color: var(--accent); margin-bottom: 14px; font-family: 'JetBrains Mono', monospace; }
.threat-card h3 { font-size: 18px; margin-bottom: 10px; }
.threat-card p { font-size: 14px; color: var(--text-dim); }
.threat-card em { color: var(--accent); font-style: normal; font-weight: 600; }

/* ============================================================ LAYERS */
.layer-stack { display: flex; flex-direction: column; gap: 16px; }
.layer { display: flex; gap: 24px; align-items: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: all 0.3s; position: relative; overflow: hidden; }
.layer:hover { border-color: var(--accent); transform: translateX(4px); }
.layer::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--red-bright), var(--red-deep)); }
.layer-num { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; color: var(--accent); min-width: 44px; }
.layer-body h3 { font-size: 20px; margin-bottom: 10px; }
.layer-body p { font-size: 15px; color: var(--text-dim); margin-bottom: 12px; }
.layer-tech { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-faint); letter-spacing: 0.5px; }

/* ============================================================ ARCHITECTURE */
.arch-diagram { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: 64px; padding: 40px 0; }
.arch-plane { width: 100%; max-width: 720px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; position: relative; }
.arch-plane.ground { border-color: var(--accent); }
.arch-label { position: absolute; top: -11px; left: 20px; background: var(--bg); padding: 0 10px; font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
[data-theme="light"] .arch-label { background: #ededf0; }
.arch-modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.module { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; font-size: 13px; font-weight: 500; text-align: center; font-family: 'JetBrains Mono', monospace; transition: all 0.2s; }
.module:hover { border-color: var(--accent); color: var(--accent); }
.arch-link { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.arch-link-label { font-size: 10px; letter-spacing: 2px; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.arch-link-line { width: 2px; height: 48px; background: linear-gradient(to bottom, var(--accent), transparent, var(--accent)); position: relative; }
.arch-link-line::before, .arch-link-line::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.arch-link-line::before { top: -4px; }
.arch-link-line::after { bottom: -4px; }
.arch-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.feat h4 { font-size: 16px; margin-bottom: 8px; color: var(--accent); }
.feat p { font-size: 14px; color: var(--text-dim); }

/* ============================================================ DEMO CTA */
.demo-cta { max-width: 720px; }
.demo-card { display: block; position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 48px 40px; text-decoration: none; color: var(--text); transition: all 0.3s; overflow: hidden; }
.demo-card-glow { position: absolute; top: -50%; left: -20%; width: 140%; height: 200%; background: radial-gradient(ellipse at center, rgba(204,0,1,0.12), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.demo-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow), 0 0 40px rgba(204,0,1,0.15); }
.demo-card:hover .demo-card-glow { opacity: 1; }
.demo-card:hover .demo-link { color: var(--accent); }
.demo-icon { font-size: 56px; color: var(--accent); margin-bottom: 20px; line-height: 1; text-shadow: 0 0 24px var(--red-glow); }
.demo-card h3 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.demo-card p { font-size: 15px; color: var(--text-dim); margin-bottom: 24px; line-height: 1.6; }
.demo-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); transition: color 0.2s; }

/* ============================================================ CONSOLE */
.console { display: grid; grid-template-columns: 220px 1fr; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); min-height: 640px; position: relative; }
.dashboard-fullscreen { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--bg); }
.dashboard-fullscreen .console { display: grid; grid-template-columns: 220px 1fr; border-radius: 0; border: none; flex: 1; min-height: 0; }
.dashboard-fullscreen .console-main { padding: 0; overflow: hidden; }
.dashboard-fullscreen .panel { padding: 24px; overflow-y: auto; }
.dashboard-fullscreen .globe-wrap { height: calc(100vh - 120px); }
.dashboard-fullscreen .feed, .dashboard-fullscreen .fleet-grid, .dashboard-fullscreen .registry-list { max-height: calc(100vh - 180px); }

/* SIDEBAR */
.console-sidebar { background: var(--bg-2); border-right: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; }
.sb-header { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 0 4px; }
.sb-logo { width: 30px; height: 30px; }
.sb-title { font-weight: 800; font-size: 14px; letter-spacing: 1px; }
.sb-sub { font-size: 9px; letter-spacing: 1.5px; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }
.sb-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sb-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: none; border: none; color: var(--text-dim); font-size: 13px; font-weight: 500; text-align: left; transition: all 0.2s; position: relative; width: 100%; }
.sb-item:hover { background: var(--panel-2); color: var(--text); transform: translateX(2px); }
.sb-item.active { background: var(--accent-soft); color: var(--accent); }
.sb-item.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--accent); border-radius: 2px; }
.sb-ico { font-family: 'JetBrains Mono', monospace; font-size: 15px; min-width: 18px; text-align: center; }
.sb-label { flex: 1; }
.sb-arrow { font-size: 10px; color: var(--text-faint); transition: transform 0.2s; }
.sb-dd-toggle.open .sb-arrow { transform: rotate(180deg); }
.sb-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; min-width: 22px; text-align: center; }

/* Dropdown menus */
.sb-dropdown { display: flex; flex-direction: column; }
.sb-dd-menu { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding-left: 30px; }
.sb-dd-menu.open { max-height: 200px; }
.sb-dd-item { display: block; padding: 8px 12px; background: none; border: none; color: var(--text-faint); font-size: 12px; font-weight: 500; text-align: left; cursor: pointer; border-radius: 6px; transition: all 0.2s; }
.sb-dd-item:hover { color: var(--accent); background: var(--accent-soft); }

.sb-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.sb-status { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 1px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.sb-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); margin-top: 6px; }

/* MAIN */
.console-main { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.panel { display: none; animation: fadeIn 0.3s ease; flex: 1; padding: 24px; overflow-y: auto; }
.panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* SEARCH BAR */
.console-search { padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-2); position: sticky; top: 0; z-index: 5; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 14px; transition: all 0.2s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box svg { color: var(--text-faint); flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: 'Inter', sans-serif; font-size: 13px; }
.search-box input::placeholder { color: var(--text-faint); }
.search-box kbd { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-faint); background: var(--bg-3); padding: 3px 7px; border-radius: 4px; border: 1px solid var(--border); }

.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel-head h3 { font-size: 20px; font-weight: 700; }
.panel-meta { font-size: 11px; letter-spacing: 1.5px; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; display: flex; align-items: center; gap: 8px; }

/* KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.kpi-label { font-size: 11px; letter-spacing: 1px; color: var(--text-faint); text-transform: uppercase; margin-bottom: 8px; }
.kpi-value { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; color: var(--text); }
.kpi-suffix { font-size: 14px; color: var(--text-faint); }
.kpi-delta { font-size: 11px; margin-top: 6px; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }
.kpi-delta.up { color: var(--ok); }
.danger-kpi { border-color: var(--red); }
.danger-kpi .kpi-value { color: var(--accent); }

.ov-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.card.span-2 { grid-column: span 1; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h4 { font-size: 14px; font-weight: 600; }
.card-tag { font-size: 9px; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 100px; font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.card-tag.live { background: rgba(255, 49, 49, 0.12); color: var(--accent); border: 1px solid var(--red); }
.chart { width: 100%; display: block; }

.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 32px; align-items: center; gap: 10px; font-size: 12px; }
.bar-row span:first-child { color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.bar { background: var(--bg-3); border-radius: 4px; height: 8px; overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red-bright)); border-radius: 4px; transition: width 0.8s; }
.bar-row span:last-child { color: var(--text-faint); font-family: 'JetBrains Mono', monospace; text-align: right; }

/* ============================================================ GLOBE */
.globe-wrap { position: relative; height: 520px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
#globeCanvas { width: 100%; height: 100%; display: block; cursor: grab; }
#globeCanvas:active { cursor: grabbing; }
.globe-info { position: absolute; top: 16px; right: 16px; width: 260px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; backdrop-filter: blur(12px); }
.gi-head { font-size: 10px; letter-spacing: 2px; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; }
.gi-empty { font-size: 13px; color: var(--text-dim); }
.gi-id { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.gi-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12px; border-bottom: 1px solid var(--border); }
.gi-row:last-child { border-bottom: none; }
.gi-row .label { color: var(--text-faint); }
.gi-row .val { color: var(--text); font-family: 'JetBrains Mono', monospace; }
.gi-row .val.ok { color: var(--ok); }
.gi-row .val.warn { color: var(--warn); }
.globe-legend { position: absolute; bottom: 16px; left: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 11px; color: var(--text-dim); display: flex; flex-direction: column; gap: 6px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.legend-line { display: inline-block; width: 18px; height: 2px; background: var(--accent); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 6px var(--accent); }
.globe-zoom { position: absolute; bottom: 16px; right: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.zoom-btn { width: 32px; height: 32px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.zoom-btn:hover { color: var(--accent); border-color: var(--accent); }
.zoom-level { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-faint); }

/* ============================================================ EXPOSURE METER */
.exposure-meter { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-top: 16px; }
.em-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.em-title { font-size: 14px; font-weight: 600; }
.em-tag { font-size: 9px; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 100px; font-family: 'JetBrains Mono', monospace; font-weight: 600; background: rgba(255,49,49,0.12); color: var(--accent); border: 1px solid var(--red); }
.em-body { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.em-gauge-wrap { flex-shrink: 0; }
.em-info { flex: 1; min-width: 240px; }
.em-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.5; }
.em-stat { display: flex; gap: 8px; font-size: 12px; margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }
.em-label { color: var(--text-faint); }
.em-val { color: var(--text); }
.em-val.warn { color: var(--warn); }
.em-note { font-size: 11px; color: var(--text-faint); margin-top: 10px; font-style: italic; line-height: 1.4; }
@media (max-width: 768px) { .em-body { flex-direction: column; } .em-gauge-wrap { width: 100%; display: flex; justify-content: center; } }

/* ============================================================ REGISTRY */
.registry-list { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow-y: auto; }
.reg-row { display: grid; grid-template-columns: 110px 1fr 90px 70px 70px 30px; gap: 12px; align-items: center; padding: 12px 16px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; transition: all 0.2s; cursor: pointer; }
.reg-row:hover { border-color: var(--accent); transform: translateX(4px); }
.reg-id { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--accent); }
.reg-route { color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.reg-type { color: var(--text-faint); font-size: 11px; }
.reg-score { font-family: 'JetBrains Mono', monospace; color: var(--ok); font-size: 12px; text-align: center; }
.reg-status { font-size: 10px; font-family: 'JetBrains Mono', monospace; padding: 2px 6px; border-radius: 4px; text-align: center; }
.reg-status.secure { background: rgba(46,204,113,0.12); color: var(--ok); }
.reg-status.watch { background: rgba(241,196,15,0.12); color: var(--warn); }
.reg-arrow { color: var(--text-faint); }
.reg-empty { padding: 40px; text-align: center; color: var(--text-faint); font-size: 14px; }

/* ============================================================ FLEET */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; max-height: 520px; overflow-y: auto; }
.fleet-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; transition: all 0.2s; cursor: pointer; }
.fleet-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.fleet-id { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.fleet-route { font-size: 11px; color: var(--text-faint); margin-bottom: 10px; }
.fleet-bar { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.fleet-bar > div { height: 100%; background: linear-gradient(90deg, var(--red), var(--red-bright)); }
.fleet-stat { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.fleet-stat .ok { color: var(--ok); }

/* ============================================================ THREAT FEED */
.feed { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; padding-right: 6px; }
.feed::-webkit-scrollbar { width: 6px; }
.feed::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.feed-item { display: grid; grid-template-columns: 88px 60px 1fr auto; gap: 14px; align-items: center; background: var(--panel-2); border: 1px solid var(--border); border-left: 3px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 13px; animation: slideIn 0.4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.feed-item.critical { border-left-color: var(--red-bright); }
.feed-item.high { border-left-color: var(--warn); }
.feed-item.info { border-left-color: var(--ok); }
.feed-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); }
.feed-sev { font-size: 9px; letter-spacing: 1px; font-weight: 700; padding: 3px 6px; border-radius: 4px; text-align: center; font-family: 'JetBrains Mono', monospace; }
.feed-sev.critical { background: rgba(255,49,49,0.15); color: var(--red-bright); }
.feed-sev.high { background: rgba(241,196,15,0.15); color: var(--warn); }
.feed-sev.info { background: rgba(46,204,113,0.15); color: var(--ok); }
.feed-msg { color: var(--text); font-size: 13px; }
.feed-msg b { color: var(--accent); }
.feed-src { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); }

/* ============================================================ CRYPTO */
.crypto-list { display: flex; flex-direction: column; gap: 14px; }
.crypto-row { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.crypto-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.crypto-name { font-size: 14px; font-weight: 600; }
.crypto-name .mono { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 12px; margin-left: 8px; }
.crypto-status { font-size: 11px; font-family: 'JetBrains Mono', monospace; padding: 3px 8px; border-radius: 4px; }
.crypto-status.ready { background: rgba(46,204,113,0.12); color: var(--ok); }
.crypto-status.migrating { background: rgba(241,196,15,0.12); color: var(--warn); }
.crypto-status.legacy { background: rgba(255,49,49,0.12); color: var(--red-bright); }
.crypto-desc { font-size: 12px; color: var(--text-dim); }
.crypto-progress { margin-top: 12px; height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.crypto-progress > div { height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red-bright)); transition: width 1s; }

/* ============================================================ KEYS */
.key-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.key-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-family: 'JetBrains Mono', monospace; }
.key-label { font-size: 10px; color: var(--text-faint); letter-spacing: 1px; margin-bottom: 8px; }
.key-value { font-size: 12px; color: var(--text); word-break: break-all; margin-bottom: 8px; }
.key-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-faint); }
.key-card.fresh { border-color: var(--ok); }
.key-card.fresh .key-meta { color: var(--ok); }

/* ============================================================ SETTINGS */
.settings-grid { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.set-row { display: flex; justify-content: space-between; align-items: center; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.set-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.set-desc { font-size: 12px; color: var(--text-faint); }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-3); border: 1px solid var(--border); border-radius: 100px; transition: 0.25s; }
.slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 2px; bottom: 2px; background: var(--text-faint); border-radius: 50%; transition: 0.25s; }
.switch input:checked + .slider { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ============================================================ ROADMAP */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.road-item { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: all 0.3s; position: relative; overflow: hidden; }
.road-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red), transparent); }
.road-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.road-year { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.road-item h4 { font-size: 16px; margin-bottom: 10px; }
.road-item p { font-size: 13px; color: var(--text-dim); }

/* ============================================================ FOOTER */
.footer { padding: 60px 28px 40px; background: var(--bg-2); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 40px; height: 40px; }
.footer-name { font-weight: 800; font-size: 16px; letter-spacing: 1.5px; }
.footer-tag { font-size: 11px; color: var(--text-faint); letter-spacing: 1px; }
.footer-meta div { font-size: 13px; color: var(--text-dim); }
.footer-meta div:last-child { font-size: 12px; color: var(--text-faint); font-style: italic; margin-top: 4px; }
.footer-sources { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.footer-sources strong { color: var(--text); margin-bottom: 4px; }
.footer-sources span { color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }

/* ============================================================ RESPONSIVE */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--border); padding: 16px 28px; gap: 14px; }
  .console { grid-template-columns: 1fr; }
  .console-sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .sb-header { margin-bottom: 0; }
  .sb-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sb-item { padding: 8px 10px; }
  .sb-item.active::before { display: none; }
  .sb-label, .sb-arrow { display: none; }
  .sb-dd-menu { display: none; }
  .sb-footer { margin-top: 0; padding-top: 0; border: none; margin-left: auto; }
  .ov-grid { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: span 1; }
  .hero-stats { gap: 32px; }
  .globe-info { display: none; }
  .reg-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 520px) {
  .section { padding: 80px 20px; }
  .hero { padding: 100px 20px 60px; }
  .timeline-node { padding-left: 48px; }
  .timeline-node .node-year { left: -20px; }
  .feed-item { grid-template-columns: 1fr; gap: 6px; }
  .feed-src { display: none; }
}