/* ===== Babylon-5 Terminal — Race Themes ===== */

/* ── EarthForce (Default) ── */
:root,
.theme-earthforce {
  /* Backgrounds */
  --bg-body: #020617;
  --bg-panel: rgba(15, 23, 42, 0.5);
  --bg-panel-hover: rgba(30, 58, 138, 0.3);
  --bg-header-from: rgba(23, 37, 84, 0.9);
  --bg-header-via: rgba(30, 58, 138, 0.8);
  --bg-header-to: rgba(23, 37, 84, 0.9);
  --bg-nav-mobile: rgba(23, 37, 84, 0.98);
  --bg-badge: rgba(23, 37, 84, 0.5);
  --bg-input: rgba(15, 23, 42, 0.8);

  /* Borders */
  --border-primary: rgba(30, 58, 138, 0.3);
  --border-strong: #1e3a8a;
  --border-accent: rgba(245, 158, 11, 0.3);
  --border-subtle: rgba(30, 58, 138, 0.5);

  /* Text */
  --text-primary: #60a5fa;
  --text-secondary: #93c5fd;
  --text-muted: #bfdbfe;
  --text-body: #dbeafe;
  --text-accent: #f59e0b;
  --text-accent-bright: #fbbf24;

  /* Glows & Shadows */
  --glow-primary: rgba(96, 165, 250, 0.6);
  --glow-accent: rgba(245, 158, 11, 0.6);
  --glow-panel: rgba(96, 165, 250, 0.3);
  --shadow-panel-inset: rgba(30, 58, 138, 0.2);
  --shadow-accent: rgba(245, 158, 11, 0.5);
  --shadow-accent-soft: rgba(245, 158, 11, 0.1);

  /* CRT */
  --crt-scanline: rgba(96, 165, 250, 0.2);
  --crt-r: 255; --crt-g: 0; --crt-b: 0;
  --crt-r2: 0; --crt-g2: 255; --crt-b2: 0;
  --crt-r3: 0; --crt-g3: 0; --crt-b3: 255;

  /* Scrollbar */
  --scrollbar-track: rgba(15, 23, 42, 0.5);
  --scrollbar-thumb: rgba(30, 58, 138, 0.8);
  --scrollbar-thumb-hover: rgba(245, 158, 11, 0.6);

  /* Selection */
  --selection-bg: rgba(30, 58, 138, 0.8);
  --selection-text: #dbeafe;

  /* Nav active */
  --nav-active-bar: #f59e0b;
  --nav-active-bg: rgba(30, 58, 138, 0.5);
  --nav-active-text: #fbbf24;
  --nav-active-glow: rgba(245, 158, 11, 0.6);
  --nav-active-border: rgba(245, 158, 11, 0.3);
  --nav-active-shadow: rgba(245, 158, 11, 0.1);

  /* Logo */
  --logo-border: #f59e0b;
  --logo-glow: rgba(245, 158, 11, 0.5);
  --logo-bg-pulse: rgba(245, 158, 11, 0.2);
  --logo-icon: #f59e0b;

  /* Radar */
  --radar-color: #fbbf24;
  --radar-glow: rgba(251, 191, 36, 0.8);
}

/* ── Минбари ── */
.theme-minbari {
  --bg-body: #0a0520;
  --bg-panel: rgba(20, 10, 50, 0.45);
  --bg-panel-hover: rgba(45, 20, 80, 0.3);
  --bg-header-from: rgba(15, 5, 40, 0.9);
  --bg-header-via: rgba(30, 15, 60, 0.8);
  --bg-header-to: rgba(15, 5, 40, 0.9);
  --bg-nav-mobile: rgba(15, 5, 40, 0.98);
  --bg-badge: rgba(30, 15, 60, 0.5);
  --bg-input: rgba(20, 10, 50, 0.8);

  --border-primary: rgba(75, 50, 130, 0.3);
  --border-strong: #5b21b6;
  --border-accent: rgba(45, 212, 191, 0.3);
  --border-subtle: rgba(75, 50, 130, 0.5);

  --text-primary: #2dd4bf;
  --text-secondary: #d8b4fe;
  --text-muted: #c4b5fd;
  --text-body: #e0d4fc;
  --text-accent: #5eead4;
  --text-accent-bright: #99f6e4;

  --glow-primary: rgba(45, 212, 191, 0.6);
  --glow-accent: rgba(94, 234, 212, 0.6);
  --glow-panel: rgba(45, 212, 191, 0.2);
  --shadow-panel-inset: rgba(75, 50, 130, 0.25);
  --shadow-accent: rgba(94, 234, 212, 0.5);
  --shadow-accent-soft: rgba(94, 234, 212, 0.1);

  --crt-scanline: rgba(45, 212, 191, 0.15);
  --crt-r: 100; --crt-g: 50; --crt-b: 200;
  --crt-r2: 0; --crt-g2: 200; --crt-b2: 180;
  --crt-r3: 50; --crt-g3: 0; --crt-b3: 150;

  --scrollbar-track: rgba(20, 10, 50, 0.5);
  --scrollbar-thumb: rgba(75, 50, 130, 0.8);
  --scrollbar-thumb-hover: rgba(45, 212, 191, 0.6);

  --selection-bg: rgba(75, 50, 130, 0.8);
  --selection-text: #e0d4fc;

  --nav-active-bar: #2dd4bf;
  --nav-active-bg: rgba(75, 50, 130, 0.5);
  --nav-active-text: #5eead4;
  --nav-active-glow: rgba(45, 212, 191, 0.6);
  --nav-active-border: rgba(45, 212, 191, 0.3);
  --nav-active-shadow: rgba(45, 212, 191, 0.1);

  --logo-border: #2dd4bf;
  --logo-glow: rgba(45, 212, 191, 0.5);
  --logo-bg-pulse: rgba(45, 212, 191, 0.2);
  --logo-icon: #2dd4bf;

  --radar-color: #2dd4bf;
  --radar-glow: rgba(45, 212, 191, 0.8);
}

