/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0c0f;
  --bg2:       #111318;
  --bg3:       #181c23;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.14);
  --text:      #e8e6df;
  --muted:     #6b6f7a;
  --muted2:    #9297a3;
  --amber:     #e8a020;
  --amber-d:   #b07a14;
  --red:       #d94f3d;
  --red-d:     #a3302a;
  --green:     #3db87a;
  --green-d:   #266e49;
  --blue:      #4a9ede;
  --blue-d:    #2a6494;
  --nav-bg:    rgba(10,12,15,0.92);
  --hover-bg:  rgba(255,255,255,0.02);
  --fill-bg:   rgba(255,255,255,0.08);
  --fill-bg2:  rgba(255,255,255,0.06);
  --grid-c:    rgba(255,255,255,0.06);
  --tick-c:    #6b6f7a;
  --ff-head:   'Syne', sans-serif;
  --ff-body:   'DM Sans', sans-serif;
  --ff-mono:   'DM Mono', monospace;
}
:root[data-theme="light"] {
  --bg:        #f4f6f8;
  --bg2:       #ffffff;
  --bg3:       #eef0f3;
  --border:    rgba(0,0,0,0.08);
  --border2:   rgba(0,0,0,0.15);
  --text:      #1a1d24;
  --muted:     #767b86;
  --muted2:    #555a66;
  --amber:     #d98214;
  --amber-d:   #a86007;
  --red:       #d13b29;
  --red-d:     #a3302a;
  --green:     #2e9e63;
  --green-d:   #1f6e43;
  --blue:      #3385c6;
  --blue-d:    #225d8e;
  --nav-bg:    rgba(255,255,255,0.92);
  --hover-bg:  rgba(0,0,0,0.02);
  --fill-bg:   rgba(0,0,0,0.08);
  --fill-bg2:  rgba(0,0,0,0.06);
  --grid-c:    rgba(0,0,0,0.06);
  --tick-c:    #767b86;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Scanline texture ───────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────── */
.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ── Nav ─────────────────────────────────────────────  */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.nav-brand {
  font-family: var(--ff-head);
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

.nav-links { 
  display: flex; gap: 20px; 
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none; 
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 12px; letter-spacing: .04em; color: var(--muted2);
  transition: color .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active-year { color: var(--amber); font-weight: 700; border-bottom: 2px solid var(--amber); padding-bottom: 4px; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle {
  background: transparent; border: 0.5px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 4px 8px;
  cursor: pointer; font-size: 12px; transition: .2s;
}
.theme-toggle:hover { border-color: var(--border2); }
.nav-meta { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); display: none; }

@media (min-width: 768px) {
  .site-wrap, .nav-inner { padding: 0 24px; }
  .nav-inner { flex-wrap: nowrap; }
  .nav-meta { display: block; }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  padding: 72px 0 56px;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '7.4';
  position: absolute; right: -20px; top: 20px;
  font-family: var(--ff-head); font-size: 280px; font-weight: 800;
  color: rgba(232,160,32,0.04);
  line-height: 1; pointer-events: none; user-select: none;
}
.hero-tag {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--amber); margin-bottom: 18px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--ff-head); font-size: clamp(32px,5vw,62px); font-weight: 800;
  line-height: 1.08; letter-spacing: -.02em; color: var(--text);
  margin-bottom: 20px; max-width: 960px;
}
.hero h1 span { color: var(--amber); }
.hero-sub {
  max-width: 580px; font-size: 16px; color: var(--muted2); line-height: 1.7;
  margin-bottom: 36px;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .04em;
  padding: 6px 14px; border: 0.5px solid var(--border2);
  border-radius: 20px; color: var(--muted2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; }

/* ── FAY RİSK SIRALAMASI ──────────────────────────────────── */
.fault-ranking-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 24px;
}
.fault-rank-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  position: relative; overflow: hidden; transition: transform 0.2s, border-color 0.2s;
}
.fault-rank-item:hover { transform: translateY(-2px); border-color: var(--amber); }
.fault-rank-num { font-size: 24px; font-weight: 800; color: var(--muted); min-width: 32px; text-align: center; }
.fault-rank-info { flex: 1; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.fault-rank-name { font-size: 16px; font-weight: 600; color: var(--text); }
.fault-rank-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; }
.fault-rank-prob { font-size: 20px; font-family: var(--ff-mono); font-weight: 600; z-index: 1; min-width: 70px; text-align: right; }
.fault-rank-bar-bg { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--bg3); }
.fault-rank-bar-fill { height: 100%; background: var(--red); transition: width 1s ease-out; }

