/* ============================================================
   WAR ROOM MASTERPLAN — DASHBOARD DESIGN SYSTEM
   Premium dark executive theme with glassmorphism & micro-animations
   ============================================================ */

/* ===== GOOGLE FONTS (loaded in HTML) ===== */

/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #060e1a;
  --bg-secondary: #0c1829;
  --bg-tertiary: #12223d;
  --surface: rgba(12, 24, 41, 0.75);
  --surface-solid: #0f1d33;
  --glass: rgba(18, 34, 61, 0.45);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(255, 255, 255, 0.14);

  --text-primary: #e8edf5;
  --text-secondary: #8d9bb5;
  --text-muted: #576882;

  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.12);
  --crimson: #ef4444;
  --crimson-light: #f87171;
  --crimson-dim: rgba(239, 68, 68, 0.12);
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dim: rgba(59, 130, 246, 0.12);
  --cyan: #06b6d4;
  --purple: #8b5cf6;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;

  --section-gap: 4.5rem;
  --card-pad: 1.75rem;
  --card-radius: 14px;
  --nav-height: 64px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-glow-emerald: 0 0 40px rgba(16,185,129,0.15);
  --shadow-glow-crimson: 0 0 40px rgba(239,68,68,0.15);
  --shadow-glow-amber: 0 0 40px rgba(245,158,11,0.15);
  --shadow-glow-blue: 0 0 40px rgba(59,130,246,0.15);

  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 1.5rem); font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background grid pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }
p { color: var(--text-secondary); max-width: 72ch; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.section {
  padding: var(--section-gap) 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: var(--blue-dim);
  border-radius: 100px;
}
.section-title {
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 60ch;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== GLASS CARD ===== */
.card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(6, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  transition: background var(--transition-base);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--crimson), var(--amber));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--transition-base), background var(--transition-base);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.nav-links a.active {
  color: var(--blue-light);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== HERO / COMMAND CENTER ===== */
.hero {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(239,68,68,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--crimson-dim);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--crimson-light);
  margin-bottom: 1.25rem;
}
.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 55ch;
}

/* KPI Ticker Bar */
.kpi-ticker {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow-x: auto;
  flex-wrap: wrap;
}
.kpi-ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  flex: 1;
  min-width: 200px;
}
.kpi-ticker-item .kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.kpi-icon.loss { background: var(--crimson-dim); color: var(--crimson); }
.kpi-icon.burn { background: var(--amber-dim); color: var(--amber); }
.kpi-icon.recover { background: var(--emerald-dim); color: var(--emerald); }
.kpi-icon.info { background: var(--blue-dim); color: var(--blue); }
.kpi-ticker-item .kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.kpi-ticker-item .kpi-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.kpi-value.negative { color: var(--crimson); }
.kpi-value.warning { color: var(--amber); }
.kpi-value.positive { color: var(--emerald); }
.kpi-value.neutral { color: var(--blue-light); }

/* ===== SCORECARD GRID ===== */
.scorecard {
  position: relative;
  overflow: hidden;
}
.scorecard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}
.scorecard.emerald::before { background: linear-gradient(90deg, var(--emerald), var(--cyan)); }
.scorecard.crimson::before { background: linear-gradient(90deg, var(--crimson), var(--amber)); }
.scorecard.amber::before { background: linear-gradient(90deg, var(--amber), var(--crimson)); }
.scorecard.blue::before { background: linear-gradient(90deg, var(--blue), var(--purple)); }

.scorecard .score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.scorecard .score-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.scorecard .score-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.score-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.score-delta.up { background: var(--emerald-dim); color: var(--emerald); }
.score-delta.down { background: var(--crimson-dim); color: var(--crimson); }

/* ===== CHART CONTAINERS ===== */
.chart-wrapper {
  position: relative;
  padding: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
}
.chart-wrapper canvas {
  max-height: 420px;
}
.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.chart-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}
.chart-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ===== COMPARISON CARDS ===== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.compare-card {
  position: relative;
  overflow: hidden;
}
.compare-card .compare-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.compare-badge.danger { background: var(--crimson-dim); color: var(--crimson); }
.compare-badge.caution { background: var(--amber-dim); color: var(--amber); }
.compare-badge.success { background: var(--emerald-dim); color: var(--emerald); }

.compare-card .compare-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.compare-card .compare-stat:last-child { border-bottom: none; }
.compare-stat .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.compare-stat .stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