/* ── Центавриане ── */
.theme-centauri {
  --bg-body: #1a0a00;
  --bg-panel: rgba(40, 20, 5, 0.5);
  --bg-panel-hover: rgba(80, 40, 10, 0.3);
  --bg-header-from: rgba(50, 25, 0, 0.9);
  --bg-header-via: rgba(80, 40, 10, 0.8);
  --bg-header-to: rgba(50, 25, 0, 0.9);
  --bg-nav-mobile: rgba(40, 20, 5, 0.98);
  --bg-badge: rgba(60, 30, 5, 0.5);
  --bg-input: rgba(40, 20, 5, 0.8);

  --border-primary: rgba(180, 130, 40, 0.3);
  --border-strong: #92400e;
  --border-accent: rgba(167, 139, 250, 0.3);
  --border-subtle: rgba(180, 130, 40, 0.5);

  --text-primary: #fbbf24;
  --text-secondary: #c4b5fd;
  --text-muted: #fde68a;
  --text-body: #fef3c7;
  --text-accent: #a78bfa;
  --text-accent-bright: #c4b5fd;

  --glow-primary: rgba(251, 191, 36, 0.6);
  --glow-accent: rgba(167, 139, 250, 0.6);
  --glow-panel: rgba(251, 191, 36, 0.2);
  --shadow-panel-inset: rgba(120, 80, 20, 0.3);
  --shadow-accent: rgba(167, 139, 250, 0.5);
  --shadow-accent-soft: rgba(167, 139, 250, 0.1);

  --crt-scanline: rgba(251, 191, 36, 0.1);
  --crt-r: 200; --crt-g: 150; --crt-b: 30;
  --crt-r2: 150; --crt-g2: 100; --crt-b2: 200;
  --crt-r3: 100; --crt-g3: 60; --crt-b3: 10;

  --scrollbar-track: rgba(40, 20, 5, 0.5);
  --scrollbar-thumb: rgba(180, 130, 40, 0.8);
  --scrollbar-thumb-hover: rgba(167, 139, 250, 0.6);

  --selection-bg: rgba(120, 80, 20, 0.8);
  --selection-text: #fef3c7;

  --nav-active-bar: #a78bfa;
  --nav-active-bg: rgba(80, 40, 10, 0.5);
  --nav-active-text: #c4b5fd;
  --nav-active-glow: rgba(167, 139, 250, 0.6);
  --nav-active-border: rgba(167, 139, 250, 0.3);
  --nav-active-shadow: rgba(167, 139, 250, 0.1);

  --logo-border: #a78bfa;
  --logo-glow: rgba(167, 139, 250, 0.5);
  --logo-bg-pulse: rgba(167, 139, 250, 0.2);
  --logo-icon: #a78bfa;

  --radar-color: #fbbf24;
  --radar-glow: rgba(251, 191, 36, 0.8);
}

/* ── Нарны ── */
.theme-narn {
  --bg-body: #1a0500;
  --bg-panel: rgba(40, 10, 5, 0.5);
  --bg-panel-hover: rgba(80, 20, 10, 0.3);
  --bg-header-from: rgba(50, 10, 0, 0.9);
  --bg-header-via: rgba(80, 20, 5, 0.8);
  --bg-header-to: rgba(50, 10, 0, 0.9);
  --bg-nav-mobile: rgba(40, 10, 5, 0.98);
  --bg-badge: rgba(60, 15, 5, 0.5);
  --bg-input: rgba(40, 10, 5, 0.8);

  --border-primary: rgba(180, 40, 20, 0.3);
  --border-strong: #991b1b;
  --border-accent: rgba(251, 146, 60, 0.3);
  --border-subtle: rgba(180, 40, 20, 0.5);

  --text-primary: #ef4444;
  --text-secondary: #fb923c;
  --text-muted: #fca5a5;
  --text-body: #fecaca;
  --text-accent: #fb923c;
  --text-accent-bright: #fdba74;

  --glow-primary: rgba(239, 68, 68, 0.6);
  --glow-accent: rgba(251, 146, 60, 0.6);
  --glow-panel: rgba(239, 68, 68, 0.2);
  --shadow-panel-inset: rgba(150, 30, 15, 0.3);
  --shadow-accent: rgba(251, 146, 60, 0.5);
  --shadow-accent-soft: rgba(251, 146, 60, 0.1);

  --crt-scanline: rgba(239, 68, 68, 0.15);
  --crt-r: 255; --crt-g: 50; --crt-b: 30;
  --crt-r2: 200; --crt-g2: 100; --crt-b2: 0;
  --crt-r3: 150; --crt-g3: 20; --crt-b3: 0;

  --scrollbar-track: rgba(40, 10, 5, 0.5);
  --scrollbar-thumb: rgba(180, 40, 20, 0.8);
  --scrollbar-thumb-hover: rgba(251, 146, 60, 0.6);

  --selection-bg: rgba(150, 30, 15, 0.8);
  --selection-text: #fecaca;

  --nav-active-bar: #fb923c;
  --nav-active-bg: rgba(80, 20, 10, 0.5);
  --nav-active-text: #fdba74;
  --nav-active-glow: rgba(251, 146, 60, 0.6);
  --nav-active-border: rgba(251, 146, 60, 0.3);
  --nav-active-shadow: rgba(251, 146, 60, 0.1);

  --logo-border: #fb923c;
  --logo-glow: rgba(251, 146, 60, 0.5);
  --logo-bg-pulse: rgba(251, 146, 60, 0.2);
  --logo-icon: #fb923c;

  --radar-color: #ef4444;
  --radar-glow: rgba(239, 68, 68, 0.8);
}

