/* ═══════════════════════════════════════════
   ESTRATÉGIA 2026 — NEON PULSE Light Mode
   Fundo claro · Cores vibrantes neon · Gradientes
   Fontes: Space Grotesk + Inter + JetBrains Mono
   ═══════════════════════════════════════════ */

:root {
  /* ── Light Base ── */
  --bg-deep:    #f0f2f7;
  --bg-main:    #f5f7fb;
  --bg-card:    #ffffff;
  --bg-elevated:#ffffff;

  /* ── Neon Accents (saturados para fundo claro) ── */
  --neon-cyan:   #0099cc;
  --neon-purple: #7c3aed;
  --neon-pink:   #e6005c;
  --neon-amber:  #d97706;
  --neon-green:  #16a34a;
  --neon-red:    #dc2626;

  /* ── Gradient shortcuts ── */
  --grad-cyan-purple: linear-gradient(135deg, #00b4d8, #7c3aed);
  --grad-purple-pink: linear-gradient(135deg, #7c3aed, #e6005c);
  --grad-pink-amber:  linear-gradient(135deg, #e6005c, #d97706);
  --grad-green-cyan:  linear-gradient(135deg, #16a34a, #00b4d8);

  /* ── Data: positive / negative ── */
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: rgba(22,163,74,.08);
  --red-600:   #dc2626;
  --red-500:   #ef4444;
  --red-100:   rgba(220,38,38,.08);
  --amber-500: #d97706;
  --amber-600: #b45309;
  --amber-100: rgba(217,119,6,.08);
  --purple-500:#8b5cf6;
  --blue-500:  #3b82f6;
  --blue-600:  #2563eb;
  --blue-700:  #1d4ed8;

  /* ── Text ── */
  --text-primary:   #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted:     #8896ab;
  --text-dim:       #b0bec5;

  /* ── Glass (light mode) ── */
  --glass-bg:     rgba(255,255,255,.75);
  --glass-border: rgba(0,0,0,.08);
  --glass-hover:  rgba(0,0,0,.03);
  --glass-blur:   16px;

  /* ── Layout ── */
  --sidebar-w: 260px;
  --header-h: 64px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --shadow-glow-cyan: 0 4px 20px rgba(0,153,204,.15);
  --shadow-glow-purple: 0 4px 20px rgba(124,58,237,.12);
  --shadow-glow-pink: 0 4px 20px rgba(230,0,92,.12);
  --transition: 250ms cubic-bezier(.4,0,.2,1);

  /* ── Fonts ── */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ═══ SIDEBAR ═══ */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: #ffffff;
  border-right: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex; flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
  box-shadow: 2px 0 16px rgba(0,0,0,.04);
}
.sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--glass-border);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 6px;
}
.sidebar-logo img {
  height: 36px; width: auto;
}
.sidebar-logo svg { color: var(--neon-cyan); }
.sidebar-logo h1 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: -.02em;
  background: var(--grad-cyan-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-subtitle {
  font-size: .72rem; color: var(--neon-cyan);
  text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600;
  opacity: .85;
}

/* Wave selector */
.wave-selector {
  margin: 16px 20px 8px;
}
.wave-selector select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.wave-selector select option { background: #fff; color: var(--text-primary); }
.wave-selector select:hover { border-color: var(--neon-cyan); }
.wave-selector select:focus { border-color: var(--neon-cyan); box-shadow: 0 0 0 3px rgba(0,153,204,.1); }

/* Nav */
.sidebar-nav { flex: 1; padding: 8px 0; overflow-y: auto; }
.nav-section-label {
  padding: 16px 20px 6px;
  font-family: var(--font-display);
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--neon-purple);
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  font-size: .88rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-left: 3px solid transparent;
  cursor: pointer;
  position: relative;
}
.nav-item:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}
.nav-item.active {
  background: rgba(0,153,204,.06);
  color: var(--neon-cyan);
  border-left-color: var(--neon-cyan);
  font-weight: 600;
}
.nav-item.active::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0,153,204,.4);
  border-radius: 0 2px 2px 0;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .45; }
