/* ============================================================
   NexoHub — Restored Original Design
   ============================================================ */

/* ── Variables ── */
:root {
  --ff-h: 'Syne', sans-serif;
  --ff-b: 'Inter', sans-serif;
  --ff-m: 'Space Mono', monospace;
  --ease: 0.2s cubic-bezier(.4,0,.2,1);
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}
[data-theme="dark"] {
  --bg:  #07070e;
  --bg2: #0c0c18;
  --bg3: #111120;
  --sur: rgba(255,255,255,.045);
  --sur2: rgba(255,255,255,.08);
  --bdr: rgba(255,255,255,.07);
  --bdr2: rgba(255,255,255,.14);
  --tx:  #eeeef8;
  --t2:  #8888aa;
  --t3:  #44445a;
  --acc: #7c6af4;
  --a2:  #a594f9;
  --glow: rgba(124,106,244,.25);
  --nav: rgba(7,7,14,.85);
  --foot: #04040a;
}
[data-theme="light"] {
  --bg:  #f0f0f8;
  --bg2: #e4e4f0;
  --bg3: #d8d8ec;
  --sur: rgba(0,0,0,.04);
  --sur2: rgba(0,0,0,.08);
  --bdr: rgba(0,0,0,.08);
  --bdr2: rgba(0,0,0,.16);
  --tx:  #0c0c1c;
  --t2:  #444466;
  --t3:  #888899;
  --acc: #5a4cde;
  --a2:  #7c6af4;
  --glow: rgba(90,76,222,.2);
  --nav: rgba(240,240,248,.88);
  --foot: #d8d8ec;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ff-b); background: var(--bg); color: var(--tx); min-height: 100vh; overflow-x: hidden; transition: background .2s, color .2s; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Gradient text ── */
.grad { background: linear-gradient(135deg, var(--acc), var(--a2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── INES colours ── */
:root {
  --i1:#00b4d8; --i2:#0096c7; --i3:#f4a261;
  --i4:#e76f51; --i5:#e63946; --i6:#c1121f; --i7:#ff3333;
}
.ib { display:inline-flex; align-items:center; gap:5px; padding:4px 11px; border-radius:20px; font-family:var(--ff-m); font-size:11px; font-weight:700; letter-spacing:.04em; border:1px solid; }
.ib.lg { font-size:13px; padding:5px 14px; }
.l1{color:var(--i1);background:rgba(0,180,216,.1);border-color:rgba(0,180,216,.22);}
.l2{color:var(--i2);background:rgba(0,150,199,.1);border-color:rgba(0,150,199,.22);}
.l3{color:var(--i3);background:rgba(244,162,97,.1);border-color:rgba(244,162,97,.22);}
.l4{color:var(--i4);background:rgba(231,111,81,.1);border-color:rgba(231,111,81,.22);}
.l5{color:var(--i5);background:rgba(230,57,70,.1);border-color:rgba(230,57,70,.22);}
.l6{color:var(--i6);background:rgba(193,18,31,.12);border-color:rgba(193,18,31,.28);}
.l7{color:var(--i7);background:rgba(255,51,51,.12);border-color:rgba(255,51,51,.28);}

/* ── Buttons ── */
.btn-p {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  background: var(--acc); color: #fff;
  font-family: var(--ff-h); font-weight: 700; font-size: 14px;
  transition: all var(--ease); box-shadow: 0 4px 20px var(--glow);
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--glow); }
.btn-o {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 50px;
  border: 1px solid var(--bdr); background: var(--sur);
  color: var(--tx); font-family: var(--ff-h); font-weight: 600; font-size: 14px;
  transition: all var(--ease);
}
.btn-o:hover { border-color: var(--bdr2); background: var(--sur2); }
.btn-sm {
  display: inline-flex; align-items: center; padding: 5px 12px;
  border-radius: 8px; border: 1px solid var(--bdr);
  font-size: 12px; color: var(--t2); transition: all var(--ease);
}
.btn-sm:hover { color: var(--tx); border-color: var(--bdr2); }
.btn-dis {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 50px;
  background: #5865F2; color: #fff;
  font-family: var(--ff-b); font-weight: 600; font-size: 13px;
  transition: all var(--ease);
}
.btn-dis:hover { background: #4752c4; }
.btn-inv {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 50px;
  background: rgba(88,101,242,.12); border: 1px solid rgba(88,101,242,.25);
  color: #7289da; font-size: 12px; font-weight: 600; transition: all var(--ease);
}
.btn-inv:hover { background: rgba(88,101,242,.22); }
.btn-guest {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 50px;
  border: 1px solid var(--bdr); background: transparent;
  color: var(--t2); font-size: 13px; transition: all var(--ease);
}
.btn-guest:hover { border-color: var(--bdr2); color: var(--tx); }

/* ── Tags ── */
.tag {
  display: inline-block; padding: 4px 11px; border-radius: 20px;
  font-size: 11px; font-family: var(--ff-m);
  background: var(--sur); border: 1px solid var(--bdr); color: var(--t2);
}

/* ── Breadcrumb ── */
.bc { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t3); margin-bottom: 14px; flex-wrap: wrap; }
.bc a { color: var(--t3); transition: color var(--ease); }
.bc a:hover { color: var(--t2); }

/* ── Float back button ── */
.float-back {
  position: fixed; top: 68px; left: 12px; z-index: 800;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 50px;
  background: rgba(10,10,20,.75); backdrop-filter: blur(12px);
  border: 1px solid var(--bdr); color: var(--tx);
  font-size: 13px; font-weight: 600; font-family: var(--ff-h);
  transition: transform var(--ease);
}
.float-back:hover { transform: translateX(-3px); }

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: 56px; display: flex; align-items: center;
  padding: 0 24px; gap: 10px;
  background: var(--nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bdr);
  transition: box-shadow var(--ease);
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-h); font-weight: 800; font-size: 17px;
  flex-shrink: 0; margin-right: 8px;
}
.logo-spin { color: var(--acc); font-size: 18px; animation: spin 8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-lnk { padding: 6px 11px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--t2); transition: all var(--ease); }
.nav-lnk:hover { color: var(--tx); background: var(--sur); }

.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Theme button */
.tbtn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bdr); background: var(--sur); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--t2); transition: all var(--ease); }
.tbtn:hover { border-color: var(--bdr2); color: var(--tx); }
[data-theme="dark"]  .moon { display: none; }
[data-theme="dark"]  .sun  { display: block; }
[data-theme="light"] .sun  { display: none; }
[data-theme="light"] .moon { display: block; }

/* Avatar */
.av { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--acc); }
.mbadge { font-size: 10px; padding: 2px 7px; border-radius: 20px; background: var(--acc); color: #fff; font-weight: 700; }

/* Mobile hamburger — hidden on desktop */
.hbg { display: none; width: 36px; height: 36px; border: 1px solid var(--bdr); border-radius: 8px; background: var(--sur); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hbg span { display: block; width: 16px; height: 2px; background: var(--t2); border-radius: 2px; transition: all var(--ease); }
.hbg.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hbg.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hbg.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ──────────────────────────────────────────────────── */
.drawer {
  display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 999;
  background: var(--nav); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
  flex-direction: column;
  max-height: calc(100vh - 56px); overflow-y: auto;
  /* smooth slide-down */
  transform: translateY(-8px); opacity: 0;
  transition: transform .22s ease, opacity .2s ease;
}
.drawer.open { display: flex; transform: translateY(0); opacity: 1; }

/* User strip */
.drawer-user-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--bdr);
  background: var(--bg);
}
.dus-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dus-name { font-size: 14px; font-weight: 700; color: var(--tx); }
.dus-profile-btn {
  font-size: 11px; font-family: var(--ff-m); font-weight: 700;
  color: var(--a2); white-space: nowrap; padding: 4px 10px;
  border: 1px solid var(--a2); border-radius: 20px;
}

/* Core links */
.drawer-core {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; padding: 10px 10px 4px;
}

/* Base link */
.dlnk {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--t2);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.dlnk:hover, .dlnk:active { background: var(--sur); color: var(--tx); }

/* Sub-links inside collapsible groups */
.dlnk-sub { font-size: 13px; padding: 8px 10px; }

/* Collapsible groups */
.drawer-group {
  border-top: 1px solid var(--bdr);
}
.drawer-group-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 16px;
  font-size: 13px; font-weight: 700; font-family: var(--ff-m);
  color: var(--t2); background: none; border: none; cursor: pointer;
  text-align: left;
}
.drawer-group-toggle:active { background: var(--sur); }
.dgt-arrow { transition: transform .2s ease; flex-shrink: 0; }
.drawer-group.open .dgt-arrow { transform: rotate(180deg); }

.drawer-group-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; padding: 0 10px 8px;
  display: none;
}
.drawer-group.open .drawer-group-body { display: grid; }

/* Bottom section */
.drawer-bottom {
  border-top: 1px solid var(--bdr);
  padding: 10px 10px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.drawer-logout { color: #f87171 !important; }
.drawer-guest-btn {
  display: block; text-align: center; padding: 9px 14px;
  border-radius: 8px; background: var(--sur); border: 1px solid var(--bdr);
  font-size: 14px; font-weight: 500; color: var(--t2);
}

.ddiv { height: 1px; background: var(--bdr); margin: 6px 0; }
.d-inv { display: flex; align-items: center; gap: 9px; padding: 10px 10px; border-radius: 8px; background: rgba(88,101,242,.1); border: 1px solid rgba(88,101,242,.22); color: #7289da; font-size: 13px; font-weight: 600; }
.d-login { display: flex; align-items: center; gap: 9px; padding: 10px 10px; border-radius: 8px; background: #5865F2; color: #fff; font-size: 14px; font-weight: 600; margin: 2px 0; }
.d-user { display: flex; align-items: center; gap: 9px; padding: 8px 0; }
.ov { display: none; position: fixed; inset: 0; z-index: 998; background: rgba(0,0,0,.45); }
.ov.show { display: block; }

/* Mobile breakpoint */
@media (max-width: 767px) {
  .nav-links, .nav-right { display: none !important; }
  .hbg { display: flex; }
  .navbar { padding: 0 14px; }
  /* Show mobile right area */
  .nav-mobile { display: flex !important; align-items: center; gap: 7px; margin-left: auto; }
}
.nav-mobile { display: none; }

/* ══════════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════════ */
.home { padding-top: 56px; }

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px 40px 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,106,244,.35), transparent 70%);
  top: -100px; left: -80px;
}
.hero-orb2 {
  position: absolute; border-radius: 50%; filter: blur(70px);
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(220,38,38,.2), transparent 70%);
  bottom: 0; right: 0;
}
.hero-inner { position: relative; display: flex; align-items: center; gap: 60px; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-copy { flex: 1; min-width: 0; }

/* Eyebrow badge */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 20px;
  background: var(--sur); border: 1px solid var(--bdr);
  font-family: var(--ff-m); font-size: 10px; color: var(--t2);
  margin-bottom: 20px; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; max-width: 100%;
}
.eydot { color: var(--acc); font-size: 13px; }

/* Hero title — two lines: white then gradient */
.hero-title {
  font-family: var(--ff-h); font-size: clamp(42px, 6.5vw, 90px);
  font-weight: 800; line-height: 1.0; margin-bottom: 18px;
}
@media (max-width: 480px) { .hero-title { font-size: 38px; } }
.hero-title .line1 { display: block; color: var(--tx); }
.hero-title .line2 { display: block; background: linear-gradient(135deg, var(--acc), var(--a2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { font-size: 16px; line-height: 1.7; color: var(--t2); margin-bottom: 28px; max-width: 460px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Atom animation */
.hero-atom { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.atom-wrap { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.nucleus { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--a2), var(--acc)); box-shadow: 0 0 20px var(--glow); z-index: 2; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(124,106,244,.25); }
.ring .el { width: 7px; height: 7px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 7px var(--acc); position: absolute; top: -3.5px; left: 50%; transform: translateX(-50%); }
.r1 { width: 80px; height: 80px; animation: rs1 3s linear infinite; }
.r2 { width: 140px; height: 140px; animation: rs2 5.5s linear infinite; }
.r3 { width: 200px; height: 200px; animation: rs3 8s linear infinite; }
@keyframes rs1 { to { transform: rotate(360deg); } }
@keyframes rs2 { from { transform: rotate(60deg); } to { transform: rotate(420deg); } }
@keyframes rs3 { from { transform: rotate(120deg); } to { transform: rotate(480deg); } }

/* Hide atom on small screens */
@media (max-width: 767px) {
  .hero { min-height: auto; padding: 60px 20px 60px; }
  .hero-atom { display: none; }
  .hero-sub { max-width: 100%; }
}

/* Stats bar */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr);
  background: var(--bg2);
}
.stat-it {
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 16px; border-right: 1px solid var(--bdr);
}
.stat-it:last-child { border-right: none; }
.stat-n { font-family: var(--ff-m); font-size: 22px; font-weight: 700; color: var(--a2); }
.stat-l { font-size: 11px; color: var(--t3); margin-top: 4px; text-align: center; }
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-it:nth-child(2) { border-right: none; }
  .stat-it:nth-child(1), .stat-it:nth-child(2) { border-bottom: 1px solid var(--bdr); }
}

/* Feature cards ("What's Inside") */
.features-sec { padding: 64px 40px; }
.features-sec h2 { font-family: var(--ff-h); font-size: clamp(24px,4vw,36px); font-weight: 700; text-align: center; margin-bottom: 36px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.feat-card { padding: 28px 24px; border-radius: var(--r-lg); background: var(--sur); border: 1px solid var(--bdr); transition: all var(--ease); }
.feat-card:hover { border-color: var(--bdr2); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.feat-icon { font-size: 32px; margin-bottom: 14px; }
.feat-card h3 { font-family: var(--ff-h); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 13px; color: var(--t2); line-height: 1.65; }

/* CTA section */
.cta-sec {
  margin: 0 40px 60px; padding: 56px 40px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(124,106,244,.12) 0%, rgba(124,106,244,.04) 100%);
  border: 1px solid rgba(124,106,244,.2);
  text-align: center;
}
.cta-sec h2 { font-family: var(--ff-h); font-size: clamp(28px,5vw,48px); font-weight: 800; margin-bottom: 12px; }
.cta-sec p { color: var(--t2); font-size: 15px; margin-bottom: 28px; }
@media (max-width: 767px) {
  .features-sec { padding: 48px 20px; }
  .cta-sec { margin: 0 16px 48px; padding: 40px 24px; }
}

/* ══════════════════════════════════════════
   PAGE HEADER (incidents, energy, etc.)
   ══════════════════════════════════════════ */
.ph {
  padding: 64px 40px 44px; position: relative; overflow: hidden;
}
.ph-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 100%, rgba(124,106,244,.18) 0%, transparent 55%),
              radial-gradient(ellipse at 100% 0%, rgba(180,60,60,.12) 0%, transparent 50%);
}
.ph-bg.energy {
  background: radial-gradient(ellipse at 80% 30%, rgba(244,162,97,.15) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(124,106,244,.15) 0%, transparent 50%);
}
.ph-bg.timeline { background: radial-gradient(ellipse at 80% 40%, rgba(0,150,199,.15), transparent 60%), radial-gradient(ellipse at 10% 80%, rgba(124,106,244,.15), transparent 60%); }
.ph-bg.plants   { background: radial-gradient(ellipse at 60% 20%, rgba(74,222,128,.1), transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(124,106,244,.15), transparent 60%); }
.ph-bg.elements { background: radial-gradient(ellipse at 70% 50%, rgba(255,51,51,.1), transparent 60%), radial-gradient(ellipse at 20% 60%, rgba(124,106,244,.15), transparent 60%); }
.ph-bg.countries{ background: radial-gradient(ellipse at 50% 30%, rgba(244,162,97,.12), transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(124,106,244,.15), transparent 60%); }
.ph-inner { position: relative; max-width: 700px; }
.ph h1 { font-family: var(--ff-h); font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.05; margin-bottom: 12px; }
.ph h1 span { display: block; }
.ph h1 .grad { background: linear-gradient(135deg, var(--acc), var(--a2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ph p { font-size: 15px; color: var(--t2); line-height: 1.65; max-width: 580px; }
@media (max-width: 767px) { .ph { padding: 40px 20px 32px; } }

/* ══════════════════════════════════════════
   INCIDENTS LIST
   ══════════════════════════════════════════ */
.incidents-page { padding-top: 56px; }
.ines-legend {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 40px; border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr);
  background: var(--bg2); flex-wrap: wrap;
}
.ines-lbl { font-size: 10px; font-family: var(--ff-m); color: var(--t3); text-transform: uppercase; letter-spacing: .1em; }
.ines-pip {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: var(--ff-m); font-weight: 700;
}
.ines-note { font-size: 11px; color: var(--t3); margin-left: auto; }

.inc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px; padding: 28px 40px 64px; max-width: 1400px; margin: 0 auto;
}
.inc-card {
  padding: 24px; border-radius: var(--r-lg);
  background: var(--sur); border: 1px solid var(--bdr);
  display: flex; flex-direction: column; gap: 10px;
  transition: all var(--ease); position: relative; overflow: hidden;
  cursor: pointer;
}
.inc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--cc, var(--acc)); transform: scaleX(0); transform-origin: left;
  transition: transform var(--ease);
}
.inc-card:hover::before { transform: scaleX(1); }
.inc-card:hover { border-color: var(--bdr2); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.card-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 80%, var(--cc, var(--acc)), transparent 65%); opacity: 0; transition: opacity var(--ease); pointer-events: none; }
.inc-card:hover .card-glow { opacity: .07; }
.ctop { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.cdate { font-family: var(--ff-m); font-size: 10px; color: var(--t3); }
.ctitle { font-family: var(--ff-h); font-size: 18px; font-weight: 700; line-height: 1.3; }
.cloc { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--t2); font-family: var(--ff-m); }
.cdesc { font-size: 13px; color: var(--t2); line-height: 1.65; flex: 1; }
.ctags { display: flex; flex-wrap: wrap; gap: 6px; }
.carr { color: var(--acc); display: flex; justify-content: flex-end; opacity: 0; transform: translateX(-6px); transition: all var(--ease); }
.inc-card:hover .carr { opacity: 1; transform: translateX(0); }

