/* ==========================================================================
   CORTANA // J.A.R.V.I.S. HOLOGRAPHIC COMMAND SYSTEM (MOVIE FUI STYLING)
   Designed for High-Impact Sci-Fi Aesthetics: Stark Industries + UNSC Cortana
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600;700;800&family=Orbitron:wght@500;700;800;900&family=Oxanium:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- COLOR MATRIX & CSS VARIABLES --- */
:root {
  /* Default: HYBRID OVERWATCH (Cyan Arc Reactor + UNSC Violet + Tactical Amber) */
  --bg-space: #03060f;
  --bg-deep: #060b18;
  --bg-surface: rgba(7, 14, 28, 0.78);
  --bg-surface-hover: rgba(12, 23, 44, 0.92);
  --bg-surface-elevated: rgba(14, 27, 52, 0.85);

  --hud-cyan: #00f0ff;
  --hud-cyan-glow: rgba(0, 240, 255, 0.35);
  --hud-cyan-dim: rgba(0, 240, 255, 0.12);

  --hud-teal: #00ffd5;
  --hud-teal-glow: rgba(0, 255, 213, 0.35);

  --hud-violet: #a855f7;
  --hud-violet-glow: rgba(168, 85, 247, 0.4);
  --hud-violet-dim: rgba(168, 85, 247, 0.15);

  --hud-amber: #f59e0b;
  --hud-amber-glow: rgba(245, 158, 11, 0.4);

  --hud-crimson: #ff2d55;
  --hud-crimson-glow: rgba(255, 45, 85, 0.45);

  --hud-emerald: #10b981;
  --hud-emerald-glow: rgba(16, 185, 129, 0.35);

  --hud-border: rgba(0, 240, 255, 0.22);
  --hud-border-bright: rgba(0, 240, 255, 0.65);
  --hud-grid: rgba(0, 240, 255, 0.04);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --text-glow: 0 0 10px rgba(0, 240, 255, 0.6);

  /* High-Tech Sci-Fi Typography Matrix */
  --font-display: 'Oxanium', 'Orbitron', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hud: 'Space Grotesk', 'Rajdhani', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --font-ui: 'Plus Jakarta Sans', 'Chakra Petch', sans-serif;
}

/* ==========================================================================
   15 CINEMATIC SCI-FI THEME PRESETS (MOVIE-GRADE COLOR MATRICES)
   ========================================================================== */

/* 1. PROMETHEUS (Weyland-Yutani 3D LIDAR Slate, Cyan Bio-Laser & Gold Amber) */
body.theme-prometheus {
  --bg-space: #030910;
  --bg-deep: #06111e;
  --bg-surface: rgba(8, 20, 36, 0.82);
  --hud-cyan: #38bdf8;
  --hud-cyan-glow: rgba(56, 189, 248, 0.45);
  --hud-cyan-dim: rgba(56, 189, 248, 0.14);
  --hud-teal: #22d3ee;
  --hud-teal-glow: rgba(34, 211, 238, 0.4);
  --hud-violet: #60a5fa;
  --hud-violet-glow: rgba(96, 165, 250, 0.35);
  --hud-amber: #fbbf24;
  --hud-amber-glow: rgba(251, 191, 36, 0.45);
  --hud-crimson: #f87171;
  --hud-border: rgba(56, 189, 248, 0.3);
  --hud-border-bright: rgba(56, 189, 248, 0.75);
  --hud-grid: rgba(56, 189, 248, 0.05);
}

/* 2. STAR WARS (Death Star Trench Vector Green & Imperial Crimson) */
body.theme-starwars {
  --bg-space: #030604;
  --bg-deep: #050d06;
  --bg-surface: rgba(6, 18, 9, 0.85);
  --hud-cyan: #22c55e;
  --hud-cyan-glow: rgba(34, 197, 94, 0.45);
  --hud-cyan-dim: rgba(34, 197, 94, 0.14);
  --hud-teal: #4ade80;
  --hud-teal-glow: rgba(74, 222, 128, 0.4);
  --hud-violet: #86efac;
  --hud-violet-glow: rgba(134, 239, 172, 0.35);
  --hud-amber: #facc15;
  --hud-amber-glow: rgba(250, 204, 21, 0.4);
  --hud-crimson: #ef4444;
  --hud-border: rgba(34, 197, 94, 0.32);
  --hud-border-bright: rgba(34, 197, 94, 0.8);
  --hud-grid: rgba(34, 197, 94, 0.06);
}

/* 3. HALO (UNSC Master Chief Visor Amber & Cortana Holographic Violet) */
body.theme-halo {
  --bg-space: #04090e;
  --bg-deep: #08131d;
  --bg-surface: rgba(9, 23, 37, 0.82);
  --hud-cyan: #00f0ff;
  --hud-cyan-glow: rgba(0, 240, 255, 0.45);
  --hud-cyan-dim: rgba(0, 240, 255, 0.14);
  --hud-teal: #38bdf8;
  --hud-teal-glow: rgba(56, 189, 248, 0.4);
  --hud-violet: #c084fc;
  --hud-violet-glow: rgba(192, 132, 252, 0.45);
  --hud-amber: #eab308;
  --hud-amber-glow: rgba(234, 179, 8, 0.45);
  --hud-crimson: #f43f5e;
  --hud-border: rgba(234, 179, 8, 0.32);
  --hud-border-bright: rgba(234, 179, 8, 0.8);
  --hud-grid: rgba(0, 240, 255, 0.05);
}

/* 4. J.A.R.V.I.S. (Stark Industries Mark VII Arc Reactor Cyan & Hot-Rod Gold/Crimson) */
body.theme-jarvis {
  --bg-space: #070305;
  --bg-deep: #120609;
  --bg-surface: rgba(24, 8, 14, 0.84);
  --hud-cyan: #00e5ff;
  --hud-cyan-glow: rgba(0, 229, 255, 0.5);
  --hud-cyan-dim: rgba(0, 229, 255, 0.16);
  --hud-teal: #38bdf8;
  --hud-teal-glow: rgba(56, 189, 248, 0.45);
  --hud-violet: #f59e0b;
  --hud-violet-glow: rgba(245, 158, 11, 0.45);
  --hud-amber: #fbbf24;
  --hud-amber-glow: rgba(251, 191, 36, 0.5);
  --hud-crimson: #ef4444;
  --hud-border: rgba(0, 229, 255, 0.32);
  --hud-border-bright: rgba(0, 229, 255, 0.85);
  --hud-grid: rgba(0, 229, 255, 0.06);
}

