/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:       #080B14;
  --bg-surface:    #0E1220;
  --bg-surface2:   #131929;
  --bg-surface3:   #1a2235;
  --border:        rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.1);
  --text-primary:  #E8EAF0;
  --text-secondary:#8892A4;
  --text-muted:    #3D4A5C;
  --indigo:        #6366F1;
  --indigo-dim:    rgba(99,102,241,0.15);
  --emerald:       #10B981;
  --emerald-dim:   rgba(16,185,129,0.12);
  --amber:         #F59E0B;
  --amber-dim:     rgba(245,158,11,0.12);
  --red:           #EF4444;
  --red-dim:       rgba(239,68,68,0.12);
  --font-display:  'Syne', sans-serif;
  --font-body:     'Outfit', sans-serif;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     20px;
}

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-surface3); border-radius: 3px; }

/* ─── Background Atmosphere ────────────────────────────────────────────────── */
.bg-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(99,102,241,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16,185,129,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(245,158,11,0.02) 0%, transparent 70%);
}
.bg-glow {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(80px);
}
.bg-glow-1 { width: 600px; height: 400px; top: -100px; left: -100px; background: rgba(99,102,241,0.06); }
.bg-glow-2 { width: 400px; height: 400px; bottom: 10%; right: -100px; background: rgba(16,185,129,0.04); }
.bg-glow-3 { width: 300px; height: 300px; top: 40%; left: 40%; background: rgba(245,158,11,0.03); }

/* ─── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  padding: 0 24px; height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  margin-right: 40px; flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800; letter-spacing: 0.12em;
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub {
  font-size: 8px; font-weight: 600; letter-spacing: 0.25em;
  color: var(--text-muted); margin-top: 1px;
}
.nav-tabs { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-tab {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--text-secondary); background: none; border: none;
  padding: 7px 14px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s ease; position: relative;
}
.nav-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-tab.active {
  color: var(--text-primary);
  background: rgba(99,102,241,0.12);
}
.nav-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 8px; right: 8px;
  height: 2px; background: linear-gradient(90deg, #6366F1, #818cf8);
  border-radius: 1px;
}
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-secondary);
  padding: 5px 12px; border-radius: 20px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(16,185,129,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; cursor: pointer;
  border: 2px solid rgba(99,102,241,0.3);
}

/* ─── Main Layout ──────────────────────────────────────────────────────────── */
.main {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ─── Page Header ──────────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.5s ease both;
}
.page-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em;
}
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.page-header-right { display: flex; align-items: center; gap: 10px; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: white; border: none; cursor: pointer;
  padding: 9px 18px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  box-shadow: 0 4px 15px rgba(99,102,241,0.35);
  transition: all 0.2s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--text-secondary); background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); cursor: pointer;
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.07); border-color: var(--border-bright); }

.btn-ghost-sm {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: var(--text-secondary); background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); cursor: pointer;
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.btn-ghost-sm:hover { color: var(--text-primary); border-color: var(--border-bright); }

.btn-optimize {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: white; border: none; cursor: pointer;
  padding: 12px 24px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  transition: all 0.2s ease;
}
.btn-optimize:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.55); }
.btn-optimize:active { transform: translateY(0); }

.btn-apply {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: white; border: none; cursor: pointer;
  padding: 11px 20px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
  transition: all 0.2s ease; margin-top: 16px;
}
.btn-apply:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.45); }

.btn-insight-action {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: var(--text-secondary); padding: 0; margin-top: 8px;
  transition: color 0.2s ease;
}
.btn-insight-action:hover { color: var(--text-primary); }

/* ─── Hero Card ────────────────────────────────────────────────────────────── */
.hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(99,102,241,0.2);
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(14,18,32,0.95) 50%, rgba(16,185,129,0.05) 100%);
  padding: 36px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-bottom: 32px;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.1), 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(99,102,241,0.06);
  animation: fadeSlideUp 0.5s ease 0.1s both;
}
.hero-card-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(99,102,241,0.08) 0%, transparent 60%);
}
.hero-card-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.hero-value {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800; line-height: 1;
  letter-spacing: -0.03em; color: var(--text-primary);
  background: linear-gradient(135deg, #E8EAF0 0%, #a5b4fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.hero-unit { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.hero-savings {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  margin-bottom: 24px;
}
.hero-savings strong { color: var(--emerald); }
.savings-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(16,185,129,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald); flex-shrink: 0;
}
.hero-actions { display: flex; align-items: center; gap: 12px; }

/* Hero right */
.hero-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 20px;
}
.hero-stat {
  padding: 16px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.hero-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.hero-stat-value.text-emerald { color: var(--emerald); }
.hero-stat-value.text-amber { color: var(--amber); }
.hero-stat-change { font-size: 11px; }
.hero-stat-change.positive { color: var(--emerald); }
.hero-stat-change.negative { color: var(--red); }
.hero-stat-change.warning { color: var(--amber); }

/* Allocation bar */
.hero-allocation { }
.allocation-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.allocation-bar {
  display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden;
  margin-bottom: 10px;
}
.alloc-seg { height: 100%; border-radius: 2px; transition: opacity 0.2s; }
.alloc-seg:hover { opacity: 0.8; }
.allocation-legend {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-secondary);
}
.legend-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; margin-right: 4px;
}