@media (max-width: 767px) {
  .ines-legend { padding: 10px 16px; }
  .inc-grid { padding: 18px 16px 48px; grid-template-columns: 1fr; }
}
@media (min-width: 500px) and (max-width: 767px) {
  .inc-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════
   INCIDENT DETAIL
   ══════════════════════════════════════════ */
.incident-page { padding-top: 56px; }
.inc-hero { padding: 64px 40px 44px; position: relative; overflow: hidden; border-bottom: 1px solid var(--bdr); }
.inc-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.inc-glow { position: absolute; width: 500px; height: 320px; border-radius: 50%; background: radial-gradient(ellipse, var(--accent, #7c6af4), transparent 70%); top: -80px; right: -60px; filter: blur(65px); opacity: .18; }
.inc-hero-inner { position: relative; max-width: 860px; }
.sev-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sev-lbl { font-family: var(--ff-m); font-size: 11px; color: var(--t3); }
.inc-title { font-family: var(--ff-h); font-size: clamp(28px, 5.5vw, 62px); font-weight: 800; line-height: 1.05; margin-bottom: 14px; }
.inc-meta { display: flex; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.meta-it { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t2); font-family: var(--ff-m); }
.inc-lead { font-size: 16px; line-height: 1.72; color: var(--t2); margin-bottom: 14px; max-width: 640px; }
.inc-tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* Quick stats */
.qstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--bdr); }
.qstat { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: var(--bg2); border-right: 1px solid var(--bdr); transition: background var(--ease); }
.qstat:last-child { border-right: none; }
.qstat:hover { background: var(--bg3); }
.qs-ico { font-size: 22px; flex-shrink: 0; }
.qs-v { display: block; font-family: var(--ff-h); font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.qs-k { display: block; font-size: 10px; color: var(--t3); font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 767px) {
  .qstats { grid-template-columns: 1fr 1fr; }
  .qstat:nth-child(2) { border-right: none; }
  .qstat:nth-child(1), .qstat:nth-child(2) { border-bottom: 1px solid var(--bdr); }
}

/* Article layout */
.inc-content { display: flex; gap: 0; max-width: 1120px; margin: 0 auto; padding: 40px 40px; }
.toc-wrap { width: 210px; flex-shrink: 0; position: sticky; top: 74px; align-self: start; }
.toc-inner {
  border-radius: var(--r); padding: 20px;
  background: var(--sur); border: 1px solid var(--bdr);
}
.toc-inner h4 { font-family: var(--ff-h); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--t3); margin-bottom: 10px; }
.toc-inner ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-inner ul li a { display: block; padding: 6px 9px; border-radius: 7px; font-size: 13px; color: var(--t2); transition: all var(--ease); }
.toc-inner ul li a:hover { color: var(--tx); background: var(--sur2); }
.toc-inner ul li a.active { color: var(--a2); }
.toc-inner hr { border: none; border-top: 1px solid var(--bdr); margin: 10px 0; }
.toc-inner .toc-other h5 { font-family: var(--ff-h); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--t3); margin-bottom: 8px; }
.toc-inner .toc-other ul li a { font-size: 12px; }

.art { flex: 1; min-width: 0; padding-left: 48px; max-width: 720px; }
.art-sec { margin-bottom: 52px; scroll-margin-top: 78px; }
.art-sec h2 { font-family: var(--ff-h); font-size: 28px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.snum { font-family: var(--ff-m); font-size: 12px; color: var(--acc); font-weight: 400; }
.art-sec p { font-size: 15px; line-height: 1.82; color: var(--t2); margin-bottom: 14px; }
.art-sec p:last-child { margin-bottom: 0; }
.nav-inc { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--bdr); display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .inc-content { flex-direction: column; padding: 24px 20px; }
  .toc-wrap { display: none; }
  .art { padding-left: 0; }
  .inc-hero { padding: 40px 20px 32px; }
}

/* ══════════════════════════════════════════
   ENERGY HUB
   ══════════════════════════════════════════ */
.energy-page { padding-top: 56px; }
.cat-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 40px; border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr);
  background: var(--bg2); flex-wrap: wrap; overflow-x: auto;
}
.cat-btn {
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--bdr);
  background: transparent; color: var(--t2);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--ff-h);
  white-space: nowrap; transition: all var(--ease);
}
.cat-btn:hover { border-color: var(--bdr2); color: var(--tx); }
.cat-btn.active { background: var(--acc); border-color: var(--acc); color: #fff; }

.en-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px; padding: 28px 40px 64px; max-width: 1400px; margin: 0 auto;
}
.en-card {
  padding: 24px; border-radius: var(--r-lg);
  background: var(--sur); border: 1px solid var(--bdr);
  display: flex; flex-direction: column; gap: 10px;
  transition: all var(--ease); position: relative; overflow: hidden;
}
.en-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ec, var(--acc)); transform: scaleX(0); transform-origin: left;
  transition: transform var(--ease);
}
.en-card:hover::before { transform: scaleX(1); }
.en-card-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 80%, var(--ec, var(--acc)), transparent 65%); opacity: 0; transition: opacity var(--ease); pointer-events: none; }
.en-card:hover { border-color: var(--bdr2); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.en-card:hover .en-card-glow { opacity: .07; }
.en-top { display: flex; align-items: center; justify-content: space-between; }
.en-emoji { font-size: 26px; }
.en-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-family: var(--ff-m); font-weight: 700;
  border: 1px solid; text-transform: uppercase; letter-spacing: .05em;
}
.en-badge.lg { font-size: 12px; padding: 5px 13px; }
.en-name { font-family: var(--ff-h); font-size: 18px; font-weight: 700; }
.en-line { font-size: 12px; color: var(--a2); font-family: var(--ff-m); }
.en-desc { font-size: 13px; color: var(--t2); line-height: 1.65; flex: 1; }
.en-stats { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--bdr); flex-wrap: wrap; }
.est { display: flex; flex-direction: column; gap: 2px; }
.est-v { font-family: var(--ff-m); font-size: 13px; font-weight: 700; color: var(--tx); }
.est-k { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 767px) {
  .cat-bar { padding: 11px 16px; }
  .en-grid { padding: 18px 16px 48px; grid-template-columns: 1fr; }
}
@media (min-width: 500px) and (max-width: 767px) {
  .en-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════
   ENERGY DETAIL
   ══════════════════════════════════════════ */
.energy-detail-page { padding-top: 56px; }
.en-hero { padding: 64px 40px 44px; position: relative; overflow: hidden; border-bottom: 1px solid var(--bdr); }
.en-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.en-glow { position: absolute; width: 500px; height: 340px; border-radius: 50%; background: radial-gradient(ellipse, var(--accent, #7c6af4), transparent 70%); top: -80px; right: -60px; filter: blur(65px); opacity: .18; }
.en-hero-in { position: relative; max-width: 860px; }
.en-big-e { font-size: 52px; margin-bottom: 12px; display: block; }
.en-htitle { font-family: var(--ff-h); font-size: clamp(28px,5.5vw,62px); font-weight: 800; line-height: 1.05; margin-bottom: 8px; }
.en-tag { font-family: var(--ff-m); font-size: 13px; color: var(--a2); margin-bottom: 12px; display: block; }
.en-lead { font-size: 16px; line-height: 1.72; color: var(--t2); margin-bottom: 14px; max-width: 640px; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.pros,.cons { padding: 18px; border-radius: var(--r); border: 1px solid; }
.pros { background: rgba(74,222,128,.04); border-color: rgba(74,222,128,.18); }
.cons { background: rgba(248,113,113,.04); border-color: rgba(248,113,113,.18); }
.pros h3 { color: #4ade80; margin-bottom: 10px; font-family: var(--ff-h); font-size: 13px; }
.cons h3 { color: #f87171; margin-bottom: 10px; font-family: var(--ff-h); font-size: 13px; }
.pros ul,.cons ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pros ul li,.cons ul li { font-size: 13px; color: var(--t2); padding-left: 16px; position: relative; line-height: 1.5; }
.pros ul li::before { content:'✓'; position: absolute; left: 0; color: #4ade80; font-weight: 700; }
.cons ul li::before { content:'✗'; position: absolute; left: 0; color: #f87171; font-weight: 700; }
.country-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 15px; border-radius: var(--r); background: var(--sur); border: 1px solid var(--bdr); flex-wrap: wrap; }
.clbl { font-size: 12px; color: var(--t3); font-family: var(--ff-m); }
.cval { font-size: 13px; color: var(--t2); }
.ff-quote { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(124,106,244,.09), rgba(165,148,249,.03)); border: 1px solid rgba(124,106,244,.2); margin-top: 8px; }
.ff-ico { font-size: 26px; flex-shrink: 0; }
.ff-quote p { font-size: 15px !important; color: var(--tx) !important; line-height: 1.7 !important; font-style: italic; margin-bottom: 0 !important; }
@media (max-width: 767px) {
  .en-hero { padding: 40px 20px 32px; }
  .pc-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════ */
.timeline-page { padding-top: 56px; }
.tl-filter { display: flex; gap: 7px; padding: 12px 40px; border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); background: var(--bg2); flex-wrap: wrap; overflow-x: auto; }
.tl-btn { padding: 5px 13px; border-radius: 20px; border: 1px solid var(--bdr); background: transparent; color: var(--t2); font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--ff-h); white-space: nowrap; transition: all var(--ease); }
.tl-btn.active { background: var(--acc); border-color: var(--acc); color: #fff; }
.tl-btn:hover { border-color: var(--bdr2); color: var(--tx); }
.tl-wrap { max-width: 820px; margin: 0 auto; padding: 32px 40px 64px; position: relative; }
.tl-wrap::before { content: ''; position: absolute; left: 68px; top: 0; bottom: 0; width: 1px; background: var(--bdr); }
.tl-item { display: flex; gap: 0; margin-bottom: 24px; position: relative; }
.tl-dot { width: 56px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 16px; }
.tl-circle { width: 13px; height: 13px; border-radius: 50%; background: var(--acc); border: 2px solid var(--bg); box-shadow: 0 0 0 3px var(--glow); z-index: 1; }
.tl-year-lbl { font-family: var(--ff-m); font-size: 9px; color: var(--t3); }
.tl-body { flex: 1; min-width: 0; padding: 14px 18px; border-radius: var(--r); background: var(--sur); border: 1px solid var(--bdr); transition: all var(--ease); }
.tl-body:hover { border-color: var(--bdr2); background: var(--sur2); }
.tl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.tl-icon { font-size: 15px; }
.tl-title { font-family: var(--ff-h); font-size: 14px; font-weight: 700; }
.tl-catbadge { font-size: 9px; font-family: var(--ff-m); padding: 2px 7px; border-radius: 20px; border: 1px solid var(--bdr); color: var(--t3); margin-left: auto; white-space: nowrap; }
.cat-science .tl-catbadge  { color: #4ade80; border-color: rgba(74,222,128,.3); }
.cat-weapons .tl-catbadge  { color: #f87171; border-color: rgba(248,113,113,.3); }
.cat-accident .tl-catbadge { color: #f4a261; border-color: rgba(244,162,97,.3); }
.cat-power .tl-catbadge    { color: #a594f9; border-color: rgba(165,148,249,.3); }
.cat-policy .tl-catbadge   { color: #48cae4; border-color: rgba(72,202,228,.3); }
.cat-military .tl-catbadge { color: #e63946; border-color: rgba(230,57,70,.3); }
.tl-desc { font-size: 13px; color: var(--t2); line-height: 1.65; }
@media (max-width: 767px) { .tl-filter { padding: 11px 16px; } .tl-wrap { padding: 24px 16px 48px; } .tl-wrap::before { left: 27px; } }

/* ══════════════════════════════════════════
   POWER PLANTS
   ══════════════════════════════════════════ */
.plants-page { padding-top: 56px; }
.plants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 16px; padding: 28px 40px 64px; max-width: 1400px; margin: 0 auto; }
.plant-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--sur); border: 1px solid var(--bdr); transition: all var(--ease); }
.plant-card:hover { border-color: var(--bdr2); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.22); }
.plant-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.plant-name { font-family: var(--ff-h); font-size: 16px; font-weight: 700; }
.plant-loc { font-size: 11px; color: var(--t3); font-family: var(--ff-m); margin-top: 2px; }
.plant-status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-family: var(--ff-m); font-weight: 700; border: 1px solid; flex-shrink: 0; }
.status-operational { color: #4ade80; background: rgba(74,222,128,.09); border-color: rgba(74,222,128,.22); }
.status-construction { color: #f4a261; background: rgba(244,162,97,.09); border-color: rgba(244,162,97,.22); }
.status-suspended    { color: #f87171; background: rgba(248,113,113,.09); border-color: rgba(248,113,113,.22); }
.status-occupied     { color: #e63946; background: rgba(230,57,70,.12); border-color: rgba(230,57,70,.28); }
.plant-stats { display: flex; flex-wrap: wrap; gap: 16px; }
.pstat { display: flex; flex-direction: column; gap: 1px; }
.pstat-v { font-family: var(--ff-m); font-size: 15px; font-weight: 700; color: var(--a2); }
.pstat-k { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; }
.plant-desc { font-size: 12px; color: var(--t2); line-height: 1.65; }
.plant-type-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-family: var(--ff-m); border: 1px solid var(--bdr); color: var(--t2); }
@media (max-width: 767px) { .plants-grid { padding: 18px 16px 48px; grid-template-columns: 1fr; } }
@media (min-width: 500px) and (max-width: 767px) { .plants-grid { grid-template-columns: 1fr 1fr; } }

/* ══════════════════════════════════════════
   ELEMENTS
   ══════════════════════════════════════════ */
.elements-page { padding-top: 56px; }
.el-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 12px; padding: 28px 40px 64px; max-width: 1400px; margin: 0 auto; }
.el-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: var(--sur); border: 1px solid var(--bdr); transition: all var(--ease); position: relative; }
.el-card:hover { border-color: var(--bdr2); background: var(--sur2); }
.el-card.radioactive { border-left: 3px solid rgba(255,51,51,.5); }
.el-symbol-box { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--sur2); border: 1px solid var(--bdr2); }
.el-num  { font-family: var(--ff-m); font-size: 9px; color: var(--t3); }
.el-sym  { font-family: var(--ff-h); font-size: 22px; font-weight: 800; }
.el-mass { font-family: var(--ff-m); font-size: 9px; color: var(--t3); margin-top: 1px; }
.el-body { flex: 1; min-width: 0; }
.el-name { font-family: var(--ff-h); font-size: 15px; font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.el-radio-badge { font-size: 10px; padding: 1px 7px; border-radius: 20px; background: rgba(255,51,51,.1); border: 1px solid rgba(255,51,51,.25); color: #ff3333; font-family: var(--ff-m); }
.el-cat  { font-size: 10px; color: var(--t3); font-family: var(--ff-m); margin-bottom: 5px; text-transform: capitalize; }
.el-desc { font-size: 12px; color: var(--t2); line-height: 1.65; }
@media (max-width: 767px) { .el-grid { padding: 18px 16px 48px; grid-template-columns: 1fr; } }
@media (min-width: 500px) and (max-width: 767px) { .el-grid { grid-template-columns: 1fr 1fr; } }

/* ══════════════════════════════════════════
   COUNTRIES
   ══════════════════════════════════════════ */
.countries-page { padding-top: 56px; }
.ctry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 16px; padding: 28px 40px 64px; max-width: 1400px; margin: 0 auto; }
.ctry-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--sur); border: 1px solid var(--bdr); transition: all var(--ease); position: relative; overflow: hidden; cursor: pointer; }
.ctry-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cc, var(--acc)); }
.ctry-card:hover { border-color: var(--bdr2); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.22); }
.ctry-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ctry-flag-name { display: flex; align-items: center; gap: 10px; }
.ctry-flag { font-size: 28px; }
.ctry-name { font-family: var(--ff-h); font-size: 18px; font-weight: 700; }
.ctry-primary { font-size: 11px; font-family: var(--ff-m); color: var(--t2); padding: 3px 9px; border-radius: 20px; background: var(--sur2); border: 1px solid var(--bdr); }
.ctry-headline { font-size: 13px; color: var(--t2); line-height: 1.55; }
.mix-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 1px; }
.mix-seg { height: 100%; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 7px; }
.mix-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--t2); }
.mix-dot { width: 8px; height: 8px; border-radius: 50%; }
.ctry-kpis { display: flex; flex-wrap: wrap; gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 1px; }
.kpi-v { font-family: var(--ff-m); font-size: 16px; font-weight: 700; color: var(--a2); }
.kpi-k { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; }
/* Country detail */
.country-detail-page { padding-top: 56px; }
.ctry-hero { padding: 64px 40px 44px; position: relative; overflow: hidden; border-bottom: 1px solid var(--bdr); }
.ctry-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ctry-glow { position: absolute; width: 480px; height: 340px; border-radius: 50%; background: radial-gradient(ellipse, var(--cc, var(--acc)), transparent 70%); top: -80px; right: -60px; filter: blur(65px); opacity: .15; }
.ctry-hero-in { position: relative; max-width: 840px; }
.ctry-big-flag { font-size: 52px; margin-bottom: 10px; display: block; }
.facts-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.facts-list li { font-size: 13px; color: var(--t2); padding-left: 16px; position: relative; line-height: 1.55; }
.facts-list li::before { content: '→'; position: absolute; left: 0; color: var(--a2); }
.subsites-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.subsite-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--sur); border: 1px solid var(--bdr); transition: all var(--ease); position: relative; overflow: hidden; }
.subsite-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sc, var(--acc)); }
.subsite-card:hover { border-color: var(--bdr2); transform: translateX(3px); }
.sc-icon { font-size: 28px; flex-shrink: 0; }
.sc-body { flex: 1; min-width: 0; }
.sc-body h3 { font-family: var(--ff-h); font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.sc-body p { font-size: 12px; color: var(--t2); line-height: 1.5; }
.sc-arr { color: var(--t3); flex-shrink: 0; transition: all var(--ease); }
.subsite-card:hover .sc-arr { color: var(--acc); transform: translateX(3px); }
@media (max-width: 767px) { .ctry-grid { padding: 18px 16px 48px; grid-template-columns: 1fr; } .ctry-hero { padding: 40px 20px 32px; } .subsites-grid { grid-template-columns: 1fr; } }
@media (min-width: 500px) and (max-width: 767px) { .ctry-grid { grid-template-columns: 1fr 1fr; } }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer { background: var(--foot); border-top: 1px solid var(--bdr); padding: 18px 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.foot-logo { font-family: var(--ff-h); font-weight: 700; color: var(--acc); }
.foot-copy { font-size: 12px; color: var(--t3); }
.foot-status { font-size: 11px; font-family: var(--ff-m); margin-left: auto; }
.foot-status.on  { color: #4ade80; }
.foot-status.off { color: #f87171; }
@media (max-width: 767px) { .footer { padding: 16px; } }

/* ══════════════════════════════════════════
   ERROR
   ══════════════════════════════════════════ */
.error-page { padding-top: 56px; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.err-wrap { text-align: center; padding: 40px 20px; }
.err-code { font-family: var(--ff-m); font-size: clamp(72px, 16vw, 120px); font-weight: 700; color: var(--bdr2); line-height: 1; margin-bottom: 16px; }
.err-wrap h1 { font-family: var(--ff-h); font-size: 22px; margin-bottom: 8px; }
.err-wrap p { color: var(--t2); margin-bottom: 28px; font-size: 15px; }

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy { animation: fadeUp .6s cubic-bezier(.4,0,.2,1) both; }
.hero-atom { animation: fadeUp .6s cubic-bezier(.4,0,.2,1) .1s both; }

/* ══════════════════════════════════════════
   LEGACY ORIGINAL CLASS NAMES (incident.ejs / energy.ejs originals)
   ══════════════════════════════════════════ */

/* incident.ejs uses these */
.incident-hero { padding: 64px 40px 44px; position: relative; overflow: hidden; border-bottom: 1px solid var(--bdr); }
.incident-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow-orb { position: absolute; width: 500px; height: 320px; border-radius: 50%; background: radial-gradient(ellipse, var(--accent, #7c6af4), transparent 70%); top: -80px; right: -60px; filter: blur(65px); opacity: .18; }
.incident-hero-content { position: relative; max-width: 860px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t3); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: var(--t3); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--t2); }
.severity-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ines-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-family: var(--ff-m); font-size: 11px; font-weight: 700; letter-spacing: .04em; border: 1px solid; }
.ines-badge.large { font-size: 13px; padding: 5px 14px; }
.level-1{color:var(--i1);background:rgba(0,180,216,.1);border-color:rgba(0,180,216,.22);}
.level-2{color:var(--i2);background:rgba(0,150,199,.1);border-color:rgba(0,150,199,.22);}
.level-3{color:var(--i3);background:rgba(244,162,97,.1);border-color:rgba(244,162,97,.22);}
.level-4{color:var(--i4);background:rgba(231,111,81,.1);border-color:rgba(231,111,81,.22);}
.level-5{color:var(--i5);background:rgba(230,57,70,.1);border-color:rgba(230,57,70,.22);}
.level-6{color:var(--i6);background:rgba(193,18,31,.12);border-color:rgba(193,18,31,.28);}
.level-7{color:var(--i7);background:rgba(255,51,51,.12);border-color:rgba(255,51,51,.28);}
.severity-label { font-family: var(--ff-m); font-size: 11px; color: var(--t3); }
.incident-title { font-family: var(--ff-h); font-size: clamp(28px, 5.5vw, 62px); font-weight: 800; line-height: 1.05; margin-bottom: 14px; }
.incident-meta-row { display: flex; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t2); font-family: var(--ff-m); }
.incident-lead { font-size: 16px; line-height: 1.72; color: var(--t2); margin-bottom: 14px; max-width: 640px; }
.incident-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag.accent { border-color: rgba(124,106,244,.3); color: var(--a2); background: rgba(124,106,244,.08); }

/* Quick stats — original layout */
.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--bdr); }
.qstat { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: var(--bg2); border-right: 1px solid var(--bdr); transition: background var(--ease); }
.qstat:last-child { border-right: none; }
.qstat:hover { background: var(--bg3); }
.qstat-icon { font-size: 22px; flex-shrink: 0; }
.qstat-data { display: flex; flex-direction: column; gap: 2px; }
.qstat-val { font-family: var(--ff-h); font-weight: 700; font-size: 14px; }
.qstat-key { font-size: 10px; color: var(--t3); font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .06em; }

/* Incident article layout (original) */
.incident-content { display: flex; max-width: 1120px; margin: 0 auto; padding: 40px 40px; }
.toc-sidebar { width: 210px; flex-shrink: 0; position: sticky; top: 74px; align-self: start; }
.toc-card { border-radius: var(--r); padding: 20px; background: var(--sur); border: 1px solid var(--bdr); }
.toc-card h4 { font-family: var(--ff-h); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--t3); margin-bottom: 10px; }
.toc-card ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-card ul li a { display: block; padding: 6px 9px; border-radius: 7px; font-size: 13px; color: var(--t2); transition: all var(--ease); }
.toc-card ul li a:hover, .toc-card ul li a.active { color: var(--a2); }
.toc-card hr { border: none; border-top: 1px solid var(--bdr); margin: 10px 0; }
.toc-card h5 { font-family: var(--ff-h); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--t3); margin-bottom: 8px; }
.incident-article { flex: 1; min-width: 0; padding-left: 48px; max-width: 720px; }
.article-section { margin-bottom: 52px; scroll-margin-top: 78px; }
.article-section h2 { font-family: var(--ff-h); font-size: 28px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.section-num { font-family: var(--ff-m); font-size: 12px; color: var(--acc); font-weight: 400; }
.article-section p { font-size: 15px; line-height: 1.82; color: var(--t2); margin-bottom: 14px; }
.article-section p:last-child { margin-bottom: 0; }
.nav-incidents { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--bdr); display: flex; gap: 12px; flex-wrap: wrap; }