.nav-item:hover svg { opacity: .7; }
.nav-item.active svg { opacity: 1; color: var(--neon-cyan); }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--glass-border);
  font-size: .7rem; color: var(--text-muted);
}

/* ═══ MAIN CONTENT ═══ */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-main);
}
.page-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 24px 32px;
  position: sticky; top: 0; z-index: 50;
}
.page-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; color: var(--text-primary);
  letter-spacing: -.02em;
}
.page-header p {
  font-size: .85rem; color: var(--text-muted); margin-top: 2px;
}
.page-content {
  padding: 28px 32px 48px;
  max-width: 1400px;
}

/* ═══ PAGE SECTIONS (show/hide) ═══ */
.page-section { display: none; }
.page-section.active { display: block; }

/* ═══ GLASS CARDS ═══ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: rgba(0,0,0,.12);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title {
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 700; color: var(--text-primary);
  letter-spacing: -.01em;
}
.card-badge {
  font-family: var(--font-display);
  font-size: .65rem; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; text-transform: uppercase; letter-spacing: .06em;
}
.badge-positive { background: rgba(22,163,74,.1); color: var(--neon-green); border: 1px solid rgba(22,163,74,.2); }
.badge-negative { background: rgba(220,38,38,.1); color: var(--neon-red); border: 1px solid rgba(220,38,38,.2); }
.badge-neutral  { background: rgba(0,153,204,.08); color: var(--neon-cyan); border: 1px solid rgba(0,153,204,.15); }
.badge-warning  { background: rgba(217,119,6,.1); color: var(--neon-amber); border: 1px solid rgba(217,119,6,.2); }
.badge-critical { background: rgba(230,0,92,.1); color: var(--neon-pink); border: 1px solid rgba(230,0,92,.2); }
.card-body { padding: 22px; }

/* ═══ KPI ROW ═══ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--neon-cyan);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(0,153,204,.04) 0%, transparent 100%);
  pointer-events: none;
}
.kpi-card:hover { border-color: rgba(0,153,204,.3); box-shadow: var(--shadow-glow-cyan); transform: translateY(-2px); }
.kpi-card.positive { border-top-color: var(--neon-green); }
.kpi-card.positive::before { background: linear-gradient(180deg, rgba(22,163,74,.04) 0%, transparent 100%); }
.kpi-card.negative { border-top-color: var(--neon-red); }
.kpi-card.negative::before { background: linear-gradient(180deg, rgba(220,38,38,.04) 0%, transparent 100%); }
.kpi-card.warning  { border-top-color: var(--neon-amber); }
.kpi-card.warning::before { background: linear-gradient(180deg, rgba(217,119,6,.04) 0%, transparent 100%); }
.kpi-label {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: 8px;
  position: relative;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: 2.2rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: -.03em;
  line-height: 1;
  position: relative;
}
.kpi-value.text-positive { color: var(--neon-green); }
.kpi-value.text-negative { color: var(--neon-red); }
.kpi-detail {
  font-size: .78rem; color: var(--text-muted); margin-top: 6px;
  position: relative;
}

/* ═══ GRID LAYOUTS ═══ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ═══ CHARTS ═══ */
.chart-container { position: relative; width: 100%; }
.chart-container.h-300 { height: 300px; }
.chart-container.h-350 { height: 350px; }
.chart-container.h-400 { height: 400px; }
.chart-container.h-500 { height: 500px; }