/* ── Section Titles ─────────────────────────────────── */
.section { padding: 56px 0; border-bottom: 0.5px solid var(--border); }
.section:last-child { border-bottom: none; }

.sec-eyebrow {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--amber); text-transform: uppercase; margin-bottom: 8px;
}
.sec-title {
  font-family: var(--ff-head); font-size: clamp(22px,3vw,32px); font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 6px;
}
.sec-desc { color: var(--muted2); font-size: 14px; max-width: 600px; line-height: 1.7; }

/* ── KPI Grid ─────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin: 32px 0;
}
.kpi-card {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  transition: border-color .2s;
}
.kpi-card:hover { border-color: var(--border2); }
.kpi-label { font-size: 11px; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; }
.kpi-val { font-family: var(--ff-head); font-size: 32px; font-weight: 700; line-height: 1; }
.kpi-sub { font-size: 12px; color: var(--muted2); margin-top: 4px; }

/* ── Live Data Table ─────────────────────────────── */
.live-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-bottom: 16px;
}
.live-badge {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-size: 11px; color: var(--red);
}
.refresh-btn {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .04em;
  background: transparent; border: 0.5px solid var(--border2);
  color: var(--muted2); padding: 6px 14px; border-radius: 6px;
  cursor: pointer; transition: all .2s;
}
.refresh-btn:hover { border-color: var(--amber); color: var(--amber); }

.filter-btn {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .04em;
  background: var(--bg2); border: 0.5px solid var(--border2);
  color: var(--muted2); padding: 6px 14px; border-radius: 6px;
  cursor: pointer; transition: all .2s;
}
.filter-btn.active { border-color: var(--amber); color: var(--amber); background: rgba(232,160,32,0.1); }
.filter-btn:hover:not(.active) { border-color: var(--muted); color: var(--text); }
.theme-toggle {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 4px; border-radius: 6px; transition: all .2s;
}
.theme-toggle:hover { color: var(--text); background: var(--bg3); }

html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }
html:not([data-theme="light"]) .icon-sun { display: block; }
html:not([data-theme="light"]) .icon-moon { display: none; }

/* ── Akordion & Scroll ────────────────────────────────────────── */
.collapsible-panel {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  opacity: 1;
}
.collapsible-panel.collapsed {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  overflow: hidden;
}
.collapsible-panel::-webkit-scrollbar { width: 6px; height: 6px; }
.collapsible-panel::-webkit-scrollbar-track { background: var(--bg); border-radius: 3px; }
.collapsible-panel::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }
.collapsible-panel thead th { position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 var(--border2); }

.quake-table-wrap { overflow-x: auto; border-radius: 12px; border: 0.5px solid var(--border); }
table {
  width: 100%; border-collapse: collapse;
  font-size: 13px; font-family: var(--ff-mono);
}
thead tr { border-bottom: 0.5px solid var(--border2); }
th {
  padding: 12px 16px; text-align: left;
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--bg3); font-weight: 500;
}
td { padding: 11px 16px; border-bottom: 0.5px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--hover-bg); }

.mag-badge {
  display: inline-block; font-weight: 500;
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
}

/* ── Prediction Tracking ─────────────────────────── */
.pred-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 16px; margin: 32px 0;
}
@media (max-width: 640px) { .pred-grid { grid-template-columns: 1fr; } }