/* 5. TOTAL RECALL (Rekall Inc. Synaptic Magenta, Holographic Sunset Orange & Cyan) */
body.theme-totalrecall {
  --bg-space: #0c020f;
  --bg-deep: #17041e;
  --bg-surface: rgba(30, 8, 38, 0.85);
  --hud-cyan: #00f2fe;
  --hud-cyan-glow: rgba(0, 242, 254, 0.45);
  --hud-cyan-dim: rgba(0, 242, 254, 0.15);
  --hud-teal: #ff758c;
  --hud-teal-glow: rgba(255, 117, 140, 0.4);
  --hud-violet: #e879f9;
  --hud-violet-glow: rgba(232, 121, 249, 0.45);
  --hud-amber: #fb923c;
  --hud-amber-glow: rgba(251, 146, 60, 0.45);
  --hud-crimson: #f43f5e;
  --hud-border: rgba(232, 121, 249, 0.35);
  --hud-border-bright: rgba(232, 121, 249, 0.8);
  --hud-grid: rgba(232, 121, 249, 0.06);
}

/* 6. BLADE RUNNER (Tyrell / Wallace Corp Neon-Noir Amber, Fog & CRT Phosphors) */
body.theme-bladerunner {
  --bg-space: #0b0802;
  --bg-deep: #161004;
  --bg-surface: rgba(28, 20, 6, 0.86);
  --hud-cyan: #f59e0b;
  --hud-cyan-glow: rgba(245, 158, 11, 0.45);
  --hud-cyan-dim: rgba(245, 158, 11, 0.14);
  --hud-teal: #fbbf24;
  --hud-teal-glow: rgba(251, 191, 36, 0.4);
  --hud-violet: #d97706;
  --hud-violet-glow: rgba(217, 119, 6, 0.4);
  --hud-amber: #fde047;
  --hud-amber-glow: rgba(253, 224, 71, 0.45);
  --hud-crimson: #dc2626;
  --hud-border: rgba(245, 158, 11, 0.35);
  --hud-border-bright: rgba(245, 158, 11, 0.8);
  --hud-grid: rgba(245, 158, 11, 0.06);
}

/* 7. MINORITY REPORT (Pre-Crime 3-Precog Icy Glass White, Pale Cyan & Navy) */
body.theme-minorityreport {
  --bg-space: #020712;
  --bg-deep: #050e20;
  --bg-surface: rgba(8, 22, 46, 0.84);
  --hud-cyan: #7dd3fc;
  --hud-cyan-glow: rgba(125, 211, 252, 0.45);
  --hud-cyan-dim: rgba(125, 211, 252, 0.15);
  --hud-teal: #bae6fd;
  --hud-teal-glow: rgba(186, 230, 253, 0.4);
  --hud-violet: #93c5fd;
  --hud-violet-glow: rgba(147, 197, 253, 0.4);
  --hud-amber: #fde047;
  --hud-amber-glow: rgba(253, 224, 71, 0.4);
  --hud-crimson: #f43f5e;
  --hud-border: rgba(125, 211, 252, 0.32);
  --hud-border-bright: rgba(125, 211, 252, 0.8);
  --hud-grid: rgba(125, 211, 252, 0.05);
}

/* 8. PACIFIC RIM (PPDC Jaeger Drift Neural Handshake Steel, Electric Cyan & Kaiju Crimson) */
body.theme-pacificrim {
  --bg-space: #040913;
  --bg-deep: #081324;
  --bg-surface: rgba(10, 24, 46, 0.85);
  --hud-cyan: #06b6d4;
  --hud-cyan-glow: rgba(6, 182, 212, 0.45);
  --hud-cyan-dim: rgba(6, 182, 212, 0.14);
  --hud-teal: #3b82f6;
  --hud-teal-glow: rgba(59, 130, 246, 0.4);
  --hud-violet: #6366f1;
  --hud-violet-glow: rgba(99, 102, 241, 0.4);
  --hud-amber: #f59e0b;
  --hud-amber-glow: rgba(245, 158, 11, 0.45);
  --hud-crimson: #e11d48;
  --hud-border: rgba(6, 182, 212, 0.32);
  --hud-border-bright: rgba(6, 182, 212, 0.8);
  --hud-grid: rgba(6, 182, 212, 0.05);
}

/* 9. INSURGENT (Erudite Faction Serum Simulation Cobalt & Divergence Violet) */
body.theme-insurgent {
  --bg-space: #030514;
  --bg-deep: #070c26;
  --bg-surface: rgba(12, 19, 52, 0.84);
  --hud-cyan: #3b82f6;
  --hud-cyan-glow: rgba(59, 130, 246, 0.45);
  --hud-cyan-dim: rgba(59, 130, 246, 0.15);
  --hud-teal: #60a5fa;
  --hud-teal-glow: rgba(96, 165, 250, 0.4);
  --hud-violet: #8b5cf6;
  --hud-violet-glow: rgba(139, 92, 246, 0.45);
  --hud-amber: #fbbf24;
  --hud-amber-glow: rgba(251, 191, 36, 0.4);
  --hud-crimson: #ec4899;
  --hud-border: rgba(59, 130, 246, 0.32);
  --hud-border-bright: rgba(59, 130, 246, 0.8);
  --hud-grid: rgba(59, 130, 246, 0.05);
}

/* 10. TRON: LEGACY (The Grid Infinite Obsidian Void & Laser Neon Cyan/Orange) */
body.theme-tron {
  --bg-space: #000000;
  --bg-deep: #03070b;
  --bg-surface: rgba(3, 12, 20, 0.9);
  --hud-cyan: #00f0ff;
  --hud-cyan-glow: rgba(0, 240, 255, 0.6);
  --hud-cyan-dim: rgba(0, 240, 255, 0.18);
  --hud-teal: #00ffd5;
  --hud-teal-glow: rgba(0, 255, 213, 0.5);
  --hud-violet: #ff6600;
  --hud-violet-glow: rgba(255, 102, 0, 0.5);
  --hud-amber: #ff8800;
  --hud-amber-glow: rgba(255, 136, 0, 0.55);
  --hud-crimson: #ff0055;
  --hud-border: rgba(0, 240, 255, 0.4);
  --hud-border-bright: rgba(0, 240, 255, 0.95);
  --hud-grid: rgba(0, 240, 255, 0.08);
}

/* 11. ROBOCOP (OmniCorp OCP Targeting Matrix Gunmetal & Green Phosphor) */
body.theme-robocop {
  --bg-space: #030704;
  --bg-deep: #060e08;
  --bg-surface: rgba(8, 20, 12, 0.86);
  --hud-cyan: #10b981;
  --hud-cyan-glow: rgba(16, 185, 129, 0.45);
  --hud-cyan-dim: rgba(16, 185, 129, 0.14);
  --hud-teal: #34d399;
  --hud-teal-glow: rgba(52, 211, 153, 0.4);
  --hud-violet: #059669;
  --hud-violet-glow: rgba(5, 150, 105, 0.35);
  --hud-amber: #f59e0b;
  --hud-amber-glow: rgba(245, 158, 11, 0.4);
  --hud-crimson: #ef4444;
  --hud-border: rgba(16, 185, 129, 0.32);
  --hud-border-bright: rgba(16, 185, 129, 0.8);
  --hud-grid: rgba(16, 185, 129, 0.06);
}

