/* ==========================================================
   DR MÍDIAS INTELLIGENCE ARCHITECTURE
   TourGo Performance & Previsão Estratégica 2026
   Pentágono de Comunicação · Magid & Melitz Essence
   ========================================================== */

:root {
  /* DR Mídias Dark Canvas */
  --bg-dark: #07090E;
  --bg-surface: #0B0F17;
  --bg-card: #0E1420;
  --bg-card-raised: #121A2A;
  --bg-subtle: rgba(255, 255, 255, 0.03);

  /* Magid AI Palette (Sky & Cyan Intelligence) */
  --magid-cyan: #38BDF8;
  --magid-blue: #0284C7;
  --magid-glow: rgba(56, 189, 248, 0.35);

  /* Nagid AI Palette (Sovereign Amber) */
  --nagid-amber: #F59E0B;
  --nagid-gold: #E5B869;

  /* Melitz AI Palette (Diplomacy Emerald) */
  --melitz-emerald: #10B981;
  --melitz-mint: #34D399;

  /* TourGo Brand Accents (10-20% Harmonic Fusion) */
  --tg-orange: #FE4514;
  --tg-orange-glow: rgba(254, 69, 20, 0.35);
  --tg-indigo: #453E92;
  --tg-sand: #F4F1EA;
  --tg-sage: #B7C59B;

  /* Typography Colors */
  --text-pure: #FFFFFF;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;

  /* Borders & Dividers */
  --border-line: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-cyan: rgba(56, 189, 248, 0.25);
  --border-emerald: rgba(16, 185, 129, 0.25);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-title: 'Cinzel', serif;

  /* Geometry & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-glow-cyan: 0 0 25px -4px rgba(56, 189, 248, 0.3);

  --max-width: 1360px;
  color-scheme: dark;
}

/* ==========================================================
   RESET & FOUNDATIONS
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Texture & Dynamic Atmosphere */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.ambient-light-cyan {
  position: fixed;
  top: -15vw;
  right: -5vw;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(2, 132, 199, 0.04) 40%, rgba(7, 9, 14, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  animation: pulseLight 12s ease-in-out infinite alternate;
}

.ambient-light-emerald {
  position: fixed;
  bottom: -10vw;
  left: -5vw;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.02) 40%, rgba(7, 9, 14, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  animation: pulseLight 16s ease-in-out infinite alternate;
}

@keyframes pulseLight {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 1; }
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================
   TOP NAVIGATION BAR (RESPONSIVE)
   ========================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 9, 14, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-line);
  height: 68px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.brand-logo-wrap img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.brand-title-box {
  display: flex;
  flex-direction: column;
}

.brand-name-line {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tg-accent-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(254, 69, 20, 0.12);
  color: #FE6840;
  border: 1px solid rgba(254, 69, 20, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.brand-sub-line {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-actions::-webkit-scrollbar {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-pure);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow-cyan);
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0396E2 0%, #0284C7 100%);
  transform: translateY(-1px);
}

/* ==========================================================
   HERO & METHODOLOGICAL DISCLAIMER
   ========================================================== */
.hero-section {
  padding: 40px 0 24px 0;
  position: relative;
  border-bottom: 1px solid var(--border-line);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--magid-cyan);
  font-weight: 700;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.eyebrow-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magid-cyan);
  box-shadow: 0 0 10px var(--magid-cyan);
}

