/* ═══════════════════════════════════════════════════════════
   GLOBAL CRISIS INTELLIGENCE — Design System v3.0
   Theme: "DARK NEXUS" · Ultra-premium Intelligence UI
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-void:        #040609;
  --bg-primary:     #060a13;
  --bg-secondary:   #0a0f1e;
  --bg-tertiary:    #0f1629;
  --bg-card:        rgba(10,15,30,0.80);
  --bg-glass:       rgba(10,15,30,0.55);
  --bg-glass-hover: rgba(16,24,50,0.75);
  --bg-elevated:    rgba(18,26,54,0.65);
  --bg-input:       rgba(8,12,24,0.80);

  --neon-electric:  #00D4FF;
  --neon-plasma:    #7B2FFF;
  --neon-pulse:     #FF2D78;
  --neon-signal:    #00FF94;
  --neon-solar:     #FFB800;
  --neon-infrared:  #FF5533;
  --neon-cyan:      #00E5FF;
  --neon-violet:    #A855F7;

  --glow-electric:  0 0 20px rgba(0,212,255,0.35), 0 0 60px rgba(0,212,255,0.10);
  --glow-plasma:    0 0 20px rgba(123,47,255,0.30), 0 0 60px rgba(123,47,255,0.10);
  --glow-pulse:     0 0 20px rgba(255,45,120,0.35), 0 0 60px rgba(255,45,120,0.10);
  --glow-signal:    0 0 20px rgba(0,255,148,0.30), 0 0 60px rgba(0,255,148,0.10);

  --text-primary:   #E8ECF4;
  --text-secondary: #7B89A8;
  --text-tertiary:  #4A5574;
  --text-ghost:     #2D3654;
  --text-neon:      #00D4FF;
  --text-white:     #FFFFFF;

  --border-subtle:  rgba(0,212,255,0.06);
  --border-light:   rgba(0,212,255,0.14);
  --border-active:  rgba(0,212,255,0.45);
  --border-glass:   rgba(255,255,255,0.04);
  --border-solid:   rgba(255,255,255,0.06);

  --shadow-xs:  0 1px 3px rgba(0,0,0,0.5);
  --shadow-sm:  0 4px 16px rgba(0,0,0,0.5), 0 0 1px rgba(0,212,255,0.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5), 0 0 2px rgba(0,212,255,0.08);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.55), 0 0 4px rgba(0,212,255,0.08);
  --shadow-xl:  0 40px 100px rgba(0,0,0,0.6), 0 0 8px rgba(0,212,255,0.10);

  --grad-electric:  linear-gradient(135deg, #00D4FF 0%, #7B2FFF 100%);
  --grad-pulse:     linear-gradient(135deg, #FF2D78 0%, #FF5533 100%);
  --grad-signal:    linear-gradient(135deg, #00FF94 0%, #00D4FF 100%);
  --grad-solar:     linear-gradient(135deg, #FFB800 0%, #FF5533 100%);
  --grad-plasma:    linear-gradient(135deg, #7B2FFF 0%, #FF2D78 100%);
  --grad-infrared:  linear-gradient(135deg, #FF5533 0%, #FF2D78 100%);
  --grad-dark:      linear-gradient(180deg, var(--bg-void) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
  --grad-card:      linear-gradient(160deg, rgba(10,15,30,0.90) 0%, rgba(16,24,50,0.65) 100%);
  --grad-hero:      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,212,255,0.10) 0%, rgba(123,47,255,0.05) 40%, transparent 80%);

  --font-display: 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   0.6875rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-lg:   1.0625rem;

  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-8:32px; --space-10:40px;

  --radius-xs:4px; --radius-sm:8px; --radius-md:12px;
  --radius-lg:16px; --radius-xl:24px; --radius-2xl:32px; --radius-full:9999px;

  --ease-out-expo: cubic-bezier(0.19,1,0.22,1);
  --ease-spring:   cubic-bezier(0.34,1.56,0.64,1);
  --ease-smooth:   cubic-bezier(0.4,0,0.2,1);
  --dur-fast:  150ms;
  --dur-base:  250ms;
  --dur-slow:  400ms;
  --dur-enter: 600ms;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: rgba(0,212,255,0.25); color: #fff; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.20); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.40); }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-void);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0,212,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(123,47,255,0.03) 0%, transparent 50%);
}

a { color: var(--neon-electric); text-decoration: none; transition: color var(--dur-fast) var(--ease-smooth); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); letter-spacing: -0.02em; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.page-wrapper { min-height: 70vh; margin-top: 96px; }
.section { padding: 64px 0; }

/* ═══ PAGE LOADER ═══ */
#page-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-void);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo);
}
#page-loader.fade-out { opacity: 0; pointer-events: none; }

/* ═══ GRADIENT TEXT ═══ */
.gradient-text {
  background: var(--grad-electric);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ NAVBAR ═══ */
.gci-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(4,6,9,0.60);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.4s var(--ease-smooth);
}
.gci-navbar.scrolled {
  background: rgba(4,6,9,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), 0 0 1px rgba(0,212,255,0.15);
  height: 56px;
}

