/* ==========================================================================
   INFOGRAPHIC DESIGN SYSTEM: CUỘC ĐUA SÀN TÀI SẢN MÃ HÓA TẠI VIỆT NAM
   Requirements:
   - Cỡ chữ tối thiểu: 17px
   - Chữ đậm, sắc nét, tương phản cao, dễ đọc
   - Dãn chữ hài hòa, chống rớt 1 chữ xuống dòng (text-wrap: balance & nowrap)
   - Layout rộng rãi, thoáng đãng, chống đè chữ
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
  /* Color Palette - Obsidian Dark & High Contrast */
  --bg-main: #060911;
  --bg-card: rgba(15, 23, 42, 0.88);
  --bg-card-hover: rgba(22, 34, 60, 0.98);
  --bg-card-solid: #0d1527;
  --border-card: rgba(255, 255, 255, 0.12);
  --border-card-hover: rgba(0, 229, 255, 0.5);

  /* High Intensity Neon Accents */
  --neon-cyan: #00f0ff;
  --neon-amber: #ff9d00;
  --neon-emerald: #00f57a;
  --neon-purple: #a855f7;
  --neon-rose: #ff3366;
  --neon-blue: #38bdf8;

  /* Text Gradients */
  --grad-cyan-blue: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
  --grad-gold-amber: linear-gradient(135deg, #ffc837 0%, #ff8008 100%);
  --grad-emerald: linear-gradient(135deg, #00f57a 0%, #10b981 100%);

  /* High-Contrast Sharp Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;   /* Bright silver/slate */
  --text-muted: #cbd5e1;       /* Very clear contrast, no dark faded gray */
  --text-light: #f8fafc;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Shadows & Glows */
  --glow-cyan: 0 0 28px rgba(0, 240, 255, 0.35);
  --glow-amber: 0 0 28px rgba(255, 157, 0, 0.35);
  --glow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.75);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Reset & Sharp Anti-Aliasing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px; /* Base font size: strictly 17px */
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image: 
    radial-gradient(circle at 15% 12%, rgba(0, 240, 255, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 18%, rgba(168, 85, 247, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(255, 157, 0, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 88%, rgba(0, 245, 122, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Crisp Grid Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
.infographic-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 36px 28px 90px;
  overflow-x: hidden;
}

/* ==========================================================================
   TOP BAR & CONTROLS
   ========================================================================== */
.top-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-card);
  flex-wrap: wrap;
  gap: 16px;
}

.timestamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: pulseAnimation 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--neon-cyan); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-action:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.25);
}

/* Filter Bar */
.filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  font-weight: 800;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 24px 0 44px;
  position: relative;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-amber);
  margin-bottom: 16px;
  padding: 6px 20px;
  background: rgba(255, 157, 0, 0.12);
  border: 1px solid rgba(255, 157, 0, 0.35);
  border-radius: 999px;
  white-space: nowrap;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.28;
  color: #ffffff;
  letter-spacing: -0.5px;
  max-width: 1080px;
  margin: 0 auto 18px;
  text-wrap: balance;
}

.hero-title .highlight-text {
  background: var(--grad-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 980px;
  margin: 0 auto 38px;
  line-height: 1.6;
  text-wrap: balance;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 800;
}

/* Macro KPIs Grid */
.macro-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--glow-card);
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--neon-cyan));
}

.kpi-label {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kpi-value small {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-secondary);
}

.kpi-note {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
  text-wrap: pretty;
}

/* Card Accents */
.kpi-card.amber { --card-accent: var(--neon-amber); }
.kpi-card.cyan { --card-accent: var(--neon-cyan); }
.kpi-card.emerald { --card-accent: var(--neon-emerald); }
.kpi-card.purple { --card-accent: var(--neon-purple); }

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================== */
.infographic-section {
  margin-bottom: 54px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  text-wrap: balance;
}

.section-badge {
  font-size: 17px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  white-space: nowrap;
}

/* ==========================================================================
   SECTION 1: 2 CỰC CHIẾN LƯỢC (VỐN VS SẢN PHẨM)
   ========================================================================== */
.dual-race-showdown {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: stretch;
  gap: 20px;
  background: linear-gradient(180deg, rgba(17, 26, 44, 0.94) 0%, rgba(11, 17, 32, 0.98) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--glow-card);
}