/* ═══ TABLES ═══ */
.table-wrapper { overflow-x: auto; }
.table-controls {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
}
.table-search {
  padding: 7px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  outline: none;
  min-width: 220px;
  background: var(--bg-deep);
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.table-search::placeholder { color: var(--text-muted); }
.table-search:focus { border-color: var(--neon-cyan); box-shadow: 0 0 0 3px rgba(0,153,204,.1); }
.table-filter {
  padding: 7px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  background: var(--bg-deep);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}
.table-filter option { background: #fff; color: var(--text-primary); }
.table-filter:focus { border-color: var(--neon-cyan); }

.data-table { width: 100%; }
.data-table thead { background: var(--bg-deep); }
.data-table th {
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--glass-border);
  transition: color var(--transition);
}
.data-table th:hover { color: var(--neon-cyan); }
.data-table th.sorted { color: var(--neon-cyan); }
.data-table th .sort-icon { margin-left: 4px; font-size: .65rem; }
.data-table td {
  padding: 10px 16px;
  font-size: .88rem;
  border-bottom: 1px solid rgba(0,0,0,.04);
  white-space: nowrap;
  color: var(--text-secondary);
}
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: rgba(0,153,204,.04); }
.data-table .val-positive { color: var(--neon-green); font-weight: 600; }
.data-table .val-negative { color: var(--neon-red); font-weight: 600; }
.data-table .val-null { color: var(--text-dim); }

/* ═══ INSIGHT CARDS ═══ */
.insight-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--neon-cyan);
  box-shadow: var(--shadow-sm);
}
.insight-card.opportunity { border-left-color: var(--neon-green); }
.insight-card.risk { border-left-color: var(--neon-red); }
.insight-card.warning { border-left-color: var(--neon-amber); }
.insight-card.info { border-left-color: var(--neon-cyan); }
.insight-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.insight-text {
  font-size: .88rem; color: var(--text-secondary); line-height: 1.65;
}
.insight-list {
  list-style: none; padding: 0; margin: 10px 0 0;
}
.insight-list li {
  font-size: .85rem; color: var(--text-secondary);
  padding: 5px 0 5px 18px;
  position: relative;
}
.insight-list li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
}
.insight-list.positive li::before { background: var(--neon-green); }
.insight-list.negative li::before { background: var(--neon-red); }

/* ═══ PILLAR CARDS ═══ */
.pillar-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.pillar-card:hover {
  border-color: rgba(0,153,204,.2);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}