/* ── Ворлоны ── */
.theme-vorlon {
  --bg-body: #051a0a;
  --bg-panel: rgba(10, 40, 20, 0.45);
  --bg-panel-hover: rgba(20, 60, 30, 0.3);
  --bg-header-from: rgba(5, 30, 15, 0.9);
  --bg-header-via: rgba(15, 50, 25, 0.8);
  --bg-header-to: rgba(5, 30, 15, 0.9);
  --bg-nav-mobile: rgba(5, 30, 15, 0.98);
  --bg-badge: rgba(10, 40, 20, 0.5);
  --bg-input: rgba(10, 40, 20, 0.8);

  --border-primary: rgba(16, 185, 129, 0.25);
  --border-strong: #065f46;
  --border-accent: rgba(253, 224, 71, 0.3);
  --border-subtle: rgba(16, 185, 129, 0.4);

  --text-primary: #34d399;
  --text-secondary: #fde047;
  --text-muted: #a7f3d0;
  --text-body: #d1fae5;
  --text-accent: #fde047;
  --text-accent-bright: #fef08a;

  --glow-primary: rgba(52, 211, 153, 0.6);
  --glow-accent: rgba(253, 224, 71, 0.6);
  --glow-panel: rgba(52, 211, 153, 0.2);
  --shadow-panel-inset: rgba(16, 185, 129, 0.2);
  --shadow-accent: rgba(253, 224, 71, 0.5);
  --shadow-accent-soft: rgba(253, 224, 71, 0.1);

  --crt-scanline: rgba(52, 211, 153, 0.12);
  --crt-r: 50; --crt-g: 200; --crt-b: 120;
  --crt-r2: 200; --crt-g2: 200; --crt-b2: 50;
  --crt-r3: 0; --crt-g3: 150; --crt-b3: 80;

  --scrollbar-track: rgba(10, 40, 20, 0.5);
  --scrollbar-thumb: rgba(16, 185, 129, 0.6);
  --scrollbar-thumb-hover: rgba(253, 224, 71, 0.6);

  --selection-bg: rgba(16, 185, 129, 0.5);
  --selection-text: #d1fae5;

  --nav-active-bar: #fde047;
  --nav-active-bg: rgba(16, 185, 129, 0.3);
  --nav-active-text: #fef08a;
  --nav-active-glow: rgba(253, 224, 71, 0.6);
  --nav-active-border: rgba(253, 224, 71, 0.3);
  --nav-active-shadow: rgba(253, 224, 71, 0.1);

  --logo-border: #fde047;
  --logo-glow: rgba(253, 224, 71, 0.5);
  --logo-bg-pulse: rgba(253, 224, 71, 0.2);
  --logo-icon: #fde047;

  --radar-color: #34d399;
  --radar-glow: rgba(52, 211, 153, 0.8);
}

/* ── Тени (Shadows) ── */
.theme-shadows {
  --bg-body: #050505;
  --bg-panel: rgba(15, 5, 15, 0.5);
  --bg-panel-hover: rgba(30, 10, 30, 0.4);
  --bg-header-from: rgba(10, 0, 10, 0.95);
  --bg-header-via: rgba(20, 5, 20, 0.9);
  --bg-header-to: rgba(10, 0, 10, 0.95);
  --bg-nav-mobile: rgba(10, 0, 10, 0.98);
  --bg-badge: rgba(20, 5, 20, 0.5);
  --bg-input: rgba(15, 5, 15, 0.8);

  --border-primary: rgba(100, 20, 80, 0.3);
  --border-strong: #581c87;
  --border-accent: rgba(220, 38, 38, 0.3);
  --border-subtle: rgba(100, 20, 80, 0.5);

  --text-primary: #a855f7;
  --text-secondary: #ef4444;
  --text-muted: #d8b4fe;
  --text-body: #e9d5ff;
  --text-accent: #dc2626;
  --text-accent-bright: #f87171;

  --glow-primary: rgba(168, 85, 247, 0.5);
  --glow-accent: rgba(220, 38, 38, 0.5);
  --glow-panel: rgba(168, 85, 247, 0.15);
  --shadow-panel-inset: rgba(100, 20, 80, 0.3);
  --shadow-accent: rgba(220, 38, 38, 0.5);
  --shadow-accent-soft: rgba(220, 38, 38, 0.1);

  --crt-scanline: rgba(168, 85, 247, 0.12);
  --crt-r: 180; --crt-g: 0; --crt-b: 150;
  --crt-r2: 200; --crt-g2: 0; --crt-b2: 0;
  --crt-r3: 100; --crt-g3: 0; --crt-b3: 80;

  --scrollbar-track: rgba(15, 5, 15, 0.5);
  --scrollbar-thumb: rgba(100, 20, 80, 0.8);
  --scrollbar-thumb-hover: rgba(220, 38, 38, 0.6);

  --selection-bg: rgba(100, 20, 80, 0.8);
  --selection-text: #e9d5ff;

  --nav-active-bar: #dc2626;
  --nav-active-bg: rgba(100, 20, 80, 0.5);
  --nav-active-text: #f87171;
  --nav-active-glow: rgba(220, 38, 38, 0.6);
  --nav-active-border: rgba(220, 38, 38, 0.3);
  --nav-active-shadow: rgba(220, 38, 38, 0.15);

  --logo-border: #dc2626;
  --logo-glow: rgba(220, 38, 38, 0.5);
  --logo-bg-pulse: rgba(220, 38, 38, 0.2);
  --logo-icon: #dc2626;

  --radar-color: #a855f7;
  --radar-glow: rgba(168, 85, 247, 0.8);
}