/* ===== SPOTLIGHT / PARADOX CARD ===== */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
}
.spotlight-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 auto;
}
.spotlight-side h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.spotlight-big {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.spotlight-unit {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== GAUGE / BURN TRACKER ===== */
.burn-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.gauge-container canvas {
  max-width: 280px;
  max-height: 280px;
}
.gauge-center-text {
  text-align: center;
  margin-top: -2rem;
}
.gauge-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
}
.gauge-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.burn-stats .burn-stat {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.burn-stats .burn-stat:last-child { border-bottom: none; }
.burn-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.burn-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ===== 3-PILLAR FRAMEWORK ===== */
.pillar-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.pillar-tab {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
}
.pillar-tab:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}
.pillar-tab.active[data-pillar="protect"] {
  background: var(--emerald-dim);
  border-color: var(--emerald);
  color: var(--emerald);
}
.pillar-tab.active[data-pillar="change"] {
  background: var(--amber-dim);
  border-color: var(--amber);
  color: var(--amber);
}
.pillar-tab.active[data-pillar="stop"] {
  background: var(--crimson-dim);
  border-color: var(--crimson);
  color: var(--crimson);
}
.pillar-content {
  display: none;
}
.pillar-content.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  animation: fadeSlideUp 0.4s ease;
}
.pillar-card {
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.pillar-card.protect-accent::before { background: var(--emerald); }
.pillar-card.change-accent::before { background: var(--amber); }
.pillar-card.stop-accent::before { background: var(--crimson); }
.pillar-card .pillar-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.protect-accent .pillar-number { background: var(--emerald-dim); color: var(--emerald); }
.change-accent .pillar-number { background: var(--amber-dim); color: var(--amber); }
.stop-accent .pillar-number { background: var(--crimson-dim); color: var(--crimson); }
.pillar-card h4 { margin-bottom: 0.75rem; }
.pillar-card p { font-size: 0.88rem; }
.pillar-card ul {
  list-style: none;
  margin-top: 0.75rem;
}
.pillar-card ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.pillar-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--text-muted);
}

/* ===== TIMELINE / ROADMAP ===== */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--amber), var(--emerald));
  border-radius: 2px;
  z-index: 0;
}
.timeline-phase {
  position: relative;
  z-index: 1;
}
.phase-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  position: relative;
}
.phase-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg-primary);
}
.phase-1 .phase-dot { background: var(--crimson); box-shadow: 0 0 20px rgba(239,68,68,0.4); }
.phase-2 .phase-dot { background: var(--amber); box-shadow: 0 0 20px rgba(245,158,11,0.4); }
.phase-3 .phase-dot { background: var(--emerald); box-shadow: 0 0 20px rgba(16,185,129,0.4); }

.phase-card {
  text-align: center;
}
.phase-card .phase-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.phase-1 .phase-label { color: var(--crimson); }
.phase-2 .phase-label { color: var(--amber); }
.phase-3 .phase-label { color: var(--emerald); }
.phase-card h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.phase-card .phase-actions {
  text-align: left;
  list-style: none;
}
.phase-card .phase-actions li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--glass-border);
}
.phase-card .phase-actions li:last-child { border-bottom: none; }
.phase-card .phase-actions li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-size: 0.7rem;
}
.phase-1 .phase-actions li::before { color: var(--crimson); }
.phase-2 .phase-actions li::before { color: var(--amber); }
.phase-3 .phase-actions li::before { color: var(--emerald); }
.phase-owner {
  margin-top: 1rem;
  padding: 0.5rem;
  background: var(--glass);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.phase-owner strong { color: var(--text-secondary); }

/* ===== DATA TABLES ===== */
.table-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.table-search {
  padding: 0.55rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-base);
  min-width: 250px;
}
.table-search:focus {
  border-color: var(--blue);
}
.table-search::placeholder {
  color: var(--text-muted);
}
.tab-buttons {
  display: flex;
  gap: 0.35rem;
}
.tab-btn {
  padding: 0.45rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}
.tab-btn:hover { color: var(--text-primary); border-color: var(--glass-border-hover); }
.tab-btn.active { background: var(--blue-dim); border-color: var(--blue); color: var(--blue-light); }