.pillar-icon {
  width: 52px; height: 52px;
  background: rgba(0,153,204,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--neon-cyan);
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar-title {
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 10px;
}
.pillar-desc {
  font-size: .82rem; color: var(--text-muted); line-height: 1.6;
}

/* ═══ COMPARISON LAYOUT ═══ */
.comparison {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.comparison-col h3 {
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid;
}
.comparison-col.strengths h3 { color: var(--neon-green); border-color: var(--neon-green); }
.comparison-col.weaknesses h3 { color: var(--neon-red); border-color: var(--neon-red); }

/* ═══ QUOTE BOX ═══ */
.quote-box {
  background: rgba(0,153,204,.05);
  border-left: 3px solid var(--neon-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 16px 0;
}
.quote-box p {
  font-size: 1.05rem; font-weight: 600;
  color: var(--neon-cyan);
  font-style: italic;
  line-height: 1.5;
}

/* ═══ TAG / CHIP ═══ */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 600;
  margin: 3px 4px 3px 0;
}
.tag-blue { background: rgba(0,153,204,.1); color: var(--neon-cyan); border: 1px solid rgba(0,153,204,.2); }
.tag-green { background: rgba(22,163,74,.1); color: var(--neon-green); border: 1px solid rgba(22,163,74,.2); }
.tag-red { background: rgba(220,38,38,.1); color: var(--neon-red); border: 1px solid rgba(220,38,38,.2); }
.tag-gray { background: rgba(0,0,0,.04); color: var(--text-secondary); border: 1px solid var(--glass-border); }

/* ═══ PROGRESS BAR ═══ */
.progress-bar {
  height: 8px; border-radius: 99px;
  background: rgba(0,0,0,.06);
  overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 99px;
  background: var(--grad-cyan-purple);
  transition: width 600ms ease;
}

/* ═══ HAMBURGER (mobile) ═══ */
.hamburger {
  display: none;
  position: fixed; top: 16px; left: 16px;
  z-index: 200;
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--neon-cyan);
  box-shadow: var(--shadow);
}
.hamburger svg { width: 22px; height: 22px; }

/* ═══ OVERLAY ═══ */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
  z-index: 90;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .grid-2, .grid-3, .grid-2-1, .grid-1-2, .comparison {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .hamburger { display: flex; }
  .main { margin-left: 0; }
  .page-header { padding: 20px 20px 20px 68px; }
  .page-content { padding: 20px 16px 40px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ═══ MAPA INTERATIVO ═══ */
.map-mode-toggle {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.map-mode-btn {
  padding: 8px 18px; border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: #fff; font-family: var(--font-display);
  font-size: .82rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.map-mode-btn:hover { border-color: rgba(0,153,204,.3); color: var(--neon-cyan); }
.map-mode-btn.active {
  background: var(--grad-cyan-purple); color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(0,153,204,.2);
}
.map-legend {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px;
  font-size: .78rem; font-weight: 600; color: var(--text-secondary);
}
.map-legend-item {
  display: flex; align-items: center; gap: 6px;
}
.map-legend-dot {
  width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex-shrink: 0;
}

.map-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start;
}
.map-container-wrapper { min-height: 500px; }
.brazil-map-svg {
  width: 100%; max-height: 600px; display: flex; align-items: center; justify-content: center;
}
.brazil-map-svg svg {
  width: 100%; height: auto; max-height: 580px;
}
.brazil-map-svg svg path {
  stroke: rgba(0,0,0,.15); stroke-width: 0.8; cursor: pointer;
  transition: fill .2s, opacity .15s, stroke .2s;
}
.brazil-map-svg svg path:hover {
  opacity: .85; stroke-width: 1.5; stroke: var(--neon-cyan);
  filter: drop-shadow(0 0 4px rgba(0,153,204,.25));
}
.brazil-map-svg svg path.map-state-active {
  stroke: var(--neon-cyan); stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(0,153,204,.3));
}

.map-tooltip {
  position: absolute; pointer-events: none;
  background: #fff;
  border: 1px solid var(--glass-border);
  color: var(--text-primary); padding: 8px 14px; border-radius: 10px; font-size: .78rem; font-weight: 600;
  z-index: 100; white-space: nowrap; opacity: 0; transition: opacity .15s;
  box-shadow: var(--shadow-md);
}
.map-tooltip.visible { opacity: 1; }

.map-detail-panel {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  overflow: hidden; position: sticky; top: 20px;
  box-shadow: var(--shadow-sm);
}
.map-detail-placeholder {
  padding: 60px 20px; text-align: center; color: var(--text-muted);
}
.map-detail-placeholder svg { stroke: var(--text-muted); }
.map-detail-placeholder p { margin-top: 12px; font-size: .88rem; }

.map-detail-header {
  padding: 20px 20px 16px; border-bottom: 1px solid var(--glass-border);
}
.map-detail-uf {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  background: var(--grad-cyan-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.map-detail-state-name {
  font-size: .85rem; color: var(--text-muted); margin-top: 2px;
}
.map-detail-body { padding: 16px 20px 20px; }
.map-detail-section {
  margin-bottom: 18px;
}
.map-detail-section:last-child { margin-bottom: 0; }
.map-detail-section-title {
  font-family: var(--font-display);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: 8px;
}
.map-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: .84rem;
}
.map-detail-row-label { color: var(--text-secondary); }
.map-detail-row-value { font-family: var(--font-mono); font-weight: 700; color: var(--text-primary); }
.map-detail-bar {
  height: 8px; border-radius: 4px; background: rgba(0,0,0,.06); overflow: hidden; margin-top: 6px;
}
.map-detail-bar-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }
.map-detail-gov-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--bg-deep); border-radius: 12px;
  border: 1px solid var(--glass-border);
}
.map-detail-gov-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,153,204,.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 700; color: var(--neon-cyan);
}
.map-detail-gov-info { flex: 1; }
.map-detail-gov-name { font-weight: 700; font-size: .88rem; color: var(--text-primary); }
.map-detail-gov-meta { font-size: .75rem; color: var(--text-muted); }
.map-no-data {
  padding: 8px 12px; background: var(--bg-deep); border-radius: 8px;
  font-size: .82rem; color: var(--text-muted); text-align: center;
}

