/* ===== CSS VARIABLES ===== */
:root {
  --bg: #0a0c10;
  --bg-alt: #0f1218;
  --bg-card: #13171f;
  --bg-card-hover: #171c26;
  --border: #1e2530;
  --border-light: #252d3a;
  --accent: #c9a84c;
  --accent-light: #e2c47a;
  --accent-dim: rgba(201, 168, 76, 0.12);
  --text-primary: #e8eaf0;
  --text-secondary: #8a92a6;
  --text-muted: #4a5268;
  --green: #4caf82;
  --red: #e05c5c;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
img { max-width: 100%; }
code {
  font-family: 'Courier New', monospace;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--accent-light);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(76,175,130,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 2rem;
  flex: 1;
  min-width: 180px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.35s; }
.stat-card:nth-child(3) { animation-delay: 0.5s; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0c10;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #0a0c10;
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 2rem; }
.alt-bg { background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; }

.section-header {
  margin-bottom: 3rem;
}
.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== FINDINGS GRID ===== */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.finding-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.finding-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.finding-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent-dim);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
}
.finding-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.finding-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CHARTS ===== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.chart-card, .full-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.chart-card h4, .full-chart-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.chart-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.chart-card canvas, .full-chart-card canvas {
  max-height: 320px;
}
.cta-row { text-align: center; margin-top: 1rem; }

/* ===== ABOUT ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1rem;
}
.skill-tag {
  background: var(--accent-dim);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 120px 2rem 60px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.page-header-sub {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 1rem;
}

/* ===== ANALYSIS PAGE ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.insight-box {
  background: var(--accent-dim);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.insight-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.insight-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== TABLE ===== */
.data-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  overflow-x: auto;
}
.data-table-wrap h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.trend-up { color: var(--green); font-weight: 600; }
.trend-down { color: var(--red); font-weight: 600; }
.trend-flat { color: var(--text-muted); }

/* ===== HEATMAP ===== */
.heatmap-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.heatmap-wrap h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
#heatmap-container {
  overflow-x: auto;
  margin-top: 1.25rem;
}
.heatmap-table { border-collapse: collapse; font-size: 0.78rem; min-width: 500px; }
.heatmap-table th {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.72rem;
}
.heatmap-table td {
  padding: 0.5rem 0.75rem;
  text-align: center;
  border-radius: 3px;
  font-weight: 500;
  min-width: 80px;
}

/* ===== METHODOLOGY ===== */
.methodology-layout { max-width: 860px; }
.method-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.method-block:last-child { border-bottom: none; }
.method-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-dim);
  line-height: 1;
  padding-top: 4px;
}
.method-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.method-content p, .method-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.93rem;
}
.method-content ul {
  padding-left: 1.2rem;
  margin-top: 0.75rem;
}
.method-content li { margin-bottom: 0.5rem; }
.method-content strong { color: var(--text-primary); font-weight: 600; }

.pipeline-steps { margin-top: 1rem; }
.pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.pipeline-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 1.2rem;
  padding: 0.4rem 0;
}
.step-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}
.tech-item code { display: block; margin-bottom: 0.3rem; }
.tech-item span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== ACCENT ===== */
.accent { color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer p { font-size: 0.85rem; color: var(--text-muted); }
.footer-note { font-size: 0.78rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content {
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}

/* ===== GEO BADGES ===== */
.geo-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.geo-global  { background: rgba(43,109,164,0.2); color: #4A9BC4; border: 1px solid rgba(43,109,164,0.3); }
.geo-us      { background: rgba(27,58,107,0.2);  color: #72BDD4; border: 1px solid rgba(27,58,107,0.3); }
.geo-europe  { background: rgba(42,157,143,0.2); color: #2A9D8F; border: 1px solid rgba(42,157,143,0.3); }

/* ===== TABLE CONTROLS ===== */
.table-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.table-search, .table-filter {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}
.table-search { flex: 1; min-width: 220px; }
.table-filter { min-width: 160px; }
.table-search:focus, .table-filter:focus { border-color: var(--accent); }

/* ===== IMAGE GRID (analysis.html static exports) ===== */
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.img-grid a {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.img-grid a:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.img-grid img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-card);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .charts-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .method-block { grid-template-columns: 1fr; gap: 0.5rem; }
  .method-num { font-size: 1.5rem; }
  .img-grid { grid-template-columns: 1fr; }
}

/* ===== VOLUME TAB BAR ===== */
.vol-tabs {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vol-tabs::-webkit-scrollbar { display: none; }
.vol-tabs-inner {
  display: flex;
  gap: 0;
  min-width: max-content;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.vol-tab {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  letter-spacing: 0.02em;
}
.vol-tab:hover { color: var(--text-primary); }
.vol-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== SECTION JUMP NAV ===== */
.section-jump {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  align-items: center;
}
.section-jump-label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-right: 1rem;
  white-space: nowrap;
}
.section-jump a {
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  border: 1px solid transparent;
}
.section-jump a:hover {
  color: var(--accent);
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.2s ease;
  z-index: 300;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { transform: translateY(-3px); }

/* ===== LIGHTBOX ===== */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2rem;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.8);
  cursor: default;
}
.lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--text-secondary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  transition: color var(--transition);
  background: none;
  border: none;
  font-weight: 300;
}
.lb-close:hover { color: var(--accent); }
.lb-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 0.82rem;
  background: rgba(10,12,16,0.85);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== VOL PAGE HEADER ===== */
.vol-hero {
  padding: 5.5rem 2rem 3rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.vol-hero-inner {
  max-width: 900px;
}
.vol-hero .vol-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  border: 1px solid rgba(201,168,76,0.25);
}
.vol-hero h1 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 0.75rem; }
.vol-hero p { color: var(--text-secondary); font-size: 0.92rem; max-width: 700px; line-height: 1.75; }

/* ===== CHART SUBGROUP HEADING ===== */
.img-group-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 2.5rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.img-group-label:first-child { margin-top: 0; }

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 768px) {
  .vol-tabs-inner { padding: 0 0.75rem; }
  .vol-tab { padding: 0.65rem 0.85rem; font-size: 0.72rem; }
  #back-to-top { bottom: 1.25rem; right: 1.25rem; width: 38px; height: 38px; }
  .vol-hero h1 { font-size: 1.6rem; }
}

/* ===== DISCLAIMER ===== */
.disclaimer-section { padding: 1rem 0 0; }
.disclaimer-box {
  background: #0d1117;
  border: 1px solid #2a2a2a;
  border-left: 3px solid #CC5200;
  border-radius: 6px;
  padding: 1.1rem 1.4rem;
}
.disclaimer-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #CC5200;
  margin-bottom: 0.55rem;
}
.disclaimer-box p {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.65;
  margin: 0;
}
.disclaimer-box p strong { color: #aaa; }

/* ===== VOL. 5 DASHBOARD ===== */
.dash-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1.6rem;
}