.pole-card {
  padding: 24px 26px;
  border-radius: var(--radius-md);
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pole-card.capital-pole {
  border-left: 5px solid var(--neon-amber);
}

.pole-card.capital-pole:hover {
  border-color: rgba(255, 157, 0, 0.5);
  box-shadow: var(--glow-amber);
}

.pole-card.product-pole {
  border-left: 5px solid var(--neon-cyan);
}

.pole-card.product-pole:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: var(--glow-cyan);
}

.pole-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  align-self: flex-start;
  white-space: nowrap;
}

.capital-pole .pole-badge {
  background: rgba(255, 157, 0, 0.16);
  color: var(--neon-amber);
}

.product-pole .pole-badge {
  background: rgba(0, 240, 255, 0.16);
  color: var(--neon-cyan);
}

.pole-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.pole-name {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.pole-rank {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
}

.pole-stat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.45);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pole-stat-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-secondary);
}

.pole-stat-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.pole-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.pole-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.55;
}

.pole-feature-item strong {
  color: #ffffff;
  font-weight: 700;
}

.icon-check {
  color: var(--neon-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.icon-cross {
  color: var(--neon-rose);
  flex-shrink: 0;
  margin-top: 3px;
}

.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vs-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   SECTION 2: BẢNG XẾP HẠNG VỐN & KHOẢNG CÁCH MỐC 10.000 TỶ
   ========================================================================== */
.leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--glow-card);
}

.benchmark-indicator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 157, 0, 0.1);
  border: 1px dashed rgba(255, 157, 0, 0.5);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 26px;
  font-size: 17px;
  font-weight: 600;
  color: var(--neon-amber);
  flex-wrap: wrap;
  gap: 10px;
}

.benchmark-indicator-bar strong {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateX(6px);
}

.row-entity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rank-pill {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  flex-shrink: 0;
}

.rank-pill.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ff9d00);
  color: #000000;
}

.rank-pill.rank-2 {
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  color: #000000;
}

.rank-pill.rank-3 {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
}

.entity-info {
  display: flex;
  flex-direction: column;
}

.entity-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.entity-sub {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Dual Progress Bar */
.bar-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-track {
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 7px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bar-fill.caex-bar {
  background: linear-gradient(90deg, #ff7a00, #ffb300);
}

.bar-fill.scex-bar {
  background: linear-gradient(90deg, #00b0ff, #00f0ff);
}

.bar-fill.vixex-bar {
  background: linear-gradient(90deg, #7c4dff, #b388ff);
}

.bar-fill.sun-bar {
  background: linear-gradient(90deg, #ff5252, #ff7b25);
}

.bar-fill.tcex-bar {
  background: linear-gradient(90deg, #2979ff, #38bdf8);
}

.bar-text-inside {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: #000000;
  white-space: nowrap;
}

.bar-outside-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}

.bar-text-outside {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-left: 12px;
  white-space: nowrap;
}

.row-metrics-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-target-reached {
  background: rgba(0, 245, 122, 0.16);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 245, 122, 0.4);
}

.badge-target-50 {
  background: rgba(0, 240, 255, 0.16);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.badge-target-gap {
  background: rgba(255, 51, 102, 0.15);
  color: #ff7096;
  border: 1px solid rgba(255, 51, 102, 0.35);
}

.gap-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.gap-label strong {
  color: var(--text-primary);
  font-weight: 800;
}

/* ==========================================================================
   SECTION 3: MA TRẬN VỊ THẾ 2X2
   ========================================================================== */
.matrix-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--glow-card);
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 270px 270px;
  gap: 16px;
  position: relative;
  margin-top: 20px;
}

.matrix-quadrant {
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.quadrant-label {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.q-top-left {
  background: radial-gradient(circle at top left, rgba(255, 157, 0, 0.08) 0%, transparent 70%);
}

.q-top-right {
  background: radial-gradient(circle at top right, rgba(0, 245, 122, 0.08) 0%, transparent 70%);
}

.q-bottom-left {
  background: radial-gradient(circle at bottom left, rgba(148, 163, 184, 0.06) 0%, transparent 70%);
}

.q-bottom-right {
  background: radial-gradient(circle at bottom right, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
}

/* Matrix Nodes */
.matrix-node {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bg-card-solid);
  border: 2px solid var(--node-color, var(--neon-cyan));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
  position: absolute;
  transition: all 0.25s ease;
  cursor: pointer;
  z-index: 2;
  white-space: nowrap;
}

.matrix-node:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--node-color, var(--neon-cyan));
}

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--node-color, var(--neon-cyan));
  box-shadow: 0 0 12px var(--node-color);
}

.node-title {
  font-weight: 800;
  font-size: 19px;
  color: #ffffff;
}

.node-data {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--node-color, var(--neon-cyan));
  font-weight: 700;
}

.axis-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border-card);
  padding-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   SECTION 4: TIÊU ĐIỂM TĂNG TỐC SCEX
   ========================================================================== */