@media (max-width: 1024px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-detail-panel { position: static; }
}


/* ═══════════════════════════════════════════
   EDITORIAL / NEON PAGES — ANÁLISE GROUP
   Space Grotesk headlines · White cards · Neon accents
   ═══════════════════════════════════════════ */

/* ── Editorial Page Wrapper ── */
.editorial-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.editorial-page .page-content {
  padding: 0;
  max-width: none;
}

/* ── Hero / Lede Section ── */
.ed-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 48px;
  position: relative;
}
.ed-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 200px;
  height: 3px;
  background: var(--grad-cyan-purple);
}
.ed-kicker {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ed-kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  display: inline-block;
}
.ed-headline {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -.03em;
  margin-bottom: 20px;
  max-width: 700px;
}
.ed-deck {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
}
.ed-byline {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed-byline strong {
  color: var(--neon-cyan);
}

/* ── Big Numbers / Stats Row ── */
.ed-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin: 40px 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ed-stat {
  padding: 28px 24px;
  border-right: 1px solid var(--glass-border);
  position: relative;
}
.ed-stat:last-child { border-right: none; }
.ed-stat-number {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--text-primary);
}
.ed-stat-number.positive { color: var(--neon-green); }
.ed-stat-number.negative { color: var(--neon-red); }
.ed-stat-label {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ed-stat-detail {
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── Section Headers ── */
.ed-section {
  margin-bottom: 56px;
}
.ed-section-label {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--neon-purple);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}
.ed-section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.ed-section-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
}

/* ── Pull Quote ── */
.ed-pullquote {
  margin: 48px 0;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  border-left: 3px solid var(--neon-purple);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.ed-pullquote::before {
  content: '\201C';
  position: absolute;
  top: 16px; left: 20px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--neon-purple);
  opacity: .2;
  line-height: 1;
}
.ed-pullquote p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: -.01em;
  max-width: 700px;
}
.ed-pullquote cite {
  font-size: .82rem;
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-top: 14px;
}
.ed-pullquote-accent {
  border-left-color: var(--neon-pink);
}
.ed-pullquote-accent::before {
  color: var(--neon-pink);
}
.ed-pullquote-accent p {
  color: var(--neon-pink);
}

/* ── Body Text ── */
.ed-prose {
  font-size: .98rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
}
.ed-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}
.ed-prose p + p { margin-top: 20px; }

/* ── Drop Cap ── */
.ed-dropcap::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4.2rem;
  font-weight: 700;
  line-height: .8;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--neon-cyan);
}

/* ── Editorial Grid ── */
.ed-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0;
}
.ed-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}
.ed-grid-asymm {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  margin: 36px 0;
  align-items: start;
}
@media (max-width: 768px) {
  .ed-grid-2, .ed-grid-3, .ed-grid-asymm {
    grid-template-columns: 1fr;
  }
  .ed-headline { font-size: 2rem; }
  .ed-stat-number { font-size: 2rem; }
  .ed-pullquote p { font-size: 1.15rem; }
  .editorial-page { padding: 0 16px 60px; }
}