/* 12. FURIOUS 7 (Ramsey's God's Eye Global Satellite Triangulation Green) */
body.theme-godseye {
  --bg-space: #010a05;
  --bg-deep: #03140a;
  --bg-surface: rgba(5, 24, 13, 0.85);
  --hud-cyan: #00ff88;
  --hud-cyan-glow: rgba(0, 255, 136, 0.45);
  --hud-cyan-dim: rgba(0, 255, 136, 0.15);
  --hud-teal: #10b981;
  --hud-teal-glow: rgba(16, 185, 129, 0.4);
  --hud-violet: #059669;
  --hud-violet-glow: rgba(5, 150, 105, 0.35);
  --hud-amber: #fbbf24;
  --hud-amber-glow: rgba(251, 191, 36, 0.45);
  --hud-crimson: #ff2d55;
  --hud-border: rgba(0, 255, 136, 0.35);
  --hud-border-bright: rgba(0, 255, 136, 0.85);
  --hud-grid: rgba(0, 255, 136, 0.06);
}

/* 13. STAR TREK (Starfleet LCARS Butterscotch Orange, Lavender & Federation Blue) */
body.theme-startrek {
  --bg-space: #000000;
  --bg-deep: #080604;
  --bg-surface: rgba(18, 12, 6, 0.88);
  --hud-cyan: #9999ff;
  --hud-cyan-glow: rgba(153, 153, 255, 0.45);
  --hud-cyan-dim: rgba(153, 153, 255, 0.15);
  --hud-teal: #cc99cc;
  --hud-teal-glow: rgba(204, 153, 204, 0.4);
  --hud-violet: #ff9900;
  --hud-violet-glow: rgba(255, 153, 0, 0.5);
  --hud-amber: #ffcc00;
  --hud-amber-glow: rgba(255, 204, 0, 0.5);
  --hud-crimson: #cc6666;
  --hud-border: rgba(255, 153, 0, 0.4);
  --hud-border-bright: rgba(255, 153, 0, 0.85);
  --hud-grid: rgba(255, 153, 0, 0.06);
}

/* 14. HITMAN: AGENT 47 (ICA Tactical Stealth Carbon, Brushed Silver & Target Red) */
body.theme-hitman {
  --bg-space: #060606;
  --bg-deep: #101010;
  --bg-surface: rgba(20, 20, 20, 0.88);
  --hud-cyan: #e2e8f0;
  --hud-cyan-glow: rgba(226, 232, 240, 0.4);
  --hud-cyan-dim: rgba(226, 232, 240, 0.12);
  --hud-teal: #cbd5e1;
  --hud-teal-glow: rgba(203, 213, 225, 0.35);
  --hud-violet: #94a3b8;
  --hud-violet-glow: rgba(148, 163, 184, 0.35);
  --hud-amber: #f59e0b;
  --hud-amber-glow: rgba(245, 158, 11, 0.4);
  --hud-crimson: #e11d48;
  --hud-border: rgba(225, 29, 72, 0.38);
  --hud-border-bright: rgba(225, 29, 72, 0.85);
  --hud-grid: rgba(225, 29, 72, 0.05);
}

/* 15. TERMINATOR GENISYS (Cyberdyne / Skynet T-800 Optical Blood Red CRT) */
body.theme-terminator {
  --bg-space: #0a0101;
  --bg-deep: #140303;
  --bg-surface: rgba(26, 4, 4, 0.88);
  --hud-cyan: #ef4444;
  --hud-cyan-glow: rgba(239, 68, 68, 0.55);
  --hud-cyan-dim: rgba(239, 68, 68, 0.18);
  --hud-teal: #f87171;
  --hud-teal-glow: rgba(248, 113, 113, 0.45);
  --hud-violet: #dc2626;
  --hud-violet-glow: rgba(220, 38, 38, 0.5);
  --hud-amber: #fb923c;
  --hud-amber-glow: rgba(251, 146, 60, 0.45);
  --hud-crimson: #ff0033;
  --hud-border: rgba(239, 68, 68, 0.45);
  --hud-border-bright: rgba(239, 68, 68, 0.95);
  --hud-grid: rgba(239, 68, 68, 0.08);
}

/* 16. CORTANA MODE (UNSC AI Violet) */
body.theme-cortana {
  --hud-cyan: #c084fc;
  --hud-cyan-glow: rgba(192, 132, 252, 0.45);
  --hud-cyan-dim: rgba(192, 132, 252, 0.15);
  --hud-teal: #38bdf8;
  --hud-teal-glow: rgba(56, 189, 248, 0.4);
  --hud-violet: #d946ef;
  --hud-violet-glow: rgba(217, 70, 239, 0.45);
  --hud-border: rgba(192, 132, 252, 0.28);
  --hud-border-bright: rgba(192, 132, 252, 0.75);
  --hud-grid: rgba(192, 132, 252, 0.05);
}

/* --- BASE STYLES & HOLOGRAPHIC CANVAS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background-color: var(--bg-space);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    linear-gradient(to right, var(--hud-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hud-grid) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, var(--hud-cyan-dim) 0%, transparent 60%),
    radial-gradient(circle at 10% 20%, rgba(0, 255, 213, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, var(--hud-violet-dim) 0%, transparent 50%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Movie Hologram Scanline & Vignette Overlay */
.hologram-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.18) 0px,
      rgba(0, 0, 0, 0.18) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse at center, transparent 65%, rgba(0, 0, 0, 0.65) 100%);
  opacity: 0.75;
}

/* Animated Horizon Scanline */
.scanning-beam {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hud-cyan), transparent);
  box-shadow: 0 0 15px var(--hud-cyan);
  opacity: 0.6;
  animation: scanbeam 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 9998;
}

@keyframes scanbeam {
  0% { transform: translateY(-5vh); opacity: 0; }
  15% { opacity: 0.7; }
  85% { opacity: 0.7; }
  100% { transform: translateY(105vh); opacity: 0; }
}

/* Typography Helpers & Precision Scaling */
.font-display { 
  font-family: var(--font-display); 
  letter-spacing: 0.04em;
}
.font-body { 
  font-family: var(--font-body); 
  letter-spacing: 0.01em;
}
.font-hud { 
  font-family: var(--font-hud); 
  letter-spacing: 0.025em;
}
.font-mono { 
  font-family: var(--font-mono); 
  font-feature-settings: "zero", "ss01", "ss02";
  letter-spacing: -0.01em;
}
.font-ui { 
  font-family: var(--font-ui); 
  letter-spacing: 0.015em;
}

.glow-cyan { text-shadow: 0 0 12px var(--hud-cyan); }
.glow-amber { text-shadow: 0 0 12px var(--hud-amber); }
.glow-crimson { text-shadow: 0 0 12px var(--hud-crimson); }
.glow-emerald { text-shadow: 0 0 12px var(--hud-emerald); }
.glow-violet { text-shadow: 0 0 12px var(--hud-violet); }

/* ==========================================================================
   INTERACTIVE TYPOGRAPHY PRESETS MATRIX
   ========================================================================== */

