/**
 * dashboard-v2.css — Dashboard World-Class Premium
 * InspectorPRO NR-13 — Bloomberg Terminal meets Tesla
 * Criado: 2026-05-21
 *
 * Design System:
 * - Background: #0f172a (deep navy)
 * - Primary glow: #00d4ff (cyan neon)
 * - Secondary glow: #a855f7 (purple)
 * - Success: #10b981 (emerald)
 * - Danger: #ef4444 (red)
 * - Warning: #f59e0b (amber)
 * - Glass: rgba(255,255,255,0.03) + blur(16px)
 */

/* ==========================================
   UTILITY ANIMATIONS
   ========================================== */

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes flow-dot {
  0% { transform: translateX(-8px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(8px); opacity: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes border-glow {
  0%, 100% { border-color: rgba(0,212,255,0.15); }
  50% { border-color: rgba(0,212,255,0.35); }
}

/* ==========================================
   MACRO KPI CARDS (top row)
   ========================================== */

.dash-macro-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.dash-macro-card {
  position: relative;
  border-radius: 20px;
  padding: 24px 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.dash-macro-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--card-accent, rgba(255,255,255,0.1)), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dash-macro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px var(--card-shadow, rgba(0,0,0,0.4));
}

.dash-macro-card .kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-macro-card .kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  animation: count-up 0.6s ease-out;
}

.dash-macro-card .kpi-spark {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 50px;
  opacity: 0.15;
}

/* Card variants */
.dash-macro-card.card-receita {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
  --card-accent: rgba(16,185,129,0.4);
  --card-shadow: rgba(16,185,129,0.2);
}
.dash-macro-card.card-receita .kpi-label { color: #10b981; }

.dash-macro-card.card-despesa {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02));
  --card-accent: rgba(239,68,68,0.4);
  --card-shadow: rgba(239,68,68,0.2);
}
.dash-macro-card.card-despesa .kpi-label { color: #ef4444; }

.dash-macro-card.card-saldo {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,212,255,0.02));
  --card-accent: rgba(0,212,255,0.4);
  --card-shadow: rgba(0,212,255,0.2);
}
.dash-macro-card.card-saldo .kpi-label { color: #00d4ff; }

.dash-macro-card.card-vencer {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
  --card-accent: rgba(245,158,11,0.4);
  --card-shadow: rgba(245,158,11,0.2);
  cursor: pointer;
}
.dash-macro-card.card-vencer .kpi-label { color: #f59e0b; }

.dash-macro-card.card-vencidas {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.03));
  --card-accent: rgba(239,68,68,0.5);
  --card-shadow: rgba(239,68,68,0.25);
  cursor: pointer;
}
.dash-macro-card.card-vencidas .kpi-label { color: #ef4444; }

/* ==========================================
   PIPELINE DE NEGÓCIO
   ========================================== */

.pipeline-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 28px 32px;
  margin-bottom: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fade-in-up 0.5s ease-out 0.2s both;
}

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

.pipeline-header h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.pipeline-kpis {
  display: flex;
  gap: 12px;
}

.pipeline-kpi-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pipeline-kpi-pill strong {
  color: #00d4ff;
  font-weight: 800;
}

.pipeline-stages {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.pipeline-stage {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 20px 10px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  animation: fade-in-up 0.5s ease-out both;
}

.pipeline-stage:nth-child(1) { animation-delay: 0.3s; }
.pipeline-stage:nth-child(3) { animation-delay: 0.4s; }
.pipeline-stage:nth-child(5) { animation-delay: 0.5s; }
.pipeline-stage:nth-child(7) { animation-delay: 0.6s; }
.pipeline-stage:nth-child(9) { animation-delay: 0.7s; }

.pipeline-stage:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.pipeline-stage-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
  filter: drop-shadow(0 0 8px var(--stage-glow, transparent));
}

.pipeline-stage-count {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.pipeline-stage-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #64748b;
}

.pipeline-stage-value {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 8px;
  font-weight: 600;
}

.pipeline-arrow {
  flex-shrink: 0;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  position: relative;
}

.pipeline-arrow::after {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,212,255,0.3), rgba(0,212,255,0.05));
  position: absolute;
}

.pipeline-arrow svg {
  color: rgba(0,212,255,0.35);
  width: 16px;
  height: 16px;
  animation: glow-pulse 2s infinite;
}