.hero-title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.hero-title strong {
  font-weight: 800;
  background: linear-gradient(90deg, #FFFFFF 0%, #38BDF8 60%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 860px;
  line-height: 1.6;
}

/* Methodological Disclaimer Callout */
.disclaimer-box {
  margin-top: 20px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.disclaimer-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-text {
  font-size: 12.5px;
  color: #FCD34D;
  line-height: 1.5;
}

.disclaimer-text strong {
  color: #FFFFFF;
}

/* ==========================================================
   4 KPI CARDS GRID (RESPONSIVE)
   ========================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.kpi-card.emerald:hover { border-color: rgba(16, 185, 129, 0.4); }
.kpi-card.cyan:hover { border-color: rgba(56, 189, 248, 0.4); }
.kpi-card.amber:hover { border-color: rgba(245, 158, 11, 0.4); }
.kpi-card.orange:hover { border-color: rgba(254, 69, 20, 0.4); }

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.kpi-icon-pill {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.kpi-icon-pill.emerald { background: rgba(16, 185, 129, 0.12); color: var(--melitz-mint); border: 1px solid rgba(16, 185, 129, 0.3); }
.kpi-icon-pill.cyan { background: rgba(56, 189, 248, 0.12); color: var(--magid-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.kpi-icon-pill.amber { background: rgba(245, 158, 11, 0.12); color: var(--nagid-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.kpi-icon-pill.orange { background: rgba(254, 69, 20, 0.12); color: var(--tg-orange); border: 1px solid rgba(254, 69, 20, 0.3); }

.kpi-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  line-height: 1.15;
  margin-bottom: 6px;
}

.kpi-value.emerald { color: #34D399; }

.kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.badge-pill.success { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-pill.info { background: rgba(56, 189, 248, 0.15); color: var(--magid-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }

/* ==========================================================
   MASTER TABLE & MOBILE SWIPE HINT
   ========================================================== */
.section-block {
  margin-bottom: 48px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.section-title-wrap h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-wrap h2 strong { font-weight: 800; }
.section-title-wrap p { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.table-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  padding: 3px;
  border-radius: var(--radius-pill);
  gap: 3px;
}

.filter-pill {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-pill:hover { color: var(--text-pure); }

.filter-pill.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--text-pure);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Mobile Scroll Hint Banner */
.mobile-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  color: var(--magid-cyan);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.scroll-arrow {
  animation: pulseArrow 1.5s infinite ease-in-out;
}

@keyframes pulseArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

.table-responsive {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #1E293B transparent;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar { height: 7px; }
.table-responsive::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 4px; }

.tourgo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13px;
  min-width: 1080px;
}

.tourgo-table th,
.tourgo-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.tourgo-table th:last-child,
.tourgo-table td:last-child {
  border-right: none;
}

.tourgo-table thead tr:first-child th {
  background: #090C12;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-strong);
}

.tourgo-table thead th.col-sticky,
.tourgo-table tbody th.col-sticky {
  position: sticky;
  left: 0;
  background: #090C12;
  z-index: 10;
  text-align: left;
  border-right: 1px solid var(--border-line);
  min-width: 210px;
}

.tourgo-table tbody th.col-sticky {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-pure);
}

.tourgo-table tbody tr:hover td,
.tourgo-table tbody tr:hover th {
  background: rgba(255, 255, 255, 0.035);
}

.tourgo-table th.col-total,
.tourgo-table td.col-total {
  background: rgba(56, 189, 248, 0.06);
  font-weight: 700;
  color: var(--magid-cyan);
  border-left: 1px solid var(--border-line);
}

.tourgo-table td.cell-partial {
  background: rgba(245, 158, 11, 0.08);
  position: relative;
}

.tourgo-table td.cell-partial::after {
  content: "12d";
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 9px;
  color: #F59E0B;
  font-weight: 700;
}

.tourgo-table td.cell-projected {
  color: var(--text-subtle);
  font-style: italic;
}

.metric-meta { color: var(--magid-cyan); }
.metric-vendas { color: #FFFFFF; font-weight: 700; }
.metric-leads { color: #93C5FD; }
.metric-conv { color: #38BDF8; font-weight: 700; }
.metric-faturamento { color: #34D399; font-weight: 700; }

.status-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
}

.badge-beat { background: rgba(16, 185, 129, 0.18); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-miss { background: rgba(239, 68, 68, 0.18); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.badge-near { background: rgba(245, 158, 11, 0.18); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.35); }

.table-footer-legend {
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-group {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.legend-color-box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 5px;
}

.legend-color-box.partial { background: rgba(245, 158, 11, 0.4); border: 1px solid #F59E0B; }
.legend-color-box.total { background: rgba(56, 189, 248, 0.3); border: 1px solid var(--magid-cyan); }

/* ==========================================================
   CHARTS & DIRECT CLICKABLE MONTH BUTTONS
   ========================================================== */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.chart-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-card-raised);
  border: 1px solid var(--border-line);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 3px;
}

.chart-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-tab-btn:hover { color: var(--text-pure); }

.chart-tab-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--text-pure);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.chart-canvas-container {
  height: 380px;
  width: 100%;
  position: relative;
}

/* Telemetry Header Bar */
.telemetry-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border-line);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.telemetry-bar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-main);
}

.telemetry-swipe-hint {
  display: none;
  font-size: 11.5px;
  color: var(--magid-cyan);
}

/* Clickable Month Cards/Buttons */
.telemetry-ticker-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.telemetry-col-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  outline: none;
}

.telemetry-col-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.telemetry-col-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--magid-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.telemetry-col-btn.partial {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.04);
}

.telemetry-month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 2px;
}

.telemetry-stat {
  font-size: 13.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-pure);
}

.telemetry-sub {
  font-size: 10px;
  color: var(--magid-cyan);
  font-weight: 600;
}