.spotlight-box {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--glow-card);
  position: relative;
  overflow: hidden;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.timeline-track-wrap {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px;
}

.timeline-title {
  font-size: 18px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 24px;
  white-space: nowrap;
}

.timeline-milestones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.timeline-milestones::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), var(--neon-cyan));
  transform: translateY(-50%);
  z-index: 0;
}

.milestone-item {
  position: relative;
  z-index: 1;
  text-align: center;
  background: var(--bg-card-solid);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
}

.milestone-date {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
}

.milestone-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.milestone-arrow {
  position: relative;
  z-index: 1;
  background: var(--neon-amber);
  color: #000000;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 17px;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 157, 0, 0.6);
  white-space: nowrap;
}

.simulator-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sim-metric-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.sim-metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--neon-cyan);
}

.sim-num {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 800;
  color: var(--neon-cyan);
  line-height: 1.15;
  margin-bottom: 6px;
  white-space: nowrap;
}

.sim-label {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 700;
  white-space: nowrap;
}

.sim-sub {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.sim-disclaimer {
  grid-column: span 2;
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 600;
  color: #ff99b3;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 5: HỒ SƠ CHI TIẾT 5 ỨNG VIÊN (2 COLUMNS FOR PLENTY OF SPACE)
   ========================================================================== */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns: wide, spacious, no awkward line breaks */
  gap: 24px;
}

.candidate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--glow-card);
}

.candidate-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.8);
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.candidate-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.candidate-logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-grad, linear-gradient(135deg, #334155, #1e293b));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 19px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.candidate-name {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.candidate-status-tag {
  font-size: 17px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-ready {
  background: rgba(0, 245, 122, 0.18);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 245, 122, 0.4);
}

.tag-sim {
  background: rgba(0, 240, 255, 0.18);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.tag-prep {
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-light);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.card-capital-hero {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.cap-label {
  font-size: 17px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  white-space: nowrap;
}

.cap-val {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.cap-val small {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Segmented Ownership Bar */
.ownership-section {
  margin-bottom: 20px;
}

.ownership-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}

.segmented-bar {
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.seg-fill {
  height: 100%;
  transition: width 0.8s ease;
}

.ownership-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-light);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Strengths & Weaknesses */
.card-pros-cons {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-card);
}

.pro-con-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-light);
}

.pro-con-item strong {
  color: #ffffff;
  font-weight: 700;
}