/* ── Дракхи ── */
.theme-drakh {
  --bg-body: #0a0a05;
  --bg-panel: rgba(15, 15, 8, 0.5);
  --bg-panel-hover: rgba(25, 30, 10, 0.3);
  --bg-header-from: rgba(10, 10, 5, 0.95);
  --bg-header-via: rgba(20, 20, 8, 0.9);
  --bg-header-to: rgba(10, 10, 5, 0.95);
  --bg-nav-mobile: rgba(10, 10, 5, 0.98);
  --bg-badge: rgba(20, 20, 8, 0.5);
  --bg-input: rgba(15, 15, 8, 0.8);

  --border-primary: rgba(50, 80, 20, 0.3);
  --border-strong: #3f6212;
  --border-accent: rgba(132, 204, 22, 0.3);
  --border-subtle: rgba(50, 80, 20, 0.5);

  --text-primary: #84cc16;
  --text-secondary: #9ca3af;
  --text-muted: #bef264;
  --text-body: #d9f99d;
  --text-accent: #a3e635;
  --text-accent-bright: #d9f99d;

  --glow-primary: rgba(132, 204, 22, 0.5);
  --glow-accent: rgba(163, 230, 53, 0.5);
  --glow-panel: rgba(132, 204, 22, 0.15);
  --shadow-panel-inset: rgba(50, 80, 20, 0.25);
  --shadow-accent: rgba(163, 230, 53, 0.5);
  --shadow-accent-soft: rgba(163, 230, 53, 0.1);

  --crt-scanline: rgba(132, 204, 22, 0.12);
  --crt-r: 100; --crt-g: 180; --crt-b: 20;
  --crt-r2: 50; --crt-g2: 100; --crt-b2: 10;
  --crt-r3: 30; --crt-g3: 50; --crt-b3: 5;

  --scrollbar-track: rgba(15, 15, 8, 0.5);
  --scrollbar-thumb: rgba(50, 80, 20, 0.8);
  --scrollbar-thumb-hover: rgba(132, 204, 22, 0.6);

  --selection-bg: rgba(50, 80, 20, 0.8);
  --selection-text: #d9f99d;

  --nav-active-bar: #a3e635;
  --nav-active-bg: rgba(50, 80, 20, 0.5);
  --nav-active-text: #d9f99d;
  --nav-active-glow: rgba(163, 230, 53, 0.6);
  --nav-active-border: rgba(163, 230, 53, 0.3);
  --nav-active-shadow: rgba(163, 230, 53, 0.1);

  --logo-border: #a3e635;
  --logo-glow: rgba(163, 230, 53, 0.5);
  --logo-bg-pulse: rgba(163, 230, 53, 0.2);
  --logo-icon: #a3e635;

  --radar-color: #84cc16;
  --radar-glow: rgba(132, 204, 22, 0.8);
}

/* ── Пак'мара ── */
.theme-pakmara {
  --bg-body: #1a1505;
  --bg-panel: rgba(35, 28, 10, 0.5);
  --bg-panel-hover: rgba(55, 45, 20, 0.3);
  --bg-header-from: rgba(40, 32, 10, 0.9);
  --bg-header-via: rgba(55, 45, 15, 0.8);
  --bg-header-to: rgba(40, 32, 10, 0.9);
  --bg-nav-mobile: rgba(35, 28, 10, 0.98);
  --bg-badge: rgba(45, 35, 12, 0.5);
  --bg-input: rgba(35, 28, 10, 0.8);

  --border-primary: rgba(120, 90, 30, 0.3);
  --border-strong: #78350f;
  --border-accent: rgba(180, 140, 50, 0.3);
  --border-subtle: rgba(120, 90, 30, 0.5);

  --text-primary: #ca8a04;
  --text-secondary: #a8a29e;
  --text-muted: #fde68a;
  --text-body: #fef3c7;
  --text-accent: #d97706;
  --text-accent-bright: #fbbf24;

  --glow-primary: rgba(202, 138, 4, 0.3);
  --glow-accent: rgba(217, 119, 6, 0.3);
  --glow-panel: rgba(202, 138, 4, 0.1);
  --shadow-panel-inset: rgba(120, 90, 30, 0.15);
  --shadow-accent: rgba(217, 119, 6, 0.3);
  --shadow-accent-soft: rgba(217, 119, 6, 0.05);

  --crt-scanline: rgba(202, 138, 4, 0.08);
  --crt-r: 150; --crt-g: 120; --crt-b: 30;
  --crt-r2: 100; --crt-g2: 80; --crt-b2: 20;
  --crt-r3: 80; --crt-g3: 60; --crt-b3: 10;

  --scrollbar-track: rgba(35, 28, 10, 0.5);
  --scrollbar-thumb: rgba(120, 90, 30, 0.6);
  --scrollbar-thumb-hover: rgba(202, 138, 4, 0.6);

  --selection-bg: rgba(120, 90, 30, 0.6);
  --selection-text: #fef3c7;

  --nav-active-bar: #d97706;
  --nav-active-bg: rgba(55, 45, 20, 0.5);
  --nav-active-text: #fbbf24;
  --nav-active-glow: rgba(217, 119, 6, 0.4);
  --nav-active-border: rgba(217, 119, 6, 0.3);
  --nav-active-shadow: rgba(217, 119, 6, 0.1);

  --logo-border: #d97706;
  --logo-glow: rgba(217, 119, 6, 0.3);
  --logo-bg-pulse: rgba(217, 119, 6, 0.15);
  --logo-icon: #d97706;

  --radar-color: #ca8a04;
  --radar-glow: rgba(202, 138, 4, 0.5);
}