/* Logo */
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-white);
  font-family: var(--font-heading); font-weight: 800; font-size: 18px;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 60%, #0f2b46 100%);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(0,212,255,0.15), inset 0 0 12px rgba(0,212,255,0.05);
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.logo-mark:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 0 24px rgba(0,212,255,0.3), inset 0 0 16px rgba(0,212,255,0.1); }
.logo-mark svg { width: 26px; height: 26px; }
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.12) 0%, transparent 60%);
  border-radius: inherit;
}
/* Logo radar sweep animation */
.logo-sweep { transform-origin: 18px 18px; animation: logoSweep 3s linear infinite; }
@keyframes logoSweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* Blip pulse */
.logo-blip { animation: blipPulse 2s ease-in-out infinite; }
.logo-blip2 { animation: blipPulse 2.5s ease-in-out 0.5s infinite; }
@keyframes blipPulse { 0%,100% { opacity:0.9; r:1.4; } 50% { opacity:0.4; r:2; } }
.logo-label { font-size: 17px; font-weight: 800; letter-spacing: 0.06em; background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-label-sub {
  font-size: 7.5px; font-weight: 700; color: rgba(0,212,255,0.6);
  letter-spacing: 0.18em; text-transform: uppercase; display: block; line-height: 1; margin-top: 1px;
}

/* Nav Links */
.navbar-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.navbar-link {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 550; color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
}
.navbar-link:hover { color: var(--text-primary); background: rgba(0,212,255,0.06); }
.navbar-link.active { color: var(--neon-electric); background: rgba(0,212,255,0.08); }
.navbar-link.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px;
  background: var(--neon-electric); box-shadow: 0 0 8px rgba(0,212,255,0.5);
}
.live-tag {
  display: inline-flex; padding: 2px 6px; border-radius: var(--radius-full);
  font-size: 8px; font-weight: 700; letter-spacing: 0.1em;
  background: var(--neon-pulse); color: white;
  animation: livePulse 2s ease infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.navbar-hamburger span { width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: 0.3s; }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(4,6,9,0.97); backdrop-filter: blur(24px);
  padding: 20px; flex-direction: column; gap: 6px; z-index: 999;
  border-bottom: 1px solid var(--border-subtle);
  transform: translateY(-10px); opacity: 0;
  transition: all 0.35s var(--ease-out-expo);
}
.mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.mobile-menu .navbar-link { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; }

@media (max-width: 1024px) {
  .navbar-links { display: none; }
  .navbar-hamburger { display: flex; }
}

/* ═══ TICKER BAR ═══ */
.ticker-bar {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 990;
  display: flex; align-items: center; height: 32px;
  background: rgba(4,6,9,0.90);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden; padding: 0 12px;
}
.ticker-live-badge {
  flex-shrink: 0; padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 8px; font-weight: 700; letter-spacing: 0.12em;
  background: var(--grad-pulse); color: white;
  margin-right: 16px; animation: livePulse 2s ease infinite;
}
.ticker-content {
  display: flex; align-items: center; gap: 40px;
  white-space: nowrap; animation: tickerScroll 60s linear infinite;
  font-size: 11px; font-family: var(--font-mono); font-weight: 400; color: var(--text-tertiary);
}
.ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.ticker-dot.crisis { background: var(--neon-pulse); box-shadow: 0 0 6px rgba(255,45,120,0.5); }
.ticker-dot.warning { background: var(--neon-solar); box-shadow: 0 0 6px rgba(255,184,0,0.5); }
.ticker-dot.update { background: var(--neon-electric); box-shadow: 0 0 6px rgba(0,212,255,0.5); }
.ticker-dot.ok { background: var(--neon-signal); box-shadow: 0 0 6px rgba(0,255,148,0.5); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══ GLASS CARDS ═══ */
.glass-card {
  background: var(--grad-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
  border-color: rgba(0,212,255,0.22);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,212,255,0.04);
}

/* ═══ NEON BADGES ═══ */
.neon-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0,212,255,0.08); color: var(--neon-electric); border: 1px solid rgba(0,212,255,0.15);
}
.neon-badge.pulse    { background: rgba(255,45,120,0.08); color: var(--neon-pulse); border-color: rgba(255,45,120,0.15); }
.neon-badge.electric { background: rgba(0,212,255,0.08); color: var(--neon-electric); border-color: rgba(0,212,255,0.15); }
.neon-badge.signal   { background: rgba(0,255,148,0.08); color: var(--neon-signal); border-color: rgba(0,255,148,0.15); }
.neon-badge.solar    { background: rgba(255,184,0,0.08); color: var(--neon-solar); border-color: rgba(255,184,0,0.15); }
.neon-badge.plasma   { background: rgba(123,47,255,0.08); color: var(--neon-plasma); border-color: rgba(123,47,255,0.15); }
.neon-badge.infrared { background: rgba(255,85,51,0.08); color: var(--neon-infrared); border-color: rgba(255,85,51,0.15); }

/* ═══ BUTTONS ═══ */
.btn-neon {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: none; border-radius: var(--radius-full);
  font-family: var(--font-heading); font-size: 13px; font-weight: 650;
  letter-spacing: -0.01em; color: #fff; cursor: pointer;
  background: var(--grad-electric);
  box-shadow: 0 4px 20px rgba(0,212,255,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.3s var(--ease-spring);
  text-decoration: none; position: relative; overflow: hidden;
}
.btn-neon::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,212,255,0.35), inset 0 1px 0 rgba(255,255,255,0.2); color: #fff; }
.btn-neon:hover::before { opacity: 1; }
.btn-neon:active { transform: translateY(0); }
.btn-neon.btn-sm { padding: 8px 16px; font-size: 12px; }

.btn-outline-neon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-family: var(--font-heading); font-size: 13px; font-weight: 650;
  color: var(--neon-electric); cursor: pointer;
  background: transparent; border: 1px solid rgba(0,212,255,0.30);
  transition: all 0.3s var(--ease-spring); text-decoration: none;
}
.btn-outline-neon:hover {
  background: rgba(0,212,255,0.08); color: #fff;
  border-color: rgba(0,212,255,0.60);
  box-shadow: 0 0 24px rgba(0,212,255,0.12);
}
.btn-outline-neon.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ═══ INPUTS ═══ */
.gci-input, .gci-select {
  padding: 11px 16px; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.gci-input:focus, .gci-select:focus {
  border-color: var(--neon-electric);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.10), 0 0 16px rgba(0,212,255,0.06);
}
.gci-input::placeholder { color: var(--text-ghost); }
.gci-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5574' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 36px; cursor: pointer;
}

/* ═══ STAT CARDS ═══ */
.stat-card {
  background: var(--grad-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-value {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700;
  color: var(--text-white); letter-spacing: -0.03em; line-height: 1.1;
}
.stat-label {
  font-size: 10px; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.12em; margin-top: 6px;
}

/* ═══ HERO ═══ */
.hero-section {
  position: relative; padding: 120px 0 80px; overflow: hidden;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(0,212,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(123,47,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(255,45,120,0.03) 0%, transparent 50%);
}
.hero-section::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  animation: gridFloat 20s linear infinite;
}
@keyframes gridFloat { 0% { transform: translate(0,0); } 100% { transform: translate(60px, 60px); } }

.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: orbDrift 20s ease-in-out infinite alternate; }
.orb-1 { width: 500px; height: 500px; background: rgba(0,212,255,0.06); top: -15%; left: 20%; }
.orb-2 { width: 400px; height: 400px; background: rgba(123,47,255,0.05); bottom: 0; right: 10%; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: rgba(255,45,120,0.04); top: 40%; left: 60%; animation-delay: -14s; }
@keyframes orbDrift {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.1); }
  100% { transform: translate(-20px,30px) scale(0.95); }
}