/* Card Themes */
.card-caex { --brand-grad: linear-gradient(135deg, #ff7a00, #ffae19); }
.card-scex { --brand-grad: linear-gradient(135deg, #00b0ff, #00f0ff); }
.card-vixex { --brand-grad: linear-gradient(135deg, #7c4dff, #b388ff); }
.card-sun { --brand-grad: linear-gradient(135deg, #ff5252, #ff9d00); }
.card-tcex { 
  --brand-grad: linear-gradient(135deg, #2979ff, #38bdf8);
  grid-column: span 2; /* TCEX spans both columns as a balanced showcase */
}

/* ==========================================================================
   SECTION 6: ĐÚC KẾT CHIẾN LƯỢC & FOOTER
   ========================================================================== */
.verdict-box {
  background: linear-gradient(135deg, rgba(17, 26, 44, 0.98) 0%, rgba(24, 18, 44, 0.98) 100%);
  border: 1px solid rgba(255, 157, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8);
}

.verdict-quote {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ff9d00, #ffea00, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.verdict-summary {
  font-size: 19px;
  font-weight: 500;
  color: var(--text-light);
  max-width: 960px;
  margin: 0 auto 28px;
  line-height: 1.7;
  text-wrap: pretty;
}

.verdict-summary strong {
  color: #ffffff;
  font-weight: 700;
}

.verdict-stats-summary {
  display: inline-flex;
  gap: 28px;
  padding: 16px 36px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-wrap: wrap;
  justify-content: center;
}

.verdict-stats-summary span strong {
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 800;
}

.infographic-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-card);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* Tablet Breakpoint (max-width: 1080px) */
@media (max-width: 1080px) {
  .macro-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .dual-race-showdown {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .vs-divider {
    padding: 10px 0;
  }
  .vs-circle {
    margin: 0 auto;
  }
  .leaderboard-row {
    grid-template-columns: 240px 1fr 220px;
    gap: 16px;
  }
  .card-tcex {
    grid-column: span 1;
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Mobile & Small Tablet Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
  html {
    font-size: 16px; /* Slightly more compact base font for mobile */
  }

  .infographic-wrapper {
    padding: 20px 14px 60px;
    width: 100%;
    overflow-x: hidden;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 16px 0 32px;
  }

  .hero-tag {
    font-size: 14px;
    letter-spacing: 1.2px;
    padding: 5px 14px;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: clamp(25px, 7vw, 36px);
    line-height: 1.28;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.55;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  /* Macro KPIs Mobile */
  .macro-kpis {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }

  .kpi-card {
    padding: 18px 16px;
  }

  .kpi-value {
    font-size: clamp(30px, 8.5vw, 38px);
  }

  .kpi-note {
    font-size: 15px;
  }

  /* Section Common Header Mobile */
  .infographic-section {
    margin-bottom: 40px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .section-title-wrap {
    gap: 10px;
  }

  .section-icon {
    width: 38px;
    height: 38px;
  }

  .section-icon svg {
    width: 19px;
    height: 19px;
  }

  .section-title {
    font-size: clamp(20px, 5.5vw, 24px);
    line-height: 1.3;
  }

  .section-badge {
    font-size: 14px;
    padding: 4px 10px;
    align-self: flex-start;
  }

  /* Section 1: 2 Cực Chiến Lược Mobile */
  .dual-race-showdown {
    grid-template-columns: 1fr;
    padding: 18px 14px;
    gap: 14px;
    border-radius: var(--radius-md);
  }

  .pole-card {
    padding: 18px 14px;
  }

  .pole-name {
    font-size: 24px;
  }

  .pole-stat-pill {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pole-stat-val {
    font-size: 20px;
  }

  .pole-feature-item {
    font-size: 15px;
    gap: 10px;
    line-height: 1.5;
  }

  .vs-divider {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    width: 100%;
  }

  .vs-divider::before,
  .vs-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  }

  .vs-circle {
    width: 44px;
    height: 44px;
    font-size: 15px;
    margin: 0 12px;
  }

  /* Section 2: Bảng Xếp Hạng Vốn Mobile */
  .leaderboard-card {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }

  .benchmark-indicator-bar {
    padding: 12px 14px;
    font-size: 14px;
    gap: 8px;
    margin-bottom: 18px;
  }

  .benchmark-indicator-bar > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .benchmark-indicator-bar strong {
    font-size: 16px;
  }

  .leaderboard-list {
    gap: 14px;
  }

  .leaderboard-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
  }

  .leaderboard-row:hover {
    transform: none;
  }

  .row-entity {
    gap: 12px;
  }

  .rank-pill {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .entity-name {
    font-size: 20px;
  }

  .entity-sub {
    font-size: 14px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
  }

  .bar-track {
    height: 34px;
  }

  .bar-text-inside {
    font-size: 14px;
    padding-left: 0;
  }

  .bar-text-outside {
    font-size: 14px;
    margin-left: 8px;
  }

  .row-metrics-col {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .status-badge {
    font-size: 14px;
    padding: 4px 10px;
  }

  .gap-label {
    font-size: 14px;
  }

  /* Section 3: Ma Trận 2x2 Mobile -> Chuyển thành Nhóm Thẻ Tinh Gọn (Stacked Quadrant Cards) */
  .matrix-container {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .matrix-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
  }

  .matrix-quadrant {
    min-height: auto;
    padding: 16px 14px;
    border-radius: var(--radius-sm);
    position: relative;
  }

  .quadrant-label {
    white-space: normal;
    line-height: 1.4;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    word-break: break-word;
  }

  .matrix-node {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transform: none !important;
  }

  .matrix-node:hover,
  .matrix-node:active {
    transform: translateY(-2px) !important;
  }

  .matrix-node .node-title {
    font-size: 16px;
    white-space: nowrap;
  }

  .matrix-node .node-data {
    font-size: 14px;
    text-align: right;
    white-space: normal;
    line-height: 1.3;
  }

  .axis-legend {
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    padding-top: 12px;
  }

  /* Section 4: Tiêu Điểm SCEX Mobile */
  .spotlight-box {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .timeline-track-wrap {
    padding: 16px 12px;
    border-radius: var(--radius-sm);
  }

  .timeline-title {
    font-size: 15px;
    margin-bottom: 14px;
    text-align: center;
  }

  .timeline-milestones {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .timeline-milestones::before {
    display: none;
  }

  .milestone-item {
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .milestone-date {
    font-size: 14px;
  }

  .milestone-val {
    font-size: 22px;
  }

  .milestone-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 14px;
    align-self: center;
  }

  .milestone-arrow::before {
    content: "↓ ";
    font-weight: 800;
  }

  .simulator-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .sim-metric-card {
    padding: 14px 12px;
  }

  .sim-num {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 4px;
  }

  .sim-label {
    font-size: 14px;
    white-space: normal;
    line-height: 1.3;
  }

  .sim-sub {
    font-size: 13px;
  }

  .sim-disclaimer {
    grid-column: span 2;
    padding: 12px;
    font-size: 14px;
    gap: 8px;
  }

  /* Section 5: Toàn Cảnh 5 Ứng Viên Mobile */
  .candidates-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .candidate-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .card-tcex {
    grid-column: span 1;
  }

  .candidate-logo-circle {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .candidate-name {
    font-size: 20px;
  }

  .candidate-status-tag {
    font-size: 13px;
    padding: 4px 8px;
  }

  .card-capital-hero {
    padding: 12px 14px;
    margin-bottom: 14px;
  }

  .cap-label {
    font-size: 14px;
  }

  .cap-val {
    font-size: clamp(22px, 6vw, 26px);
  }

  .ownership-title {
    white-space: normal;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 15px;
    margin-bottom: 8px;
  }

  .ownership-legend {
    gap: 6px 10px;
  }

  .legend-item {
    font-size: 14px;
    white-space: normal;
    line-height: 1.35;
  }

  .pro-con-item {
    font-size: 14.5px;
    line-height: 1.5;
    gap: 8px;
  }

  /* Section 6: Đúc Kết & Footer Mobile */
  .verdict-box {
    padding: 22px 14px;
    border-radius: var(--radius-md);
  }

  .verdict-quote {
    font-size: clamp(17px, 4.8vw, 22px);
    line-height: 1.38;
    margin-bottom: 14px;
  }

  .verdict-summary {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .verdict-stats-summary {
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    gap: 8px;
    font-size: 14px;
  }

  .infographic-footer {
    margin-top: 32px;
    padding-top: 18px;
    font-size: 14px;
  }
}

/* Extra Small Devices (Smartphones <= 420px) */
@media (max-width: 420px) {
  .infographic-wrapper {
    padding: 14px 10px 48px;
  }

  .hero-tag {
    font-size: 13px;
    padding: 4px 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .kpi-card {
    padding: 14px 12px;
  }

  .kpi-value {
    font-size: 27px;
  }

  .simulator-metrics-grid {
    grid-template-columns: 1fr;
  }

  .sim-disclaimer {
    grid-column: span 1;
  }

  .row-metrics-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .card-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .matrix-node {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .matrix-node .node-data {
    text-align: left;
    font-size: 13px;
  }

  .card-capital-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ==========================================================================
   PRINT / EXPORT STYLES
   ========================================================================== */
@media print {
  body {
    background: #060911 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .top-action-bar, .action-buttons, .filter-container {
    display: none !important;
  }
  .infographic-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .candidate-card, .leaderboard-row, .kpi-card {
    break-inside: avoid;
  }
}