/* ── Insight Block (neon style) ── */
.ed-insight {
  padding: 28px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.ed-insight-opportunity {
  border-left: 3px solid var(--neon-green);
}
.ed-insight-opportunity::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 60px;
  background: linear-gradient(90deg, rgba(22,163,74,.05) 0%, transparent 100%);
  pointer-events: none;
}
.ed-insight-risk {
  border-left: 3px solid var(--neon-red);
}
.ed-insight-risk::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 60px;
  background: linear-gradient(90deg, rgba(220,38,38,.05) 0%, transparent 100%);
  pointer-events: none;
}
.ed-insight-warning {
  border-left: 3px solid var(--neon-amber);
}
.ed-insight-warning::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 60px;
  background: linear-gradient(90deg, rgba(217,119,6,.05) 0%, transparent 100%);
  pointer-events: none;
}
.ed-insight-info {
  border-left: 3px solid var(--neon-cyan);
}
.ed-insight-info::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 60px;
  background: linear-gradient(90deg, rgba(0,153,204,.05) 0%, transparent 100%);
  pointer-events: none;
}
.ed-insight-neutral {
  border-left: 3px solid var(--neon-purple);
}
.ed-insight-tag {
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
}
.ed-insight-tag.opportunity { background: rgba(22,163,74,.1); color: var(--neon-green); }
.ed-insight-tag.risk { background: rgba(220,38,38,.1); color: var(--neon-red); }
.ed-insight-tag.critical { background: rgba(230,0,92,.12); color: var(--neon-pink); }
.ed-insight-tag.warning { background: rgba(217,119,6,.1); color: var(--neon-amber); }
.ed-insight-tag.info { background: rgba(0,153,204,.1); color: var(--neon-cyan); }
.ed-insight h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.ed-insight .ed-prose {
  font-size: .9rem;
  line-height: 1.65;
}