/* Stage border accents */
.pipeline-stage[data-stage="propostas"] {
  border-top: 2px solid #3b82f6;
  --stage-glow: rgba(59,130,246,0.4);
}
.pipeline-stage[data-stage="aprovadas"] {
  border-top: 2px solid #8b5cf6;
  --stage-glow: rgba(139,92,246,0.4);
}
.pipeline-stage[data-stage="inspecionadas"] {
  border-top: 2px solid #f59e0b;
  --stage-glow: rgba(245,158,11,0.4);
}
.pipeline-stage[data-stage="laudos"] {
  border-top: 2px solid #06b6d4;
  --stage-glow: rgba(6,182,212,0.4);
}
.pipeline-stage[data-stage="faturadas"] {
  border-top: 2px solid #10b981;
  --stage-glow: rgba(16,185,129,0.4);
}

/* ==========================================
   CENTER GRID (Chart + Right stack)
   ========================================== */

.dash-center-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-bottom: 28px;
}

.dash-chart-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  animation: fade-in-up 0.5s ease-out 0.4s both;
}

.dash-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dash-chart-header h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.dash-chart-header .chart-subtitle {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 4px;
}

.dash-chart-header .chart-total {
  text-align: right;
}

.dash-chart-header .chart-total-label {
  color: #94a3b8;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.dash-chart-header .chart-total-value {
  color: #00d4ff;
  font-weight: 800;
  font-size: 1.6rem;
  margin-top: 2px;
}

.dash-chart-body {
  flex: 1;
  min-height: 280px;
  position: relative;
}

.dash-chart-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-right-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================
   NR-13 COMPLIANCE CARD
   ========================================== */

.nr13-compliance {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fade-in-up 0.5s ease-out 0.5s both;
}

.nr13-compliance h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 18px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.compliance-rate {
  text-align: center;
  flex-shrink: 0;
}

.compliance-rate-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.compliance-rate-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-top: 4px;
}

.compliance-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
}

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

.compliance-item-label {
  font-size: 0.78rem;
  color: #94a3b8;
  flex: 1;
}

.compliance-item-value {
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 36px;
  text-align: right;
}

.compliance-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.compliance-stat {
  text-align: center;
  padding: 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
}

.compliance-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #e2e8f0;
}

.compliance-stat-label {
  font-size: 0.6rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-top: 2px;
}

/* ==========================================
   DRE MINI (inside saude card)
   ========================================== */

.saude-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fade-in-up 0.5s ease-out 0.6s both;
}