/* 1. QUANTUM APEX (Default) - Ultra-crisp modern cybernetic */
body.font-preset-quantum {
  --font-display: 'Oxanium', 'Orbitron', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hud: 'Space Grotesk', 'Rajdhani', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --font-ui: 'Plus Jakarta Sans', 'Chakra Petch', sans-serif;
}

/* 2. STARK INDUSTRIES - Mark VII Arc Reactor Holographic HUD */
body.font-preset-stark {
  --font-display: 'Orbitron', 'Oxanium', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-hud: 'Chakra Petch', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-ui: 'Chakra Petch', sans-serif;
}

/* 3. UNSC CORTANA - Tactical Military-grade Precision */
body.font-preset-halo {
  --font-display: 'Oxanium', 'Orbitron', system-ui, sans-serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-hud: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-ui: 'Space Grotesk', sans-serif;
}

/* 4. SILICON MINIMALIST - Apple VisionOS / Clean Precision */
body.font-preset-minimal {
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hud: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-ui: 'Plus Jakarta Sans', sans-serif;
}

/* 5. NIGHT CITY CYBER - Blade Runner / Cyberpunk Tech-Noir */
body.font-preset-cyberpunk {
  --font-display: 'Orbitron', monospace;
  --font-body: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-hud: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-ui: 'Space Grotesk', sans-serif;
}

/* 6. CLASSIC RETRO HUD - 1990s Aerospace Arcade */
body.font-preset-retro {
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-hud: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-ui: 'Chakra Petch', sans-serif;
}

/* --- SCI-FI HUD PANEL ARCHITECTURE (FUI CHAMFERS & TECH BRACKETS) --- */
.hud-panel {
  position: relative;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hud-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 18px rgba(0, 240, 255, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Chamfered corners with HUD clip-path */
.hud-panel-chamfer {
  clip-path: polygon(
    0 12px, 
    12px 0, 
    calc(100% - 12px) 0, 
    100% 12px, 
    100% calc(100% - 12px), 
    calc(100% - 12px) 100%, 
    12px 100%, 
    0 calc(100% - 12px)
  );
}

.hud-panel:hover {
  border-color: var(--hud-border-bright);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.65), 0 0 25px var(--hud-cyan-dim);
}

/* Technical HUD Corner Accents [+] */
.hud-corners {
  position: relative;
}

.hud-corners::before,
.hud-corners::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 10;
}

.hud-corners::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--hud-cyan);
  border-left: 2px solid var(--hud-cyan);
}

.hud-corners::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--hud-cyan);
  border-right: 2px solid var(--hud-cyan);
}

/* Top Tech Status Stripe */
.tech-stripe {
  height: 2px;
  background: linear-gradient(90deg, var(--hud-cyan), var(--hud-teal), transparent);
  box-shadow: 0 0 8px var(--hud-cyan);
}

/* Status Orb Pulse */
.status-orb {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--hud-cyan);
  box-shadow: 0 0 14px var(--hud-cyan);
}

.status-orb::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--hud-cyan);
  opacity: 0.8;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* --- HOLOGRAPHIC ARC REACTOR & AUDIO SPECTRUM VISUALIZER --- */
.reactor-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer rotating tick ring */
.reactor-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--hud-cyan);
  opacity: 0.7;
  animation: spin-clockwise 24s linear infinite;
  box-shadow: 0 0 18px var(--hud-cyan-dim);
}

/* Middle segmented reticle ring */
.reactor-ring-mid {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--hud-teal);
  border-bottom-color: var(--hud-teal);
  animation: spin-counter 12s linear infinite;
  box-shadow: 0 0 14px var(--hud-teal-glow);
}

/* Inner pulsing core ring */
.reactor-ring-inner {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--hud-violet);
  animation: spin-clockwise 6s linear infinite;
  opacity: 0.85;
}

/* Center Plasma Core */
.reactor-core {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, var(--hud-cyan) 45%, rgba(0, 240, 255, 0.2) 75%, transparent 100%);
  box-shadow: 0 0 25px var(--hud-cyan), 0 0 50px var(--hud-cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: plasma-pulse 2.5s ease-in-out infinite alternate;
}

@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-counter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes plasma-pulse {
  0% { transform: scale(0.92); box-shadow: 0 0 20px var(--hud-cyan), 0 0 35px var(--hud-cyan-glow); }
  100% { transform: scale(1.08); box-shadow: 0 0 32px var(--hud-cyan), 0 0 60px var(--hud-cyan-glow); }
}

/* Canvas Audio Visualizer */
#waveform-canvas {
  width: 100%;
  height: 64px;
  background: rgba(2, 6, 18, 0.7);
  border: 1px solid var(--hud-border);
  border-radius: 6px;
  display: block;
}

