/* ==========================================================================
   Kuwait — Live National Dashboard
   Design system: Modern dark cinema, glass panels, ambient motion
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  /* base surfaces */
  --bg: #05070a;
  --bg-1: #080b10;
  --bg-2: #0c1017;
  --panel: rgba(255,255,255,0.035);
  --panel-strong: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.09);
  --border-soft: rgba(255,255,255,0.055);

  /* text */
  --fg: #f4f7fb;
  --fg-muted: #99a3b6;
  --fg-subtle: #5c6478;

  /* accents — Kuwait-inspired: signal emerald, desert gold, flag red */
  --accent: #21e3a4;
  --accent-dim: #1a9d76;
  --accent-ink: #04140f;
  --gold: #d9b26a;
  --red: #ef5a55;
  --blue: #5b9dff;

  /* gradients */
  --grad-accent: linear-gradient(135deg, #21e3a4 0%, #5bd6c9 45%, #7fb8ff 100%);
  --grad-gold: linear-gradient(135deg, #f0d49a 0%, #d9b26a 60%, #a97c3c 100%);

  /* elevation */
  --shadow-lg: 0 24px 70px -20px rgba(0,0,0,0.65);
  --shadow-md: 0 12px 32px -12px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 0 1px rgba(33,227,164,0.12), 0 0 40px -8px rgba(33,227,164,0.25);

  /* radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 260ms;
  --dur-slow: 450ms;

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body{ height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
::selection{ background: rgba(33,227,164,0.28); color: #fff; }

::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: #202631; border-radius: var(--r-pill); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover{ background: #2b3241; }

:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- layout helpers ---------- */
.wrap{
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.section{
  position: relative;
  padding: var(--sp-9) 0;
  z-index: 2;
}
.section--tight{ padding: var(--sp-7) 0; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(33,227,164,0.18);
}
.eyebrow.gold{ color: var(--gold); }
.eyebrow.gold::before{ background: var(--gold); box-shadow: 0 0 0 3px rgba(217,178,106,0.18); }

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.section-head h2{
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 10px;
  color: var(--fg);
}
.section-sub{
  max-width: 520px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- ambient background system ---------- */
.bg-fixed{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}
#bg-canvas{
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.aurora{
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.aurora span{
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}
.aurora span:nth-child(1){
  width: 46vw; height: 46vw; left: -10%; top: -8%;
  background: radial-gradient(circle, rgba(33,227,164,0.55), transparent 70%);
  animation: drift1 34s ease-in-out infinite;
}
.aurora span:nth-child(2){
  width: 40vw; height: 40vw; right: -12%; top: 10%;
  background: radial-gradient(circle, rgba(217,178,106,0.4), transparent 70%);
  animation: drift2 40s ease-in-out infinite;
}
.aurora span:nth-child(3){
  width: 38vw; height: 38vw; left: 20%; bottom: -18%;
  background: radial-gradient(circle, rgba(91,157,255,0.32), transparent 70%);
  animation: drift3 46s ease-in-out infinite;
}
@keyframes drift1{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(6vw, 8vh) scale(1.12); }
}
@keyframes drift2{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-7vw, 6vh) scale(0.94); }
}
@keyframes drift3{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(4vw, -7vh) scale(1.08); }
}
.grid-overlay{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.noise-overlay{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- glass panels / cards ---------- */
.glass{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.card:hover{
  border-color: rgba(255,255,255,0.16);
  background: var(--panel-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- top nav ---------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  background: rgba(5,7,10,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-soft);
  padding: 10px 0;
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark{
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #12151a;
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b{
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-text b i{
  font-style: normal;
  font-weight: 500;
  color: var(--fg-subtle);
}
.brand-text span{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-subtle);
  text-transform: uppercase;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav-links a{
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-links a:hover{ color: var(--fg); }
.nav-links a:hover::after{ transform: scaleX(1); }

.nav-status{
  display: flex;
  align-items: center;
  gap: 14px;
}
.clock{
  font-family: var(--font-mono);
  text-align: right;
  line-height: 1.2;
  display: none;
}
.clock .time{ font-size: 14px; font-weight: 600; color: var(--fg); letter-spacing: 0.02em; }
.clock .date{ font-size: 10.5px; color: var(--fg-subtle); letter-spacing: 0.04em; }

.live-pill{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.dot-pulse{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.dot-pulse::after{
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulse-ring 2.2s var(--ease-out) infinite;
}
@keyframes pulse-ring{
  0%{ transform: scale(0.4); opacity: 0.9; }
  100%{ transform: scale(1.9); opacity: 0; }
}
.dot-pulse.red{ background: var(--red); }
.dot-pulse.red::after{ border-color: var(--red); }

.nav-toggle{
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg{ width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: var(--sp-8);
  overflow: hidden;
}
.hero-media{
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.08);
  animation: kenburns 32s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.05) brightness(0.82);
}
@keyframes kenburns{
  0%{ transform: scale(1.08) translate(0,0); }
  100%{ transform: scale(1.18) translate(-1.5%, -2%); }
}
.hero-media::before{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,10,0.55) 0%, rgba(5,7,10,0.32) 18%, rgba(5,7,10,0.58) 44%, rgba(5,7,10,0.88) 82%, var(--bg) 100%),
    linear-gradient(100deg, rgba(5,7,10,0.66) 0%, rgba(5,7,10,0.3) 46%, rgba(5,7,10,0.1) 66%, rgba(5,7,10,0.38) 100%);
}
.hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 36%, transparent 0%, rgba(5,7,10,0.28) 100%);
}

.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  width: fit-content;
  margin-bottom: var(--sp-5);
}

.hero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #d8dee8 60%, #97a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-4);
}
.hero-title em{
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead{
  max-width: 620px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: #eef1f6;
  margin: 0 0 var(--sp-6);
  padding: 14px 18px;
  margin-left: -18px;
  border-radius: var(--r-md);
  background: rgba(5,7,10,0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: fit-content;
}
.hero-title, .hero-badge{ text-shadow: 0 4px 30px rgba(0,0,0,0.35); }

.hero-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  max-width: 900px;
}
.hero-stat{
  background: rgba(8,11,16,0.72);
  padding: 16px 18px;
  min-width: 0;
}
.hero-stat .label{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-stat .value{
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-stat .value.skel, .skel{
  color: transparent;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.13) 37%, rgba(255,255,255,0.06) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.6s ease infinite;
  border-radius: 5px;
  display: inline-block;
}
@keyframes shimmer{
  0%{ background-position: 100% 50%; }
  100%{ background-position: 0 50%; }
}
.hero-stat .sub{ font-size: 11px; color: var(--fg-subtle); margin-top: 4px; }
.hero-stat .sub.up{ color: var(--accent); }
.hero-stat .sub.down{ color: var(--red); }

.scroll-cue{
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-cue svg{ width: 14px; height: 14px; animation: bob 2s ease-in-out infinite; }
@keyframes bob{
  0%,100%{ transform: translateY(0); opacity: 0.5; }
  50%{ transform: translateY(6px); opacity: 1; }
}

/* ---------- ticker ---------- */
.ticker{
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(8,11,16,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.ticker-label{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: rgba(33,227,164,0.09);
  border-right: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.ticker-track-wrap{
  overflow: hidden;
  flex: 1;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track{
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  padding: 12px 0;
  animation: ticker-scroll 60s linear infinite;
  width: max-content;
}
.ticker:hover .ticker-track{ animation-play-state: paused; }
@keyframes ticker-scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}
.ticker-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-muted);
}
.ticker-item b{ color: var(--fg); font-weight: 500; }
.ticker-item .tag{
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--panel-strong);
  color: var(--fg-subtle);
  text-transform: uppercase;
}
.ticker-item .delta.up{ color: var(--accent); }
.ticker-item .delta.down{ color: var(--red); }

/* ---------- KPI / stat grids ---------- */
.kpi-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}
.kpi-card{
  position: relative;
}
.kpi-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.kpi-icon{
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.kpi-icon svg{ width: 16px; height: 16px; }
.kpi-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.kpi-value{
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.kpi-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-subtle);
}
.kpi-meta .delta{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}
.kpi-meta .delta.up{ color: var(--accent); }
.kpi-meta .delta.down{ color: var(--red); }
.spark{ width: 100%; height: 40px; margin-top: 10px; display: block; }
.spark path.line{ fill: none; stroke: var(--accent); stroke-width: 1.6; }
.spark path.fill{ fill: url(#sparkFill); stroke: none; }

/* ---------- markets grid ---------- */
.markets-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.tv-card{ padding: var(--sp-4) var(--sp-4) var(--sp-3); display: flex; flex-direction: column; }
.tv-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 38px;
  margin-bottom: var(--sp-3);
}
.tv-card-head h4{
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
}
.tv-card-head .badge{
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
}
.tv-widget-body{
  border-radius: var(--r-sm);
  overflow: hidden;
  height: 180px;
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}
.tv-widget-body iframe{ display: block; }
.tv-widget-credit{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
}

.fx-panel{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-4);
}
.fx-table{ width: 100%; border-collapse: collapse; }
.fx-table th{
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
}
.fx-table td{
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.fx-table tr:last-child td{ border-bottom: none; }
.fx-table .pair{ display: flex; align-items: center; gap: 10px; font-weight: 500; }
.fx-flag{
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--panel-strong);
  display: grid; place-items: center;
  font-size: 12px;
  border: 1px solid var(--border);
}
.fx-table .rate{ font-family: var(--font-mono); font-weight: 600; }
.fx-table .inverse{ font-family: var(--font-mono); color: var(--fg-subtle); font-size: 12.5px; }

.cbk-box{ display: flex; flex-direction: column; gap: var(--sp-3); }
.cbk-figure{
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cbk-figure .num{
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cbk-figure .unit{ font-size: 15px; color: var(--fg-muted); font-weight: 500; }
.source-line{
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border-soft);
}
.source-line a{ color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }
.source-line a:hover{ color: var(--accent); }

/* ---------- regulatory & policy watch ---------- */
.reg-head{
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.reg-head h3{
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.reg-head p{ font-size: 13.5px; color: var(--fg-subtle); }
.reg-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.reg-card{ display: flex; flex-direction: column; min-height: 210px; }
.reg-body{ margin-bottom: var(--sp-3); }
.reg-headline{
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 8px;
}
.reg-meta{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  margin: 0;
}
.reg-headline.skel{ display: block; width: 90%; height: 14px; margin-bottom: 6px; }
.reg-headline.skel + .reg-meta{ display:none; }

/* ---------- rankings ---------- */
.rank-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.rank-card{ display: flex; flex-direction: column; min-height: 230px; }
.rank-top{ display:flex; align-items:center; justify-content:space-between; }
.rank-org{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.rank-year{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-subtle);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.rank-title{
  font-size: 15px;
  font-weight: 600;
  margin: var(--sp-3) 0 var(--sp-4);
  color: var(--fg);
}
.rank-metric{
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.rank-metric .big{
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--fg);
}
.rank-metric .cat{
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.rank-desc{ font-size: 13px; color: var(--fg-muted); line-height: 1.55; margin-bottom: auto; }
.rank-bar{
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--panel-strong);
  overflow: hidden;
  margin: var(--sp-4) 0 var(--sp-3);
}
.rank-bar i{
  display: block; height: 100%;
  background: var(--grad-accent);
  border-radius: var(--r-pill);
  width: 0%;
  transition: width 1.2s var(--ease-out);
}

/* ---------- news ---------- */
.news-layout{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-5);
  align-items: start;
}
.news-tabs{
  display: flex;
  gap: 8px;
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.news-tab{
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.news-tab:hover{ color: var(--fg); border-color: rgba(255,255,255,0.2); }
.news-tab.active{
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.news-list{ display: flex; flex-direction: column; gap: 10px; }
.news-item{
  display: flex;
  gap: 14px;
  padding: 16px;
  align-items: flex-start;
}
.news-idx{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  padding-top: 3px;
  flex-shrink: 0;
  width: 20px;
}
.news-body{ flex: 1; min-width: 0; }
.news-headline{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.45;
  margin-bottom: 8px;
  transition: color var(--dur-fast);
}
.news-item:hover .news-headline{ color: var(--accent); }
.news-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news-meta .src{
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--panel-strong);
  color: var(--fg-muted);
}
.news-arrow{
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--fg-subtle);
  transition: all var(--dur-fast) var(--ease-out);
}
.news-item:hover .news-arrow{ background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.news-arrow svg{ width: 13px; height: 13px; }

.news-side{ display: flex; flex-direction: column; gap: var(--sp-4); position: sticky; top: 110px; }
.side-card h4{
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--sp-3);
  display: flex; align-items: center; gap: 8px;
}
.weather-row{ display: flex; align-items: center; gap: var(--sp-4); }
.weather-temp{
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
}
.weather-detail{ font-size: 12px; color: var(--fg-subtle); line-height: 1.6; }
.mini-list{ display: flex; flex-direction: column; gap: 10px; }
.mini-list li{
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--fg-muted);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-soft);
}
.mini-list li:last-child{ border-bottom: none; padding-bottom: 0; }
.mini-list b{ color: var(--fg); font-family: var(--font-mono); font-weight: 600; }

.skeleton-line{
  height: 13px; border-radius: 4px; margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.11) 37%, rgba(255,255,255,0.05) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.6s ease infinite;
}

/* ---------- sources / methodology ---------- */
.sources-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-3);
}
.source-card{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--sp-4);
}
.source-card .n{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.source-card h5{ font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.source-card p{ font-size: 12px; color: var(--fg-subtle); line-height: 1.55; }
.source-card a{ font-size: 11.5px; color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }
.source-card a:hover{ color: var(--accent); }

.disclaimer{
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border-left: 2px solid var(--gold);
  background: rgba(217,178,106,0.05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---------- footer ---------- */
.footer{
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-soft);
  padding: var(--sp-7) 0 var(--sp-6);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-links{ display: flex; gap: var(--sp-5); }
.footer-links a{ font-size: 13px; color: var(--fg-subtle); }
.footer-links a:hover{ color: var(--fg); }
.footer-note{ font-size: 12px; color: var(--fg-subtle); font-family: var(--font-mono); }

/* ---------- reveal-on-scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in{ opacity: 1; transform: translateY(0); }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- fade-in-on-load (above the fold, no JS/observer dependency) ---------- */
@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}
.fade-in{
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out) forwards;
}

/* ---------- responsive ---------- */
@media (min-width: 900px){
  .clock{ display: block; }
}
@media (max-width: 1080px){
  .markets-grid{ grid-template-columns: repeat(2, 1fr); }
  .reg-grid{ grid-template-columns: 1fr; }
  .news-layout{ grid-template-columns: 1fr; }
  .news-side{ position: static; flex-direction: row; flex-wrap: wrap; }
  .side-card{ flex: 1; min-width: 260px; }
}
@media (max-width: 860px){
  .nav-links{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: fixed;
    top: 64px; left: 12px; right: 12px;
    background: rgba(8,11,16,0.96);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 10px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
    z-index: 49;
  }
  .nav-links.is-open{ opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a{ width: 100%; padding: 12px 10px; border-radius: 8px; }
  .nav-links a:hover{ background: var(--panel-strong); }
  .nav-links a::after{ display: none; }
  .nav-toggle{ display: flex; }
  .hero-strip{ grid-template-columns: repeat(2, 1fr); }
  .fx-panel{ grid-template-columns: 1fr; }
  .hide-mobile{ display: none; }
}
@media (max-width: 640px){
  .markets-grid{ grid-template-columns: 1fr; }
  .hero-strip{ grid-template-columns: 1fr 1fr; }
  .section{ padding: var(--sp-7) 0; }
  .section-head{ flex-direction: column; align-items: flex-start; }
  .news-side{ flex-direction: column; }
}