#heroParticles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-badge { margin-bottom: 20px; }
.hero-title {
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.0;
  margin-bottom: 20px; color: var(--text-white);
}
.hero-subtitle { font-size: 17px; line-height: 1.7; }
.hero-map-wrapper {
  position: relative; margin-top: 48px;
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(0,212,255,0.08), inset 0 0 40px rgba(0,0,0,0.3);
}
.hero-map-wrapper::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(4,6,9,0.3) 0%, transparent 25%, transparent 75%, rgba(4,6,9,0.5) 100%);
  box-shadow: inset 0 1px 0 rgba(0,212,255,0.1), inset 0 -1px 0 rgba(0,212,255,0.05);
}

/* ═══ STATS STRIP ═══ */
.stats-strip { margin-top: -40px; position: relative; z-index: 3; }
.strip-item { text-align: center; }
.strip-value { display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--text-white); letter-spacing: -0.03em; }
.strip-label { display: block; font-size: 10px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* ═══ MODULE CARDS ═══ */
.module-card {
  padding: 28px; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.module-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-electric); opacity: 0; transition: opacity 0.4s;
}
.module-card:hover::before { opacity: 1; }
.module-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; position: relative;
}
.module-icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
  border-radius: inherit;
}
.module-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.module-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.module-link { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--neon-electric); }
.module-link:hover { color: #fff; }

/* ═══ SECTION HEADINGS ═══ */
.section-heading {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  display: flex; align-items: center; gap: 12px; letter-spacing: -0.03em;
}

/* ═══ PILL TABS ═══ */
.pill-tabs {
  display: flex; gap: 6px; padding: 4px;
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full); width: fit-content;
}
.pill-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-full);
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
  color: var(--text-secondary); background: transparent; border: none; cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}
.pill-tab:hover { color: var(--text-primary); background: rgba(0,212,255,0.06); }
.pill-tab.active { background: var(--grad-electric); color: #fff; box-shadow: 0 4px 16px rgba(0,212,255,0.25); }

/* ═══ LOADING ═══ */
.gci-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; gap: 12px; }
.gci-spinner { width: 32px; height: 32px; border: 3px solid var(--border-light); border-top-color: var(--neon-electric); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gci-error { padding: 40px; text-align: center; color: var(--text-tertiary); font-size: 13px; }
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%); background-size: 200% 100%; border-radius: var(--radius-md); animation: shimmer 1.5s ease infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══ WAR MAP LAYOUT ═══ */
.war-map-layout { display: grid; grid-template-columns: 340px 1fr; gap: 0; min-height: calc(100vh - 96px); }
.war-sidebar {
  border-radius: 0; border-right: 1px solid var(--border-subtle);
  border-left: none; border-top: none; border-bottom: none;
  overflow-y: auto; max-height: calc(100vh - 96px);
  background: rgba(6,10,19,0.95); backdrop-filter: blur(12px);
}
.war-sidebar::-webkit-scrollbar { width: 3px; }
.war-main { position: relative; overflow: hidden; height: calc(100vh - 96px); min-height: 600px; }
.war-map-viewport { position: relative; overflow: hidden; width: 100%; height: 100%; }
.map-container { position: relative; }
.map-legend { position: absolute; bottom: 24px; left: 24px; z-index: 500; padding: 14px 18px; }
@media (max-width: 900px) {
  .war-map-layout { grid-template-columns: 1fr; }
  .war-sidebar { max-height: none; border-right: none; border-bottom: 1px solid var(--border-subtle); }
}

/* ═══ GLOBE CONTAINER ═══ */
#globeViz { width: 100%; height: 100%; min-height: 600px; background: transparent; border-radius: var(--radius-lg); cursor: grab; }
#globeViz:active { cursor: grabbing; }

/* ═══ GLOBAL COUNTRY FILTER (Custom Dropdown) ═══ */
.country-filter-wrapper { position: relative; display: flex; align-items: center; gap: 0; }
.country-filter-wrapper label {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--neon-electric); pointer-events: none; z-index: 2;
  display: flex; align-items: center;
}
.country-filter-wrapper .gci-select {
  padding: 8px 34px 8px 30px; font-size: 12px; font-weight: 500;
  background: var(--bg-primary); border: 1px solid rgba(0,212,255,0.25);
  border-radius: var(--radius-lg); min-width: 160px; color: var(--text-primary);
  cursor: pointer; transition: all 0.25s ease; letter-spacing: 0.02em;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.country-filter-wrapper .gci-select:hover {
  border-color: var(--neon-electric); box-shadow: 0 0 12px rgba(0,212,255,0.12);
}
.country-filter-wrapper .gci-select:focus {
  border-color: var(--neon-electric);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12), 0 0 20px rgba(0,212,255,0.08);
  outline: none;
}
.country-filter-wrapper .gci-select option {
  background: var(--bg-primary); color: var(--text-primary);
  padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border-subtle);
}
.country-filter-wrapper .gci-select option:checked { background: rgba(0,212,255,0.15); color: var(--neon-electric); }
.country-filter-wrapper .gci-select option:hover { background: rgba(0,212,255,0.1); }