/* --- THEME TOGGLE & HUD ACTION BUTTONS --- */
.hud-btn {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid var(--hud-border);
  background: rgba(0, 240, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.hud-btn:hover {
  background: var(--hud-cyan-dim);
  border-color: var(--hud-cyan);
  color: #fff;
  box-shadow: 0 0 15px var(--hud-cyan-glow);
  transform: translateY(-1px);
}

.hud-btn.active {
  background: linear-gradient(135deg, var(--hud-cyan-dim), var(--hud-violet-dim));
  border-color: var(--hud-cyan);
  color: #fff;
  box-shadow: 0 0 16px var(--hud-cyan-glow);
}

.btn-vocalize-core {
  font-family: var(--font-display);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(168, 85, 247, 0.35));
  border: 1px solid var(--hud-cyan);
  box-shadow: 0 0 20px var(--hud-cyan-glow);
  color: #fff;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-vocalize-core:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--hud-cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(168, 85, 247, 0.5));
}

.btn-vocalize-core.speaking {
  animation: pulse-speaking 1s infinite alternate;
  border-color: var(--hud-violet);
}

@keyframes pulse-speaking {
  0% { box-shadow: 0 0 15px var(--hud-cyan); }
  100% { box-shadow: 0 0 35px var(--hud-violet); }
}

/* --- TACTICAL 4-PILLAR DATACORES (STRATEGIC SITREP) --- */
.datacore-card {
  position: relative;
  background: rgba(5, 11, 24, 0.85);
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.25s ease;
  overflow: hidden;
}

.datacore-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.datacore-kinetic::before {
  background: linear-gradient(90deg, var(--hud-crimson), transparent);
  box-shadow: 0 0 10px var(--hud-crimson);
}
.datacore-forecast::before {
  background: linear-gradient(90deg, var(--hud-amber), transparent);
  box-shadow: 0 0 10px var(--hud-amber);
}
.datacore-defense::before {
  background: linear-gradient(90deg, var(--hud-emerald), transparent);
  box-shadow: 0 0 10px var(--hud-emerald);
}
.datacore-upside::before {
  background: linear-gradient(90deg, var(--hud-cyan), transparent);
  box-shadow: 0 0 10px var(--hud-cyan);
}

.datacore-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* --- RADAR / TARGETING SECTION & SEVERITY PILLS --- */
.radar-blip {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: radar-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radar-ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.badge-critical {
  background: rgba(255, 45, 85, 0.2);
  border: 1px solid var(--hud-crimson);
  color: #ff4d6d;
  box-shadow: 0 0 12px rgba(255, 45, 85, 0.35);
}

.badge-elevated {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--hud-amber);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.badge-watch {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.badge-sports {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* --- CONFLICT & MACRO CARDS --- */
.conflict-card {
  background: rgba(6, 12, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--hud-crimson);
  border-radius: 6px;
  padding: 16px;
  transition: all 0.2s ease;
}

.conflict-card:hover {
  border-color: var(--hud-border-bright);
  border-left: 3px solid var(--hud-crimson);
  background: rgba(10, 18, 38, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* --- OSINT & BEHAVIORAL DOSSIER CARDS (CLASSIFIED WATERMARK) --- */
.osint-card {
  position: relative;
  background: rgba(7, 13, 27, 0.92);
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  padding: 18px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.osint-card::after {
  content: 'CLASSIFIED // EYES ONLY';
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.15em;
  pointer-events: none;
}

.osint-card:hover {
  border-color: var(--hud-cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--hud-cyan-dim);
  transform: translateY(-2px);
}

/* --- WEATHER GAUGES & ATMOSPHERIC READOUTS --- */
.weather-card {
  background: rgba(6, 13, 28, 0.85);
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  padding: 18px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.weather-card.local-scope {
  border-top: 3px solid var(--hud-emerald);
}

.weather-card.global-scope {
  border-top: 3px solid var(--hud-cyan);
}

.weather-card:hover {
  transform: translateY(-3px);
  border-color: var(--hud-border-bright);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* --- CYBER THREAT MATRIX & CVE TAGS --- */
.cyber-card {
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 16px;
  transition: all 0.2s ease;
}

.cyber-card.critical-sev {
  border-left: 3px solid var(--hud-crimson);
}

.cyber-card.high-sev {
  border-left: 3px solid var(--hud-amber);
}

.cyber-card.advisory-sev {
  border-left: 3px solid var(--hud-cyan);
}

.cyber-card:hover {
  border-color: var(--hud-border-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.cve-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 45, 85, 0.15);
  border: 1px solid rgba(255, 45, 85, 0.4);
  color: #ff6b81;
}

/* --- PERSONAL OPERATIONS (TASKS, LEDGER, VAULT) --- */
.ops-panel {
  background: rgba(7, 14, 30, 0.85);
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  padding: 18px;
}

.ops-item {
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(3, 7, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.ops-item:hover {
  border-color: var(--hud-border);
  background: rgba(5, 12, 28, 0.85);
  transform: translateX(2px);
}

/* --- NEWS ARTICLES --- */
.news-item {
  background: rgba(6, 12, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 16px;
  transition: all 0.2s ease;
}

.news-item:hover {
  border-color: var(--hud-border);
  background: rgba(10, 18, 38, 0.95);
  transform: translateY(-2px);
}

/* --- MODAL DIALOG --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--hud-cyan);
}

/* --- LOCAL WI-FI / LAN DEVICE MESH --- */
.lan-card {
  background: rgba(6, 12, 26, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.lan-card:hover {
  border-color: var(--hud-border-bright);
  background: rgba(10, 20, 42, 0.95);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

.lan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--hud-cyan);
  opacity: 0.6;
}

.lan-card.device-online::before {
  background: #10b981;
}

.lan-card.device-offline::before {
  background: #64748b;
}

.badge-online {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #34d399;
}

.badge-offline {
  background: rgba(100, 116, 139, 0.18);
  border: 1px solid rgba(100, 116, 139, 0.5);
  color: #94a3b8;
}

/* Mic Active Listening Pulse */
#btn-browser-mic.listening {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  animation: mic-pulse 1s infinite alternate;
}

@keyframes mic-pulse {
  from {
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
  }
  to {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.9);
  }
}

/* ==========================================================================
   HALO UNSC / CORTANA VISUAL TACTICAL HUD EXPANSION
   ========================================================================== */

/* --- 1. HEXAGONAL CVE THREAT HIVE --- */
.hex-grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 12px 0;
}

.hex-cell {
  position: relative;
  width: 95px;
  height: 108px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-cell:hover {
  transform: translateY(-4px) scale(1.08);
  z-index: 20;
}

.hex-shape {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--hud-border);
  transition: all 0.25s ease;
}

.hex-cell.crit .hex-shape {
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.25), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
  border-color: rgba(244, 63, 94, 0.6);
}

.hex-cell.crit:hover .hex-shape {
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.45), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.8);
  border-color: #f43f5e;
}

.hex-cell.high .hex-shape {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.95));
  border-color: rgba(245, 158, 11, 0.6);
}

.hex-cell.high:hover .hex-shape {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.4), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
  border-color: #f59e0b;
}

.hex-cell.adv .hex-shape {
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.15), rgba(15, 23, 42, 0.95));
  border-color: rgba(0, 240, 255, 0.4);
}

.hex-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 6px;
  pointer-events: none;
}

.hex-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hex-cve {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
  line-height: 1.1;
  word-break: break-all;
}

/* --- 2. GLOBAL THEATER RADAR & TARGET LOCK --- */
.radar-display-frame {
  position: relative;
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(3, 105, 161, 0.12) 0%, rgba(3, 7, 18, 0.95) 75%);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.1);
}

.radar-reticle-crosshair {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(to right, transparent calc(50% - 1px), rgba(0, 240, 255, 0.15) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(0, 240, 255, 0.15) 50%, transparent calc(50% + 1px));
}

.radar-target-card {
  background: rgba(6, 11, 24, 0.92);
  border: 1px solid var(--hud-border-bright);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 16px var(--hud-cyan-dim);
}

/* --- 3. LAN STAR TOPOLOGY & DEVICE NODE INSPECTOR --- */
.lan-topology-frame {
  position: relative;
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, rgba(3, 7, 18, 0.96) 80%);
  overflow: hidden;
}

.device-node-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--hud-border);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.device-node-pill:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--hud-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.device-node-pill.active {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--hud-cyan);
  color: #fff;
  box-shadow: 0 0 12px var(--hud-cyan-glow);
}

.device-node-pill.online .status-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.device-node-pill.offline .status-dot {
  background: #64748b;
}

.device-cockpit-panel {
  background: linear-gradient(135deg, rgba(8, 18, 38, 0.94), rgba(4, 9, 20, 0.96));
  border: 1px solid var(--hud-border-bright);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 240, 255, 0.08);
  position: relative;
}

.device-cockpit-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--hud-cyan);
  border-left: 2px solid var(--hud-cyan);
  pointer-events: none;
}

.device-cockpit-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--hud-cyan);
  border-right: 2px solid var(--hud-cyan);
  pointer-events: none;
}