/* KPI Cards */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.dash-kpi {
  background: #13171f;
  border: 1px solid #1e2530;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s, background 0.2s;
}
.dash-kpi:hover {
  background: #171c26;
  border-color: #2a3242;
}
.dash-kpi-alert {
  border-color: rgba(204,82,0,0.35);
  background: rgba(204,82,0,0.05);
}
.dash-kpi-alert:hover {
  background: rgba(204,82,0,0.09);
  border-color: rgba(204,82,0,0.55);
}
.dash-kpi-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: #CC5200;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.dash-kpi-alert .dash-kpi-value { color: #E8682A; }
.dash-kpi-label {
  display: block;
  font-size: 0.74rem;
  color: #7a8499;
  line-height: 1.4;
  font-weight: 400;
}

/* Tab buttons */
.dash-tabs-wrap {
  background: #0f1218;
  border: 1px solid #1e2530;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.dash-tab-btns {
  display: flex;
  border-bottom: 1px solid #1e2530;
  background: #0a0c10;
}
.dash-tab-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #5a6278;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
  margin-bottom: -1px;
}
.dash-tab-btn:hover { color: #c8cad4; }
.dash-tab-btn.active {
  color: #CC5200;
  border-bottom-color: #CC5200;
}

/* Tab panels */
.dash-tab-panel { display: none; padding: 0.25rem 0; }
.dash-tab-panel.active { display: block; }

/* Table inside tabs */
.v5-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.v5-dash-table th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #CC5200;
  border-bottom: 1px solid #1e2530;
  background: #0a0c10;
}
.v5-dash-table td {
  padding: 0.65rem 1rem;
  color: #b8bcc8;
  border-bottom: 1px solid #13171f;
  vertical-align: top;
  line-height: 1.5;
}
.v5-dash-table td:nth-child(2) {
  color: #E8682A;
  font-weight: 500;
  white-space: nowrap;
}
.v5-dash-table td:nth-child(3) {
  color: #5a6278;
  font-size: 0.78rem;
}
.v5-dash-table tbody tr:last-child td { border-bottom: none; }
.v5-dash-table tbody tr {
  transition: background 0.15s;
}
.v5-dash-table tbody tr:hover td { background: #13171f; }
.v5-dash-table tr.v5-alert td { background: rgba(204,82,0,0.05); }
.v5-dash-table tr.v5-alert td:first-child { border-left: 2px solid #CC5200; }
.v5-dash-table tr.v5-alert:hover td { background: rgba(204,82,0,0.09); }
.v5-dash-table tr.v5-total td {
  font-weight: 600;
  color: #dde0e8;
  border-top: 1px solid #1e2530;
  border-bottom: 1px solid #1e2530;
}

.dash-source {
  font-size: 0.71rem;
  color: #3a4255;
  margin-top: 0.5rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .dash-kpi-row { grid-template-columns: 1fr 1fr; }
  .dash-kpi-value { font-size: 1.45rem; }
  .v5-dash-table td, .v5-dash-table th { padding: 0.5rem 0.65rem; font-size: 0.75rem; }
  .dash-tab-btn { font-size: 0.7rem; padding: 0.6rem 0.5rem; }
}

/* ===== ABOUT PAGE ===== */
.about-layout { max-width: 860px; }
.about-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.about-block-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #CC5200;
  padding-top: 0.2rem;
}
.about-block-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}
.about-block-content p:last-child { margin-bottom: 0; }
.about-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.9rem;
}
.about-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 0.5rem 0 0.5rem 1.1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.about-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #CC5200;
  font-size: 0.8rem;
}
.about-list li:last-child { border-bottom: none; }
.about-volumes { display: flex; flex-direction: column; gap: 1rem; }
.about-vol {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.about-vol:hover { border-color: rgba(204,82,0,0.4); }
.about-vol-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: #CC5200;
  font-weight: 600;
  padding-top: 0.15rem;
}
.about-vol strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.about-vol p {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}
@media (max-width: 700px) {
  .about-block { grid-template-columns: 1fr; gap: 0.5rem; }
  .about-vol { grid-template-columns: 1fr; }
}