/* Month Inspector Card */
.month-inspector-card {
  margin-top: 16px;
  background: rgba(7, 11, 18, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.inspector-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
}

.inspector-close-btn:hover { color: #FFFFFF; }

.inspector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.inspector-stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
}

.inspector-stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.inspector-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-mono);
}

.inspector-note {
  font-size: 12.5px;
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid var(--magid-cyan);
  padding: 8px 12px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

/* ==========================================================
   STRATEGIC AUDIO INTEL & FATHOM TASKS MATRIX
   ========================================================== */
.intel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.intel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.intel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
}

.intel-tag.audio {
  background: rgba(56, 189, 248, 0.12);
  color: var(--magid-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.intel-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 10px;
  line-height: 1.35;
}

.audio-player-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-info { flex-grow: 1; }
.audio-speaker { font-size: 12px; font-weight: 700; color: var(--text-pure); }
.audio-duration { font-size: 10.5px; color: var(--text-muted); font-family: var(--font-mono); }

.transcript-quote {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid var(--magid-cyan);
  padding: 10px 14px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin-bottom: 14px;
  font-style: italic;
}

.takeaways-list {
  list-style: none;
  font-size: 12.5px;
  color: var(--text-main);
}

.takeaways-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
  line-height: 1.5;
}

.takeaways-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--magid-cyan);
  font-weight: 800;
}

/* Fathom Tasks Operational Matrix */
.fathom-full-card {
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 44px;
}

.fathom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.task-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.task-column-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.task-col-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-col-title.agency { color: var(--magid-cyan); }
.task-col-title.client { color: var(--tg-orange); }

.task-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
}

.task-item-row:last-child { border-bottom: none; }

.task-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  flex-shrink: 0;
  margin-top: 2px;
}

.task-checkbox.done { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.4); }
.task-checkbox.pending { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.4); }

.task-body-title { font-weight: 700; color: var(--text-pure); margin-bottom: 2px; }
.task-body-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }

/* ==========================================================
   PREDICTIVE SIMULATOR (STANDALONE FULL CARD)
   ========================================================== */
.simulator-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 44px;
}

.sim-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  margin-top: 18px;
}

.sim-control-group {
  margin-bottom: 20px;
}

.sim-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--text-main);
}

.sim-control-head strong {
  color: var(--magid-cyan);
  font-family: var(--font-mono);
  font-size: 14.5px;
}

.sim-slider {
  width: 100%;
  accent-color: var(--magid-cyan);
  cursor: pointer;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.sim-results-panel {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sim-kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.sim-kpi-row strong {
  font-family: var(--font-mono);
  color: var(--text-pure);
  font-size: 14px;
}

.sim-kpi-row.highlight {
  border-bottom: none;
  padding-top: 14px;
}

.sim-kpi-row.highlight strong {
  color: #34D399;
  font-size: 17px;
}

/* ==========================================================
   MODAL
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-dialog {
  background: var(--bg-card-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-line);
}

.modal-title { font-size: 15px; font-weight: 700; color: var(--text-pure); }

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  text-align: center;
}

.modal-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-line);
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
  border-top: 1px solid var(--border-line);
  padding: 28px 0 40px 0;
  margin-top: 36px;
  font-size: 12px;
  color: var(--text-subtle);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================
   MOBILE & TABLET RESPONSIVENESS (PERFECT TUNING)
   ========================================================== */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .intel-grid, .sim-grid-layout, .task-matrix-grid { grid-template-columns: 1fr; }
  .telemetry-ticker-bar {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 8px;
  }
  .telemetry-col-btn {
    min-width: 82px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .telemetry-swipe-hint { display: block; }
}

@media (max-width: 768px) {
  .top-nav { height: auto; padding: 10px 0; }
  .nav-container { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-actions { width: 100%; justify-content: flex-start; padding-bottom: 4px; }
  .nav-btn-item { font-size: 11.5px; padding: 6px 10px; }
  .hero-title { font-size: 26px; }
  .mobile-scroll-hint { display: flex; }
  .tourgo-table thead th.col-sticky,
  .tourgo-table tbody th.col-sticky {
    min-width: 130px;
    max-width: 140px;
    font-size: 11px;
    padding: 10px 8px;
    white-space: normal;
  }
  .tourgo-table th, .tourgo-table td {
    padding: 10px 8px;
    font-size: 11.5px;
  }
  .chart-canvas-container { height: 320px; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 23px; }
  .chart-tabs { width: 100%; overflow-x: auto; }
  .chart-tab-btn { font-size: 11px; padding: 5px 8px; white-space: nowrap; }
}