/* Oscilloscope Latency Waveform */
.oscilloscope-canvas {
  width: 100%;
  height: 42px;
  border-radius: 4px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* --- 4. RADIAL ATMOSPHERIC GAUGES --- */
.radial-gauge-card {
  position: relative;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.radial-gauge-card:hover {
  border-color: var(--hud-cyan);
  box-shadow: 0 0 16px var(--hud-cyan-dim);
  transform: translateY(-2px);
}

.gauge-svg {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.gauge-track {
  stroke: rgba(255, 255, 255, 0.08);
}

.gauge-progress {
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

/* --- 5. 5-AXIS SPIDER RADAR CHART --- */
.spider-chart-frame {
  position: relative;
  background: rgba(7, 13, 26, 0.88);
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  padding: 18px;
}

.spider-polygon {
  fill: rgba(0, 240, 255, 0.22);
  stroke: var(--hud-cyan);
  stroke-width: 2;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}

.spider-vertex {
  fill: #fff;
  stroke: var(--hud-cyan);
  stroke-width: 2;
  transition: all 0.5s ease;
}

/* ==========================================================================
   DRAGGABLE & REARRANGEABLE HUD PANELS (DOCK & DESKTOP ICON MODES)
   ========================================================================== */
.draggable-hud-panel {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}

.panel-drag-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin: -12px -12px 14px -12px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.08), rgba(6, 11, 24, 0.95), rgba(168, 85, 247, 0.08));
  border-bottom: 1px dashed rgba(0, 240, 255, 0.25);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  cursor: grab;
  user-select: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--hud-cyan);
  transition: all 0.2s ease;
}

.panel-drag-handle:hover {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.18), rgba(14, 27, 52, 0.98), rgba(168, 85, 247, 0.18));
  border-bottom-color: var(--hud-cyan);
  color: #fff;
  box-shadow: 0 0 12px var(--hud-cyan-dim);
}

.panel-drag-handle:active {
  cursor: grabbing;
}

.panel-drag-handle .drag-icon {
  font-size: 13px;
  color: var(--hud-cyan);
  margin-right: 6px;
  letter-spacing: -1px;
}

.panel-drag-handle .drag-title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.panel-drag-handle .drag-hint {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Dragging state */
.draggable-hud-panel.dragging-panel {
  opacity: 0.45;
  outline: 2px dashed var(--hud-cyan);
  outline-offset: 4px;
  transform: scale(0.985);
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.25);
}

/* Drop target insertion indicators */
.draggable-hud-panel.drop-target-before {
  border-top: 3px solid var(--hud-cyan) !important;
  box-shadow: 0 -8px 24px rgba(0, 240, 255, 0.4);
}

.draggable-hud-panel.drop-target-after {
  border-bottom: 3px solid var(--hud-cyan) !important;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   FREE-FLOATING DESKTOP WINDOWS & ICONS MODE
   ========================================================================== */
body.desktop-mode-active #main-hud-grid {
  position: relative;
  min-height: 2800px;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}

body.desktop-mode-active .draggable-hud-panel {
  position: absolute;
  width: calc(100% - 32px);
  max-width: 900px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.2);
  z-index: 10;
}

body.desktop-mode-active .draggable-hud-panel.panel-focused {
  z-index: 30;
  border-color: var(--hud-cyan);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.35);
}

/* ==========================================================================
   INTERACTIVE TWO-WAY TERMINAL SCREEN & LOG STREAM
   ========================================================================== */
.terminal-screen-wrapper {
  background: #020611;
  border: 1px solid var(--hud-border-bright);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.07), 0 8px 24px rgba(0, 0, 0, 0.6);
  position: relative;
}

.terminal-screen-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  opacity: 0.6;
}

#terminal-log-stream {
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

#terminal-log-stream::-webkit-scrollbar {
  width: 6px;
}
#terminal-log-stream::-webkit-scrollbar-track {
  background: rgba(2, 6, 17, 0.8);
}
#terminal-log-stream::-webkit-scrollbar-thumb {
  background: var(--hud-cyan-dim);
  border-radius: 3px;
  border: 1px solid var(--hud-border);
}
#terminal-log-stream::-webkit-scrollbar-thumb:hover {
  background: var(--hud-cyan);
}

.terminal-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
  font-family: var(--font-mono);
}

.terminal-entry:hover {
  background: rgba(0, 240, 255, 0.05);
}

.terminal-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.terminal-tag-hud {
  background: rgba(0, 240, 255, 0.15);
  color: var(--hud-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.terminal-tag-bot {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.terminal-tag-lan {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.terminal-tag-tg {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.terminal-tag-err {
  background: rgba(255, 45, 85, 0.15);
  color: #ff4d6d;
  border: 1px solid rgba(255, 45, 85, 0.4);
}

.quick-chip-btn {
  background: rgba(8, 16, 32, 0.85);
  border: 1px solid var(--hud-border);
  transition: all 0.2s ease;
}

.quick-chip-btn:hover {
  border-color: var(--hud-cyan);
  box-shadow: 0 0 10px var(--hud-cyan-dim);
  transform: translateY(-1px);
}

/* ==========================================================================
   HOLOGRAPHIC TOAST BANNER (INCOMING TELEGRAM DISPATCH)
   ========================================================================== */
#hud-toast-banner {
  position: fixed;
  top: 75px;
  right: 20px;
  z-index: 9999;
  max-width: 440px;
  width: calc(100% - 40px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#hud-toast-banner.hud-toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hud-toast-content {
  background: linear-gradient(135deg, rgba(8, 18, 42, 0.98), rgba(4, 9, 24, 0.98));
  border: 1px solid var(--hud-border-bright);
  border-left: 4px solid #a855f7;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.35);
  position: relative;
  overflow: hidden;
}

.hud-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hud-toast-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #c084fc;
  text-transform: uppercase;
}

.hud-toast-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.hud-toast-body {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: #e2e8f0;
}

/* ==========================================================================
   CINEMA FUI MULTIVERSE HOLO-DECK & 15-SIMULATOR CONTROLS
   ========================================================================== */
.holodeck-card {
  position: relative;
  background: linear-gradient(135deg, rgba(6, 12, 28, 0.92), rgba(3, 7, 18, 0.96));
  border: 1px solid var(--hud-border-bright);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px var(--hud-cyan-dim);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Holo-Deck Universe Selector Navigation */
.holodeck-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  background: rgba(4, 9, 22, 0.7);
  border-bottom: 1px solid var(--hud-border);
  scrollbar-width: thin;
  scrollbar-color: var(--hud-cyan) transparent;
}
.holodeck-tabs-bar::-webkit-scrollbar {
  height: 4px;
}
.holodeck-tabs-bar::-webkit-scrollbar-thumb {
  background: var(--hud-cyan);
  border-radius: 2px;
}

.holodeck-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.holodeck-tab-btn:hover {
  color: #ffffff;
  border-color: var(--hud-cyan);
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 0 12px var(--hud-cyan-dim);
  transform: translateY(-1px);
}
.holodeck-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--hud-cyan-dim), rgba(255, 255, 255, 0.08));
  border-color: var(--hud-cyan);
  box-shadow: 0 0 16px var(--hud-cyan-glow), inset 0 0 10px var(--hud-cyan-dim);
}

/* Holodeck Interactive Viewport Frame */
.holodeck-viewport-frame {
  position: relative;
  width: 100%;
  height: 380px;
  background: radial-gradient(circle at center, rgba(10, 20, 45, 0.7) 0%, rgba(2, 5, 15, 0.95) 100%);
  overflow: hidden;
}

.holodeck-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* Corner Reticle Brackets on Holodeck Canvas */
.holodeck-reticle-tl, .holodeck-reticle-tr, .holodeck-reticle-bl, .holodeck-reticle-br {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  border-color: var(--hud-cyan);
  opacity: 0.85;
}
.holodeck-reticle-tl { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; }
.holodeck-reticle-tr { top: 12px; right: 12px; border-top: 2px solid; border-right: 2px solid; }
.holodeck-reticle-bl { bottom: 12px; left: 12px; border-bottom: 2px solid; border-left: 2px solid; }
.holodeck-reticle-br { bottom: 12px; right: 12px; border-bottom: 2px solid; border-right: 2px solid; }

/* Holodeck Telemetry Floating HUD Data Overlay */
.holodeck-data-overlay {
  position: absolute;
  pointer-events: none;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  color: var(--hud-cyan);
  text-shadow: 0 0 8px var(--hud-cyan-glow);
  z-index: 10;
}
.holodeck-data-top-left { top: 12px; left: 24px; }
.holodeck-data-top-right { top: 12px; right: 24px; text-align: right; }
.holodeck-data-bottom-left { bottom: 12px; left: 24px; }
.holodeck-data-bottom-right { bottom: 12px; right: 24px; text-align: right; }

/* Interactive Simulator Control Bar */
.holodeck-controls-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(3, 7, 18, 0.9);
  border-top: 1px solid var(--hud-border);
}