/* ── Лига Неприсоединившихся Миров ── */
.theme-league {
  --bg-body: #0a0a15;
  --bg-panel: rgba(15, 15, 30, 0.5);
  --bg-panel-hover: rgba(25, 25, 50, 0.3);
  --bg-header-from: rgba(12, 12, 25, 0.9);
  --bg-header-via: rgba(20, 20, 40, 0.8);
  --bg-header-to: rgba(12, 12, 25, 0.9);
  --bg-nav-mobile: rgba(12, 12, 25, 0.98);
  --bg-badge: rgba(20, 20, 40, 0.5);
  --bg-input: rgba(15, 15, 30, 0.8);

  --border-primary: rgba(60, 80, 120, 0.3);
  --border-strong: #475569;
  --border-accent: rgba(34, 211, 238, 0.3);
  --border-subtle: rgba(60, 80, 120, 0.5);

  --text-primary: #22d3ee;
  --text-secondary: #d1d5db;
  --text-muted: #a5f3fc;
  --text-body: #e2e8f0;
  --text-accent: #67e8f9;
  --text-accent-bright: #a5f3fc;

  --glow-primary: rgba(34, 211, 238, 0.4);
  --glow-accent: rgba(103, 232, 249, 0.4);
  --glow-panel: rgba(34, 211, 238, 0.15);
  --shadow-panel-inset: rgba(60, 80, 120, 0.2);
  --shadow-accent: rgba(103, 232, 249, 0.4);
  --shadow-accent-soft: rgba(103, 232, 249, 0.08);

  --crt-scanline: rgba(34, 211, 238, 0.1);
  --crt-r: 30; --crt-g: 180; --crt-b: 220;
  --crt-r2: 150; --crt-g2: 150; --crt-b2: 180;
  --crt-r3: 20; --crt-g3: 100; --crt-b3: 150;

  --scrollbar-track: rgba(15, 15, 30, 0.5);
  --scrollbar-thumb: rgba(60, 80, 120, 0.6);
  --scrollbar-thumb-hover: rgba(34, 211, 238, 0.6);

  --selection-bg: rgba(60, 80, 120, 0.6);
  --selection-text: #e2e8f0;

  --nav-active-bar: #67e8f9;
  --nav-active-bg: rgba(60, 80, 120, 0.4);
  --nav-active-text: #a5f3fc;
  --nav-active-glow: rgba(103, 232, 249, 0.5);
  --nav-active-border: rgba(103, 232, 249, 0.3);
  --nav-active-shadow: rgba(103, 232, 249, 0.08);

  --logo-border: #67e8f9;
  --logo-glow: rgba(103, 232, 249, 0.4);
  --logo-bg-pulse: rgba(103, 232, 249, 0.15);
  --logo-icon: #67e8f9;

  --radar-color: #22d3ee;
  --radar-glow: rgba(34, 211, 238, 0.8);
}

/* ===== Race-Specific Visual Effects ===== */

/* ── Минбари: Кристаллические панели ── */
.theme-minbari .b5-panel {
  backdrop-filter: blur(8px);
  clip-path: polygon(0 6px, 6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px));
}

.theme-minbari .crt-overlay {
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.08) 50%),
    linear-gradient(90deg, rgba(100, 50, 200, 0.02), rgba(0, 200, 180, 0.01), rgba(50, 0, 150, 0.02));
  background-size: 100% 4px, 3px 100%;
}

/* ── Центавриане: Орнаментальные бордеры ── */
.theme-centauri .b5-panel {
  border-width: 2px;
  border-radius: 4px;
  box-shadow:
    inset 0 0 20px var(--shadow-panel-inset),
    0 4px 6px -1px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(251, 191, 36, 0.1),
    inset 0 -1px 0 rgba(251, 191, 36, 0.05);
}

.theme-centauri .b5-panel::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), rgba(167, 139, 250, 0.3), rgba(251, 191, 36, 0.4), transparent);
}

@keyframes centauri-shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.theme-centauri .crt-overlay {
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.06) 50%),
    linear-gradient(90deg, rgba(200, 150, 30, 0.02), rgba(150, 100, 200, 0.01), rgba(100, 60, 10, 0.02));
  background-size: 100% 4px, 3px 100%;
}

/* ── Нарны: Агрессивные формы ── */
.theme-narn .b5-panel {
  border-width: 2px;
  clip-path: polygon(0 4px, 4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.theme-narn .b5-panel::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.6), rgba(251, 146, 60, 0.3), transparent);
}