.data-table-container {
  overflow-x: auto;
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.data-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.data-table th {
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--glass-border);
  transition: color var(--transition-base);
}
.data-table th:hover { color: var(--text-primary); }
.data-table th .sort-icon {
  margin-left: 0.35rem;
  font-size: 0.65rem;
  opacity: 0.4;
}
.data-table th.sorted .sort-icon { opacity: 1; color: var(--blue); }
.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  white-space: nowrap;
}
.data-table tbody tr {
  transition: background var(--transition-base);
}
.data-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}
.data-table .positive { color: var(--emerald); }
.data-table .negative { color: var(--crimson); }

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.page-buttons {
  display: flex;
  gap: 0.25rem;
}
.page-btn {
  padding: 0.35rem 0.7rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-base);
}
.page-btn:hover { border-color: var(--glass-border-hover); color: var(--text-primary); }
.page-btn.active { background: var(--blue-dim); border-color: var(--blue); color: var(--blue-light); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-content.active { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 2rem; }
  .timeline::before { display: none; }
  .spotlight { grid-template-columns: 1fr; gap: 2rem; }
  .spotlight-vs { order: -1; }
  .burn-section { grid-template-columns: 1fr; }
}

/* ===== GEOSPATIAL INTELLIGENCE & WORLD MAP STYLES ===== */
.nav-map-btn {
  background: rgba(6, 182, 212, 0.12) !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
  color: var(--cyan) !important;
  border-radius: 20px !important;
  padding: 0.35rem 0.85rem !important;
  font-weight: 600 !important;
  transition: all var(--transition-base) !important;
}
.nav-map-btn:hover {
  background: rgba(6, 182, 212, 0.25) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35) !important;
  transform: translateY(-1px);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.map-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--crimson-light);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.pulse-dot-red {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 10px var(--crimson);
  animation: pulse 1.8s infinite;
}

/* Map Quick KPIs */
.map-kpis {
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.map-kpi-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.15rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.map-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-hover);
}
.map-kpi-card.crimson { border-top: 3px solid var(--crimson); }
.map-kpi-card.amber { border-top: 3px solid var(--amber); }
.map-kpi-card.blue { border-top: 3px solid var(--blue-light); }
.map-kpi-card.emerald { border-top: 3px solid var(--emerald); }

.map-kpi-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.map-kpi-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Tour Control Bar */
.tour-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(18, 34, 61, 0.8), rgba(12, 24, 41, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tour-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tour-badge {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--blue-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.tour-status {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tour-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tour-step-pills {
  display: flex;
  gap: 0.4rem;
  background: rgba(6, 14, 26, 0.6);
  padding: 0.3rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
}

.tour-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-base);
}
.tour-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.tour-pill.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.tour-nav-btns {
  display: flex;
  gap: 0.4rem;
}

.btn-sm {
  padding: 0.4rem 0.85rem !important;
  font-size: 0.82rem !important;
  border-radius: 8px !important;
}

/* Map Filter Bar */
.map-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.map-filter-btn {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
}
.map-filter-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
}
.map-filter-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2);
}

/* Map Grid Wrapper */
.map-grid-wrapper {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.map-viewport-container {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  min-height: 600px;
  background: var(--bg-primary);
  padding: 0 !important;
  transition: all var(--transition-base);
}

.map-viewport-container.fullscreen-active {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
}

.map-viewport-container.fullscreen-active .leaflet-map-canvas {
  width: 100vw !important;
  height: 100vh !important;
}

.map-fullscreen-exit-btn {
  display: none;
  position: absolute;
  top: 16px;
  left: 60px;
  z-index: 10000;
  background: rgba(12, 24, 41, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--crimson-light);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: all var(--transition-base);
}

.map-fullscreen-exit-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--crimson);
  color: #fff;
  transform: translateY(-1px);
}

.map-viewport-container.fullscreen-active .map-fullscreen-exit-btn {
  display: block;
}

.leaflet-map-canvas {
  width: 100%;
  height: 620px;
  background: #060e1a;
  z-index: 1;
}