.saude-card h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dre-mini {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dre-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

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

.dre-row-label { color: #94a3b8; }
.dre-row-value { font-weight: 700; color: #e2e8f0; }

.dre-row.dre-total {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  padding-top: 10px;
  margin-top: 4px;
}

.dre-row.dre-total .dre-row-label {
  font-weight: 800;
  color: #e2e8f0;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.dre-positive { color: #10b981 !important; }
.dre-negative { color: #ef4444 !important; }
.dre-warning { color: #f59e0b !important; }

.dre-margin-bar {
  margin-top: 12px;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: hidden;
}

.dre-margin-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

/* ==========================================
   RASTREABILIDADE POR CLIENTE
   ========================================== */

.tracking-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 28px 32px;
  margin-bottom: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fade-in-up 0.5s ease-out 0.5s both;
}

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

.tracking-header h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracking-count-pill {
  background: rgba(0,212,255,0.1);
  color: #00d4ff;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(0,212,255,0.2);
}

.tracking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

.tracking-list::-webkit-scrollbar { width: 4px; }
.tracking-list::-webkit-scrollbar-track { background: transparent; }
.tracking-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.tracking-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.2);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fade-in-up 0.4s ease-out both;
}

.tracking-card:hover {
  background: rgba(0,0,0,0.35);
  border-color: rgba(0,212,255,0.15);
  transform: translateX(4px);
}

.tracking-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #00d4ff;
  flex-shrink: 0;
}

.tracking-cliente-info {
  flex: 1;
  min-width: 0;
}

.tracking-cliente-nome {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tracking-cliente-meta {
  color: #64748b;
  font-size: 0.72rem;
  margin-top: 2px;
}

.tracking-steps {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.tracking-step {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: #334155;
  transition: all 0.25s;
  position: relative;
}

.tracking-step.done {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.3);
  color: #10b981;
}

.tracking-step.active {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(59,130,246,0.2);
  animation: pulse-step 2s infinite;
}

.tracking-step-arrow {
  color: rgba(255,255,255,0.08);
  font-size: 0.5rem;
  margin: 0 1px;
}

.tracking-valor {
  font-weight: 800;
  font-size: 0.9rem;
  color: #10b981;
  white-space: nowrap;
  min-width: 85px;
  text-align: right;
}

@keyframes pulse-step {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.3); }
  50% { box-shadow: 0 0 0 5px rgba(59,130,246,0); }
}

/* ==========================================
   OPERATIONS HUB (follow-up + renovações)
   ========================================== */

.dash-ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.dash-ops-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dash-ops-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dash-ops-card-header h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1150px) {
  .dash-macro-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-center-grid {
    grid-template-columns: 1fr;
  }

  .dash-ops-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1150px) {
  .pipeline-stages {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pipeline-stage {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
  }

  .pipeline-arrow {
    display: none;
  }

  .pipeline-kpis {
    flex-direction: column;
    gap: 6px;
  }

  .pipeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .compliance-top {
    flex-direction: column;
    text-align: center;
  }

  .tracking-card {
    flex-wrap: wrap;
    gap: 10px;
  }

  .tracking-steps {
    width: 100%;
    justify-content: center;
  }

  .tracking-valor {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .dash-macro-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-container,
  .tracking-container,
  .dash-chart-card,
  .nr13-compliance,
  .saude-card {
    padding: 18px;
    border-radius: 16px;
  }

  .pipeline-stage {
    flex: 1 1 100%;
  }

  .dash-macro-card .kpi-value {
    font-size: 1.6rem;
  }
}

/* ==========================================
   ESTILOS PREMIUM DASHBOARD WORLD-CLASS (IMAGE INSPIRED)
   ========================================== */

.premium-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.premium-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.premium-kpi-card {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 18, 30, 0.55) 0%, rgba(5, 10, 20, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.premium-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background: radial-gradient(circle, var(--kpi-glow-color, rgba(0, 212, 255, 0.2)) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0.8;
}

.premium-kpi-card:hover {
  transform: translateY(-4px);
  border-color: var(--kpi-hover-color, rgba(0, 212, 255, 0.35));
  box-shadow: 0 12px 40px -10px var(--kpi-shadow-color, rgba(0, 212, 255, 0.15));
}

.premium-kpi-card.kpi-annual-revenue {
  --kpi-glow-color: rgba(16, 185, 129, 0.3);
  --kpi-hover-color: rgba(16, 185, 129, 0.45);
  --kpi-shadow-color: rgba(16, 185, 129, 0.2);
}

.premium-kpi-card.kpi-profit-margin {
  --kpi-glow-color: rgba(0, 212, 255, 0.3);
  --kpi-hover-color: rgba(0, 212, 255, 0.45);
  --kpi-shadow-color: rgba(0, 212, 255, 0.2);
}

.premium-kpi-card.kpi-cac {
  --kpi-glow-color: rgba(245, 158, 11, 0.3);
  --kpi-hover-color: rgba(245, 158, 11, 0.45);
  --kpi-shadow-color: rgba(245, 158, 11, 0.2);
}

.premium-kpi-card.kpi-cagr {
  --kpi-glow-color: rgba(168, 85, 247, 0.3);
  --kpi-hover-color: rgba(168, 85, 247, 0.45);
  --kpi-shadow-color: rgba(168, 85, 247, 0.2);
}

.premium-kpi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.premium-kpi-icon {
  font-size: 1rem;
}

.premium-kpi-value {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 8px;
}

.premium-kpi-footer {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.premium-trend-up {
  color: #10b981;
}

.premium-trend-down {
  color: #ef4444;
}

/* trilateral grid layout */
.premium-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.premium-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.premium-glass-card {
  position: relative;
  background: rgba(10, 18, 30, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s;
}

.premium-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.premium-card-title {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-card-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.chart-canvas-wrapper {
  position: relative;
  width: 100%;
}

/* map container styling */
.premium-map-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(5, 10, 18, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  position: relative;
}

.marker-pulse {
  animation: pulse-glow 2s infinite ease-in-out;
  transform-origin: center;
}

.map-marker {
  cursor: pointer;
  transition: opacity 0.2s;
}

.map-marker:hover {
  opacity: 0.95;
}

@keyframes pulse-glow {
  0% {
    r: 6px;
    opacity: 0.8;
  }
  100% {
    r: 18px;
    opacity: 0;
  }
}

.map-tooltip {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-size: 0.75rem;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

.map-tooltip strong {
  color: #00d4ff;
  font-family: 'Outfit', sans-serif;
}

/* Collapsible Section at Bottom */
.collapsible-trigger-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #cbd5e1;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.collapsible-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}

.collapsible-content {
  display: none;
  animation: slide-down 0.3s ease-out forwards;
}

.collapsible-content.expanded {
  display: block;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1400px) {
  .premium-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .premium-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .premium-kpi-row {
    grid-template-columns: 1fr;
  }
}