/* incidents.ejs page header */
.page-header { padding: 64px 40px 44px; position: relative; overflow: hidden; }
.page-header-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 0% 100%, rgba(124,106,244,.18) 0%, transparent 55%), radial-gradient(ellipse at 100% 0%, rgba(180,60,60,.12) 0%, transparent 50%); }
.page-header-content { position: relative; max-width: 700px; }
.page-header h1 { font-family: var(--ff-h); font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.05; margin-bottom: 12px; }
.page-header h1 span { display: block; }
.page-header h1 .grad { background: linear-gradient(135deg, var(--acc), var(--a2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-header p { font-size: 15px; color: var(--t2); line-height: 1.65; max-width: 580px; }
.page-header-bg.energy-header-bg { background: radial-gradient(ellipse at 80% 30%, rgba(244,162,97,.15) 0%, transparent 55%), radial-gradient(ellipse at 20% 80%, rgba(124,106,244,.15) 0%, transparent 50%); }

/* incidents list */
.incidents-page { padding-top: 56px; }
.ines-scale { display: flex; align-items: center; gap: 8px; padding: 10px 40px; border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); background: var(--bg2); flex-wrap: wrap; }
.ines-scale-label { font-size: 10px; font-family: var(--ff-m); color: var(--t3); text-transform: uppercase; letter-spacing: .1em; }
.ines-dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-family: var(--ff-m); font-weight: 700; }
.ines-higher { font-size: 11px; color: var(--t3); margin-left: auto; }
.incidents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 16px; padding: 28px 40px 64px; max-width: 1400px; margin: 0 auto; }
.incident-card { padding: 24px; border-radius: var(--r-lg); background: var(--sur); border: 1px solid var(--bdr); display: flex; flex-direction: column; gap: 10px; transition: all var(--ease); position: relative; overflow: hidden; cursor: pointer; }
.incident-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent, var(--acc)); transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.incident-card:hover::before { transform: scaleX(1); }
.card-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 80%, var(--accent, var(--acc)), transparent 65%); opacity: 0; transition: opacity var(--ease); pointer-events: none; }
.incident-card:hover { border-color: var(--bdr2); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.incident-card:hover .card-glow { opacity: .07; }
.card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.incident-date { font-family: var(--ff-m); font-size: 10px; color: var(--t3); }
.card-title { font-family: var(--ff-h); font-size: 18px; font-weight: 700; line-height: 1.3; }
.card-location { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--t2); font-family: var(--ff-m); }
.card-desc { font-size: 13px; color: var(--t2); line-height: 1.65; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-arrow { color: var(--acc); display: flex; justify-content: flex-end; opacity: 0; transform: translateX(-6px); transition: all var(--ease); }
.incident-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* energy.ejs original classes */
.energy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 16px; padding: 28px 40px 64px; max-width: 1400px; margin: 0 auto; }
.energy-card { padding: 24px; border-radius: var(--r-lg); background: var(--sur); border: 1px solid var(--bdr); display: flex; flex-direction: column; gap: 10px; transition: all var(--ease); position: relative; overflow: hidden; }
.energy-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--eaccent, var(--acc)); transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.energy-card:hover::before { transform: scaleX(1); }
.energy-card-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 80%, var(--eaccent, var(--acc)), transparent 65%); opacity: 0; transition: opacity var(--ease); pointer-events: none; }
.energy-card:hover { border-color: var(--bdr2); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.energy-card:hover .energy-card-glow { opacity: .07; }
.energy-card-top { display: flex; align-items: center; justify-content: space-between; }
.energy-emoji { font-size: 26px; }
.energy-cat-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-family: var(--ff-m); font-weight: 700; border: 1px solid; text-transform: uppercase; letter-spacing: .05em; }
.energy-cat-badge.large { font-size: 12px; padding: 5px 13px; }
.energy-card-name { font-family: var(--ff-h); font-size: 18px; font-weight: 700; }
.energy-card-tagline { font-size: 12px; color: var(--a2); font-family: var(--ff-m); }
.energy-card-desc { font-size: 13px; color: var(--t2); line-height: 1.65; flex: 1; }
.energy-stats-mini { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--bdr); flex-wrap: wrap; }
.estat { display: flex; flex-direction: column; gap: 2px; }
.estat-val { font-family: var(--ff-m); font-size: 13px; font-weight: 700; color: var(--tx); }
.estat-key { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; }