/* ─── Content Grid ─────────────────────────────────────────────────────────── */
.content-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px;
  align-items: start;
}

/* ─── Section Header ───────────────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.01em;
}
.section-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ─── Providers Grid ───────────────────────────────────────────────────────── */
.providers-section { animation: fadeSlideUp 0.5s ease 0.2s both; }
.providers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}

/* ─── Provider Card ────────────────────────────────────────────────────────── */
.provider-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative; overflow: hidden;
}
.provider-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, rgba(99,102,241,0.4)), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.provider-card:hover {
  border-color: var(--accent-border, rgba(99,102,241,0.3));
  background: var(--bg-surface2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 20px rgba(0,0,0,0.2);
}
.provider-card:hover::before { opacity: 1; }

.provider-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.provider-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  border: 1px solid; flex-shrink: 0;
}
.provider-info { flex: 1; min-width: 0; }
.provider-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.provider-model { font-size: 10px; color: var(--text-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.provider-badge {
  font-size: 10px; font-weight: 600; padding: 3px 8px;
  border-radius: 20px; flex-shrink: 0;
}
.provider-badge.operational {
  color: var(--emerald); background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
}
.provider-badge.degraded {
  color: var(--amber); background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
}

.provider-balance { margin-bottom: 12px; }
.balance-credits {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em;
}
.balance-credits span { font-size: 12px; font-weight: 400; color: var(--text-muted); font-family: var(--font-body); }
.balance-acu { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.provider-usage { margin-bottom: 14px; }
.usage-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-muted); margin-bottom: 6px;
}
.usage-pct { font-weight: 600; }
.usage-bar {
  height: 5px; background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.usage-fill {
  height: 100%; border-radius: 3px;
  box-shadow: 0 0 8px currentColor;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.provider-footer {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-bottom: 10px;
}
.provider-stat { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.stat-val { font-size: 12px; font-weight: 600; color: var(--text-primary); }

.provider-warning, .provider-opportunity {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; padding: 7px 10px; border-radius: var(--radius-sm);
}
.provider-warning {
  color: #fbbf24; background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
}
.provider-opportunity {
  color: #34d399; background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.15);
}

/* ─── Insights Panel ───────────────────────────────────────────────────────── */
.insights-panel {
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeSlideUp 0.5s ease 0.3s both;
}

.insight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s ease;
}
.insight-card:hover { border-color: var(--border-bright); }

.insight-urgent {
  border-color: rgba(245,158,11,0.25);
  background: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, var(--bg-surface) 60%);
}
.insight-info { border-color: rgba(66,133,244,0.2); }
.insight-warning { border-color: rgba(245,158,11,0.2); }
.insight-success { border-color: rgba(16,185,129,0.2); }

/* Pulsing ring on urgent card */
.insight-pulse {
  position: absolute; top: 14px; right: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245,158,11,0.4);
  animation: pulse-ring 2s ease-in-out infinite;
}

.insight-header {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}
.insight-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.insight-tag {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--amber); margin-bottom: 4px;
}
.insight-title {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  line-height: 1.3;
}
.insight-body {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 14px;
}
.insight-body strong { color: var(--text-primary); }

/* Savings comparison bars */
.insight-savings-bar { display: flex; flex-direction: column; gap: 8px; }
.savings-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-secondary);
}
.savings-row > span:first-child { width: 110px; flex-shrink: 0; }
.savings-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.savings-fill { height: 100%; border-radius: 3px; }
.savings-num { width: 40px; text-align: right; font-weight: 600; color: var(--text-primary); flex-shrink: 0; }
.savings-green { color: var(--emerald) !important; }

/* Small insight cards */
.insight-header-sm {
  display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
}
.insight-tag-sm {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.insight-body-sm {
  font-size: 12px; color: var(--text-secondary); line-height: 1.55;
}
.insight-body-sm strong { color: var(--text-primary); }

/* Gauge */
.gauge-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px;
}
.gauge-wrap {
  position: relative; display: flex; flex-direction: column; align-items: center;
}
.gauge-svg { width: 140px; height: 80px; }
.gauge-fill { transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.gauge-value {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.02em; margin-top: -8px;
}
.gauge-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.gauge-note {
  font-size: 11px; color: var(--text-secondary); text-align: center;
  margin-top: 10px; line-height: 1.5;
}
.gauge-note strong { color: var(--indigo); }

/* ─── Toast ────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius-md);
  background: var(--bg-surface2);
  border: 1px solid rgba(16,185,129,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(16,185,129,0.1);
  transform: translateY(80px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald); font-size: 13px; font-weight: 700;
}
.toast-text { display: flex; flex-direction: column; gap: 2px; }
.toast-text strong { font-size: 13px; color: var(--text-primary); }
.toast-text span { font-size: 11px; color: var(--text-secondary); }

/* ─── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .content-grid { grid-template-columns: 1fr; }
  .insights-panel { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .hero-value { font-size: 42px; }
  .providers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-tabs { display: none; }
  .providers-grid { grid-template-columns: 1fr; }
  .insights-panel { grid-template-columns: 1fr; }
  .hero-stats-grid { grid-template-columns: 1fr 1fr; }
  .main { padding: 20px 16px 40px; }
}