/* ==========================================================================
   FRANCHISE-SPECIFIC VISUAL SIGNATURES
   ========================================================================== */

/* STAR TREK LCARS MODE: Signature Curved Pill Header & Left Side-Rail */
body.theme-startrek .hud-panel {
  border-radius: 0 24px 0 0;
  border-left: 14px solid #ff9900;
  border-top: 2px solid #ff9900;
  border-right: 1px solid #cc99cc;
  border-bottom: 1px solid #9999ff;
  background: rgba(6, 4, 10, 0.92);
}
body.theme-startrek .hud-panel-title {
  color: #ff9900;
  letter-spacing: 0.15em;
}
body.theme-startrek .hud-btn {
  border-radius: 9999px;
  background: rgba(255, 153, 0, 0.15);
  border-color: #ff9900;
  color: #ffcc00;
}
body.theme-startrek .hud-btn.active {
  background: #ff9900;
  color: #000000;
  font-weight: 800;
}

/* ROBOCOP OCP MODE: Gunmetal, OCP Directives & Sharp Targeting Crosshairs */
body.theme-robocop .hud-panel {
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 2px;
  background: rgba(4, 14, 8, 0.92);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
body.theme-robocop .hud-panel::before {
  content: "OCP // UNIT 001";
  position: absolute;
  top: 4px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #10b981;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

/* TERMINATOR GENISYS SKYNET MODE: Blood Red CRT Scanlines & Hex Streams */
body.theme-terminator .hud-panel {
  border: 1px solid rgba(239, 68, 68, 0.6);
  border-radius: 3px;
  background: rgba(18, 2, 2, 0.94);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
}
body.theme-terminator .hud-panel::before {
  content: "CYBERDYNE SYSTEMS // T-800 TARGETING";
  position: absolute;
  top: 4px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #ef4444;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

/* TRON: LEGACY MODE: Pure Black Void & Razor-Sharp Laser Cyan Borders */
body.theme-tron .hud-panel {
  border: 1px solid #00f0ff;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3), inset 0 0 15px rgba(0, 240, 255, 0.08);
}
body.theme-tron .hud-btn {
  border-radius: 0;
  border-color: #00f0ff;
}

/* MINORITY REPORT PRE-CRIME MODE: Crystalline Frosted Glass & Gestural Soft Cyan */
body.theme-minorityreport .hud-panel {
  backdrop-filter: blur(28px);
  background: rgba(8, 24, 48, 0.65);
  border: 1px solid rgba(125, 211, 252, 0.4);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(125, 211, 252, 0.2);
}

/* HITMAN AGENT 47 MODE: Matte Carbon & Signature ICA Crimson Accent Stripe */
body.theme-hitman .hud-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #e11d48;
  border-radius: 4px;
  background: rgba(14, 14, 14, 0.94);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
}
body.theme-hitman .hud-panel::before {
  content: "ICA // 640509-040147";
  position: absolute;
  top: 4px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #e11d48;
  letter-spacing: 0.12em;
}

/* PACIFIC RIM PPDC MODE: Heavy Industrial Steel & Hazard Stripes */
body.theme-pacificrim .hud-panel {
  border: 2px solid rgba(6, 182, 212, 0.45);
  border-radius: 6px;
  background: rgba(8, 18, 36, 0.92);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(6, 182, 212, 0.2);
}

/* PROMETHEUS WEYLAND-YUTANI MODE: Cold Slate & Sterile Coordinates */
body.theme-prometheus .hud-panel {
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  background: rgba(6, 16, 28, 0.9);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.15);
}
body.theme-prometheus .hud-panel::before {
  content: "WEYLAND CORP // LV-223 SURVEY";
  position: absolute;
  top: 4px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #38bdf8;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

/* BLADE RUNNER TYRELL CORP MODE: Amber Phosphor CRT Flicker & Rain Shimmer */
body.theme-bladerunner .hud-panel {
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 4px;
  background: rgba(20, 14, 4, 0.92);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.2);
}

/* TOTAL RECALL REKALL INC MODE: Synaptic Magenta & Neon Horizon */
body.theme-totalrecall .hud-panel {
  border: 1px solid rgba(232, 121, 249, 0.45);
  border-radius: 8px;
  background: rgba(22, 6, 28, 0.92);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(232, 121, 249, 0.25);
}

/* FURIOUS 7 GOD'S EYE MODE: Surveillance Emerald & Triangulation Nodes */
body.theme-godseye .hud-panel {
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 4px;
  background: rgba(3, 18, 9, 0.92);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 255, 136, 0.2);
}

/* STAR WARS IMPERIAL / REBEL MODE: Vector Green Wireframe */
body.theme-starwars .hud-panel {
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 4px;
  background: rgba(4, 12, 6, 0.92);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(34, 197, 94, 0.2);
}

/* INSURGENT ERUDITE MODE: Sterile Cobalt & Pentagonal Symmetry */
/* ==========================================================================
   SIMULTANEOUS MULTI-FRANCHISE MOVIE PANELS (AUTHENTIC SCI-FI INTEGRATION)
   ========================================================================== */