/* energy-detail.ejs original classes */
.energy-detail-page { padding-top: 56px; }
.energy-hero { padding: 64px 40px 44px; position: relative; overflow: hidden; border-bottom: 1px solid var(--bdr); }
.energy-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.energy-hero-glow { position: absolute; width: 500px; height: 340px; border-radius: 50%; background: radial-gradient(ellipse, var(--accent, #7c6af4), transparent 70%); top: -80px; right: -60px; filter: blur(65px); opacity: .18; }
.energy-hero-content { position: relative; max-width: 860px; }
.energy-hero-emoji { font-size: 52px; margin-bottom: 12px; display: block; }
.energy-detail-title { font-family: var(--ff-h); font-size: clamp(28px, 5.5vw, 62px); font-weight: 800; line-height: 1.05; margin-bottom: 8px; }
.energy-detail-tagline { font-family: var(--ff-m); font-size: 13px; color: var(--a2); margin-bottom: 12px; display: block; }
.energy-detail-lead { font-size: 16px; line-height: 1.72; color: var(--t2); margin-bottom: 14px; max-width: 640px; }
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.pros-box, .cons-box { padding: 18px; border-radius: var(--r); border: 1px solid; }
.pros-box { background: rgba(74,222,128,.04); border-color: rgba(74,222,128,.18); }
.cons-box { background: rgba(248,113,113,.04); border-color: rgba(248,113,113,.18); }
.pros-box h3 { color: #4ade80; margin-bottom: 10px; font-family: var(--ff-h); font-size: 13px; }
.cons-box h3 { color: #f87171; margin-bottom: 10px; font-family: var(--ff-h); font-size: 13px; }
.pros-box ul, .cons-box ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pros-box ul li, .cons-box ul li { font-size: 13px; color: var(--t2); padding-left: 16px; position: relative; line-height: 1.5; }
.pros-box ul li::before { content: '✓'; position: absolute; left: 0; color: #4ade80; font-weight: 700; }
.cons-box ul li::before { content: '✗'; position: absolute; left: 0; color: #f87171; font-weight: 700; }
.country-leaders { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 15px; border-radius: var(--r); background: var(--sur); border: 1px solid var(--bdr); flex-wrap: wrap; }
.country-leaders-label { font-size: 12px; color: var(--t3); font-family: var(--ff-m); }
.country-leaders-val { font-size: 13px; color: var(--t2); }
.funfact-quote { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(124,106,244,.09), rgba(165,148,249,.03)); border: 1px solid rgba(124,106,244,.2); margin-top: 8px; }
.funfact-icon { font-size: 26px; flex-shrink: 0; }
.funfact-quote p { font-size: 15px !important; color: var(--tx) !important; line-height: 1.7 !important; font-style: italic; margin-bottom: 0 !important; }
/* energy detail article */
.energy-content { display: flex; max-width: 1120px; margin: 0 auto; padding: 40px; }
.energy-toc { width: 210px; flex-shrink: 0; position: sticky; top: 74px; align-self: start; }
.energy-article { flex: 1; min-width: 0; padding-left: 48px; max-width: 720px; }
/* glass helper */
.glass { background: rgba(10,10,22,.65); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(255,255,255,.11); box-shadow: 0 8px 28px rgba(0,0,0,.2); }

/* btn-secondary alias */
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; border: 1px solid var(--bdr); background: var(--sur); color: var(--tx); font-family: var(--ff-h); font-weight: 600; font-size: 14px; transition: all var(--ease); }
.btn-secondary:hover { border-color: var(--bdr2); background: var(--sur2); }

/* Mobile fixes for original views */
@media (max-width: 900px) {
  .incident-content, .energy-content { flex-direction: column; padding: 24px 20px; }
  .toc-sidebar, .energy-toc { display: none; }
  .incident-article, .energy-article { padding-left: 0; }
  .incident-hero, .energy-hero { padding: 40px 20px 32px; }
  .page-header { padding: 40px 20px 32px; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .qstat:nth-child(2) { border-right: none; }
  .qstat:nth-child(1), .qstat:nth-child(2) { border-bottom: 1px solid var(--bdr); }
  .incidents-grid, .energy-grid { padding: 18px 16px 48px; grid-template-columns: 1fr; }
  .ines-scale { padding: 10px 16px; }
  .pros-cons-grid { grid-template-columns: 1fr; }
}
@media (min-width: 500px) and (max-width: 900px) {
  .incidents-grid, .energy-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════
   ROLE BADGES
   ══════════════════════════════════════════ */
.role-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; font-family: var(--ff-m);
  border: 1px solid; white-space: nowrap;
}
.role-badge.sm { font-size: 10px; padding: 2px 8px; }
.role-badge.owner  { color: #ffd700; background: rgba(255,215,0,.12); border-color: rgba(255,215,0,.3); }
.role-badge.admin  { color: #7289da; background: rgba(114,137,218,.12); border-color: rgba(114,137,218,.3); }
.role-badge.member { color: #4ade80; background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.25); }
.role-badge.guest  { color: var(--t3); background: var(--sur); border-color: var(--bdr); }

/* ══════════════════════════════════════════
   NAV PROFILE DROPDOWN
   ══════════════════════════════════════════ */
.nav-profile { position: relative; }
.nav-av-btn  {
  display: flex; align-items: center; gap: 0;
  background: none; border: none; cursor: pointer;
  position: relative; padding: 2px;
}
.nav-av-btn .av { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bdr); transition: border-color var(--ease); }
.nav-av-btn:hover .av { border-color: var(--acc); }
.nav-role-pip {
  position: absolute; bottom: -2px; right: -2px;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--bg2); border: 1px solid var(--bdr);
}

.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: 210px; background: var(--bg2); border: 1px solid var(--bdr2);
  border-radius: var(--r-lg); padding: 6px; z-index: 2000;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  animation: fadeDown .15s ease both;
}
.nav-dropdown.open { display: block; }
@keyframes fadeDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.nd-header { display: flex; align-items: center; gap: 10px; padding: 10px 10px 8px; }
.nd-av     { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--acc); }
.nd-name   { font-family: var(--ff-h); font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.nd-divider{ height: 1px; background: var(--bdr); margin: 4px 0; }
.nd-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px; font-size: 13px;
  color: var(--t2); transition: all var(--ease);
}
.nd-item:hover { background: var(--sur2); color: var(--tx); }
.nd-item.logout { color: #f87171; }
.nd-item.logout:hover { background: rgba(248,113,113,.1); color: #f87171; }

/* ══════════════════════════════════════════
   INCIDENTS — FILTER BAR UPGRADES
   ══════════════════════════════════════════ */
.filter-sep { width: 1px; height: 22px; background: var(--bdr); margin: 0 4px; flex-shrink: 0; }
.filter-text-btn {
  padding: 4px 11px; border-radius: 20px; border: 1px solid var(--bdr);
  background: transparent; color: var(--t2); font-size: 12px; font-weight: 600;
  font-family: var(--ff-m); cursor: pointer; white-space: nowrap;
  transition: all var(--ease);
}
.filter-text-btn:hover { border-color: var(--bdr2); color: var(--tx); }
.filter-text-btn.active { background: var(--sur2); border-color: var(--bdr2); color: var(--tx); }
.filter-clear {
  padding: 4px 10px; border-radius: 20px; border: 1px solid transparent;
  background: transparent; color: var(--t3); font-size: 11px;
  font-family: var(--ff-m); cursor: pointer; transition: all var(--ease);
}
.filter-clear:hover { border-color: rgba(248,113,113,.3); color: #f87171; }
.ines-pip.filter-btn {
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--ease); user-select: none;
}
.ines-pip.filter-btn:hover { transform: scale(1.15); }
.ines-pip.filter-btn.active { border-color: currentColor; transform: scale(1.15); }
.no-results { text-align: center; padding: 60px 20px; color: var(--t2); }
.no-results button { background: none; border: none; color: var(--a2); cursor: pointer; font-size: inherit; text-decoration: underline; }

/* ══════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════ */
.profile-page { padding-top: 56px; min-height: 100vh; }

.prof-hero {
  position: relative; overflow: hidden;
  padding: 52px 40px 44px;
  border-bottom: 1px solid var(--bdr);
}
.prof-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 10% 80%, rgba(124,106,244,.15), transparent 55%),
              radial-gradient(ellipse at 90% 20%, rgba(114,137,218,.1), transparent 50%);
}
.prof-hero-in { position: relative; max-width: 860px; }

.prof-top { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.prof-av  {
  width: 90px; height: 90px; border-radius: 50%;
  border: 3px solid var(--acc); flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--glow);
}
.prof-info { flex: 1; min-width: 0; }
.prof-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.prof-name { font-family: var(--ff-h); font-size: clamp(22px,4vw,36px); font-weight: 800; }
.prof-sub  { font-size: 12px; color: var(--t3); font-family: var(--ff-m); margin-bottom: 4px; }
.prof-sub code { background: var(--sur2); padding: 1px 6px; border-radius: 5px; }
.prof-guild    { font-size: 12px; color: #4ade80; }
.prof-guild-no { font-size: 12px; color: var(--t3); }
.prof-guild-no a { color: var(--a2); }
.prof-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.prof-logout { gap: 7px; }

.prof-body { max-width: 820px; margin: 0 auto; padding: 36px 40px 80px; display: flex; flex-direction: column; gap: 40px; }
.prof-sec  { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 28px; }
.prof-sec-title {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--ff-h); font-size: 18px; font-weight: 700;
  margin-bottom: 6px;
}
.prof-sec-sub { font-size: 13px; color: var(--t2); margin-bottom: 22px; line-height: 1.55; }
.prof-empty   { font-size: 13px; color: var(--t3); font-style: italic; }

/* Feedback form */
.feedback-form { display: flex; flex-direction: column; gap: 16px; }

.fb-type-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-type-opt { cursor: pointer; }
.fb-type-opt input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.fb-type-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--bdr); background: var(--sur2);
  color: var(--t2); transition: all var(--ease); cursor: pointer;
}
.fb-type-opt input:checked + .fb-type-pill {
  border-color: var(--acc); background: rgba(124,106,244,.12); color: var(--a2);
}
.fb-type-pill:hover { border-color: var(--bdr2); color: var(--tx); }

.fb-field    { position: relative; }
.fb-textarea {
  width: 100%; padding: 14px; border-radius: var(--r);
  background: var(--bg); border: 1px solid var(--bdr);
  color: var(--tx); font-family: var(--ff-b); font-size: 14px;
  resize: vertical; min-height: 120px; transition: border-color var(--ease);
  line-height: 1.6;
}
.fb-textarea:focus { outline: none; border-color: var(--acc); }
.fb-textarea::placeholder { color: var(--t3); }
.fb-counter { position: absolute; bottom: 10px; right: 12px; font-size: 11px; color: var(--t3); font-family: var(--ff-m); pointer-events: none; }

.fb-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fb-submit  { gap: 7px; }
.fb-submit:disabled { opacity: .6; cursor: not-allowed; }
.fb-status  { font-size: 13px; font-family: var(--ff-m); }
.fb-status.ok  { color: #4ade80; }
.fb-status.err { color: #f87171; }

/* Feedback history */
.fb-history { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.fb-item    {
  padding: 14px 16px; border-radius: var(--r); background: var(--bg);
  border: 1px solid var(--bdr); border-left: 3px solid var(--bdr2);
}
.fb-item-suggestion { border-left-color: var(--acc); }
.fb-item-bug        { border-left-color: #e63946; }
.fb-item-feedback   { border-left-color: #4ade80; }
.fb-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fb-item-type { font-size: 12px; font-weight: 700; color: var(--tx); font-family: var(--ff-m); }
.fb-item-date { font-size: 11px; color: var(--t3); font-family: var(--ff-m); }
.fb-item-msg  { font-size: 13px; color: var(--t2); line-height: 1.6; }

@media (max-width: 767px) {
  .prof-hero { padding: 36px 20px 28px; }
  .prof-body { padding: 24px 16px 60px; }
  .prof-top  { flex-direction: column; align-items: flex-start; gap: 14px; }
  .prof-av   { width: 70px; height: 70px; }
  .prof-sec  { padding: 20px; }
  .nd-dropdown { display: none; } /* always use drawer on mobile */
}

/* footer-inner alias for legacy views */
.footer-inner { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.footer-status { font-size:11px; font-family:var(--ff-m); margin-left:auto; }
.footer-status.online { color:#4ade80; }
.footer-status.offline { color:#f87171; }

/* ══════════════════════════════════════════════════════════
   NAV — MORE DROPDOWN
   ══════════════════════════════════════════════════════════ */
.nav-more { position: relative; }
.nav-more-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  color: var(--t2); font-size: 14px; font-family: var(--ff-b);
  padding: 6px 8px; border-radius: 8px; transition: all var(--ease);
}
.nav-more-btn:hover { color: var(--tx); background: var(--sur); }
.nav-more-drop {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  width: 220px; background: var(--bg2); border: 1px solid var(--bdr2);
  border-radius: var(--r-lg); padding: 6px; z-index: 2000;
  box-shadow: 0 14px 44px rgba(0,0,0,.45);
  animation: fadeDown .15s ease both;
}
.nav-more-drop.open { display: block; }
.nmd-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 13px; color: var(--t2); transition: all var(--ease);
}
.nmd-item:hover { background: var(--sur2); color: var(--tx); }

/* ══════════════════════════════════════════════════════════
   REACTOR TYPES
   ══════════════════════════════════════════════════════════ */
.rct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; padding: 28px 40px 60px;
}
.rct-card {
  position: relative; overflow: hidden;
  background: var(--sur); border: 1px solid var(--bdr);
  border-top: 3px solid var(--rc, var(--acc));
  border-radius: var(--r-xl); padding: 24px;
  transition: all .25s ease; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px;
}
.rct-card:hover { border-color: var(--rc, var(--acc)); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.rct-glow { position:absolute; inset:0; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rc,var(--acc)) 12%, transparent), transparent 65%); pointer-events:none; }
.rct-top { display: flex; align-items: center; justify-content: space-between; }
.rct-emoji { font-size: 28px; }
.rct-status { font-size: 10px; font-weight: 700; font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 20px; border: 1px solid currentColor; }
.rct-st-dominant { color: #4ade80; background: rgba(74,222,128,.1); }
.rct-st-common    { color: #0096c7; background: rgba(0,150,199,.1); }
.rct-st-operational { color: #4ade80; background: rgba(74,222,128,.1); }
.rct-st-phasing-out { color: #f87171; background: rgba(248,113,113,.1); }
.rct-st-retiring  { color: #f4a261; background: rgba(244,162,97,.1); }
.rct-st-experimental { color: #a594f9; background: rgba(165,148,249,.1); }
.rct-st-emerging  { color: #4ade80; background: rgba(74,222,128,.1); }
.rct-st-development { color: #f4d35e; background: rgba(244,211,94,.1); }
.rct-abbr  { font-family: var(--ff-m); font-size: 22px; font-weight: 800; color: var(--rc, var(--acc)); margin-top: 4px; }
.rct-name  { font-size: 14px; font-weight: 600; color: var(--t2); line-height: 1.35; }
.rct-desc  { font-size: 13px; color: var(--t3); line-height: 1.6; flex: 1; }
.rct-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--bdr); }
.rct-stat  { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.rct-sv    { font-family: var(--ff-m); font-size: 15px; font-weight: 700; color: var(--tx); }
.rct-sk    { font-size: 10px; color: var(--t3); }

/* Reactor detail extras */
.specs-grid { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--bdr); border-radius: var(--r); overflow: hidden; }
.spec-row   { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; background: var(--sur); }
.spec-row:nth-child(even) { background: var(--bg); }
.spec-k     { font-family: var(--ff-m); font-size: 10px; letter-spacing: .1em; color: var(--t3); min-width: 120px; flex-shrink: 0; }
.spec-v     { font-size: 13px; color: var(--tx); }
.funfact-quote { display: flex; gap: 14px; background: var(--sur); border: 1px solid var(--bdr); border-left: 3px solid var(--acc); border-radius: var(--r); padding: 18px; }
.funfact-icon  { font-size: 24px; flex-shrink: 0; margin-top: 2px; }

/* ══════════════════════════════════════════════════════════
   NUCLEAR RECORDS
   ══════════════════════════════════════════════════════════ */
.rec-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 40px 0; }
.rec-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 18px; padding: 20px 40px 60px;
}
.rec-card {
  position: relative; overflow: hidden;
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r-xl); padding: 24px;
  transition: all .25s ease;
}
.rec-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.3); border-color: var(--rcc, var(--bdr2)); }
.rec-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--rcc, var(--acc)); }
.rec-num   { font-family: var(--ff-m); font-size: 11px; color: var(--t3); margin-bottom: 8px; }
.rec-icon  { font-size: 32px; margin-bottom: 8px; display: block; }
.rec-value { font-family: var(--ff-m); font-size: 22px; font-weight: 800; color: var(--rcc, var(--acc)); line-height: 1.2; margin-bottom: 4px; }
.rec-title { font-size: 15px; font-weight: 700; color: var(--tx); margin-bottom: 3px; }
.rec-sub   { font-size: 12px; color: var(--t3); font-family: var(--ff-m); margin-bottom: 10px; }
.rec-detail { font-size: 13px; color: var(--t2); line-height: 1.65; }

/* ══════════════════════════════════════════════════════════
   COMPARE PAGE
   ══════════════════════════════════════════════════════════ */
.compare-page { padding-top: 56px; min-height: 100vh; }
.cmp-section { max-width: 860px; margin: 0 auto; padding: 32px 40px; border-bottom: 1px solid var(--bdr); }
.cmp-section:last-child { border-bottom: none; }
.cmp-title  { font-family: var(--ff-h); font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; }
.cmp-unit   { font-size: 12px; font-weight: 400; font-family: var(--ff-m); color: var(--t3); }
.cmp-bars   { display: flex; flex-direction: column; gap: 10px; }
.cmp-row    { display: flex; align-items: center; gap: 12px; }
.cmp-lbl    { font-size: 13px; color: var(--t2); min-width: 130px; flex-shrink: 0; }
.cmp-bw     { flex: 1; display: flex; align-items: center; gap: 10px; }
.cmp-bar    { height: 22px; border-radius: 4px; min-width: 3px; transition: width .6s ease; }
.cmp-val    { font-family: var(--ff-m); font-size: 12px; color: var(--t2); white-space: nowrap; }
.cmp-src    { font-size: 11px; color: var(--t3); margin-top: 16px; line-height: 1.5; }
.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.verdict-card { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 20px; }
.verdict-card.nuke { border-top: 3px solid var(--acc); }
.verdict-card.renew { border-top: 3px solid #f4d35e; }
.vc-icon    { font-size: 28px; margin-bottom: 8px; }
.verdict-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.verdict-card ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.verdict-card li { font-size: 12px; color: var(--t2); display: flex; gap: 6px; }
.verdict-card li::before { content: '→'; color: var(--a2); flex-shrink: 0; }
.cmp-verdict { background: var(--sur); border-radius: var(--r-xl); border: 1px solid var(--bdr); margin: 20px 40px; padding: 28px; max-width: calc(860px - 80px); }

/* ══════════════════════════════════════════════════════════
   HALF-LIFE LAB
   ══════════════════════════════════════════════════════════ */
.halflife-page { min-height: 100vh; }
.hl-body { max-width: 1100px; margin: 0 auto; padding: 28px 40px 80px; display: flex; flex-direction: column; gap: 36px; }
.hl-sec  { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 28px; }
.hl-sec-title { font-family: var(--ff-h); font-size: 18px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }

.iso-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }
.iso-card {
  background: var(--bg); border: 1px solid var(--bdr);
  border-left: 3px solid var(--ic, var(--acc));
  border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 5px;
  transition: all .2s ease;
}
.iso-card:hover { border-color: var(--ic, var(--acc)); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.iso-sym  { font-family: var(--ff-m); font-size: 18px; font-weight: 800; color: var(--ic, var(--acc)); }
.iso-name { font-size: 13px; font-weight: 600; }
.iso-hl   { font-family: var(--ff-m); font-size: 11px; color: var(--t3); }
.iso-use  { font-size: 11px; color: var(--t2); line-height: 1.4; flex: 1; }
.iso-danger { font-size: 10px; font-weight: 700; font-family: var(--ff-m); }
.iso-danger-low     { color: #4ade80; }
.iso-danger-medium  { color: #f4a261; }
.iso-danger-high    { color: #f87171; }
.iso-danger-extreme { color: #ff3333; }
.iso-calc-btn { margin-top: 6px; font-size: 11px; padding: 5px 10px; }

.calc-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc-inputs { display: flex; flex-direction: column; gap: 14px; }
.calc-field  { display: flex; flex-direction: column; gap: 5px; }
.calc-lbl    { font-size: 12px; color: var(--t3); font-family: var(--ff-m); }
.calc-input  {
  background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--r);
  color: var(--tx); font-family: var(--ff-b); font-size: 14px; padding: 9px 12px;
  transition: border-color var(--ease); width: 100%;
}
.calc-input:focus { outline: none; border-color: var(--acc); }
.calc-result { background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cr-remaining { font-family: var(--ff-m); font-size: 32px; font-weight: 800; color: var(--a2); }
.cr-label     { font-size: 13px; color: var(--t2); }
.cr-halflife-count { font-size: 12px; color: var(--t3); font-family: var(--ff-m); }
.calc-decay-bar { height: 8px; background: var(--sur2); border-radius: 4px; overflow: hidden; }
.cdb-fill       { height: 100%; background: linear-gradient(90deg, var(--acc), var(--a2)); border-radius: 4px; transition: width .5s ease; }
.calc-steps { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 220px; overflow-y: auto; }
.calc-step  { display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 6px 0; border-top: 1px solid var(--bdr); }
.cs-n { color: var(--t3); font-family: var(--ff-m); min-width: 70px; }
.cs-y { color: var(--t2); min-width: 90px; }
.cs-a { color: var(--tx); font-family: var(--ff-m); font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   NEWS PAGE
   ══════════════════════════════════════════════════════════ */
.news-page { min-height: 100vh; }
.news-body { max-width: 1100px; margin: 0 auto; padding: 28px 40px 80px; }
.news-loading { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 60px; color: var(--t2); }
.news-spinner { width: 32px; height: 32px; border: 3px solid var(--bdr); border-top-color: var(--acc); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.news-error { text-align: center; padding: 40px; color: var(--t2); }
.news-error button { background: none; border: none; color: var(--a2); cursor: pointer; font-size: inherit; text-decoration: underline; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; }
.news-card { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: all .2s; }
.news-card:hover { border-color: var(--bdr2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.news-source { font-size: 10px; font-weight: 700; font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .1em; color: var(--a2); }
.news-title  { font-size: 14px; font-weight: 700; line-height: 1.4; flex: 1; }
.news-desc   { font-size: 12px; color: var(--t2); line-height: 1.55; }
.news-date   { font-size: 11px; color: var(--t3); font-family: var(--ff-m); margin-top: auto; }

.reading-grid { display: flex; flex-direction: column; gap: 10px; }
.reading-card { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--r); padding: 16px; text-decoration: none; color: inherit; transition: all .2s; }
.reading-card:hover { border-color: var(--bdr2); background: var(--sur2); }
.reading-icon { font-size: 26px; flex-shrink: 0; }
.reading-body { flex: 1; min-width: 0; }
.reading-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.reading-body p  { font-size: 12px; color: var(--t2); line-height: 1.5; }
.reading-arr { color: var(--t3); font-size: 18px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — NEW SUB-SITES
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .rct-grid, .rec-grid { padding: 16px; grid-template-columns: 1fr; }
  .rec-cats { padding: 16px 16px 0; }
  .cmp-section { padding: 24px 16px; }
  .cmp-verdict { margin: 12px 16px; padding: 20px; max-width: 100%; }
  .verdict-grid { grid-template-columns: 1fr; }
  .hl-body { padding: 16px 16px 60px; }
  .hl-sec  { padding: 18px; }
  .calc-box { grid-template-columns: 1fr; }
  .iso-grid { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
  .news-body { padding: 16px 16px 60px; }
  .cmp-lbl   { min-width: 90px; font-size: 11px; }
}

/* ════════════════════════════════════════════════════════════
   HOME PAGE — NEW SECTIONS
   ════════════════════════════════════════════════════════════ */
.home-sec { padding: 52px 40px; border-top: 1px solid var(--bdr); }
.home-sec-alt { background: var(--bg2); }
.hs-header { text-align: center; margin-bottom: 36px; }
.hs-header h2 { font-family: var(--ff-h); font-size: clamp(22px,4vw,34px); font-weight: 800; margin-bottom: 8px; }
.hs-header p  { font-size: 14px; color: var(--t2); }

/* Nuclear by the numbers */
.nbn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.nbn-card { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 22px; text-align: center; transition: all .2s; }
.nbn-card:hover { border-color: var(--bdr2); transform: translateY(-2px); }
.nbn-val   { font-family: var(--ff-m); font-size: 36px; font-weight: 800; color: var(--a2); line-height: 1; margin-bottom: 6px; }
.nbn-label { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.nbn-sub   { font-size: 11px; color: var(--t3); font-family: var(--ff-m); }

/* Featured incident spotlight */
.spotlight {
  max-width: 800px; margin: 0 auto;
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r-xl); padding: 32px;
  border-top: 3px solid #ff4500;
  position: relative; overflow: hidden;
}
.spotlight::before { content:''; position:absolute; top:0; left:0; right:0; height:160px; background:radial-gradient(ellipse at 50% 0%,rgba(255,69,0,.12),transparent 70%); pointer-events:none; }
.spot-ines  { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.spot-ines-badge { font-size: 13px; }
.spot-date  { font-size: 12px; color: var(--t3); font-family: var(--ff-m); }
.spot-title { font-family: var(--ff-h); font-size: clamp(20px,3vw,28px); font-weight: 800; margin-bottom: 4px; }
.spot-loc   { font-size: 12px; color: var(--t3); margin-bottom: 14px; }
.spot-body  { font-size: 14px; color: var(--t2); line-height: 1.75; margin-bottom: 20px; }
.spot-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 22px; padding: 16px; background: var(--bg); border-radius: var(--r); }
.spot-stat  { text-align: center; }
.ss-val     { display: block; font-family: var(--ff-m); font-size: 15px; font-weight: 700; color: var(--tx); }
.ss-k       { font-size: 10px; color: var(--t3); }

/* Did You Know cards */
.dyks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.dyk-card  { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: all .2s; }
.dyk-card:hover { border-color: var(--bdr2); transform: translateY(-2px); }
.dyk-icon  { font-size: 28px; }
.dyk-text  { font-size: 13px; color: var(--t2); line-height: 1.65; flex: 1; }
.dyk-link  { font-size: 12px; color: var(--a2); font-family: var(--ff-m); margin-top: auto; }

/* Explore grid */
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px,1fr)); gap: 12px; max-width: 1100px; margin: 0 auto; }
.ex-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 16px; border-radius: var(--r-xl);
  background: var(--sur); border: 1px solid var(--bdr);
  border-bottom: 3px solid var(--exc, var(--acc));
  text-decoration: none; color: inherit;
  transition: all .2s; cursor: pointer;
}
.ex-card:hover { border-color: var(--exc, var(--acc)); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.ex-icon { font-size: 24px; margin-bottom: 4px; }
.ex-name { font-size: 13px; font-weight: 700; }
.ex-desc { font-size: 11px; color: var(--t3); font-family: var(--ff-m); }

/* ════════════════════════════════════════════════════════════
   SCIENTISTS
   ════════════════════════════════════════════════════════════ */
.sci-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 20px; padding: 28px 40px 60px;
}
.sci-card {
  position: relative; overflow: hidden;
  background: var(--sur); border: 1px solid var(--bdr);
  border-top: 3px solid var(--sc, var(--acc));
  border-radius: var(--r-xl); padding: 24px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 6px;
  transition: all .25s ease;
}
.sci-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.3); border-color: var(--sc, var(--acc)); }
.sci-glow { position:absolute;inset:0;background:radial-gradient(circle at 50% 0%,color-mix(in srgb, var(--sc,var(--acc)) 10%,transparent),transparent 65%);pointer-events:none; }
.sci-top  { display: flex; align-items: center; justify-content: space-between; }
.sci-emoji{ font-size: 30px; }
.sci-era  { font-size: 10px; font-weight: 700; font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .08em; color: var(--sc, var(--acc)); background: color-mix(in srgb, var(--sc,var(--acc)) 12%, transparent); padding: 3px 9px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--sc,var(--acc)) 30%, transparent); }
.sci-name { font-family: var(--ff-h); font-size: 20px; font-weight: 800; margin-top: 8px; }
.sci-role { font-size: 12px; color: var(--t2); }
.sci-years{ font-family: var(--ff-m); font-size: 11px; color: var(--t3); }
.sci-desc { font-size: 13px; color: var(--t2); line-height: 1.6; flex: 1; margin-top: 4px; }
.sci-nobel{ display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #f4d35e; margin-top: 4px; }

/* Scientist detail extras */
.achievement-list { display: flex; flex-direction: column; gap: 8px; }
.achievement-item { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--t2); padding: 8px 12px; background: var(--sur); border-radius: var(--r); border: 1px solid var(--bdr); }
.ach-bullet { color: var(--a2); font-weight: 700; flex-shrink: 0; }
.sci-blockquote { font-family: Georgia, serif; font-size: 18px; font-style: italic; line-height: 1.7; color: var(--tx); padding: 20px 24px; border-left: 4px solid var(--acc); background: var(--sur); border-radius: 0 var(--r) var(--r) 0; margin: 0; }
.sci-blockquote footer { font-family: var(--ff-b); font-size: 13px; font-style: normal; color: var(--t3); margin-top: 10px; }

/* ════════════════════════════════════════════════════════════
   NUCLEAR FUEL CYCLE
   ════════════════════════════════════════════════════════════ */
.fc-pipeline {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px; padding: 20px 40px;
  background: var(--bg2); border-bottom: 1px solid var(--bdr);
  overflow-x: auto;
}
.fc-pipe-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; padding: 8px 6px; border-radius: var(--r);
  transition: background .2s; min-width: 70px;
}
.fc-pipe-step:hover { background: var(--sur); }
.fc-ps-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 2px solid; flex-shrink: 0; }
.fc-ps-num  { font-family: var(--ff-m); font-size: 10px; font-weight: 700; }
.fc-ps-name { font-size: 10px; color: var(--t3); text-align: center; max-width: 65px; line-height: 1.3; }
.fc-arrow   { color: var(--t3); font-size: 16px; flex-shrink: 0; }

.fc-stages { display: flex; flex-direction: column; gap: 0; }
.fc-card {
  border-bottom: 1px solid var(--bdr); padding: 36px 40px;
  border-left: 4px solid var(--fcc, var(--acc));
  transition: background .2s;
}
.fc-card:target, .fc-card:hover { background: var(--bg2); }
.fc-card-header { margin-bottom: 20px; }
.fc-step-badge  { display: inline-block; font-size: 10px; font-weight: 700; font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .1em; padding: 2px 10px; border-radius: 20px; margin-bottom: 10px; }
.fc-icon  { font-size: 36px; display: block; margin-bottom: 8px; }
.fc-name  { font-family: var(--ff-h); font-size: clamp(18px,3vw,26px); font-weight: 800; margin-bottom: 6px; }
.fc-short { font-size: 14px; color: var(--t2); line-height: 1.6; max-width: 720px; }
.fc-body  { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.fc-detail-col h4, .fc-facts-col h4 { font-size: 13px; font-weight: 700; font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .08em; color: var(--t3); margin-bottom: 10px; }
.fc-detail { font-size: 14px; color: var(--t2); line-height: 1.75; }
.fc-facts  { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fc-facts li { font-size: 13px; color: var(--t2); display: flex; gap: 8px; line-height: 1.5; }
.fc-facts li::before { content: '→'; color: var(--a2); flex-shrink: 0; }
.fc-waste  { display: flex; gap: 8px; background: rgba(244,162,97,.08); border: 1px solid rgba(244,162,97,.25); border-radius: var(--r); padding: 10px 12px; font-size: 12px; color: var(--t2); line-height: 1.5; }
.fc-waste-icon { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   RADIATION & HEALTH
   ════════════════════════════════════════════════════════════ */
.health-body { max-width: 1050px; margin: 0 auto; padding: 28px 40px 80px; display: flex; flex-direction: column; gap: 32px; }
.health-sec  { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 28px; }
.health-title{ font-family: var(--ff-h); font-size: 18px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }

/* Radiation types */
.rad-types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
.rad-type-card  { background: var(--bg); border: 1px solid var(--bdr); border-top: 3px solid var(--rtc,var(--acc)); border-radius: var(--r); padding: 16px; }
.rt-symbol { font-family: var(--ff-m); font-size: 28px; font-weight: 900; margin-bottom: 4px; }
.rt-name   { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.rt-rows   { display: flex; flex-direction: column; gap: 5px; }
.rt-row    { display: flex; flex-direction: column; gap: 1px; }
.rt-k      { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); font-family: var(--ff-m); }
.rt-v      { font-size: 12px; color: var(--t2); line-height: 1.4; }

/* Units */
.units-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.unit-card  { background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--r); padding: 14px; }
.unit-sym   { font-family: var(--ff-m); font-size: 24px; font-weight: 800; color: var(--a2); margin-bottom: 4px; }
.unit-name  { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.unit-measures { font-size: 11px; color: var(--t3); margin-bottom: 6px; font-family: var(--ff-m); }
.unit-ex    { font-size: 12px; color: var(--t2); line-height: 1.5; }

/* Dose chart */
.dose-chart { display: flex; flex-direction: column; gap: 8px; }
.dose-row   { display: flex; align-items: center; gap: 12px; }
.dose-lbl   { font-size: 12px; color: var(--t2); min-width: 220px; flex-shrink: 0; }
.dose-bw    { flex: 1; display: flex; align-items: center; gap: 8px; }
.dose-bar   { height: 18px; border-radius: 3px; min-width: 3px; transition: width .5s ease; }
.dose-val   { font-family: var(--ff-m); font-size: 11px; color: var(--t2); white-space: nowrap; }

/* Health effects table */
.health-table { display: flex; flex-direction: column; gap: 1px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--bdr); }
.ht-head { display: grid; grid-template-columns: 180px 1fr 1fr 100px; gap: 0; padding: 10px 14px; background: var(--bg); font-size: 11px; font-weight: 700; font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .08em; color: var(--t3); }
.ht-row  { display: grid; grid-template-columns: 180px 1fr 1fr 100px; gap: 12px; padding: 11px 14px; background: var(--sur); font-size: 12px; transition: background .15s; }
.ht-row:hover { background: var(--sur2); }
.ht-dose { font-family: var(--ff-m); font-weight: 700; font-size: 11px; }
.ht-effect, .ht-risk { color: var(--t2); line-height: 1.45; }
.ht-surv { font-family: var(--ff-m); font-weight: 700; font-size: 12px; }

/* Context cards */
.context-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.ctx-card { background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--r); padding: 16px; }
.ctx-icon { font-size: 26px; margin-bottom: 8px; display: block; }
.ctx-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ctx-card p  { font-size: 12px; color: var(--t2); line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — ALL NEW
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .fc-body { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .home-sec  { padding: 36px 16px; }
  .sci-grid  { padding: 16px; grid-template-columns: 1fr; }
  .fc-card   { padding: 24px 16px; }
  .fc-pipeline { padding: 12px 16px; }
  .health-body { padding: 16px 16px 60px; }
  .health-sec  { padding: 18px; }
  .ht-head, .ht-row { grid-template-columns: 140px 1fr; }
  .ht-risk, .ht-surv { display: none; }
  .spot-stats { grid-template-columns: repeat(2,1fr); }
  .dose-lbl   { min-width: 130px; font-size: 11px; }
  .explore-grid { grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); }
}

/* ════════════════════════════════════════════════════════════
   NAV MORE — CATEGORIES
   ════════════════════════════════════════════════════════════ */
.nmd-cat {
  font-size: 9px; font-weight: 800; font-family: var(--ff-m);
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--t3); padding: 10px 12px 4px; margin: 0;
}
.nmd-cat:first-child { padding-top: 4px; }
.nav-more-drop { max-height: 80vh; overflow-y: auto; }

/* ════════════════════════════════════════════════════════════
   HOME — TWO COLUMN LAYOUT
   ════════════════════════════════════════════════════════════ */
.home-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1100px; margin: 0 auto; }
.htc-block { display: flex; flex-direction: column; }
.htc-title { font-family: var(--ff-h); font-size: clamp(18px,2.5vw,24px); font-weight: 800; margin-bottom: 12px; }

/* ════════════════════════════════════════════════════════════
   HOME — MINI MAP PREVIEW
   ════════════════════════════════════════════════════════════ */
.map-preview-link { text-decoration: none; color: inherit; display: block; }
.map-preview-card {
  position: relative; background: #0a0e1a;
  border: 1px solid var(--bdr); border-radius: var(--r-xl);
  height: 200px; overflow: hidden; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  background-image:
    radial-gradient(circle at 48% 28%, rgba(74,222,128,.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(230,57,70,.07) 0%, transparent 35%),
    linear-gradient(135deg, #080c18 0%, #0d1428 50%, #0a1020 100%);
}
.map-preview-card:hover { border-color: var(--acc); box-shadow: 0 8px 32px rgba(124,106,244,.2); }
/* Simple grid lines to suggest a map */
.map-preview-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 30px;
}
.mp-pins { position: absolute; inset: 0; }
.mp-pin {
  position: absolute;
  width: 10px; height: 10px; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px currentColor;
  transition: transform .2s;
}
.map-preview-card:hover .mp-pin { transform: translate(-50%, -50%) scale(1.3); }
.mp-label {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-family: var(--ff-m); color: var(--a2);
  background: rgba(0,0,0,.6); padding: 4px 12px; border-radius: 20px;
  white-space: nowrap;
}
.mp-legend {
  display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap;
}
.mp-legend span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--t3); }
.mp-ld { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   HOME — THIS DAY WIDGET
   ════════════════════════════════════════════════════════════ */
.td-home-widget {
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r-xl); padding: 16px; flex: 1;
  min-height: 180px; display: flex; flex-direction: column; gap: 10px;
}
.td-hw-loading { color: var(--t3); font-size: 13px; }
.td-hw-event {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--bdr);
}
.td-hw-event:last-child { border-bottom: none; }
.td-hw-year {
  font-family: var(--ff-m); font-size: 18px; font-weight: 800;
  color: var(--a2); min-width: 46px; flex-shrink: 0; line-height: 1;
}
.td-hw-text { font-size: 13px; color: var(--t2); line-height: 1.55; }
.td-hw-none { color: var(--t3); font-size: 13px; font-style: italic; }

/* ════════════════════════════════════════════════════════════
   THIS DAY IN NUCLEAR HISTORY PAGE
   ════════════════════════════════════════════════════════════ */
.td-date-display { font-family: var(--ff-m); font-size: 18px; color: var(--a2); margin-top: 8px; }
.td-body { display: grid; grid-template-columns: 1fr 280px; gap: 32px; padding: 28px 40px 60px; max-width: 1200px; margin: 0 auto; }
.td-section-title { font-family: var(--ff-h); font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.td-event-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--sur); border: 1px solid var(--bdr);
  border-left: 4px solid var(--acc); border-radius: var(--r-xl);
  padding: 20px; margin-bottom: 12px;
}
.td-event-card.today { border-left-color: #f4d35e; }
.td-year { font-family: var(--ff-m); font-size: 28px; font-weight: 800; color: var(--a2); min-width: 56px; flex-shrink: 0; line-height: 1; }
.td-divider-v { width: 1px; background: var(--bdr); flex-shrink: 0; margin: 2px 0; }
.td-text { font-size: 14px; color: var(--t2); line-height: 1.7; }
.td-empty { text-align: center; padding: 48px 24px; color: var(--t2); }

/* Calendar browse */
.td-calendar { display: flex; flex-direction: column; gap: 20px; }
.td-month-group {}
.td-month-name { font-family: var(--ff-m); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--a2); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--bdr); }
.td-cal-entry { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bdr); }
.td-cal-entry:last-child { border-bottom: none; }
.td-cal-date { font-family: var(--ff-m); font-size: 12px; font-weight: 700; color: var(--t3); min-width: 36px; padding-top: 2px; }
.td-cal-events { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.td-cal-ev { display: flex; gap: 8px; align-items: baseline; }
.td-cal-yr { font-family: var(--ff-m); font-size: 11px; font-weight: 700; color: var(--a2); min-width: 32px; flex-shrink: 0; }
.td-cal-txt { font-size: 12px; color: var(--t2); line-height: 1.5; }

/* Sidebar */
.td-sidebar { display: flex; flex-direction: column; gap: 16px; }
.td-side-card { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 18px; }
.td-side-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.td-side-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.td-side-card li a { font-size: 13px; color: var(--t2); transition: color .15s; }
.td-side-card li a:hover { color: var(--tx); }
.td-key-dates { display: flex; flex-direction: column; gap: 6px; }
.td-kd { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; border-bottom: 1px solid var(--bdr); }
.td-kd:last-child { border-bottom: none; }
.td-kd-d { font-family: var(--ff-m); font-size: 11px; font-weight: 700; color: var(--a2); }
.td-kd-t { font-size: 12px; color: var(--t2); }

/* ════════════════════════════════════════════════════════════
   NUCLEAR ECONOMICS PAGE
   ════════════════════════════════════════════════════════════ */
.econ-body { max-width: 1050px; margin: 0 auto; padding: 28px 40px 80px; display: flex; flex-direction: column; gap: 32px; }
.econ-sec { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 28px; }
.econ-title { font-family: var(--ff-h); font-size: 18px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.econ-unit { font-size: 12px; font-weight: 400; font-family: var(--ff-m); color: var(--t3); }
.econ-intro { font-size: 13px; color: var(--t2); line-height: 1.65; margin-bottom: 18px; }
.econ-src { font-size: 11px; color: var(--t3); margin-top: 14px; line-height: 1.5; }

/* LCOE chart */
.lcoe-chart { display: flex; flex-direction: column; gap: 14px; }
.lcoe-row { display: grid; grid-template-columns: 24px 200px 1fr; gap: 10px; align-items: start; }
.lcoe-icon { font-size: 18px; line-height: 1; padding-top: 2px; }
.lcoe-lbl { font-size: 13px; color: var(--t2); padding-top: 4px; }
.lcoe-bw { display: flex; flex-direction: column; gap: 4px; }
.lcoe-range { position: relative; height: 24px; border-radius: 4px; }
.lcoe-mid { position: absolute; top: 50%; transform: translateY(-50%); width: 3px; height: 100%; border-radius: 2px; }
.lcoe-val { font-family: var(--ff-m); font-size: 11px; color: var(--t3); }
.lcoe-note { font-size: 11px; color: var(--t3); line-height: 1.45; margin: 0; grid-column: 3; }
.lcoe-legend { display: flex; gap: 16px; margin-top: 10px; }
.ll-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--t3); }
.ll-range { width: 28px; height: 12px; background: rgba(124,106,244,.25); border: 1px solid rgba(124,106,244,.5); border-radius: 2px; }
.ll-mid { width: 3px; height: 14px; background: #7c6af4; border-radius: 2px; }

/* Construction cost table */
.const-table { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--bdr); border-radius: var(--r); overflow: hidden; }
.ct-head { display: grid; grid-template-columns: 2fr 1fr 1fr 80px; gap: 0; padding: 10px 14px; background: var(--bg); font-size: 11px; font-weight: 700; font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .08em; color: var(--t3); }
.ct-row { display: grid; grid-template-columns: 2fr 1fr 1fr 80px; gap: 10px; padding: 12px 14px; background: var(--sur); font-size: 13px; transition: background .15s; align-items: center; }
.ct-row:hover { background: var(--sur2); }
.ct-name { font-weight: 600; font-size: 13px; }
.ct-mw { font-size: 11px; color: var(--t3); font-family: var(--ff-m); margin-top: 2px; }
.ct-planned, .ct-actual { color: var(--t2); font-size: 12px; }
.ct-overrun { font-family: var(--ff-m); font-size: 14px; font-weight: 800; }