.pred-scenario {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.pred-scenario-head {
  padding: 16px 20px; border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.scenario-dot { width: 10px; height: 10px; border-radius: 50%; }
.pred-scenario-head h3 { font-family: var(--ff-head); font-size: 16px; font-weight: 700; }
.pred-scenario-head .prob-tag {
  margin-left: auto; font-family: var(--ff-mono); font-size: 11px;
  padding: 3px 10px; border-radius: 10px;
}

.pred-items { padding: 8px 0; }
.pred-item {
  padding: 14px 20px; border-bottom: 0.5px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.pred-item:last-child { border-bottom: none; }

.pred-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pred-name { font-size: 13px; font-weight: 500; flex: 1; }
.pred-prob { font-family: var(--ff-mono); font-size: 13px; }
.pred-desc { font-size: 12px; color: var(--muted2); line-height: 1.6; }
.pred-actual { font-size: 12px; font-family: var(--ff-mono); margin-top: 2px; }

.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-bg { flex: 1; height: 4px; background: var(--fill-bg); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 4px; border-radius: 2px; transition: width 1s ease; }
.bar-val { font-family: var(--ff-mono); font-size: 10px; color: var(--muted); min-width: 28px; text-align: right; }

/* Status badges */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-family: var(--ff-mono); padding: 2px 8px; border-radius: 4px; }
.status-hit    { background: rgba(61,184,122,0.12); color: var(--green); }
.status-miss   { background: rgba(217,79,61,0.12);  color: var(--red); }
.status-pend   { background: var(--fill-bg2); color: var(--muted2); }
.status-watch  { background: rgba(232,160,32,0.12); color: var(--amber); }

/* ── Falsifiable Claims ──────────────────────────── */
.claim-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.claim-card {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start;
}
.claim-num {
  font-family: var(--ff-head); font-size: 22px; font-weight: 800;
  color: rgba(232,160,32,0.35); line-height: 1;
}
.claim-q { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.claim-compare { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.claim-scenario {
  font-size: 12px; font-family: var(--ff-mono); padding: 4px 10px;
  border-radius: 6px; line-height: 1.5;
}
.good-tag { background: rgba(61,184,122,0.1);  color: #3db87a; }
.bad-tag  { background: rgba(217,79,61,0.1);   color: #d94f3d; }
.claim-status { padding-top: 2px; }

/* ── Month Calendar ──────────────────────────────── */
.month-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px; margin: 24px 0;
}
@media (max-width: 800px) { .month-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 480px) { .month-grid { grid-template-columns: repeat(4, 1fr); } }
.month-cell {
  border-radius: 8px; padding: 10px 6px; text-align: center;
  border: 0.5px solid var(--border);
  transition: transform .15s;
  cursor: default;
}
.month-cell:hover { transform: translateY(-2px); }
.month-name { font-size: 10px; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.month-risk { font-family: var(--ff-head); font-size: 15px; font-weight: 700; }
.month-count { font-family: var(--ff-mono); font-size: 10px; margin-top: 4px; }
.month-today { border-color: var(--amber) !important; }

/* ── Charts ──────────────────────────────────────── */
.charts-grid {
  display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  gap: 16px; margin-top: 28px;
}
@media (max-width: 720px) { .charts-grid { grid-template-columns: 1fr; } }
.chart-card {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 20px;
}
.chart-card-title { font-family: var(--ff-head); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.chart-card-sub { font-size: 12px; color: var(--muted2); margin-bottom: 16px; }
.chart-wrap { position: relative; width: 100%; height: 220px; }

/* ── Methodology / Docs ──────────────────────────── */
.doc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 28px;
}
.doc-card {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 22px 24px;
}
.kpi-val { font-family: var(--ff-head); font-size: 32px; font-weight: 700; line-height: 1; }
.kpi-sub { font-size: 12px; color: var(--muted2); margin-top: 4px; }

/* ── Live Data Table ─────────────────────────────── */
.live-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-bottom: 16px;
}
.live-badge {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-size: 11px; color: var(--red);
}
.refresh-btn {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .04em;
  background: transparent; border: 0.5px solid var(--border2);
  color: var(--muted2); padding: 6px 14px; border-radius: 6px;
  cursor: pointer; transition: all .2s;
}
.refresh-btn:hover { border-color: var(--amber); color: var(--amber); }

.filter-btn {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .04em;
  background: var(--bg2); border: 0.5px solid var(--border2);
  color: var(--muted2); padding: 6px 14px; border-radius: 6px;
  cursor: pointer; transition: all .2s;
}
.filter-btn.active { border-color: var(--amber); color: var(--amber); background: rgba(232,160,32,0.1); }
.filter-btn:hover:not(.active) { border-color: var(--muted); color: var(--text); }
.theme-toggle {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 4px; border-radius: 6px; transition: all .2s;
}
.theme-toggle:hover { color: var(--text); background: var(--bg3); }

html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }
html:not([data-theme="light"]) .icon-sun { display: block; }
html:not([data-theme="light"]) .icon-moon { display: none; }

/* ── Akordion & Scroll ────────────────────────────────────────── */
.collapsible-panel {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  opacity: 1;
}
.collapsible-panel.collapsed {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  overflow: hidden;
}
.collapsible-panel::-webkit-scrollbar { width: 6px; height: 6px; }
.collapsible-panel::-webkit-scrollbar-track { background: var(--bg); border-radius: 3px; }
.collapsible-panel::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }
.collapsible-panel thead th { position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 var(--border2); }

.quake-table-wrap { overflow-x: auto; border-radius: 12px; border: 0.5px solid var(--border); }
table {
  width: 100%; border-collapse: collapse;
  font-size: 13px; font-family: var(--ff-mono);
}
thead tr { border-bottom: 0.5px solid var(--border2); }
th {
  padding: 12px 16px; text-align: left;
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--bg3); font-weight: 500;
}
td { padding: 11px 16px; border-bottom: 0.5px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--hover-bg); }

.mag-badge {
  display: inline-block; font-weight: 500;
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
}

/* ── Prediction Tracking ─────────────────────────── */
.pred-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 16px; margin: 32px 0;
}
@media (max-width: 640px) { .pred-grid { grid-template-columns: 1fr; } }