/* ═══ COUNTRY MODAL ═══ */
.country-modal-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(4,6,9,0.88);
  backdrop-filter: blur(12px); display: none; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
}
.country-modal {
  width: 96%; max-width: 1100px; margin: 24px auto;
  background: var(--bg-secondary); border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-xl); padding: 0; position: relative;
  transform: scale(0.9) translateY(20px); transition: transform 0.4s cubic-bezier(0.19,1,0.22,1);
  box-shadow: 0 0 60px rgba(0,212,255,0.08), 0 0 120px rgba(123,47,255,0.05);
}
.country-modal-header {
  padding: 20px 28px; border-bottom: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(123,47,255,0.03));
  position: sticky; top: 0; z-index: 10;
}
.country-modal-close {
  background: none; border: 1px solid var(--border-subtle); color: var(--text-tertiary);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all 0.2s; flex-shrink: 0;
}
.country-modal-close:hover { border-color: var(--neon-pulse); color: var(--neon-pulse); }
.country-modal-body { padding: 0 28px 28px; }
.cm-tabs { display: flex; gap: 4px; padding: 16px 28px 0; overflow-x: auto; border-bottom: 1px solid var(--border-subtle); }
.cm-tab { padding: 10px 18px; font-size: 12px; font-weight: 600; color: var(--text-tertiary); cursor: pointer;
  border: none; background: none; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.cm-tab:hover { color: var(--text-secondary); }
.cm-tab.active { color: var(--neon-electric); border-bottom-color: var(--neon-electric); }
.cm-panel { display: none; padding-top: 20px; }
.cm-panel.active { display: block; }
.cm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.cm-stat { text-align: center; padding: 16px 10px; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); }
.cm-stat-val { font-size: 22px; font-weight: 800; font-family: var(--font-mono); }
.cm-stat-lbl { font-size: 10px; color: var(--text-tertiary); margin-top: 4px; }
.cm-section { margin-bottom: 24px; }
.cm-section-title { font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cm-news-card { display: flex; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--border-subtle);
  text-decoration: none; transition: background 0.2s; margin-bottom: 10px; }
.cm-news-card:hover { background: rgba(255,255,255,0.03); }
.cm-chart-box { padding: 16px; border-radius: 12px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-subtle); }
.cm-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cm-video-card { border-radius: 10px; overflow: hidden; border: 1px solid var(--border-subtle); cursor: pointer; transition: transform 0.2s; }
.cm-video-card:hover { transform: translateY(-2px); }
.cm-disaster-card { padding: 14px; border-radius: 10px; border-left: 3px solid; margin-bottom: 10px; background: rgba(255,255,255,0.015); }

/* ═══ FOOTER ═══ */
.gci-footer { background: var(--bg-primary); border-top: 1px solid var(--border-subtle); padding: 48px 0 24px; margin-top: 64px; }
.footer-inner { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.footer-heading { font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--neon-electric); }
.footer-stats { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.footer-stats strong { color: var(--neon-electric); font-family: var(--font-mono); }
.footer-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-source-pill { padding: 4px 10px; border-radius: var(--radius-full); font-size: 10px; font-weight: 600; color: var(--text-secondary); border: 1px solid var(--border-subtle); text-decoration: none; transition: all 0.2s; }
.footer-source-pill:hover { color: var(--neon-electric); border-color: rgba(0,212,255,0.3); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-ghost); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-ghost); font-size: 12px; }
.footer-bottom-links a:hover { color: var(--text-secondary); }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* ═══ COOKIE BANNER ═══ */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 9000; max-width: 520px;
  background: rgba(10,15,30,0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 20px 24px; box-shadow: var(--shadow-xl);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { font-size: 12px; color: var(--text-secondary); margin: 0; flex: 1; min-width: 200px; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-dismiss { background: none; border: 1px solid var(--border-light); color: var(--text-secondary); padding: 8px 14px; border-radius: var(--radius-full); font-size: 12px; cursor: pointer; transition: all 0.2s; }
.cookie-dismiss:hover { border-color: var(--border-active); color: var(--text-primary); }

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ═══ NEWS CARDS ═══ */
.news-card { display: block; color: inherit; transition: transform 0.3s var(--ease-spring), box-shadow 0.3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }

/* ═══ LEAFLET DARK THEME ═══ */
.leaflet-container { background: var(--bg-void) !important; }
.leaflet-popup-content-wrapper { background: rgba(10,15,30,0.95) !important; color: var(--text-primary) !important; border: 1px solid var(--border-light) !important; border-radius: var(--radius-md) !important; box-shadow: var(--shadow-lg) !important; }
.leaflet-popup-tip { background: rgba(10,15,30,0.95) !important; }
.leaflet-popup-content { font-family: var(--font-body) !important; font-size: 13px !important; }
.leaflet-control-zoom a { background: rgba(10,15,30,0.90) !important; color: var(--text-secondary) !important; border-color: var(--border-subtle) !important; }
.leaflet-control-zoom a:hover { background: rgba(0,212,255,0.1) !important; color: var(--neon-electric) !important; }
.gci-marker { background: none !important; border: none !important; }
@keyframes pulse { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 0.3; transform: scale(1.3); } }
@keyframes markerRing { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.15; transform: scale(1.5); } }

/* ═══ EVENT TYPE FILTER LEGEND ═══ */
.map-legend-btn { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:20px; border:1px solid var(--border-subtle); background:rgba(10,15,30,0.6); cursor:pointer; transition:all 0.2s; font-size:11px; color:var(--text-secondary); }
.map-legend-btn:hover { background:rgba(0,212,255,0.08); border-color:var(--neon-electric); }
.map-legend-btn.active { background:rgba(0,212,255,0.12); border-color:var(--neon-electric); color:var(--text-primary); font-weight:600; }
.map-legend-dot { width:8px; height:8px; border-radius:50%; display:inline-block; flex-shrink:0; }

/* ═══ DATA TABLE ═══ */
.gci-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gci-table th { text-align: left; padding: 12px 16px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-tertiary); border-bottom: 1px solid var(--border-light); }
.gci-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.gci-table tr:hover td { background: rgba(0,212,255,0.02); color: var(--text-primary); }

/* ═══ FILTER BAR ═══ */
.filter-bar { margin-bottom: 24px; }

/* ═══ CHART CONTAINER ═══ */
.chart-container { position: relative; width: 100%; }

/* ═══ RESPONSIVE ═══ */

@media (max-width: 768px) {
  .hero-section { padding: 100px 0 60px; }
  .hero-title { font-size: 32px; }
  .stats-strip .glass-card > div { grid-template-columns: repeat(3, 1fr); }
  .container { padding: 0 16px; }
}