/* Funding grid */
.fund-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; }
.fund-card { background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--r); padding: 16px; }
.fund-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fund-country { font-family: var(--ff-m); font-size: 15px; font-weight: 800; color: var(--tx); }
.fund-share { font-family: var(--ff-m); font-size: 11px; color: var(--a2); }
.fund-model { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.fund-note { font-size: 12px; color: var(--t2); line-height: 1.55; }

/* Economics key facts */
.econ-facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; }
.econ-fact-card { background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--r); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.ef-icon { font-size: 22px; flex-shrink: 0; }
.econ-fact-card p { font-size: 13px; color: var(--t2); line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   SPACE PAGE
   ════════════════════════════════════════════════════════════ */
.space-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 20px; padding: 24px 40px 60px; }
.space-card {
  background: var(--sur); border: 1px solid var(--bdr);
  border-top: 3px solid var(--spcc, var(--acc));
  border-radius: var(--r-xl); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all .2s;
}
.space-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.25); transform: translateY(-2px); }
.sp-top { display: flex; align-items: center; gap: 10px; }
.sp-icon { font-size: 32px; }
.sp-cat { font-size: 10px; font-weight: 700; font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .1em; color: var(--t3); display: block; }
.sp-status { font-size: 10px; font-weight: 700; font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 20px; display: inline-block; margin-top: 2px; }
.sp-st-operational { background: rgba(74,222,128,.15); color: #4ade80; }
.sp-st-development { background: rgba(244,211,94,.15); color: #f4d35e; }
.sp-st-historical { background: rgba(150,150,150,.15); color: #aaa; }
.sp-st-theoretical-early-research { background: rgba(157,78,221,.15); color: #9d4edd; }
.sp-abbr { font-family: var(--ff-m); font-size: 20px; font-weight: 800; color: var(--spcc, var(--acc)); }
.sp-name { font-family: var(--ff-h); font-size: 17px; font-weight: 800; line-height: 1.25; }
.sp-desc { font-size: 13px; color: var(--t2); line-height: 1.6; }
.sp-toggle { font-size: 11px; padding: 5px 12px; margin-top: 4px; }
.sp-tog-hide { display: none; }
.space-card.expanded .sp-tog-show { display: none; }
.space-card.expanded .sp-tog-hide { display: inline; }
.sp-expanded { display: none; padding-top: 12px; border-top: 1px solid var(--bdr); margin-top: 4px; }
.space-card.expanded .sp-expanded { display: flex; flex-direction: column; gap: 10px; }
.sp-detail { font-size: 13px; color: var(--t2); line-height: 1.7; }
.sp-missions-title { font-size: 12px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: .08em; font-family: var(--ff-m); }
.sp-missions { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sp-missions li { font-size: 12px; color: var(--t2); display: flex; gap: 6px; }
.sp-missions li::before { content: '→'; color: var(--a2); flex-shrink: 0; }
.sp-funfact { display: flex; gap: 8px; background: rgba(244,211,94,.07); border: 1px solid rgba(244,211,94,.2); border-radius: var(--r); padding: 10px 12px; font-size: 12px; color: var(--t2); line-height: 1.5; }

/* ════════════════════════════════════════════════════════════
   TREATIES PAGE
   ════════════════════════════════════════════════════════════ */
.treaty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 20px; padding: 28px 40px 60px; }
.treaty-card {
  background: var(--sur); border: 1px solid var(--bdr);
  border-left: 4px solid var(--tc, var(--acc));
  border-radius: var(--r-xl); padding: 24px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px;
  transition: all .2s;
}
.treaty-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); border-color: var(--tc, var(--acc)); }
.tc-top { display: flex; align-items: center; justify-content: space-between; }
.tc-icon { font-size: 28px; }
.tc-status { font-size: 10px; font-weight: 700; font-family: var(--ff-m); padding: 3px 9px; border-radius: 20px; text-align: right; max-width: 160px; line-height: 1.3; }
.tc-st-active { background: rgba(74,222,128,.15); color: #4ade80; }
.tc-st-pending { background: rgba(244,162,97,.15); color: #f4a261; }
.tc-st-suspended { background: rgba(248,113,113,.15); color: #f87171; }
.tc-abbr { font-family: var(--ff-m); font-size: 20px; font-weight: 800; color: var(--tc, var(--acc)); margin-top: 4px; }
.tc-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.tc-meta { display: flex; gap: 14px; font-family: var(--ff-m); font-size: 11px; color: var(--t3); }
.tc-desc { font-size: 13px; color: var(--t2); line-height: 1.6; flex: 1; }

/* ════════════════════════════════════════════════════════════
   QUIZ PAGE
   ════════════════════════════════════════════════════════════ */
.quiz-wrap { max-width: 720px; margin: 0 auto; padding: 28px 24px 80px; }
.quiz-screen {}
.quiz-start-card { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 48px 36px; text-align: center; }
.quiz-start-card h2 { font-family: var(--ff-h); font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.quiz-start-card p { font-size: 14px; color: var(--t2); margin-bottom: 18px; }
.quiz-meta-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.qm-pill { font-size: 12px; font-family: var(--ff-m); padding: 4px 12px; border-radius: 20px; background: var(--sur2); border: 1px solid var(--bdr); color: var(--t2); }
.quiz-progress-bar { height: 4px; background: var(--bdr); border-radius: 2px; margin-bottom: 20px; overflow: hidden; }
.quiz-pb-fill { height: 100%; background: linear-gradient(90deg, var(--acc), var(--a2)); border-radius: 2px; transition: width .4s ease; }
.quiz-q-card { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 28px; }
.quiz-q-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--ff-m); font-size: 12px; color: var(--t3); margin-bottom: 18px; }
.quiz-question { font-family: var(--ff-h); font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 20px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.quiz-opt {
  background: var(--bg); border: 1px solid var(--bdr);
  border-radius: var(--r); padding: 13px 16px;
  text-align: left; font-size: 14px; color: var(--tx);
  cursor: pointer; transition: all .15s; font-family: var(--ff-b);
}
.quiz-opt:hover:not(:disabled) { border-color: var(--acc); background: var(--sur2); }
.quiz-opt.correct { border-color: #4ade80; background: rgba(74,222,128,.1); color: #4ade80; }
.quiz-opt.wrong { border-color: #f87171; background: rgba(248,113,113,.1); color: #f87171; }
.quiz-explanation {
  font-size: 13px; color: var(--t2); line-height: 1.6;
  background: var(--bg); border: 1px solid var(--bdr);
  border-radius: var(--r); padding: 14px; margin-bottom: 14px;
}
.exp-correct { color: #4ade80; font-weight: 700; margin-right: 6px; }
.exp-wrong { color: #f87171; font-weight: 700; margin-right: 6px; }
.quiz-next { width: 100%; }
.quiz-result-card { background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 40px 32px; text-align: center; }
.quiz-result-emoji { font-size: 64px; margin-bottom: 12px; }
.quiz-result-title { font-family: var(--ff-h); font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.quiz-result-score { font-family: var(--ff-m); font-size: 48px; font-weight: 900; color: var(--a2); margin-bottom: 8px; }
.quiz-result-sub { font-size: 14px; color: var(--t2); margin-bottom: 20px; }
.quiz-wrong-list { text-align: left; margin-top: 20px; }
.wrong-item { background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; }
.wi-q { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.wi-a { font-size: 12px; color: #4ade80; font-family: var(--ff-m); margin-bottom: 4px; }
.wi-exp { font-size: 12px; color: var(--t2); line-height: 1.5; }

/* ════════════════════════════════════════════════════════════
   HOME — SPOT EXTRAS
   ════════════════════════════════════════════════════════════ */
.spot-top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.spot-rotate-hint { font-size: 11px; color: var(--t3); font-family: var(--ff-m); font-style: italic; }
.spot-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — NEW ADDITIONS
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .home-two-col { grid-template-columns: 1fr; }
  .lcoe-row { grid-template-columns: 24px 1fr; }
  .lcoe-lbl { grid-column: 2; }
  .lcoe-bw { grid-column: 2; }
  .lcoe-note { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .td-body { grid-template-columns: 1fr; padding: 16px 16px 60px; }
  .td-sidebar { display: none; }
  .econ-body { padding: 16px 16px 60px; }
  .treaty-grid { padding: 16px; grid-template-columns: 1fr; }
  .space-grid { padding: 16px; grid-template-columns: 1fr; }
  .ct-head, .ct-row { grid-template-columns: 1.5fr 1fr; }
  .ct-planned, .ct-overrun { display: none; }
  .quiz-q-card { padding: 18px; }
  .quiz-question { font-size: 17px; }
  .quiz-result-score { font-size: 36px; }
}

/* ════════════════════════════════════════════════════════════
   HOME — DYK SINGLE + THIS DAY + MINI MAP
   ════════════════════════════════════════════════════════════ */
.home-two-col { display:grid; grid-template-columns:1fr 1fr; gap:28px; max-width:1100px; margin:0 auto; }
.htc-equal .htc-block { display:flex; flex-direction:column; }
.htc-block { }
.htc-title { font-family:var(--ff-h); font-size:20px; font-weight:800; margin-bottom:14px; }

.dyk-single { background:var(--bg); border:1px solid var(--bdr); border-radius:var(--r-xl); padding:22px; display:flex; flex-direction:column; gap:12px; flex:1; }
.dyk-single-icon { font-size:36px; }
.dyk-single-text { font-size:15px; color:var(--t2); line-height:1.75; flex:1; }
.dyk-single-link { font-size:13px; color:var(--a2); font-family:var(--ff-m); }
.dyk-refresh-hint { font-size:11px; color:var(--t3); font-family:var(--ff-m); margin-top:auto; }

.today-ev-card { background:var(--bg); border:1px solid var(--bdr); border-left:3px solid var(--acc); border-radius:0 var(--r-xl) var(--r-xl) 0; padding:18px; flex:1; }
.today-ev-empty { border-left-color:var(--bdr); }
.tev-year  { font-family:var(--ff-m); font-size:28px; font-weight:800; color:var(--a2); margin-bottom:4px; }
.tev-title { font-size:15px; font-weight:700; margin-bottom:6px; line-height:1.35; }
.tev-desc  { font-size:13px; color:var(--t2); line-height:1.6; }
.tev-tags  { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.tev-more-link { font-size:12px; color:var(--a2); font-family:var(--ff-m); display:block; margin-top:10px; }

/* Mini map */
.mini-map-wrap { position:relative; border-radius:var(--r-xl); overflow:hidden; border:1px solid var(--bdr); cursor:pointer; max-width:1100px; margin:0 auto; }
#miniMap { height:340px; pointer-events:none; }
.mini-map-overlay { position:absolute; inset:0; background:linear-gradient(to right, transparent 40%, rgba(5,5,20,.85) 75%); display:flex; align-items:center; justify-content:flex-end; padding:40px; pointer-events:none; }
.mmo-content { text-align:right; pointer-events:auto; }
.mmo-content h3 { font-family:var(--ff-h); font-size:22px; font-weight:800; margin-bottom:6px; }
.mmo-content p  { font-size:13px; color:var(--t2); margin-bottom:16px; }
.mini-map-legend { display:flex; gap:16px; padding:10px 0; flex-wrap:wrap; max-width:1100px; margin:0 auto; }
.ml-item { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--t2); }
.ml-dot  { width:12px; height:12px; border-radius:50%; flex-shrink:0; }

/* Spotlight extras */
.spot-top-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.spot-rotate-hint { font-size:11px; color:var(--t3); font-family:var(--ff-m); }
.spot-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px; }

/* ════════════════════════════════════════════════════════════
   THIS DAY IN NUCLEAR HISTORY
   ════════════════════════════════════════════════════════════ */
.tdn-date { font-family:var(--ff-m); font-size:22px; font-weight:800; color:var(--a2); margin:6px 0; }
.tdn-body { max-width:1050px; margin:0 auto; padding:32px 40px 80px; display:flex; flex-direction:column; gap:32px; }
.tdn-sec-title { font-family:var(--ff-h); font-size:20px; font-weight:800; margin-bottom:18px; }
.tdn-events { display:flex; flex-direction:column; gap:0; }
.tdn-event { display:flex; gap:20px; padding:24px; border-bottom:1px solid var(--bdr); }
.tdn-event:first-child { border-top:1px solid var(--bdr); }
.tde-year { font-family:var(--ff-m); font-size:32px; font-weight:900; color:var(--a2); min-width:65px; flex-shrink:0; line-height:1; padding-top:4px; }
.tde-title { font-size:17px; font-weight:700; margin-bottom:6px; line-height:1.3; }
.tde-desc  { font-size:14px; color:var(--t2); line-height:1.7; }
.tde-tags  { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.tde-tag   { font-size:10px; }
.tdn-empty { padding:32px; text-align:center; background:var(--sur); border-radius:var(--r-xl); border:1px solid var(--bdr); color:var(--t2); }

.tdn-calendar { background:var(--sur); border:1px solid var(--bdr); border-radius:var(--r-xl); padding:24px; }
.tdn-cal-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:10px; margin-top:8px; }
.tdc-entry { background:var(--bg); border:1px solid var(--bdr); border-radius:var(--r); padding:12px; }
.tdc-today { border-color:var(--acc); background:color-mix(in srgb,var(--acc) 8%,var(--bg)); }
.tdc-date  { font-family:var(--ff-m); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--a2); margin-bottom:6px; }
.tdc-ev    { display:flex; gap:6px; align-items:baseline; }
.tdc-year  { font-family:var(--ff-m); font-size:11px; color:var(--t3); flex-shrink:0; }
.tdc-title { font-size:12px; color:var(--t2); line-height:1.35; }

/* ════════════════════════════════════════════════════════════
   NUCLEAR ECONOMICS
   ════════════════════════════════════════════════════════════ */
.econ-body { max-width:1050px; margin:0 auto; padding:28px 40px 80px; display:flex; flex-direction:column; gap:28px; }
.econ-sec  { background:var(--sur); border:1px solid var(--bdr); border-radius:var(--r-xl); padding:28px; }
.econ-title{ font-family:var(--ff-h); font-size:18px; font-weight:700; margin-bottom:20px; display:flex; align-items:baseline; gap:10px; }
.econ-unit { font-size:12px; font-weight:400; color:var(--t3); font-family:var(--ff-m); }
.econ-src  { font-size:11px; color:var(--t3); margin-top:14px; line-height:1.5; }

.econ-facts-strip { display:flex; flex-direction:column; gap:0; background:var(--sur); border:1px solid var(--bdr); border-radius:var(--r-xl); overflow:hidden; }
.efs-item { display:flex; gap:14px; align-items:flex-start; padding:16px 22px; border-bottom:1px solid var(--bdr); font-size:13px; color:var(--t2); line-height:1.55; }
.efs-item:last-child { border-bottom:none; }
.efs-icon { font-size:20px; flex-shrink:0; margin-top:1px; }

/* LCOE range chart */
.lcoe-chart { display:flex; flex-direction:column; gap:10px; }
.lcoe-row  { display:flex; align-items:center; gap:12px; }
.lcoe-src  { font-size:13px; color:var(--t2); min-width:200px; flex-shrink:0; }
.lcoe-bw   { flex:1; }
.lcoe-track{ position:relative; height:22px; background:var(--bg); border-radius:4px; }
.lcoe-range{ position:absolute; height:100%; border-radius:4px; opacity:.85; }
.lcoe-low, .lcoe-high { position:absolute; top:0; height:100%; width:2px; background:rgba(255,255,255,.5); }
.lcoe-vals { font-family:var(--ff-m); font-size:12px; color:var(--t2); white-space:nowrap; min-width:70px; }
.lcoe-axis { display:flex; justify-content:space-between; font-size:10px; color:var(--t3); font-family:var(--ff-m); padding-top:4px; }

/* Cost breakdown bar */
.cost-breakdown { display:flex; flex-direction:column; gap:16px; }
.cob-chart { display:flex; height:36px; border-radius:var(--r); overflow:hidden; position:relative; width:100%; }
.cob-bar   { position:absolute; top:0; height:100%; display:flex; align-items:center; justify-content:center; }
.cob-pct   { font-family:var(--ff-m); font-size:11px; font-weight:700; color:rgba(255,255,255,.9); }
.cob-legend{ display:flex; flex-direction:column; gap:8px; }
.cob-item  { display:flex; gap:10px; align-items:flex-start; }
.cob-dot   { width:12px; height:12px; border-radius:3px; flex-shrink:0; margin-top:3px; }
.cob-cat   { font-size:13px; font-weight:600; }
.cob-desc  { font-size:12px; color:var(--t2); line-height:1.5; }

/* Build costs table */
.build-table { display:flex; flex-direction:column; gap:1px; border-radius:var(--r); overflow:hidden; border:1px solid var(--bdr); }
.bt-head { display:grid; grid-template-columns:150px 100px 110px 100px 1fr; gap:0; padding:9px 12px; background:var(--bg); font-size:10px; font-weight:700; font-family:var(--ff-m); text-transform:uppercase; letter-spacing:.08em; color:var(--t3); }
.bt-row  { display:grid; grid-template-columns:150px 100px 110px 100px 1fr; gap:8px; padding:11px 12px; background:var(--sur); font-size:12px; border-top:1px solid var(--bdr); }
.bt-row:hover { background:var(--sur2); }
.bt-plant{ font-weight:600; font-size:13px; }
.bt-cost { font-family:var(--ff-m); font-weight:700; color:var(--a2); }
.bt-cpw  { font-family:var(--ff-m); font-size:11px; color:var(--t3); }
.bt-note { font-size:11px; color:var(--t2); line-height:1.4; }

/* Funding cards */
.funding-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.fund-card { background:var(--bg); border:1px solid var(--bdr); border-radius:var(--r); padding:16px; }
.fund-top  { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; margin-bottom:8px; }
.fund-name { font-size:14px; font-weight:700; line-height:1.3; }
.fund-country { font-size:11px; font-family:var(--ff-m); color:var(--a2); background:rgba(165,148,249,.1); padding:2px 8px; border-radius:20px; flex-shrink:0; }
.fund-desc { font-size:12px; color:var(--t2); line-height:1.55; margin-bottom:10px; }
.fund-pros-cons { display:flex; flex-direction:column; gap:4px; }
.fund-pro  { font-size:11px; color:#4ade80; font-family:var(--ff-m); }
.fund-con  { font-size:11px; color:#f87171; font-family:var(--ff-m); }
.econ-insight { border-left:4px solid var(--acc); }

/* ════════════════════════════════════════════════════════════
   SPACE + TREATIES + QUIZ CSS extras
   ════════════════════════════════════════════════════════════ */
.space-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:18px; padding:20px 40px 60px; }
.space-card { background:var(--sur); border:1px solid var(--bdr); border-top:3px solid var(--spcc,var(--acc)); border-radius:var(--r-xl); padding:22px; }
.sp-top    { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.sp-icon   { font-size:30px; }
.sp-cat    { font-size:10px; font-family:var(--ff-m); font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--t3); display:block; }
.sp-status { font-size:10px; font-family:var(--ff-m); font-weight:700; display:block; }
.sp-st-operational { color:#4ade80; }
.sp-st-development { color:#f4a261; }
.sp-st-historical  { color:#888; }
.sp-st-theoretical-early-research { color:#9d4edd; }
.sp-abbr   { font-family:var(--ff-m); font-size:18px; font-weight:800; color:var(--spcc,var(--acc)); margin-bottom:4px; }
.sp-name   { font-size:16px; font-weight:700; margin-bottom:6px; }
.sp-desc   { font-size:13px; color:var(--t2); line-height:1.6; margin-bottom:14px; }
.sp-toggle { font-size:12px; padding:6px 14px; }
.sp-tog-hide { display:none; }
.space-card.expanded .sp-tog-show { display:none; }
.space-card.expanded .sp-tog-hide { display:inline; }
.sp-expanded { display:none; margin-top:14px; padding-top:14px; border-top:1px solid var(--bdr); }
.space-card.expanded .sp-expanded { display:block; }
.sp-detail { font-size:13px; color:var(--t2); line-height:1.7; margin-bottom:14px; }
.sp-missions-title { font-size:11px; font-weight:700; font-family:var(--ff-m); text-transform:uppercase; letter-spacing:.08em; color:var(--t3); margin-bottom:6px; }
.sp-missions { list-style:none; display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.sp-missions li { font-size:12px; color:var(--t2); display:flex; gap:6px; }
.sp-missions li::before { content:'→'; color:var(--a2); flex-shrink:0; }
.sp-funfact { display:flex; gap:10px; background:var(--bg); border-radius:var(--r); padding:12px; font-size:12px; color:var(--t2); line-height:1.55; }

.treaty-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:18px; padding:28px 40px 60px; }
.treaty-card { background:var(--sur); border:1px solid var(--bdr); border-top:3px solid var(--tc,var(--acc)); border-radius:var(--r-xl); padding:22px; text-decoration:none; color:inherit; display:flex; flex-direction:column; gap:7px; transition:all .2s; }
.treaty-card:hover { transform:translateY(-3px); box-shadow:0 12px 36px rgba(0,0,0,.3); border-color:var(--tc,var(--acc)); }
.tc-top    { display:flex; align-items:center; justify-content:space-between; }
.tc-icon   { font-size:28px; }
.tc-status { font-size:10px; font-weight:700; font-family:var(--ff-m); padding:2px 8px; border-radius:20px; border:1px solid currentColor; }
.tc-st-active   { color:#4ade80; }
.tc-st-suspended{ color:#f87171; }
.tc-st-pending  { color:#f4a261; }
.tc-abbr   { font-family:var(--ff-m); font-size:20px; font-weight:800; color:var(--tc,var(--acc)); }
.tc-name   { font-size:14px; font-weight:700; line-height:1.35; }
.tc-meta   { display:flex; gap:14px; font-size:11px; color:var(--t3); font-family:var(--ff-m); }
.tc-desc   { font-size:13px; color:var(--t2); line-height:1.6; flex:1; }

/* Quiz */
.quiz-wrap { max-width:680px; margin:0 auto; padding:28px 20px 80px; }
.quiz-screen { }
.quiz-start-card { background:var(--sur); border:1px solid var(--bdr); border-radius:var(--r-xl); padding:40px; text-align:center; }
.quiz-start-card h2 { font-family:var(--ff-h); font-size:24px; font-weight:800; margin-bottom:8px; }
.quiz-start-card p  { font-size:14px; color:var(--t2); margin-bottom:18px; }
.quiz-meta-pills { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:24px; }
.qm-pill { background:var(--bg); border:1px solid var(--bdr); border-radius:20px; padding:4px 12px; font-size:12px; font-family:var(--ff-m); }
.quiz-progress-bar { height:4px; background:var(--sur2); border-radius:2px; margin-bottom:20px; }
.quiz-pb-fill { height:100%; background:linear-gradient(90deg,var(--acc),var(--a2)); border-radius:2px; transition:width .4s ease; }
.quiz-q-card { background:var(--sur); border:1px solid var(--bdr); border-radius:var(--r-xl); padding:28px; }
.quiz-q-meta { display:flex; justify-content:space-between; font-size:12px; color:var(--t3); font-family:var(--ff-m); margin-bottom:14px; }
.quiz-question { font-family:var(--ff-h); font-size:20px; font-weight:700; margin-bottom:20px; line-height:1.4; }
.quiz-opts { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.quiz-opt { background:var(--bg); border:1px solid var(--bdr); border-radius:var(--r); padding:12px 16px; font-size:14px; color:var(--tx); cursor:pointer; text-align:left; transition:all .15s; font-family:var(--ff-b); }
.quiz-opt:hover:not(:disabled) { border-color:var(--acc); background:var(--sur2); }
.quiz-opt.correct  { border-color:#4ade80; background:rgba(74,222,128,.1); color:#4ade80; }
.quiz-opt.wrong    { border-color:#f87171; background:rgba(248,113,113,.1); color:#f87171; }
.quiz-explanation  { background:var(--bg); border:1px solid var(--bdr); border-radius:var(--r); padding:14px; font-size:13px; color:var(--t2); line-height:1.6; margin-bottom:14px; }
.exp-correct { color:#4ade80; font-weight:700; margin-right:6px; }
.exp-wrong   { color:#f87171; font-weight:700; margin-right:6px; }
.quiz-next  { width:100%; }
.quiz-result-card { background:var(--sur); border:1px solid var(--bdr); border-radius:var(--r-xl); padding:36px; text-align:center; }
.quiz-result-emoji { font-size:56px; margin-bottom:10px; }
.quiz-result-title { font-family:var(--ff-h); font-size:26px; font-weight:800; margin-bottom:6px; }
.quiz-result-score { font-family:var(--ff-m); font-size:48px; font-weight:900; color:var(--a2); margin:10px 0; }
.quiz-result-sub   { font-size:14px; color:var(--t2); margin-bottom:18px; }
.quiz-wrong-list   { text-align:left; margin:16px 0; max-height:320px; overflow-y:auto; }
.quiz-wrong-list h4{ font-size:12px; color:var(--t3); font-family:var(--ff-m); text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; }
.wrong-item { background:var(--bg); border:1px solid var(--bdr); border-radius:var(--r); padding:12px; margin-bottom:8px; }
.wi-q  { font-size:13px; font-weight:600; margin-bottom:4px; }
.wi-a  { font-size:12px; color:#4ade80; font-family:var(--ff-m); margin-bottom:4px; }
.wi-exp{ font-size:12px; color:var(--t2); line-height:1.5; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE ADDITIONS
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .home-two-col { grid-template-columns:1fr; }
  .build-table  { overflow-x:auto; }
  .bt-head, .bt-row { grid-template-columns:140px 85px 100px 90px 1fr; font-size:11px; }
}
@media (max-width: 767px) {
  .tdn-body  { padding:16px 16px 60px; }
  .tdn-event { padding:16px; gap:12px; }
  .tde-year  { font-size:22px; min-width:48px; }
  .econ-body { padding:16px 16px 60px; }
  .econ-sec  { padding:18px; }
  .bt-head, .bt-row { grid-template-columns:1fr 1fr; }
  .bt-cpw, .bt-note { display:none; }
  .space-grid  { padding:16px; grid-template-columns:1fr; }
  .treaty-grid { padding:16px; grid-template-columns:1fr; }
  .mini-map-wrap #miniMap { height:240px; }
  .lcoe-src  { min-width:130px; font-size:11px; }
}

/* ════════════════════════════════════════════════════════════
   PROFILE — ENHANCED
   ════════════════════════════════════════════════════════════ */
.profile-page { padding-top: 56px; min-height: 100vh; }

/* Hero */
.prof-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--bdr); }
.prof-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.prof-hero-in { position: relative; max-width: 900px; margin: 0 auto; padding: 40px; }

/* Avatar */
.prof-av-wrap { position: relative; flex-shrink: 0; }
.prof-av { width: 88px; height: 88px; border-radius: 50%; display: block; position: relative; z-index: 1; }
.prof-av-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 3px solid transparent; z-index: 0;
}
.ring-owner  { border-color: #f4d35e; box-shadow: 0 0 16px #f4d35e60; }
.ring-admin  { border-color: #4ade80; box-shadow: 0 0 16px #4ade8060; }
.ring-member { border-color: var(--acc); }
.ring-guest  { border-color: var(--bdr2); }
.prof-crown {
  position: absolute; bottom: -4px; right: -4px;
  font-size: 18px; z-index: 2;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
}

/* Info */
.prof-top      { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.prof-info     { flex: 1; }
.prof-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.prof-name     { font-family: var(--ff-h); font-size: 28px; font-weight: 900; }
.prof-sub      { font-size: 12px; color: var(--t3); font-family: var(--ff-m); }
.prof-guild    { font-size: 12px; color: #4ade80; margin-top: 3px; }
.prof-guild-no { font-size: 12px; color: var(--t3); margin-top: 3px; }
.prof-guild-no a { color: var(--a2); }
.prof-joined   { font-size: 11px; color: var(--t3); margin-top: 4px; font-family: var(--ff-m); }

/* Stats row */
.prof-stats-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px; padding: 16px 0;
  border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr);
}
.pstat {
  display: flex; flex-direction: column; align-items: center;
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r); padding: 10px 18px; min-width: 80px;
}
.pstat-n { font-family: var(--ff-m); font-size: 22px; font-weight: 800; color: var(--a2); line-height: 1; }
.pstat-l { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .08em; font-family: var(--ff-m); margin-top: 3px; }
.pstat-special .pstat-n { color: #7c6af4; }
.pstat-danger .pstat-n  { color: #e63946; }

/* Action buttons */
.prof-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ban-btn-link { border-color: #e6394660 !important; color: #f87171 !important; }
.ban-btn-link:hover { background: rgba(230,57,70,.1) !important; border-color: #e63946 !important; }
.prof-logout { opacity: .7; }

/* Body sections */
.prof-body { max-width: 900px; margin: 0 auto; padding: 28px 40px 80px; display: flex; flex-direction: column; gap: 0; }
.prof-sec {
  padding: 28px 0; border-bottom: 1px solid var(--bdr);
}
.prof-sec:last-child { border-bottom: none; }
.prof-sec-title { font-family: var(--ff-h); font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.prof-sec-sub { font-size: 13px; color: var(--t2); margin-bottom: 16px; line-height: 1.55; }
.prof-empty { font-size: 13px; color: var(--t3); font-style: italic; }
.admin-sec { background: var(--bg2); margin: 0 -40px; padding: 28px 40px; border-radius: 0; border-bottom: 1px solid var(--bdr); }

/* ── Badges ───────────────────────────────────────────────── */
.badges-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px;
}
.badge-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 5px; padding: 16px 10px;
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r-xl); transition: all .2s;
}
.badge-item:not(.badge-locked) { border-color: var(--acc); box-shadow: 0 0 12px rgba(124,106,244,.12); }
.badge-locked { opacity: .35; filter: grayscale(1); }
.badge-icon { font-size: 28px; }
.badge-name { font-size: 12px; font-weight: 700; }
.badge-desc { font-size: 11px; color: var(--t3); font-family: var(--ff-m); }

/* ── Feedback history ─────────────────────────────────────── */
.fb-history { display: flex; flex-direction: column; gap: 10px; }
.fb-item {
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r); padding: 14px 16px;
  border-left: 3px solid var(--bdr2);
}
.fb-item-suggestion { border-left-color: #7c6af4; }
.fb-item-bug        { border-left-color: #e63946; }
.fb-item-feedback   { border-left-color: #4ade80; }
.fb-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fb-item-type { font-size: 12px; font-weight: 700; font-family: var(--ff-m); color: var(--t2); }
.fb-item-date { font-size: 11px; color: var(--t3); font-family: var(--ff-m); }
.fb-item-msg  { font-size: 13px; color: var(--t2); line-height: 1.55; }

/* ── Admin inbox ──────────────────────────────────────────── */
.inbox-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--acc); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 20px; padding: 1px 8px; margin-left: 6px; font-family: var(--ff-m);
}
.inbox-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.inf-btn {
  font-size: 12px; font-family: var(--ff-m); font-weight: 600;
  padding: 5px 14px; border-radius: 20px; border: 1px solid var(--bdr);
  background: var(--sur); color: var(--t2); cursor: pointer; transition: all .15s;
}
.inf-btn.active, .inf-btn:hover { background: var(--acc); border-color: var(--acc); color: #fff; }

.inbox-list { display: flex; flex-direction: column; gap: 8px; }
.inbox-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r); padding: 14px;
  transition: opacity .2s;
}
.inbox-item.read { opacity: .6; }
.inbox-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.inbox-item-body { flex: 1; min-width: 0; }
.inbox-item-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.inbox-username { font-size: 13px; font-weight: 700; }
.inbox-type-pill {
  font-size: 10px; font-weight: 700; font-family: var(--ff-m);
  padding: 1px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em;
}
.inbox-tp-suggestion { background: rgba(124,106,244,.15); color: #7c6af4; }
.inbox-tp-bug        { background: rgba(230,57,70,.15);   color: #e63946; }
.inbox-tp-feedback   { background: rgba(74,222,128,.15);  color: #4ade80; }
.inbox-date { font-size: 11px; color: var(--t3); font-family: var(--ff-m); }
.inbox-unread-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--acc);
  display: inline-block; flex-shrink: 0;
}
.inbox-msg { font-size: 13px; color: var(--t2); line-height: 1.55; word-break: break-word; }
.inbox-item-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.inbox-read-btn {
  font-size: 11px; font-family: var(--ff-m); font-weight: 600;
  padding: 4px 10px; border-radius: var(--r); border: 1px solid var(--bdr);
  background: var(--sur); color: var(--t2); cursor: pointer; transition: all .15s; white-space: nowrap;
}
.inbox-read-btn:hover { border-color: var(--acc); color: var(--acc); }
.inbox-del-btn {
  font-size: 14px; padding: 4px 8px; border-radius: var(--r);
  border: 1px solid var(--bdr); background: var(--sur); cursor: pointer;
  transition: all .15s;
}
.inbox-del-btn:hover { background: rgba(230,57,70,.1); border-color: #e63946; }
.unban-btn { border-color: rgba(74,222,128,.4) !important; color: #4ade80 !important; }
.unban-btn:hover { background: rgba(74,222,128,.1) !important; border-color: #4ade80 !important; }

/* ── Ban Manager ──────────────────────────────────────────── */
.ban-sec { border-top: 2px solid rgba(230,57,70,.3); }
.ban-form-wrap {
  background: rgba(230,57,70,.05); border: 1px solid rgba(230,57,70,.2);
  border-radius: var(--r-xl); padding: 22px; margin-bottom: 8px;
}
.ban-form-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--t2); }
.ban-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px;
}
.ban-field-full { grid-column: 1 / -1; }
.ban-label { font-size: 11px; font-weight: 700; font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .08em; color: var(--t3); display: block; margin-bottom: 5px; }
.ban-req { color: #e63946; }
.ban-input {
  width: 100%; background: var(--bg); border: 1px solid var(--bdr);
  border-radius: var(--r); padding: 9px 12px; font-size: 13px;
  color: var(--tx); font-family: var(--ff-b); box-sizing: border-box;
  transition: border-color .15s;
}
.ban-input:focus { outline: none; border-color: #e63946; }
.ban-form-actions { display: flex; align-items: center; gap: 12px; }
.btn-danger {
  background: #e63946; color: #fff; border: none;
  padding: 10px 20px; border-radius: var(--r); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--ff-b); transition: all .15s;
}
.btn-danger:hover { background: #c1121f; }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }
.ban-status { font-size: 12px; font-family: var(--ff-m); }
.ban-status.ok  { color: #4ade80; }
.ban-status.err { color: #f87171; }

.ban-list { display: flex; flex-direction: column; gap: 8px; }
.ban-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(230,57,70,.05); border: 1px solid rgba(230,57,70,.2);
  border-radius: var(--r); padding: 14px;
}
.ban-item-left { flex-shrink: 0; }
.ban-item-body { flex: 1; }
.ban-item-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.ban-item-name { font-size: 14px; font-weight: 700; }
.ban-item-id   { font-size: 11px; color: var(--t3); background: var(--sur); padding: 1px 6px; border-radius: 4px; }
.ban-item-reason { font-size: 12px; color: var(--t2); line-height: 1.5; margin-bottom: 3px; }
.ban-item-by   { font-size: 11px; color: var(--t3); font-family: var(--ff-m); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .prof-hero-in { padding: 24px 16px; }
  .prof-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .prof-body { padding: 16px 16px 60px; }
  .admin-sec { margin: 0 -16px; padding: 20px 16px; }
  .badges-grid { grid-template-columns: repeat(3, 1fr); }
  .ban-form-grid { grid-template-columns: 1fr; }
  .inbox-item { flex-direction: column; }
  .inbox-item-actions { flex-direction: row; }
}

/* ════════════════════════════════════════════════════════════
   PROFILE — NEW ADDITIONS
   ════════════════════════════════════════════════════════════ */

/* Unread badge dot on nav button */
.prof-badge-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: #e63946; color: #fff;
  font-size: 10px; font-weight: 800; font-family: var(--ff-m);
  border-radius: 9px; margin-left: 4px; line-height: 1;
}

/* Warn stat pill */
.pstat-warn .pstat-n { color: #f4d35e; }

/* Session card */
.session-card {
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r-xl); overflow: hidden;
}
.sess-rows { display: flex; flex-direction: column; }
.sess-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 16px; padding: 12px 20px;
  border-bottom: 1px solid var(--bdr);
  align-items: center; font-size: 13px;
}
.sess-row:last-child { border-bottom: none; }
.sess-k { color: var(--t3); font-family: var(--ff-m); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.sess-v { font-weight: 500; color: var(--tx); }
.sess-actions {
  padding: 14px 20px; background: var(--bg);
  border-top: 1px solid var(--bdr);
  display: flex; gap: 10px;
}

/* My submissions */
.my-subs-list { display: flex; flex-direction: column; gap: 10px; }
.my-sub-item {
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.my-sub-header { display: flex; align-items: center; gap: 10px; }
.my-sub-date { font-size: 11px; color: var(--t3); font-family: var(--ff-m); margin-left: auto; }
.my-sub-msg { font-size: 13px; color: var(--t2); line-height: 1.6; }

/* Inbox extras */
.inbox-uid { font-size: 10px; color: var(--t3); padding: 1px 5px; background: var(--bg); border-radius: 3px; border: 1px solid var(--bdr); }
.inbox-unread-badge { font-size: 11px; font-weight: 700; color: #f4d35e; background: rgba(244,211,94,.12); padding: 2px 8px; border-radius: 20px; margin-left: 6px; }
.inbox-ban-btn {
  background: rgba(230,57,70,.12); border: 1px solid rgba(230,57,70,.3);
  color: #e63946; border-radius: var(--r); padding: 4px 9px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: all .15s; font-family: var(--ff-m);
}
.inbox-ban-btn:hover { background: rgba(230,57,70,.22); border-color: #e63946; }

/* Site stats KPI grid */
.stats-kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 12px; margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg); border: 1px solid var(--bdr);
  border-radius: var(--r); padding: 16px 14px; text-align: center;
}
.kpi-card.kpi-danger { border-color: rgba(230,57,70,.3); }
.kpi-val { font-family: var(--ff-m); font-size: 32px; font-weight: 900; color: var(--a2); line-height: 1; margin-bottom: 4px; }
.kpi-danger .kpi-val { color: #e63946; }
.kpi-label { font-size: 11px; color: var(--t3); font-family: var(--ff-m); }

/* Activity chart */
.stats-sub-title { font-size: 13px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; font-family: var(--ff-m); }
.activity-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 100px; padding: 8px 0 24px;
  position: relative;
}
.act-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  position: relative; height: 100%;
}
.act-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.act-bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s ease; }
.act-label {
  position: absolute; bottom: -20px;
  font-size: 9px; color: var(--t3); white-space: nowrap;
  transform: rotate(-40deg); transform-origin: top center;
  font-family: var(--ff-m);
}
.act-count {
  position: absolute; top: -16px;
  font-size: 9px; font-weight: 700; color: var(--a2);
  font-family: var(--ff-m);
}

/* Ban manager extras */
.ban-tip {
  background: rgba(124,106,244,.08); border: 1px solid rgba(124,106,244,.2);
  border-radius: var(--r); padding: 10px 14px;
  font-size: 13px; color: var(--t2); margin-bottom: 16px;
  display: flex; gap: 8px; align-items: flex-start; line-height: 1.5;
}
.ban-field-hint { font-size: 11px; color: var(--t3); margin-top: 4px; line-height: 1.4; display: block; }
.ban-label-opt { font-weight: 400; color: var(--t3); font-size: 11px; }
.ban-presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ban-presets-label { font-size: 11px; color: var(--t3); font-family: var(--ff-m); flex-shrink: 0; }
.ban-preset {
  font-size: 11px; padding: 4px 10px;
  background: var(--bg); border: 1px solid var(--bdr);
  border-radius: 20px; color: var(--t2); cursor: pointer;
  transition: all .15s; font-family: var(--ff-m);
}
.ban-preset:hover { border-color: #e63946; color: #e63946; background: rgba(230,57,70,.08); }
.ban-list-header { margin-top: 32px; }
.ban-av { border: 2px solid rgba(230,57,70,.4); }

/* Banned page full improvement */
.banned-logout-info {
  font-size: 12px; color: var(--t3); margin-top: 6px; line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — PROFILE ADDITIONS
   ════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .sess-row { grid-template-columns: 1fr; gap: 3px; }
  .sess-k { font-size: 10px; }
  .stats-kpi-grid { grid-template-columns: repeat(3,1fr); }
  .activity-chart { gap: 3px; }
  .act-label { font-size: 8px; }
  .ban-presets { gap: 4px; }
}

/* ════════════════════════════════════════════════════════════
   CHEMHUB — FEATURE BANNER ON HOME
   ════════════════════════════════════════════════════════════ */
.home-sec-alt { background: linear-gradient(180deg, transparent, rgba(74,222,128,.04), transparent); }

.chem-feature-banner {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 40px; max-width: 1100px; margin: 0 auto;
  align-items: center;
}
.cfb-tag {
  display: inline-block; font-size: 10px; font-weight: 800;
  font-family: var(--ff-m); text-transform: uppercase; letter-spacing: .12em;
  background: rgba(74,222,128,.15); border: 1px solid rgba(74,222,128,.3);
  color: #4ade80; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.cfb-title {
  font-family: var(--ff-h); font-size: clamp(24px,3.5vw,40px);
  font-weight: 900; line-height: 1.1; margin-bottom: 12px;
}
.cfb-sub {
  font-size: 14px; color: var(--t2); line-height: 1.7;
  max-width: 520px; margin-bottom: 14px;
}
.cfb-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cfb-pill {
  font-size: 11px; font-family: var(--ff-m);
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: 20px; padding: 4px 10px; color: var(--t2);
}

/* Mini PT preview */
.cfb-right { display: flex; justify-content: center; align-items: center; }
.cfb-pt-preview {
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r-xl); padding: 16px 14px;
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; max-width: 300px;
}
.cfb-pt-row { display: flex; gap: 3px; }
.cfb-cell {
  flex: 1; aspect-ratio: 1; max-width: 30px;
  background: var(--bg); border: 1px solid var(--bdr);
  border-top: 2px solid var(--cc, #adb5bd);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; font-family: var(--ff-h);
  color: var(--cc, var(--t2)); cursor: default;
  transition: transform .15s;
}
.cfb-cell:hover { transform: scale(1.15); z-index: 2; }
.cfb-spacer { flex: 1; max-width: 30px; }
.cfb-tm-row { flex-wrap: nowrap; }
.cfb-label {
  flex: 2; font-size: 9px; color: var(--t3); font-family: var(--ff-m);
  display: flex; align-items: center; gap: 4px; padding-left: 4px;
}
.cfb-special { align-items: center; gap: 6px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--bdr); }

/* ex-card-featured styling */
.ex-card-featured {
  border: 1px solid rgba(74,222,128,.3) !important;
  background: rgba(74,222,128,.06) !important;
  position: relative;
}
.ex-card-featured::after {
  content: 'NEW';
  position: absolute; top: 6px; right: 6px;
  font-size: 8px; font-weight: 800; font-family: var(--ff-m);
  background: rgba(74,222,128,.2); color: #4ade80;
  padding: 1px 5px; border-radius: 3px; letter-spacing: .08em;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — CHEMHUB BANNER
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .chem-feature-banner { grid-template-columns: 1fr; gap: 24px; }
  .cfb-right { display: none; }
}

/* ════════════════════════════════════════════════════════════
   CHEMHUB NAV DROPDOWN
   ════════════════════════════════════════════════════════════ */

/* ChemHub button gets a subtle green tint */
.nav-chem-btn {
  color: #4ade80 !important;
  position: relative;
}
.nav-chem-btn::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #4ade80, #22d3ee);
  border-radius: 2px;
  opacity: 0;
  transition: opacity .2s;
}
.nav-chem:hover .nav-chem-btn::after,
.nav-chem-btn.active::after { opacity: 1; }

/* ChemHub dropdown - wider, green accented */
.nav-chem-drop {
  width: 260px !important;
  border-top: 2px solid #4ade80 !important;
}
.nmd-chem-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--bdr);
  margin-bottom: 4px;
}
.nmd-item-home {
  font-weight: 700 !important;
  color: var(--tx) !important;
}
.nmd-item-home:hover { background: rgba(74,222,128,.1) !important; }
.nmd-divider { height: 1px; background: var(--bdr); margin: 4px 0; }

/* ChemHub mobile group accent */
.drawer-group-chem { border-top: 1px solid rgba(74,222,128,.25); }
.dgt-chem { color: #4ade80 !important; }
.dgt-chem .dgt-arrow { color: #4ade80; }
.drawer-group-chem .drawer-group-body { background: rgba(74,222,128,.03); }

/* ══════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ══════════════════════════════════════════════════════════ */
.nav-lang {
  position: relative;
}
.nav-lang-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 9px; border-radius: 8px;
  background: var(--sur); border: 1px solid var(--bdr);
  color: var(--t2); font-size: 14px; cursor: pointer;
  transition: all .15s;
}
.nav-lang-btn:hover { background: var(--sur2); color: var(--tx); border-color: var(--a2); }
.nav-lang-drop {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--nav); border: 1px solid var(--bdr);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  min-width: 160px; padding: 6px;
  display: none; flex-direction: column;
  z-index: 1002;
}
.nav-lang-drop.open { display: flex; }
.lang-opt { display: flex; align-items: center; justify-content: space-between; }
.lang-active { background: rgba(99,179,255,.1); color: var(--a2) !important; }
.lang-check { font-size: 10px; color: var(--a2); }

/* Drawer lang row */
.drawer-lang-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-top: 1px solid var(--bdr);
}
.drawer-lang-label { font-size: 12px; color: var(--t3); flex-shrink: 0; font-family: var(--ff-m); }
.drawer-lang-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.drawer-lang-opt {
  font-size: 18px; padding: 2px 4px; border-radius: 4px;
  border: 1px solid transparent; transition: border-color .15s;
  text-decoration: none;
}
.drawer-lang-opt:hover { border-color: var(--a2); }
.dlang-active { border-color: var(--a2) !important; background: rgba(99,179,255,.1); }

/* ══════════════════════════════════════════════════════════
   PHYSICSHUB NAV DROPDOWN
   ══════════════════════════════════════════════════════════ */
.nav-phys-btn {
  color: #a78bfa !important;
}
.nav-phys-btn::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
  border-radius: 2px; opacity: 0; transition: opacity .2s;
}
.nav-phys:hover .nav-phys-btn::after,
.nav-phys-btn.active::after { opacity: 1; }

.nav-phys-drop {
  width: 230px !important;
  border-top: 2px solid #a78bfa !important;
}
.nmd-phys-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--bdr);
  margin-bottom: 4px;
}
.nmd-item-phys {
  font-weight: 700 !important; color: var(--tx) !important;
}
.nmd-item-phys:hover { background: rgba(167,139,250,.1) !important; }

/* PhysicsHub mobile group */
.drawer-group-phys { border-top: 1px solid rgba(167,139,250,.25); }
.dgt-phys { color: #a78bfa !important; }
.dgt-phys .dgt-arrow { color: #a78bfa; }
.drawer-group-phys .drawer-group-body { background: rgba(167,139,250,.03); }

/* ══════════════════════════════════════════════════════════
   PROFILE — ACHIEVEMENTS
   ══════════════════════════════════════════════════════════ */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.ach-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r);
  transition: border-color .15s;
}
.ach-earned {
  border-left: 3px solid var(--a2);
  background: rgba(99,179,255,.04);
}
.ach-locked {
  opacity: .5;
  filter: grayscale(.6);
}
.ach-icon { font-size: 24px; flex-shrink: 0; }
.ach-info { flex: 1; }
.ach-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.ach-desc { font-size: 11px; color: var(--t3); line-height: 1.4; }
.ach-status { font-size: 14px; flex-shrink: 0; }
.ach-earned .ach-status { color: var(--a2); }

.ach-progress-bar {
  height: 6px; background: var(--bdr); border-radius: 3px; overflow: hidden;
}
.ach-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--a2), #4ade80);
  border-radius: 3px;
  transition: width .4s ease;
}

/* ══════════════════════════════════════════════════════════
   PROFILE — PREFERENCES
   ══════════════════════════════════════════════════════════ */
.pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pref-card {
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r-xl); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.pref-card-wide { grid-column: 1 / -1; }
.pref-card-title {
  font-family: var(--ff-h); font-size: 16px; font-weight: 800;
}
.pref-card-desc { font-size: 12px; color: var(--t2); line-height: 1.6; }

/* Language picker in profile */
.lang-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.lang-pick-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--r);
  border: 1px solid var(--bdr); background: var(--bg);
  text-decoration: none; color: var(--t2);
  font-size: 13px; transition: all .15s;
}
.lang-pick-btn:hover { border-color: var(--a2); color: var(--tx); }
.lang-pick-active {
  border-color: var(--a2) !important;
  background: rgba(99,179,255,.1) !important;
  color: var(--a2) !important;
}
.lpb-flag { font-size: 18px; }
.lpb-name { flex: 1; font-size: 12px; font-weight: 600; }
.lpb-check { font-size: 12px; color: var(--a2); }

/* Theme picker buttons */
.theme-pick-btn {
  padding: 8px 18px; border-radius: var(--r);
  border: 1px solid var(--bdr); background: var(--bg);
  color: var(--t2); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.theme-pick-btn:hover { border-color: var(--a2); color: var(--tx); }

/* Explore tracker */
.explore-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.et-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--r);
  border: 1px solid var(--bdr); background: var(--bg);
  text-decoration: none; color: var(--t2);
  font-size: 12px; transition: all .15s;
}
.et-item:hover { border-color: var(--a2); color: var(--tx); transform: translateX(2px); }
.et-icon { font-size: 16px; flex-shrink: 0; }
.et-name { flex: 1; }
.et-arrow { font-size: 11px; color: var(--t3); transition: color .15s; }
.et-item:hover .et-arrow { color: var(--a2); }

/* Add achievements/preferences to profile action buttons */
.prof-actions a[href="#achievements"],
.prof-actions a[href="#preferences"] {
  /* handled by generic .btn-o */
}