/* 1. PROMETHEUS (WEYLAND-YUTANI ATMOSPHERIC EXPEDITION) */
.franchise-prometheus {
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  background: linear-gradient(135deg, rgba(6, 18, 34, 0.95), rgba(3, 10, 20, 0.96)) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(56, 189, 248, 0.15) !important;
  border-radius: 6px;
  position: relative;
}
.franchise-prometheus::before {
  content: "WEYLAND-YUTANI // LV-223 SURVEY";
  position: absolute;
  top: 4px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #38bdf8;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

/* 2. STAR WARS & PACIFIC RIM (DEATH STAR VECTOR RETICLE & PPDC JAEGER WAR ROOM) */
.franchise-starwars-pacificrim {
  border: 2px solid rgba(34, 197, 94, 0.45) !important;
  background: linear-gradient(135deg, rgba(4, 16, 10, 0.95), rgba(3, 8, 18, 0.96)) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(34, 197, 94, 0.2) !important;
  border-radius: 4px;
  position: relative;
}
.franchise-starwars-pacificrim::before {
  content: "DEATH STAR VECTOR // PPDC JAEGER WAR ROOM";
  position: absolute;
  top: 4px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #22c55e;
  letter-spacing: 0.15em;
  opacity: 0.75;
}

/* 3. ROBOCOP & TERMINATOR (OCP 001 DIRECTIVE & CYBERDYNE T-800 OPTICAL SCANNER) */
.franchise-robocop-terminator {
  border: 1px solid rgba(239, 68, 68, 0.55) !important;
  background: linear-gradient(135deg, rgba(20, 4, 6, 0.96), rgba(6, 12, 8, 0.95)) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(239, 68, 68, 0.22) !important;
  border-radius: 3px;
  position: relative;
}
.franchise-robocop-terminator::before {
  content: "OCP UNIT 001 // CYBERDYNE T-800 TARGETING";
  position: absolute;
  top: 4px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #ef4444;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

/* 4. TRON: LEGACY (THE GRID OBSIDIAN & IDENTITY DISC OS) */
.franchise-tron {
  border: 1px solid #00f0ff !important;
  background: #000000 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 240, 255, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.08) !important;
  border-radius: 0 !important;
  position: relative;
}
.franchise-tron::before {
  content: "THE GRID // SYSTEM OPERATING KERNEL";
  position: absolute;
  top: 4px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #00f0ff;
  letter-spacing: 0.18em;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

/* 5. BLADE RUNNER & MINORITY REPORT (VOIGHT-KAMPFF IRIS & PRE-CRIME TEMPORAL) */
.franchise-bladerunner-minorityreport {
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  background: linear-gradient(135deg, rgba(22, 14, 4, 0.95), rgba(8, 20, 36, 0.92)) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.22) !important;
  border-radius: 8px;
  position: relative;
  backdrop-filter: blur(20px);
}
.franchise-bladerunner-minorityreport::before {
  content: "VOIGHT-KAMPFF IRIS // PRE-CRIME TEMPORAL RING";
  position: absolute;
  top: 4px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #f59e0b;
  letter-spacing: 0.15em;
  opacity: 0.75;
}

/* 6. STAR TREK LCARS, TOTAL RECALL & INSURGENT (CURVED ARCHITECTURE & REKALL SYNAPSE) */
.franchise-startrek-totalrecall {
  border-left: 16px solid #ff9900 !important;
  border-top: 3px solid #ff9900 !important;
  border-right: 1px solid #cc99cc !important;
  border-bottom: 1px solid #9999ff !important;
  border-radius: 0 28px 0 0 !important;
  background: linear-gradient(135deg, rgba(12, 6, 20, 0.96), rgba(6, 4, 12, 0.98)) !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 153, 0, 0.2) !important;
  position: relative;
}
.franchise-startrek-totalrecall::before {
  content: "STARFLEET LCARS // REKALL SYNAPSE MATRIX";
  position: absolute;
  top: 4px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #ffaa55;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

/* 7. FURIOUS 7 GOD'S EYE & HITMAN AGENT 47 (SATELLITE TRIANGULATION & ICA RETICLE) */
.franchise-godseye-hitman {
  border: 1px solid rgba(0, 255, 136, 0.4) !important;
  border-left: 5px solid #e11d48 !important;
  background: linear-gradient(135deg, rgba(4, 14, 8, 0.96), rgba(12, 12, 12, 0.98)) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 255, 136, 0.18) !important;
  border-radius: 4px;
  position: relative;
}
.franchise-godseye-hitman::before {
  content: "GOD'S EYE SATELLITE // ICA 640509-040147";
  position: absolute;
  top: 4px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #34d399;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

/* Animate slow rotation for Tron Identity Disc */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

/* ==========================================================================
   CYBER PORT SCANNER & SERVICE FINGERPRINT MATRIX
   ========================================================================== */
.port-matrix-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(7, 12, 22, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.port-matrix-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 15px rgba(168, 85, 247, 0.25);
}

.port-matrix-card.open-nominal {
  border-left: 3px solid #10b981;
  background: linear-gradient(145deg, rgba(6, 28, 18, 0.9), rgba(4, 15, 10, 0.95));
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.port-matrix-card.open-attention {
  border-left: 3px solid #f59e0b;
  background: linear-gradient(145deg, rgba(35, 24, 6, 0.9), rgba(18, 12, 3, 0.95));
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.port-matrix-card.open-critical {
  border-left: 3px solid #ef4444;
  background: linear-gradient(145deg, rgba(40, 8, 12, 0.9), rgba(20, 4, 6, 0.95));
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
  animation: pulse-border-red 2s infinite;
}

@keyframes pulse-border-red {
  0%, 100% { border-color: rgba(239, 68, 68, 0.5); }
  50% { border-color: rgba(239, 68, 68, 1); }
}

@keyframes scanline-laser {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(800%); opacity: 0; }
}

.scanner-laser-sweep {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, #06b6d4, transparent);
  animation: scanline-laser 2.5s ease-in-out infinite;
  pointer-events: none;
}

/* ==========================================================================
   REALTIME EPL & F1 LIVE SPORTS TELEMETRY COCKPIT
   ========================================================================== */
.sports-match-card {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(8, 14, 26, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.sports-match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7), 0 0 16px rgba(56, 189, 248, 0.2);
}

.sports-match-card.is-live {
  border-left: 3px solid #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(30, 10, 15, 0.9), rgba(12, 6, 10, 0.95));
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
  animation: live-match-glow 3s infinite ease-in-out;
}

@keyframes live-match-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.45);
  }
}

.team-crest-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.sports-match-card:hover .team-crest-img {
  transform: scale(1.1);
}

.f1-paddock-card {
  background: linear-gradient(135deg, rgba(20, 10, 15, 0.85), rgba(10, 10, 15, 0.95));
  border: 1px solid rgba(244, 63, 94, 0.3);
  position: relative;
}

.f1-standing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
}

.f1-standing-row:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(244, 63, 94, 0.3);
  transform: translateX(2px);
}

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.pos-p1 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.pos-p2 {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #000;
}

.pos-p3 {
  background: linear-gradient(135deg, #d97706, #92400e);
  color: #fff;
}

.pos-default {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
}