.theme-narn .crt-overlay {
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%),
    linear-gradient(90deg, rgba(255, 50, 30, 0.03), rgba(200, 100, 0, 0.02), rgba(150, 20, 0, 0.03));
  background-size: 100% 3px, 3px 100%;
}

/* ── Ворлоны: Органические формы ── */
.theme-vorlon .b5-panel {
  border-radius: 12px;
  backdrop-filter: blur(6px);
  animation: vorlon-breathe 6s ease-in-out infinite;
}

@keyframes vorlon-breathe {
  0%, 100% { box-shadow: inset 0 0 20px var(--shadow-panel-inset), 0 4px 6px -1px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: inset 0 0 30px var(--shadow-panel-inset), 0 4px 12px -1px rgba(0, 0, 0, 0.3), 0 0 20px rgba(52, 211, 153, 0.08); }
}

.theme-vorlon .b5-panel::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.4), rgba(253, 224, 71, 0.2), rgba(52, 211, 153, 0.4), transparent);
}

.theme-vorlon .crt-overlay {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, transparent 40%, rgba(234, 179, 8, 0.02) 100%);
  background-size: 100% 100%;
  animation: none;
}

/* ── Тени: Глитч и искажения ── */
@keyframes shadow-corrupt {
  0%, 95%, 100% { transform: translate(0); filter: none; }
  96% { transform: translate(-2px, 1px); filter: hue-rotate(20deg); }
  97% { transform: translate(1px, -1px); filter: hue-rotate(-15deg); }
  98% { transform: translate(-1px, 0); }
  99% { transform: translate(2px, 1px); filter: hue-rotate(10deg); }
}

.theme-shadows .b5-panel {
  animation: shadow-corrupt 8s infinite;
  border-style: solid;
}

.theme-shadows .b5-panel::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), rgba(220, 38, 38, 0.3), transparent);
  animation: shadow-corrupt 3s infinite reverse;
}

.theme-shadows .crt-overlay {
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%),
    linear-gradient(90deg, rgba(180, 0, 150, 0.04), rgba(200, 0, 0, 0.03), rgba(100, 0, 80, 0.04));
  background-size: 100% 3px, 3px 100%;
}

.theme-shadows .crt-flicker {
  animation: flicker 0.1s infinite, shadow-corrupt 12s infinite;
}

/* ── Дракхи: Распад ── */
@keyframes drakh-decay {
  0%, 90%, 100% { border-image: none; }
  92% { border-color: rgba(163, 230, 53, 0.5); }
  95% { border-color: rgba(50, 80, 20, 0.3); }
}

.theme-drakh .b5-panel {
  animation: drakh-decay 10s infinite;
}

.theme-drakh .b5-panel::before {
  background: linear-gradient(90deg, rgba(132, 204, 22, 0.3), transparent 40%, rgba(132, 204, 22, 0.2));
  animation: drakh-decay 7s infinite;
}

.theme-drakh .crt-overlay {
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%),
    linear-gradient(90deg, rgba(100, 180, 20, 0.03), rgba(50, 100, 10, 0.02), rgba(30, 50, 5, 0.03));
  background-size: 100% 4px, 3px 100%;
}

/* ── Пак'мара: Минимализм ── */
.theme-pakmara .b5-panel {
  box-shadow: none;
  backdrop-filter: none;
  border-width: 1px;
  border-style: solid;
}

.theme-pakmara .b5-panel::before {
  display: none;
}

.theme-pakmara .crt-overlay {
  opacity: 0.3;
}

.theme-pakmara .crt-flicker {
  animation: none;
}

/* ── Лига: Дипломатическая полоса ── */
.theme-league header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    #ef4444 0%, #ef4444 11%,
    #f59e0b 11%, #f59e0b 22%,
    #eab308 22%, #eab308 33%,
    #22c55e 33%, #22c55e 44%,
    #22d3ee 44%, #22d3ee 55%,
    #3b82f6 55%, #3b82f6 66%,
    #8b5cf6 66%, #8b5cf6 77%,
    #a855f7 77%, #a855f7 88%,
    #ec4899 88%, #ec4899 100%
  );
  z-index: 10;
}

.theme-league .b5-panel {
  border-radius: 2px;
  box-shadow: inset 0 0 15px var(--shadow-panel-inset), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.theme-league .crt-overlay {
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.06) 50%),
    linear-gradient(90deg, rgba(30, 180, 220, 0.02), rgba(150, 150, 180, 0.01), rgba(20, 100, 150, 0.02));
  background-size: 100% 4px, 3px 100%;
}


/* ===== Babylon-5 Terminal — Shared Styles for Static Mockups ===== */

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  margin: 0;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(var(--crt-r), var(--crt-g), var(--crt-b), 0.03), rgba(var(--crt-r2), var(--crt-g2), var(--crt-b2), 0.01), rgba(var(--crt-r3), var(--crt-g3), var(--crt-b3), 0.03));
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  z-index: 50;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
}

.crt-flicker {
  animation: flicker 0.2s infinite;
}

@keyframes flicker {
  0% { opacity: 0.99; }
  50% { opacity: 0.97; }
  100% { opacity: 0.99; }
}

.b5-panel {
  border-width: 1px;
  border-style: solid;
  border-color: var(--border-primary);
  background: var(--bg-panel);
  box-shadow: inset 0 0 20px var(--shadow-panel-inset), 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  position: relative;
}

.b5-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow-panel), transparent);
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); border-left: 1px solid var(--border-primary); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }

.b5-border-amber {
  border-color: var(--text-accent);
  box-shadow: inset 0 0 20px rgba(217, 119, 6, 0.2);
}