/* Leaflet Dark Customizations */
.leaflet-container {
  font-family: var(--font-body) !important;
  background-color: #060e1a !important;
}
.leaflet-bar {
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.leaflet-bar a {
  background-color: rgba(12, 24, 41, 0.9) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  transition: background var(--transition-base);
}
.leaflet-bar a:hover {
  background-color: var(--bg-tertiary) !important;
  color: var(--cyan) !important;
}
.leaflet-popup-content-wrapper {
  background: rgba(10, 20, 36, 0.95) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}
.leaflet-popup-tip {
  background: rgba(10, 20, 36, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.leaflet-popup-content {
  margin: 12px 14px !important;
  line-height: 1.4 !important;
  font-size: 0.85rem !important;
}

/* Floating Map Legend Overlay */
.map-legend-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background: rgba(8, 16, 28, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  max-width: 270px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-size: 0.8rem;
  transition: all var(--transition-base);
}
.legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.legend-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cyan);
}
.legend-toggle {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.legend-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  transition: background var(--transition-base), color var(--transition-base);
}
.legend-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.legend-line {
  display: inline-block;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}
.legend-line.direct { background: #94a3b8; border-top: 1px dashed #cbd5e1; }
.legend-line.cape { background: #06b6d4; box-shadow: 0 0 8px rgba(6, 182, 212, 0.6); }
.legend-line.pipeline { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.legend-line.landbridge { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.legend-line.air { background: #a855f7; border-top: 1px dashed #d8b4fe; }
.legend-dot-held {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
  flex-shrink: 0;
}

/* Pulse Sonar Radar Effect for Blockade Marker */
.sonar-blockade-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sonar-core {
  width: 16px;
  height: 16px;
  background: var(--crimson);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--crimson);
  z-index: 2;
}
.sonar-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(239, 68, 68, 0.8);
  border-radius: 50%;
  animation: sonar-wave 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  z-index: 1;
}
.sonar-ring-2 {
  position: absolute;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 50%;
  animation: sonar-wave 2s cubic-bezier(0.1, 0.8, 0.3, 1) 0.6s infinite;
  z-index: 0;
}
@keyframes sonar-wave {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Custom Marker Pin Styles */
.port-marker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}
.dest-marker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}
.choke-marker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

/* Executive Intelligence & Briefing Panel */
.map-intel-panel {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(14, 28, 48, 0.9), rgba(8, 18, 32, 0.95));
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  gap: 1.25rem;
}

.intel-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.intel-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.intel-tag.tag-crimson { background: var(--crimson-dim); color: var(--crimson-light); border: 1px solid rgba(239, 68, 68, 0.3); }
.intel-tag.tag-emerald { background: var(--emerald-dim); color: var(--emerald-light); border: 1px solid rgba(16, 185, 129, 0.3); }
.intel-tag.tag-amber { background: var(--amber-dim); color: var(--amber-light); border: 1px solid rgba(245, 158, 11, 0.3); }
.intel-tag.tag-blue { background: var(--blue-dim); color: var(--blue-light); border: 1px solid rgba(59, 130, 246, 0.3); }

.intel-mode {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.intel-title {
  font-size: 1.35rem;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.intel-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.intel-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.intel-metric-box {
  background: rgba(6, 14, 26, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}
.im-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.im-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.im-val.negative { color: var(--crimson-light); }
.im-val.positive { color: var(--emerald-light); }
.im-val.warning { color: var(--amber-light); }
.im-val.neutral { color: var(--cyan); }

/* Pitch Talking Points Box */
.intel-talking-points {
  background: rgba(18, 34, 61, 0.4);
  border-left: 3px solid var(--blue-light);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
}
.talking-points-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}
.talking-point-content {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Strategic Recommendation Pill */
.intel-strategic-recommendation {
  background: rgba(6, 14, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.strat-rec-header strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber-light);
  display: block;
  margin-bottom: 0.25rem;
}
.intel-strategic-recommendation p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Quick Jump Buttons */
.intel-quick-jump {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}
.qj-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.qj-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.qj-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-base);
}
.qj-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--blue-light);
  color: var(--text-primary);
}

@media (max-width: 1100px) {
  .map-grid-wrapper {
    grid-template-columns: 1fr;
  }
  .leaflet-map-canvas {
    height: 520px;
  }
}

@media (max-width: 768px) {
  :root { --section-gap: 3rem; --card-pad: 1.25rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .pillar-content.active { grid-template-columns: 1fr; }
  .pillar-tabs { flex-wrap: wrap; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6,14,26,0.95);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .mobile-toggle { display: block; }
  .kpi-ticker { flex-direction: column; }
  .kpi-ticker-item { min-width: unset; }
  .hero h1 { font-size: 1.8rem; }
  .scorecard .score-value { font-size: 1.8rem; }

  .tour-control-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .tour-step-pills {
    flex-wrap: wrap;
  }
  .leaflet-map-canvas {
    height: 440px;
  }
  .map-legend-overlay {
    position: static;
    max-width: 100%;
    margin-top: 0.75rem;
  }
}