/* ═══ BREADCRUMBS ═══ */
.gci-breadcrumb { display: flex; align-items: center; gap: 0; padding: 16px 0; font-size: 13px; flex-wrap: wrap; list-style: none; margin: 0; }
.gci-breadcrumb li { display: flex; align-items: center; }
.gci-breadcrumb li + li::before {
  content: '\203A'; /* › chevron */
  display: inline-block; margin: 0 10px;
  color: var(--text-ghost); font-size: 14px; font-weight: 400; line-height: 1;
}
.gci-breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.gci-breadcrumb a:hover { color: var(--neon-electric); }
.gci-breadcrumb li:last-child span[itemprop="name"] { color: var(--text-tertiary); }

/* ═══ SEO ARTICLE BODY ═══ */
.seo-body { max-width: 880px; margin: 0 auto; padding: 40px 24px 80px; }
.seo-body h1 { font-family: var(--font-heading); font-size: 36px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; line-height: 1.2; }
.seo-body .seo-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }
.seo-body h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--text-primary); margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.seo-body h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 32px 0 12px; }
.seo-body p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 16px; }
.seo-body ul, .seo-body ol { color: var(--text-secondary); font-size: 15px; line-height: 1.8; padding-left: 24px; margin-bottom: 16px; }
.seo-body a { color: var(--neon-electric); text-decoration: none; border-bottom: 1px solid rgba(0,212,255,0.2); transition: border-color 0.2s; }
.seo-body a:hover { border-color: var(--neon-electric); }
.seo-body blockquote { border-left: 3px solid var(--neon-plasma); padding: 16px 24px; margin: 24px 0; background: rgba(123,47,255,0.05); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--text-secondary); font-size: 15px; }
.seo-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.seo-body table th { text-align: left; padding: 10px 14px; background: rgba(0,212,255,0.05); border-bottom: 1px solid var(--border-light); color: var(--text-primary); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.seo-body table td { padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.seo-body .toc { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 40px; }
.seo-body .toc h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.seo-body .toc ol { padding-left: 20px; margin: 0; }
.seo-body .toc li { margin-bottom: 6px; }
.seo-body .toc a { font-size: 14px; color: var(--text-secondary); border: none; }
.seo-body .toc a:hover { color: var(--neon-electric); }
.seo-body .faq-item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.seo-body .faq-item h3 { margin: 0 0 8px; font-size: 16px; }
.seo-body .faq-item p { margin: 0; font-size: 14px; }
@media (max-width: 768px) {
  .seo-body { padding: 24px 16px 60px; }
  .seo-body h1 { font-size: 26px; }
  .seo-body h2 { font-size: 20px; }
}

/* ═══ POLICY PAGES ═══ */
.policy-body { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.policy-body h1 { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.policy-body .last-updated { font-size: 13px; color: var(--text-ghost); margin-bottom: 40px; }
.policy-body h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 36px 0 12px; }
.policy-body p, .policy-body li { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.policy-body ul { padding-left: 24px; margin-bottom: 16px; }
.policy-body a { color: var(--neon-electric); }

/* ═══ GCI FORM INPUTS ═══ */
.gci-input, .gci-select, .gci-textarea { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-primary); padding: 10px 14px; font-size: 14px; font-family: var(--font-body); width: 100%; transition: border-color 0.2s; }
.gci-input:focus, .gci-select:focus, .gci-textarea:focus { outline: none; border-color: var(--neon-electric); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.gci-input::placeholder, .gci-textarea::placeholder { color: var(--text-ghost); }
.gci-textarea { resize: vertical; min-height: 120px; }

/* ═══ AD SLOT PLACEHOLDERS ═══ */
.ad-slot { min-height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-subtle); border-radius: var(--radius-md); margin: 24px 0; font-size: 11px; color: var(--text-ghost); text-transform: uppercase; letter-spacing: 0.1em; }

/* ═══ ARTICLE READER — FORCE DARK THEME ON EXTERNAL CONTENT ═══ */
.article-reader-body,
.article-reader-body * {
  color: var(--text-secondary) !important;
  background-color: transparent !important;
  background: transparent !important;
  border-color: var(--border-subtle) !important;
}
.article-reader-body a,
.article-reader-body a * { color: var(--neon-electric) !important; }
.article-reader-body h1, .article-reader-body h1 *,
.article-reader-body h2, .article-reader-body h2 *,
.article-reader-body h3, .article-reader-body h3 *,
.article-reader-body h4, .article-reader-body h4 *,
.article-reader-body h5, .article-reader-body h5 *,
.article-reader-body h6, .article-reader-body h6 * { color: var(--text-primary) !important; }
.article-reader-body img {
  background: var(--bg-tertiary) !important;
  max-width: 100% !important;
  height: auto !important;
}
.article-reader-body table { border-collapse: collapse; width: 100%; overflow-x: auto; display: block; }
.article-reader-body th { background: rgba(0,212,255,0.05) !important; color: var(--text-primary) !important; }
.article-reader-body td, .article-reader-body th { padding: 8px 12px; border: 1px solid var(--border-subtle) !important; }

/* Article thumbnail placeholder fix */
.article-thumb { background-color: var(--bg-tertiary) !important; }

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE OVERRIDES
   Mobile < 576px · Tablet < 768px · Small Desktop < 1024px
   ═══════════════════════════════════════════════════════════ */

/* ─── Tablet breakpoint (768px) ─── */
@media (max-width: 768px) {
  /* Navbar */
  .gci-navbar { padding: 0 16px; }
  .navbar-actions .btn-outline-neon { display: none; }
  .country-filter-wrapper { display: none; }

  /* Ticker */
  .ticker-bar { height: 28px; }
  .page-wrapper { margin-top: 92px; }

  /* Pill tabs scroll horizontally */
  .pill-tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .pill-tab { white-space: nowrap; flex-shrink: 0; padding: 8px 14px; font-size: 12px; }

  /* News index: 2-col → 1-col */
  .news-grid-layout { grid-template-columns: 1fr !important; }

  /* Article reader: 2-col → 1-col */
  .article-layout { grid-template-columns: 1fr !important; }

  /* Oil calculator: 380px+1fr → 1-col */
  .calc-layout { grid-template-columns: 1fr !important; }

  /* Flight/Shipping: map+sidebar → 1-col */
  .fs-map-layout { grid-template-columns: 1fr !important; }

  /* Commodity: 2-col chart grids → 1-col */
  .commodity-chart-grid { grid-template-columns: 1fr !important; }

  /* Fuel impact: 2-col → 1-col */
  .fuel-chart-grid { grid-template-columns: 1fr !important; }

  /* War map: sidebar+map → stacked */
  .war-map-layout { grid-template-columns: 1fr !important; }
  .war-sidebar { max-height: 50vh; border-right: none !important; border-bottom: 1px solid var(--border-subtle); }
  .war-main { height: auto !important; min-height: auto !important; overflow: visible !important; }
  .war-map-viewport { height: 50vh; min-height: 350px; }
  .war-map-viewport #globeContainer,
  .war-map-viewport #mapContainer,
  .war-map-viewport #conflictMap { min-height: 350px !important; }
  .map-legend {
    position: static !important;
    bottom: auto !important; left: auto !important;
    z-index: auto !important;
    width: 100% !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    padding: 16px 20px !important;
    text-align: center;
  }
  .map-legend h4 { margin-bottom: 10px; font-size: 12px; }
  .map-legend #legendFilters { justify-content: center; gap: 8px; }
  .map-legend-btn { font-size: 12px; padding: 6px 12px; }
  .war-view-toggle { top: 8px !important; right: 8px !important; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  /* Cookie banner */
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; flex-direction: column; text-align: center; }

  /* Country modal */
  .country-modal { width: 100%; margin: 8px; }
  .country-modal-header { padding: 16px; }
  .country-modal-body { padding: 0 16px 16px; }
  .cm-tabs { padding: 12px 16px 0; gap: 2px; }
  .cm-tab { padding: 8px 12px; font-size: 11px; }
  .cm-stat-grid { grid-template-columns: repeat(2, 1fr); }

  /* General grid helpers for 2-col inline → 1-col */
  .resp-grid-2 { grid-template-columns: 1fr !important; }
  .seo-stat-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Article card horizontal → vertical */
  .news-article .article-thumb { width: 100% !important; min-width: unset !important; height: 160px !important; }

  /* ── Universal padding crunch on glass-cards with large inline padding ── */
  .glass-card[style*="padding:32px"],
  .glass-card[style*="padding:48px"],
  .glass-card[style*="padding:28px"],
  .glass-card[style*="padding:24px"],
  .glass-card[style*="padding:20px"],
  .glass-card[style*="padding:18px"] {
    padding: 20px 16px !important;
  }

  /* ── Home: hero map height ── */
  #heroMap { height: 220px !important; }

  /* ── Home: featured crisis h2 with inline 28px ── */
  h2[style*="font-size:28px"] { font-size: 22px !important; }

  /* ── Home: newsletter CTA subscribe form wrap ── */
  #subscribeForm { flex-wrap: wrap !important; }
  #subscribeForm .gci-input { min-width: 100% !important; }

  /* ── News: featured mini map fixed 300px width ── */
  #featuredMiniMap { width: 100% !important; height: 150px !important; }

  /* ── All stat-value with inline 28px ── */
  .stat-value[style*="font-size:28px"] { font-size: 20px !important; }

  /* ── All chart containers — height variants ── */
  .chart-container[style*="height:280px"] { height: 220px !important; }
  .chart-container[style*="height:320px"] { height: 250px !important; }
  .chart-container[style*="height:260px"] { height: 210px !important; }
  .chart-container[style*="height:240px"] { height: 200px !important; }

  /* ── Calculator: padding:28px glass-cards ── */
  .glass-card[style*="padding:28px"] { padding: 20px 16px !important; }

  /* Price / stat cards tighter */
  #priceCardsGrid { gap: 12px !important; }
  .stat-card.glass-card[style*="padding:24px"] { padding: 16px !important; }
  .stat-card.glass-card[style*="padding:18px"] { padding: 14px !important; }

  /* ── Tables: smaller font on tablet ── */
  .glass-card table { font-size: 12px !important; }

  /* ── Calculator IOC steps: wrap label on tiny containers ── */
  .glass-card[style*="font-family:var(--font-mono)"] > div,
  #calcResults .glass-card { word-break: break-word; }
  .glass-card table th, .glass-card table td { padding: 8px !important; }

  /* ── Flight/Shipping: map container heights ── */
  .map-container[style*="height:520px"],
  .map-container[style*="height:480px"] { height: 320px !important; }

  /* ── Oil calculator: 3-col scenario → 2-col at tablet too ── */
  .calc-scenario-grid { grid-template-columns: 1fr 1fr !important; }

  /* ── News featured conflict card: flex → stack ── */
  .news-featured-inner { flex-direction: column !important; }
  .news-featured-inner > div:last-child { width: 100% !important; height: 180px !important; }

  /* ── Header metadata flex wrap ── */
  div[style*="display:flex"][style*="gap:12px"][style*="margin-bottom:8px"] {
    flex-wrap: wrap;
  }

  /* ── Stats strip: compound padding ── */
  .stats-strip .glass-card[style*="padding:24px 32px"] { padding: 16px !important; }
  .stats-strip-inner { gap: 16px !important; }
  .strip-label { font-size: 9px !important; }

  /* ── Featured conflict section ── */
  .resp-grid-2[style*="min-height:300px"] { min-height: auto !important; }
  #featuredConflictMap { min-height: 220px !important; }

  /* ── Module cards 320px grid → single column ── */
  [style*="minmax(320px"] { grid-template-columns: 1fr !important; }

  /* ── Grid gap reduction on tablet ── */
  [style*="gap:24px"] { gap: 16px !important; }
  [style*="gap:20px"] { gap: 14px !important; }

  /* ── Footer grid ── */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* ── H1 with large inline font ── */
  h1[style*="font-size:28px"] { font-size: 22px !important; }
  h2[style*="font-size:24px"] { font-size: 20px !important; }

  /* ── Video/camera grid ── */
  #cameraGrid, #crisisVideoGrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }

  /* ── Inline embedded video player bar ── */
  #cameraPlayerWrap > div:last-child,
  #videoPlayerWrap > div:last-child { flex-wrap: wrap; gap: 8px; padding: 12px 16px !important; }
}

/* ─── Mobile breakpoint (576px) ─── */
@media (max-width: 576px) {
  .container { padding: 0 12px; }
  .page-wrapper { margin-top: 88px; }

  /* Navbar */
  .gci-navbar { padding: 0 12px; height: 56px; }
  .logo-label { font-size: 13px; }
  .logo-label-sub { font-size: 7px; }
  .logo-mark { width: 30px; height: 30px; }
  .ticker-bar { top: 56px; height: 26px; }
  .ticker-content { font-size: 10px; }
  .page-wrapper { margin-top: 82px; }

  /* Typography */
  h1 { font-size: 22px !important; }
  .hero-title { font-size: 28px !important; }

  /* News article flex → stack */
  .news-article > div { flex-direction: column !important; }
  .news-article .article-thumb {
    width: 100% !important; min-width: unset !important;
    height: 180px !important; flex-shrink: unset !important;
  }

  /* Glass cards */
  .glass-card { border-radius: var(--radius-md); }

  /* Pill tabs */
  .pill-tabs { border-radius: var(--radius-md); padding: 3px; }
  .pill-tab { padding: 6px 12px; font-size: 11px; }

  /* Stat cards */
  .stat-value { font-size: 20px !important; }
  .stat-label { font-size: 9px; }

  /* Featured conflict mini map */
  #featuredMiniMap { width: 100% !important; height: 150px !important; }

  /* Oil calculator 3-col scenario → 2-col */
  .calc-scenario-grid { grid-template-columns: 1fr 1fr !important; }

  /* State table scroll */
  .state-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .state-table-wrap table { min-width: 400px; }

  /* Country modal */
  .country-modal-overlay { padding: 8px; }
  .country-modal { border-radius: var(--radius-md); }
  .cm-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cm-stat-val { font-size: 18px; }

  /* Breadcrumbs */
  .gci-breadcrumb { font-size: 12px; padding: 12px 0; }
  .gci-breadcrumb li + li::before { margin: 0 6px; font-size: 12px; }

  /* Video player aspect */
  #cameraPlayerWrap, #videoPlayerWrap { border-radius: var(--radius-md); }

  /* Section padding reduction */
  .section { padding: 40px 0; }

  /* Hero CTA buttons stack */
  .hero-buttons { flex-direction: column !important; align-items: stretch !important; }
  .hero-buttons .btn-neon,
  .hero-buttons .btn-outline-neon { width: 100%; text-align: center; }

  /* Featured crisis text padding */
  .resp-grid-2 > div[style*="padding:32px"] { padding: 20px !important; }

  /* Home hero map */
  #heroMap { height: 180px !important; }

  /* War map globe/map extra small */
  .war-map-viewport { height: 40vh !important; min-height: 280px !important; }
  .war-map-viewport #globeContainer,
  .war-map-viewport #mapContainer,
  .war-map-viewport #conflictMap { min-height: 280px !important; }
  .war-sidebar { max-height: 40vh !important; }

  /* Flight/Shipping maps smaller */
  .map-container[style*="height:520px"],
  .map-container[style*="height:480px"] { height: 260px !important; }

  /* Auto-fit grids: lower minmax breakpoint for narrow screens */
  [style*="minmax(300px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(320px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(280px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(200px"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="minmax(180px"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="minmax(140px"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Calc scenario → single column on small phones */
  .calc-scenario-grid { grid-template-columns: 1fr !important; }

  /* Strip value font size */
  .strip-value { font-size: 22px !important; }

  /* All chart containers — 576px sizes */
  .chart-container[style*="height:280px"] { height: 200px !important; }
  .chart-container[style*="height:320px"] { height: 220px !important; }
  .chart-container[style*="height:260px"] { height: 190px !important; }
  .chart-container[style*="height:240px"] { height: 180px !important; }

  /* All glass-card padding overrides on mobile */
  .glass-card[style*="padding:28px"] { padding: 14px 10px !important; }
  .glass-card[style*="padding:32px"] { padding: 14px 10px !important; }
  .glass-card[style*="padding:24px"] { padding: 14px 10px !important; }
  .glass-card[style*="padding:48px"] { padding: 14px 10px !important; }
  .glass-card[style*="padding:20px"] { padding: 12px 10px !important; }
  .glass-card[style*="padding:18px"] { padding: 12px 10px !important; }
  .glass-card[style*="padding:16px"] { padding: 10px 8px !important; }
  #featuredConflictMap { min-height: 200px !important; }

  /* Price cards → 2 per row */
  #priceCardsGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .stat-card.glass-card[style*="padding:24px"] { padding: 14px !important; }

  /* Commodity/fuel: minmax(220px) → 2-col */
  [style*="minmax(220px"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Calculator IOC steps: allow label to wrap */
  #calcResults .glass-card div[style*="display:flex;justify-content:space-between"] { flex-wrap: wrap; gap: 4px; }

  /* Table font smaller */
  .glass-card table { font-size: 11px !important; }
  .glass-card table th, .glass-card table td { padding: 6px 8px !important; }

  /* ── Container bottom padding reduction ── */
  .container[style*="padding-bottom:64px"] { padding-bottom: 40px !important; }
  .container[style*="padding-top:32px"] { padding-top: 20px !important; }

  /* ── Grid gaps tighter ── */
  [style*="gap:24px"] { gap: 12px !important; }
  [style*="gap:20px"] { gap: 10px !important; }
  [style*="gap:16px"] { gap: 10px !important; }

  /* ── Header h1 font sizes ── */
  h1[style*="font-size:28px"] { font-size: 20px !important; }
  h1[style*="font-size:32px"] { font-size: 22px !important; }
  h1[style*="font-size:26px"] { font-size: 20px !important; }
  h2[style*="font-size:28px"] { font-size: 20px !important; }
  h2[style*="font-size:24px"] { font-size: 18px !important; }
  h2[style*="font-size:22px"] { font-size: 17px !important; }
  h2[style*="font-size:20px"] { font-size: 17px !important; }
  h3[style*="font-size:18px"] { font-size: 15px !important; }
  h3[style*="font-size:16px"] { font-size: 14px !important; }
  h3[style*="font-size:15px"] { font-size: 13px !important; }

  /* ── Page description text ── */
  p[style*="font-size:14px"][style*="max-width"] { font-size: 12px !important; max-width: 100% !important; }

  /* ── Neon badge smaller ── */
  .neon-badge { font-size: 8px !important; padding: 3px 8px !important; }

  /* ── Stats strip ── */
  .stats-strip .glass-card[style*="padding:24px 32px"] { padding: 12px !important; }
  .stats-strip-inner { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .strip-value { font-size: 18px !important; }
  .strip-label { font-size: 8px !important; letter-spacing: 0.06em !important; }

  /* ── Featured conflict: stacked, smaller ── */
  .resp-grid-2[style*="min-height:300px"] { grid-template-columns: 1fr !important; min-height: auto !important; }
  #featuredConflictMap { min-height: 180px !important; height: 180px !important; }

  /* ── Module cards ── */
  [style*="minmax(320px"] { grid-template-columns: 1fr !important; }

  /* ── News sidebar stacked (already 1fr via .news-grid-layout) ── */
  .news-grid-layout aside { order: 2; }

  /* ── Video/camera grids ── */
  #cameraGrid, #crisisVideoGrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; gap: 10px !important; }

  /* ── Video player title bar ── */
  #cameraPlayerWrap > div:last-child,
  #videoPlayerWrap > div:last-child { flex-direction: column; gap: 8px; padding: 10px 12px !important; align-items: flex-start !important; }

  /* ── War map: further reduce ── */
  .war-sidebar { max-height: 35vh !important; }
  .war-sidebar > div { padding: 14px !important; }

  /* ── War map sidebar headings ── */
  .war-sidebar h2 { font-size: 16px !important; }

  /* ── Breadcrumb tighter ── */
  .gci-breadcrumb { padding: 10px 0 !important; font-size: 11px !important; }

  /* ── Newsletter form on home ── */
  .glass-card form { flex-direction: column !important; }
  .glass-card form .gci-input { width: 100% !important; min-width: unset !important; }

  /* ── Policy/About pages ── */
  .policy-body, .seo-body { padding: 20px 12px 40px !important; }
  .policy-body h1 { font-size: 24px !important; }
  .policy-body h2 { font-size: 18px !important; }

  /* ── Contact form grid ── */
  .contact-grid { grid-template-columns: 1fr !important; }

  /* ── Footer ── */
  .footer-grid { gap: 20px !important; }
  .footer-heading { font-size: 13px !important; }
}

/* ─── Extra-small phones (≤ 400px) ─── */
@media (max-width: 400px) {
  .container { padding: 0 8px; }
  .glass-card[style*="padding:24px"] { padding: 10px 8px !important; }
  .glass-card[style*="padding:32px"] { padding: 10px 8px !important; }
  .glass-card[style*="padding:48px"] { padding: 10px 8px !important; }
  .glass-card[style*="padding:20px"] { padding: 10px 8px !important; }
  .hero-title { font-size: 22px !important; }
  h1, h1[style] { font-size: 18px !important; }
  h2, h2[style] { font-size: 16px !important; }
  h3, h3[style] { font-size: 14px !important; }
  .pill-tab { padding: 5px 8px; font-size: 10px; }
  .cm-stat-grid { grid-template-columns: 1fr !important; }
  .stat-value { font-size: 16px !important; }
  .strip-value { font-size: 16px !important; }
  #heroMap { height: 150px !important; }
  .map-container[style*="height:520px"],
  .map-container[style*="height:480px"] { height: 200px !important; }

  /* Fuel impact: price cards single column */
  #priceCardsGrid { grid-template-columns: 1fr !important; }
  [style*="minmax(220px"] { grid-template-columns: 1fr !important; }

  /* Chart containers minimal */
  .chart-container[style*="height:280px"] { height: 180px !important; }
  .chart-container[style*="height:320px"] { height: 200px !important; }
  .chart-container[style*="height:260px"] { height: 170px !important; }
  .chart-container[style*="height:240px"] { height: 160px !important; }
  .chart-container[style*="height:200px"] { height: 150px !important; }

  /* Calculator padding:28px cards on tiny phones */
  .glass-card[style*="padding:28px"] { padding: 12px 8px !important; }

  /* Price cards single column */
  #priceCardsGrid { grid-template-columns: 1fr !important; }
  [style*="minmax(220px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(200px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(180px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(140px"] { grid-template-columns: 1fr !important; }

  /* Stats strip 2-col on very small */
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr) !important; }

  /* Container padding minimal */
  .container[style*="padding-bottom:64px"] { padding-bottom: 32px !important; }
  .container[style*="padding-top:32px"] { padding-top: 16px !important; }

  /* Video grids single column */
  #cameraGrid, #crisisVideoGrid { grid-template-columns: 1fr !important; }

  /* All gaps minimal */
  [style*="gap:24px"], [style*="gap:20px"], [style*="gap:16px"] { gap: 8px !important; }

  /* Neon badges tiny */
  .neon-badge { font-size: 7px !important; padding: 2px 6px !important; }

  /* Body text */
  p[style*="font-size:14px"], p[style*="font-size:13px"] { font-size: 11px !important; }

  /* War map viewport extra small */
  .war-map-viewport { height: 35vh !important; min-height: 250px !important; }
  .war-map-viewport #globeContainer,
  .war-map-viewport #mapContainer,
  .war-map-viewport #conflictMap { min-height: 250px !important; }

  /* Table: horizontal scroll always */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .glass-card table { font-size: 10px !important; }

  /* Section padding */
  .section { padding: 24px 0 !important; }

  /* About/policy pages */
  .container[style*="max-width:860px"] { max-width: 100% !important; }

  /* Footer minimal */
  .site-footer { padding: 32px 0 16px !important; }
}

/* ─── Global overflow prevention ─── */
html, body { overflow-x: hidden; }
img, video, canvas, svg, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }
pre, code { overflow-x: auto; word-break: break-word; }