/* ── Editorial List ── */
.ed-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.ed-list li {
  font-size: .9rem;
  color: var(--text-secondary);
  padding: 8px 0 8px 20px;
  position: relative;
  line-height: 1.55;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.ed-list li:last-child { border-bottom: none; }
.ed-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 2px;
}
.ed-list.positive li::before { background: var(--neon-green); }
.ed-list.negative li::before { background: var(--neon-red); }
.ed-list.neutral li::before { background: var(--text-muted); }
.ed-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Pillar (Neon) ── */
.ed-pillar {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--neon-cyan);
  border-radius: var(--radius);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ed-pillar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(180deg, rgba(0,153,204,.04) 0%, transparent 100%);
  pointer-events: none;
}
.ed-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(0,153,204,.25);
  box-shadow: var(--shadow-glow-cyan);
}
.ed-pillar-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--neon-cyan);
  opacity: .8;
}
.ed-pillar-icon svg { width: 100%; height: 100%; }
.ed-pillar h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.ed-pillar p {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Wave Comparison ── */
.ed-wave-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin: 36px 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ed-wave-col {
  padding: 32px;
}
.ed-wave-col:first-child {
  border-right: 1px solid var(--glass-border);
  background: rgba(22,163,74,.03);
}
.ed-wave-col:last-child {
  background: rgba(220,38,38,.03);
}
.ed-wave-col h4 {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.ed-wave-badge {
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 12px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 14px;
}
.ed-wave-badge.improve { background: rgba(22,163,74,.1); color: var(--neon-green); }
.ed-wave-badge.cooling { background: rgba(220,38,38,.1); color: var(--neon-red); }
.ed-wave-col p {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.ed-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ed-tag {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  display: inline-block;
}
.ed-tag.green { background: rgba(22,163,74,.1); color: var(--neon-green); }
.ed-tag.red { background: rgba(220,38,38,.1); color: var(--neon-red); }
.ed-tag.blue { background: rgba(0,153,204,.1); color: var(--neon-cyan); }
.ed-tag.gray { background: rgba(0,0,0,.04); color: var(--text-secondary); }

/* ── Chart Wrapper ── */
.ed-chart-wrapper {
  margin: 36px 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.ed-chart-wrapper .ed-chart-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.ed-chart-wrapper .ed-chart-subtitle {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── Strength/Weakness Two-Column ── */
.ed-sw-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin: 36px 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ed-sw-col {
  padding: 32px;
  background: #fff;
}
.ed-sw-col:first-child { border-right: 1px solid var(--glass-border); }
.ed-sw-col h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
}
.ed-sw-col.strengths h3 { color: var(--neon-green); border-color: var(--neon-green); }
.ed-sw-col.weaknesses h3 { color: var(--neon-red); border-color: var(--neon-red); }

/* ── Divider ── */
.ed-divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 48px 0;
}
.ed-divider-thick {
  border: none;
  height: 3px;
  background: var(--grad-cyan-purple);
  margin: 48px 0;
}

/* ── Animate on scroll ── */
.ed-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.ed-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── KPI grid editorial style ── */
.ed-kpi-inline {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.ed-kpi-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ed-kpi-item .number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ed-kpi-item .label {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── IR Data Callout ── */
.ed-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin: 32px 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.ed-callout-item {
  padding: 28px 32px;
  text-align: center;
}
.ed-callout-item:first-child { border-right: 1px solid var(--glass-border); }
.ed-callout-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.ed-callout-label {
  font-family: var(--font-display);
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Programs visual list ── */
.ed-programs-section {
  margin: 32px 0;
}
.ed-programs-area {
  margin-bottom: 20px;
}
.ed-programs-area h5 {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ── Opportunity/Risk cards ── */
.ed-or-card {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--glass-border);
}
.ed-or-card:last-child { border-bottom: none; }
.ed-or-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ed-or-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
}
.ed-or-impact {
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: 99px;
}

/* ── Two-column Pro/Con ── */
.ed-procon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.ed-procon h5 {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.ed-procon h5.pro { color: var(--neon-green); }
.ed-procon h5.con { color: var(--neon-red); }

@media (max-width: 768px) {
  .ed-wave-compare, .ed-sw-layout, .ed-callout, .ed-procon {
    grid-template-columns: 1fr;
  }
  .ed-wave-col:first-child, .ed-sw-col:first-child, .ed-callout-item:first-child {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .ed-stats-row { grid-template-columns: 1fr 1fr; }
  .ed-stat { border-bottom: 1px solid var(--glass-border); }
}

/* ═══ CLUSTERS ELEITORAIS ═══ */
.cl-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
.cl-sidebar { position: sticky; top: 80px; }
.cl-region-list { display: flex; flex-direction: column; gap: 4px; }
.cl-region-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all .2s;
  text-align: left;
}
.cl-region-btn:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}
.cl-region-btn.active {
  background: rgba(0,153,204,.06);
  border-color: rgba(0,153,204,.2);
  color: var(--neon-cyan);
  font-weight: 600;
}
.cl-rdot {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0; display: inline-block;
}

/* Composition bars */
.cl-comp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.cl-comp-row:last-child { border-bottom: none; }
.cl-comp-label {
  width: 80px; flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--text-secondary);
}
.cl-comp-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.cl-comp-bar {
  flex: 1; height: 8px; border-radius: 4px;
  background: rgba(0,0,0,.06); overflow: hidden;
}
.cl-comp-fill {
  height: 100%; border-radius: 4px;
  transition: width .4s ease;
}
.cl-comp-val {
  width: 48px; text-align: right; flex-shrink: 0;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  color: var(--text-primary);
}

/* Age Tabs */
.cl-tabs {
  display: flex; border-bottom: 1px solid var(--glass-border);
}
.cl-tab {
  flex: 1; padding: 14px 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 500;
  color: var(--text-muted);
  border: none; border-bottom: 2px solid transparent;
  cursor: pointer; transition: all .2s;
  background: none;
}
.cl-tab svg { opacity: .5; }
.cl-tab:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,.02);
}
.cl-tab:hover svg { opacity: .7; }
.cl-tab.active {
  color: var(--neon-cyan);
  font-weight: 600;
  border-bottom-color: var(--neon-cyan);
}
.cl-tab.active svg { opacity: 1; color: var(--neon-cyan); }

/* Metric Toggle Buttons */
.cl-metric-toggles {
  display: flex; gap: 6px;
}
.cl-metric-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--bg-deep);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.cl-metric-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}
.cl-metric-btn.active {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,153,204,.25);
}
.cl-metric-btn.active .cl-metric-dot { background: #fff; }
.cl-metric-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.cl-dot-green { background: #16a34a; }
.cl-dot-gray  { background: #8896ab; }
.cl-dot-red   { background: #ef4444; }

/* Income Cards Grid */
.cl-income-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.cl-income-card {
  background: var(--bg-deep);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 18px;
  transition: all .2s;
}
.cl-income-card:hover {
  border-color: rgba(0,153,204,.2);
  box-shadow: var(--shadow-sm);
}
.cl-income-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.cl-income-label {
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 700;
  color: var(--text-primary);
}
.cl-income-pct {
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0,153,204,.08);
  padding: 3px 10px; border-radius: 99px;
}

/* Horizontal bars */
.cl-bar-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.cl-bar-label {
  width: 85px; flex-shrink: 0;
  font-size: .7rem; font-weight: 500;
  color: var(--text-muted);
}
.cl-bar {
  flex: 1; height: 8px; border-radius: 4px;
  background: rgba(0,0,0,.06); overflow: hidden;
}
.cl-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width .4s ease;
}
.cl-bar-green { background: var(--neon-green); }
.cl-bar-gray { background: #94a3b8; }
.cl-bar-red { background: var(--neon-red); }
.cl-bar-val {
  width: 36px; text-align: right; flex-shrink: 0;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
  color: var(--text-secondary);
}
.cl-val-green { color: var(--neon-green); }
.cl-val-red { color: var(--neon-red); }

.cl-income-meta {
  display: flex; justify-content: space-between;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: .7rem; color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Wave mini-table */
.cl-wave-table {
  width: 100%; margin-top: 14px;
  border-collapse: collapse;
}
.cl-wave-table th, .cl-wave-table td {
  padding: 3px 4px;
  font-size: .62rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.cl-wave-table th {
  font-family: var(--font-display); font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .03em;
}
.cl-wave-table td {
  font-family: var(--font-mono); font-weight: 500;
  color: var(--text-secondary);
}
.cl-wave-table .cl-wt-green { color: var(--neon-green); font-weight: 600; }
.cl-wave-table .cl-wt-red { color: var(--neon-red); font-weight: 600; }

@media (max-width: 1024px) {
  .cl-layout { grid-template-columns: 1fr; }
  .cl-sidebar { position: static; }
  .cl-region-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cl-region-btn { width: auto; flex: 0 0 auto; }
}
@media (max-width: 768px) {
  .cl-income-grid { grid-template-columns: 1fr; }
  .cl-tab { font-size: .75rem; padding: 12px 8px; }
  .cl-tab svg { display: none; }
}

/* ═══ LOGIN SCREEN ═══ */
.login-screen {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #dbeafe 100%);
  transition: opacity .4s, visibility .4s;
}
.login-screen.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.login-card {
  width: 380px; max-width: 90vw;
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
  text-align: center;
  animation: loginFadeIn .5s ease-out;
}
@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.login-logo {
  margin-bottom: 16px;
}
.login-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.login-subtitle {
  font-size: .85rem; color: var(--text-muted);
  margin: 0 0 32px;
  font-weight: 500;
}
.login-field {
  text-align: left; margin-bottom: 18px;
}
.login-field label {
  display: block;
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.login-field input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--glass-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .9rem; color: var(--text-primary);
  background: var(--bg-deep);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
}
.login-field input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0,153,204,.12);
}
.login-pass-wrap {
  position: relative;
}
.login-pass-wrap input { padding-right: 44px; }
.login-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.login-eye:hover { color: var(--neon-cyan); }
.login-error {
  background: #fef2f2;
  color: #dc2626;
  font-size: .82rem; font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #fecaca;
  animation: loginShake .4s ease;
}
@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.login-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--neon-cyan), #0077aa);
  color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  letter-spacing: .02em;
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,153,204,.3);
}
.login-btn:active { transform: translateY(0); }
.login-footer {
  margin-top: 24px;
  font-size: .72rem; color: var(--text-muted);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ═══ PRINT ═══ */
@media print {
  .sidebar, .hamburger { display: none !important; }
  .main { margin-left: 0 !important; background: #fff !important; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; background: #fff !important; }
  body { background: #fff !important; color: #000 !important; }
}