.pred-scenario {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.pred-scenario-head {
  padding: 16px 20px; border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.scenario-dot { width: 10px; height: 10px; border-radius: 50%; }
.pred-scenario-head h3 { font-family: var(--ff-head); font-size: 16px; font-weight: 700; }
.pred-scenario-head .prob-tag {
  margin-left: auto; font-family: var(--ff-mono); font-size: 11px;
  padding: 3px 10px; border-radius: 10px;
}

.pred-items { padding: 8px 0; }
.pred-item {
  padding: 14px 20px; border-bottom: 0.5px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.pred-item:last-child { border-bottom: none; }

.pred-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pred-name { font-size: 13px; font-weight: 500; flex: 1; }
.pred-prob { font-family: var(--ff-mono); font-size: 13px; }
.pred-desc { font-size: 12px; color: var(--muted2); line-height: 1.6; }
.pred-actual { font-size: 12px; font-family: var(--ff-mono); margin-top: 2px; }

.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-bg { flex: 1; height: 4px; background: var(--fill-bg); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 4px; border-radius: 2px; transition: width 1s ease; }
.bar-val { font-family: var(--ff-mono); font-size: 10px; color: var(--muted); min-width: 28px; text-align: right; }

/* Status badges */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-family: var(--ff-mono); padding: 2px 8px; border-radius: 4px; }
.status-hit    { background: rgba(61,184,122,0.12); color: var(--green); }
.status-miss   { background: rgba(217,79,61,0.12);  color: var(--red); }
.status-pend   { background: var(--fill-bg2); color: var(--muted2); }
.status-watch  { background: rgba(232,160,32,0.12); color: var(--amber); }

/* ── Falsifiable Claims ──────────────────────────── */
.claim-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.claim-card {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start;
}
.claim-num {
  font-family: var(--ff-head); font-size: 22px; font-weight: 800;
  color: rgba(232,160,32,0.35); line-height: 1;
}
.claim-q { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.claim-compare { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.claim-scenario {
  font-size: 12px; font-family: var(--ff-mono); padding: 4px 10px;
  border-radius: 6px; line-height: 1.5;
}
.good-tag { background: rgba(61,184,122,0.1);  color: #3db87a; }
.bad-tag  { background: rgba(217,79,61,0.1);   color: #d94f3d; }
.claim-status { padding-top: 2px; }

/* ── Month Calendar ──────────────────────────────── */
.month-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px; margin: 24px 0;
}
@media (max-width: 800px) { .month-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 480px) { .month-grid { grid-template-columns: repeat(4, 1fr); } }
.month-cell {
  border-radius: 8px; padding: 10px 6px; text-align: center;
  border: 0.5px solid var(--border);
  transition: transform .15s;
  cursor: default;
}
.month-cell:hover { transform: translateY(-2px); }
.month-name { font-size: 10px; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.month-risk { font-family: var(--ff-head); font-size: 15px; font-weight: 700; }
.month-count { font-family: var(--ff-mono); font-size: 10px; margin-top: 4px; }
.month-today { border-color: var(--amber) !important; }

/* ── Charts ──────────────────────────────────────── */
.charts-grid {
  display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  gap: 16px; margin-top: 28px;
}
@media (max-width: 720px) { .charts-grid { grid-template-columns: 1fr; } }
.chart-card {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 20px;
}
.chart-card-title { font-family: var(--ff-head); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.chart-card-sub { font-size: 12px; color: var(--muted2); margin-bottom: 16px; }
.chart-wrap { position: relative; width: 100%; height: 220px; }

/* ── Methodology / Docs ──────────────────────────── */
.doc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 28px;
}
.doc-card {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 22px 24px;
}
.doc-icon {
  font-size: 22px; width: 40px; height: 40px; border-radius: 8px;
  background: rgba(232,160,32,0.1); display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; font-style: normal;
}
.doc-card h3 { font-family: var(--ff-head); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.doc-card p { font-size: 13px; color: var(--muted2); line-height: 1.75; }

/* ── Celestial Engine ────────────────────────────── */
.celestial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.celestial-card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: 12px; padding: 20px; transition: transform .2s ease; }
.celestial-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.celestial-icon { font-size: 24px; margin-bottom: 12px; }
.celestial-title { font-size: 13px; color: var(--muted2); font-family: var(--ff-mono); margin-bottom: 4px; }
.celestial-value { font-family: var(--ff-head); font-size: 20px; font-weight: 700; color: var(--text); }
.celestial-tag { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 4px; margin-top: 8px; }

.celestial-heatmap {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 16px;
}
.celestial-heatmap-cell {
  aspect-ratio: 1/1; border-radius: 4px; background: var(--fill-bg2); display: flex; align-items: center; justify-content: center; font-size: 10px; font-family: var(--ff-mono); position: relative; cursor: pointer; transition: transform 0.1s;
}
.celestial-heatmap-cell:hover { transform: scale(1.1); z-index: 2; border: 1px solid var(--border) !important; }
.celestial-heatmap-cell:hover::after {
  content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--bg3); color: var(--text); padding: 4px 8px; border-radius: 4px; white-space: nowrap; z-index: 10; pointer-events: none; margin-bottom: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.celestial-main { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 800px) { .celestial-main { grid-template-columns: 1fr; } }

/* ── Segment Map ─────────────────────────────────── */
.seg-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.seg-row {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px;
}
.seg-name { font-size: 13px; font-weight: 500; }
.seg-year { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); }
.seg-wait { font-family: var(--ff-mono); font-size: 13px; }
.seg-lock { font-size: 11px; padding: 3px 10px; border-radius: 8px; }

/* ── Footer ──────────────────────────────────────── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-sources { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.source-tag {
  font-family: var(--ff-mono); font-size: 11px; padding: 4px 10px;
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 6px; color: var(--muted2);
}

/* ── Loading & Error ─────────────────────────────── */
.loading-row { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }
.error-row { padding: 20px; background: rgba(217,79,61,0.08); border-radius: 8px; font-size: 13px; color: var(--red); }

/* ── Animations ──────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp .5s ease forwards; }
.fade-up-2 { animation: fadeUp .5s .1s ease both; }
.fade-up-3 { animation: fadeUp .5s .2s ease both; }

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

/* ── ApexCharts Dynamic Theme Support ───────────── */
.apexcharts-datalabel-value { fill: var(--text) !important; transition: fill 0.3s ease; }
.apexcharts-radialbar-track path { stroke: var(--border) !important; transition: stroke 0.3s ease; }