.b5-border-red {
  border-color: #ef4444;
  box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.2);
}

.b5-text-glow { text-shadow: 0 0 8px var(--glow-primary); }
.b5-text-glow-amber { text-shadow: 0 0 8px var(--glow-accent); }
.b5-text-glow-red { text-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.b5-text-glow-green { text-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }

.scanline {
  width: 100%;
  height: 100px;
  background: linear-gradient(0deg, rgba(0,0,0,0) 0%, var(--crt-scanline) 50%, rgba(0,0,0,0) 100%);
  opacity: 0.1;
  position: absolute;
  bottom: 100%;
  animation: scanline 8s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% { bottom: 100%; }
  100% { bottom: -100px; }
}

/* Radar sweep animation */
.radar-sweep-conic {
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(245, 158, 11, 0.05) 320deg, rgba(245, 158, 11, 0.4) 360deg);
  animation: radar-rotate 4s linear infinite;
}

.radar-sweep-conic::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 50%;
  background: var(--radar-color);
  box-shadow: 0 0 15px var(--radar-color);
  transform: translateX(-50%);
  transform-origin: bottom center;
}

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

.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  padding-right: 100%;
  animation: ticker 20s linear infinite;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.glitch-effect {
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0% { transform: translate(0) }
  20% { transform: translate(-2px, 1px) }
  40% { transform: translate(-1px, -1px) }
  60% { transform: translate(2px, 1px) }
  80% { transform: translate(1px, -1px) }
  100% { transform: translate(0) }
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Sidebar nav link styles */
.nav-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  width: 100%;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.3s;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid transparent;
}

.nav-sidebar-link:hover {
  background: var(--bg-panel-hover);
  color: var(--text-secondary);
  transform: translateX(4px);
}

.nav-sidebar-link.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  text-shadow: 0 0 8px var(--nav-active-glow);
  box-shadow: inset 0 0 15px var(--nav-active-shadow);
  border: 1px solid var(--nav-active-border);
}

.nav-sidebar-link.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--nav-active-bar);
  box-shadow: 0 0 10px var(--nav-active-glow);
}

/* Mobile nav link styles */
.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.15rem;
  min-height: 44px;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 9px;
  font-weight: 700;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid transparent;
}

@media (min-width: 400px) {
  .mobile-nav-link {
    font-size: 10px;
    gap: 0.375rem;
    letter-spacing: 0.08em;
  }
}

.mobile-nav-link:hover {
  background: var(--bg-panel-hover);
  color: var(--text-secondary);
}

.mobile-nav-link.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  text-shadow: 0 0 8px var(--nav-active-glow);
  box-shadow: inset 0 0 15px var(--nav-active-shadow);
  border: 1px solid var(--nav-active-border);
}

.mobile-nav-link.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--nav-active-bar);
  box-shadow: 0 0 10px var(--nav-active-glow);
}

/* Header gradient (moved from Tailwind inline) */
.b5-header-gradient {
  background: linear-gradient(to right, var(--bg-header-from), var(--bg-header-via), var(--bg-header-to));
}

/* Mobile nav gradient */
.b5-mobile-nav-gradient {
  background: linear-gradient(to top, var(--bg-nav-mobile), var(--bg-nav-mobile));
}

/* ===== Race-Specific Layout Overrides ===== */

/* ── EarthForce: Military HUD ── */
.theme-earthforce .race-bg-pattern {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(30, 58, 138, 0.03) 50px, rgba(30, 58, 138, 0.03) 51px),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(30, 58, 138, 0.03) 50px, rgba(30, 58, 138, 0.03) 51px);
}

.theme-earthforce .race-decor-header {
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, transparent, #f59e0b, #60a5fa, #f59e0b, transparent) 1;
}

/* ── Minbari: Crystal/Triangular ── */
.theme-minbari .race-bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 50 L5 50Z' fill='none' stroke='rgba(45,212,191,0.04)' stroke-width='1'/%3E%3C/svg%3E");
}

.theme-minbari .status-card {
  clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
  border: none !important;
  outline: 1px solid var(--border-primary);
  outline-offset: -1px;
}

.theme-minbari .sector-item {
  clip-path: polygon(0 4px, 4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.theme-minbari .incident-item {
  border-left: none !important;
  border-top: 1px solid var(--border-primary);
  padding-top: 12px;
  padding-left: 0;
}

.theme-minbari .race-decor-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid var(--text-primary);
  opacity: 0.15;
}

.theme-minbari .race-decor-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; clip-path: polygon(0 0, 100% 0, 0 100%); }
.theme-minbari .race-decor-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.theme-minbari .race-decor-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.theme-minbari .race-decor-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; clip-path: polygon(100% 0, 0 100%, 100% 100%); }

/* ── Centauri: Baroque/Ornamental ── */
.theme-centauri .race-bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='20' fill='none' stroke='rgba(251,191,36,0.03)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='35' fill='none' stroke='rgba(167,139,250,0.02)' stroke-width='1'/%3E%3C/svg%3E");
}

.theme-centauri .status-card {
  border-width: 2px !important;
  border-radius: 8px;
  position: relative;
}

.theme-centauri .status-card::after {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.5), transparent);
}

.theme-centauri .sector-item {
  border-radius: 6px;
  border-width: 1px;
  border-style: double;
}

.theme-centauri .race-decor-header {
  border-bottom: 2px double var(--text-primary);
  padding-bottom: 4px;
}

.theme-centauri .race-ornament {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
}

/* ── Narn: Brutal/Industrial ── */
.theme-narn .race-bg-pattern {
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(239,68,68,0.02) 20px, rgba(239,68,68,0.02) 21px),
    repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(239,68,68,0.02) 20px, rgba(239,68,68,0.02) 21px);
}

.theme-narn .status-card {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  border: 2px solid var(--border-primary) !important;
}

.theme-narn .sector-item {
  border-left: 3px solid var(--text-primary) !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.theme-narn .incident-item {
  border-left-width: 4px !important;
}

.theme-narn .race-decor-header {
  border-bottom: 4px solid var(--text-primary);
  position: relative;
}

.theme-narn .race-decor-header::after {
  content: '\25B0\25B0\25B0\25B0\25B0\25B0\25B0\25B0';
  position: absolute;
  bottom: -18px;
  left: 0;
  font-size: 8px;
  letter-spacing: 4px;
  color: var(--text-primary);
  opacity: 0.3;
}

.theme-narn .race-warning-stripe {
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(239,68,68,0.05) 10px, rgba(239,68,68,0.05) 20px);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Vorlon: Organic/Flowing ── */
.theme-vorlon .race-bg-pattern {
  background-image: radial-gradient(ellipse at 30% 50%, rgba(52,211,153,0.04) 0%, transparent 50%),
                     radial-gradient(ellipse at 70% 50%, rgba(253,224,71,0.03) 0%, transparent 50%);
}

.theme-vorlon .status-card {
  border-radius: 20px !important;
  border: 1px solid var(--border-primary) !important;
  overflow: hidden;
}

.theme-vorlon .status-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, var(--glow-primary), transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.theme-vorlon .sector-item {
  border-radius: 12px;
  border-left: none !important;
}

.theme-vorlon .incident-item {
  border-left: none !important;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--bg-panel) !important;
  border: 1px solid var(--border-primary) !important;
  margin-bottom: 8px;
}

.theme-vorlon .race-decor-header {
  text-align: center;
  border: none;
}

.theme-vorlon .race-glow-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-primary), transparent 70%);
  opacity: 0.06;
  pointer-events: none;
  animation: vorlon-float 8s ease-in-out infinite;
}

@keyframes vorlon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ── Shadows: Corrupted/Glitch ── */
.theme-shadows .race-bg-pattern {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(168,85,247,0.02) 2px, rgba(168,85,247,0.02) 4px);
  animation: shadow-static 0.5s steps(3) infinite;
}

@keyframes shadow-static {
  0% { background-position: 0 0; }
  33% { background-position: 0 2px; }
  66% { background-position: 0 -1px; }
  100% { background-position: 0 1px; }
}

.theme-shadows .status-card {
  border: 1px solid var(--border-primary) !important;
  position: relative;
  overflow: hidden;
}

.theme-shadows .status-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.1), transparent);
  animation: shadow-scan 4s linear infinite;
}

@keyframes shadow-scan {
  0% { left: -100%; }
  100% { left: 200%; }
}

.theme-shadows .sector-item {
  border-left: 2px solid var(--text-primary) !important;
  border-right: 2px solid var(--text-secondary) !important;
}

.theme-shadows .race-decor-header {
  text-decoration: line-through;
  text-decoration-color: var(--text-secondary);
  text-decoration-thickness: 1px;
}

.theme-shadows .race-corrupt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(168,85,247,0.015) 3px,
    rgba(168,85,247,0.015) 4px
  );
  animation: shadow-corrupt 3s infinite;
}

/* ── Drakh: Parasitic/Decay ── */
.theme-drakh .race-bg-pattern {
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(132,204,22,0.04) 0%, transparent 40%),
    repeating-linear-gradient(180deg, transparent, transparent 40px, rgba(132,204,22,0.015) 40px, rgba(132,204,22,0.015) 41px);
}

.theme-drakh .status-card {
  border-left: 3px solid var(--text-primary) !important;
  border-radius: 0 4px 4px 0;
}

.theme-drakh .sector-item {
  border-left: 2px solid rgba(132,204,22,0.3) !important;
  position: relative;
}

.theme-drakh .race-decor-header {
  border-bottom: 1px dashed var(--text-primary);
  opacity: 0.8;
}

/* ── Pakmara: Utilitarian/Minimal ── */
.theme-pakmara .race-bg-pattern {
  background: none;
}

.theme-pakmara .status-card {
  border: 1px solid var(--border-primary) !important;
  border-radius: 0;
}

.theme-pakmara .sector-item {
  border-radius: 0;
  border-bottom: 1px dashed var(--border-primary);
  border-left: none !important;
  background: none !important;
}

.theme-pakmara .incident-item {
  border-left: 2px solid var(--border-primary) !important;
  background: none !important;
}

.theme-pakmara .race-decor-header {
  border-bottom: 1px solid var(--border-primary);
  font-weight: normal;
  letter-spacing: normal;
}

/* ── League: Diplomatic/Clean ── */
.theme-league .race-bg-pattern {
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(34,211,238,0.02) 100px, rgba(34,211,238,0.02) 101px);
}

.theme-league .status-card {
  border-radius: 4px;
  border-top: 2px solid var(--text-accent) !important;
}

.theme-league .sector-item {
  border-radius: 4px;
  border-left: 3px solid var(--text-accent) !important;
}

.theme-league .race-decor-header {
  border-bottom: 1px solid var(--border-strong);
  position: relative;
}

.theme-league .race-decor-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--text-accent);
}
