/* ==============================================================================
   MedInsight AI — Premium Dark Mode Design System
   Dark Navy + Cyan Glow + Glassmorphism + Micro-animations
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  --bg-base:       #060d1a;
  --bg-deep:       #080f1e;
  --bg-surface:    #0d1829;
  --bg-raised:     #111e33;
  --bg-card:       rgba(13, 24, 41, 0.8);
  --bg-glass:      rgba(255, 255, 255, 0.04);
  --bg-glass-hover:rgba(255, 255, 255, 0.07);

  --cyan:          #00d4ff;
  --cyan-dim:      #0ea5e9;
  --cyan-glow:     rgba(0, 212, 255, 0.18);
  --cyan-border:   rgba(0, 212, 255, 0.25);
  --blue:          #3b82f6;
  --blue-glow:     rgba(59, 130, 246, 0.2);
  --indigo:        #6366f1;
  --emerald:       #10b981;
  --amber:         #f59e0b;
  --rose:          #f43f5e;

  --text-primary:  #f0f6ff;
  --text-secondary:#94a3b8;
  --text-muted:    #4a5568;
  --text-accent:   #00d4ff;

  --border:        rgba(255, 255, 255, 0.08);
  --border-glow:   rgba(0, 212, 255, 0.3);
  --border-hover:  rgba(0, 212, 255, 0.5);

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --radius-2xl:    32px;

  --shadow-glow:   0 0 30px rgba(0, 212, 255, 0.12);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-blue:   0 8px 32px rgba(59, 130, 246, 0.25);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 212, 255, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.018'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.3); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── ANNOUNCEMENT BANNER ── */
.disclaimer-banner {
  background: linear-gradient(90deg, rgba(0,212,255,0.1) 0%, rgba(59,130,246,0.1) 100%);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  letter-spacing: 0.01em;
}

.badge-demo {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: #000;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── NAVIGATION ── */
.navbar {
  background: rgba(6, 13, 26, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0d1829 0%, #0ea5e9 100%);
  border: 1px solid var(--cyan-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-weight: 900;
  font-size: 1.1rem;
  font-family: var(--font-display);
  box-shadow: 0 0 16px var(--cyan-glow), inset 0 1px 0 rgba(255,255,255,0.08);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
  border-color: var(--border);
}

.nav-link.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--cyan-border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  line-height: 1.25;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #1e40af 0%, var(--blue) 100%);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #0369a1 0%, var(--cyan) 100%);
  color: #000000;
  font-weight: 700;
  border-color: var(--cyan-border);
  box-shadow: 0 2px 16px var(--cyan-glow);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #0284c7 0%, #67e8f9 100%);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--cyan-border);
  background: rgba(0, 212, 255, 0.06);
  color: var(--cyan);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ── USER BADGE ── */
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}
.user-badge:hover {
  border-color: var(--cyan-border);
  background: rgba(0, 212, 255, 0.06);
}

.plan-tag {
  background: var(--text-muted);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.plan-tag.free    { background: var(--text-muted); }
.plan-tag.basic   { background: linear-gradient(135deg, #0369a1, var(--cyan-dim)); color: #fff; }
.plan-tag.pro     { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }

/* ── MAIN LAYOUT ── */
main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── SECTION VIEWS ── */
.view-section { display: none; }
.view-section.active {
  display: block;
  animation: fadeSlideIn 0.3s ease forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO SECTION ── */
.hero-box {
  position: relative;
  background: linear-gradient(135deg, #060d1a 0%, #0d1829 50%, #0a1628 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 5rem 3.5rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.hero-box::before {
  content: "";
  position: absolute;
  top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-box::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 850px;
  position: relative;
  z-index: 1;
}

.hero-title span {
  background: linear-gradient(90deg, var(--cyan) 0%, #60a5fa 50%, var(--indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--cyan-border);
  box-shadow: var(--shadow-card), 0 0 20px rgba(0, 212, 255, 0.06);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* ── KPI GRID ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--border);
  border-radius: 0 0 0 var(--radius-md);
}

.kpi-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}

.kpi-card.blue::before  { background: var(--blue); }
.kpi-card.blue::after   { background: var(--blue); }
.kpi-card.cyan::before  { background: var(--cyan); }
.kpi-card.cyan::after   { background: var(--cyan); }
.kpi-card.emerald::before { background: var(--emerald); }
.kpi-card.emerald::after  { background: var(--emerald); }
.kpi-card.amber::before { background: var(--amber); }
.kpi-card.amber::after  { background: var(--amber); }

.kpi-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.kpi-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── CHARTS GRID ── */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) { .charts-grid { grid-template-columns: 1fr; } }

.chart-box {
  height: 280px;
  position: relative;
}

/* ── TABLE ── */
.table-responsive { width: 100%; overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.83rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: rgba(0, 212, 255, 0.03);
  color: var(--text-primary);
}

/* ── AI PANEL ── */
.ai-panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) { .ai-panel { grid-template-columns: 1fr; } }

.prompt-chips { display: flex; flex-direction: column; gap: 8px; }

.chip-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.81rem;
  text-align: left;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.chip-btn:hover {
  background: rgba(0, 212, 255, 0.07);
  border-color: var(--cyan-border);
  color: var(--cyan);
  transform: translateX(3px);
}

.ai-output-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.ai-response-content {
  flex: 1;
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.ai-response-content h1,
.ai-response-content h2,
.ai-response-content h3 {
  color: var(--text-primary);
  margin: 1rem 0 0.5rem;
}

.ai-response-content strong { color: var(--cyan); }
.ai-response-content li { margin-left: 1.25rem; margin-bottom: 0.35rem; }

/* ── PRICING GRID ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--cyan-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.08);
}

.pricing-card.featured {
  border: 1px solid var(--cyan-border);
  background: linear-gradient(135deg, rgba(13,24,41,0.95) 0%, rgba(0,80,120,0.2) 100%);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
  transform: scale(1.02);
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 1rem 0 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-features { list-style: none; margin: 1.25rem 0; flex: 1; }
.plan-features li {
  padding: 7px 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cyan-border);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid;
}

.alert-info    { background: rgba(59,130,246,0.08);  border-color: rgba(59,130,246,0.25);  color: #93c5fd; }
.alert-success { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.25);  color: #6ee7b7; }
.alert-warning { background: rgba(245,158,11,0.08);  border-color: rgba(245,158,11,0.25);  color: #fcd34d; }
.alert-danger  { background: rgba(244,63,94,0.08);   border-color: rgba(244,63,94,0.25);   color: #fca5a5; }

/* ── FOOTER ── */
footer {
  background: rgba(6, 13, 26, 0.9);
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  margin-top: auto;
  backdrop-filter: blur(12px);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── SPINNER ── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  border-top-color: var(--cyan);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.15), var(--shadow-card);
  position: relative;
}

/* ── PAGE HEADINGS ── */
h2[style*="font-size:1.75rem"] {
  font-family: var(--font-display) !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
}

h2[style*="font-size:2rem"] {
  font-family: var(--font-display) !important;
  color: var(--text-primary) !important;
}

/* ── SECTION SPECIFIC OVERRIDES ── */
/* Fix inline color references to navy which won't show on dark bg */
[style*="color:var(--navy-900)"] { color: var(--text-primary) !important; }
[style*="color: var(--navy-900)"] { color: var(--text-primary) !important; }
[style*="color:#0b192c"] { color: var(--text-primary) !important; }
[style*="color: #0b192c"] { color: var(--text-primary) !important; }
[style*="color:var(--slate-600)"] { color: var(--text-secondary) !important; }
[style*="color: var(--slate-600)"] { color: var(--text-secondary) !important; }
[style*="color:var(--slate-500)"] { color: var(--text-muted) !important; }
[style*="color: var(--slate-500)"] { color: var(--text-muted) !important; }
[style*="color:var(--slate-400)"] { color: var(--text-muted) !important; }
[style*="background:var(--bg-card)"] { background: var(--bg-card) !important; }

/* account/history section text overrides */
[style*="color:var(--navy-900);font-weight:600"] { color: var(--text-primary) !important; }
[style*="color:var(--accent-blue)"] { color: var(--cyan) !important; }
[style*="background:#f8fafc"] { background: rgba(255,255,255,0.04) !important; }
[style*="background: #f8fafc"] { background: rgba(255,255,255,0.04) !important; }
[style*="border:1px solid #e2e8f0"] { border-color: var(--border) !important; }
[style*="border-left:4px solid #0284c7"] { border-left-color: var(--cyan) !important; }
[style*="color:#334155"] { color: var(--text-secondary) !important; }
[style*="color:#64748b"] { color: var(--text-muted) !important; }
[style*="color:#059669"] { color: var(--emerald) !important; }
[style*="color:#dc2626"] { color: var(--rose) !important; }
[style*="color:#0284c7"] { color: var(--cyan-dim) !important; }
[style*="color:#0369a1"] { color: var(--cyan) !important; }
[style*="background:#e0f2fe"] { background: rgba(0,212,255,0.12) !important; }

/* KPI section inline styles */
[style*="background:#ecfdf5"] { background: rgba(16,185,129,0.1) !important; }
[style*="background:#fef2f2"] { background: rgba(244,63,94,0.1) !important; }
[style*="color:#065f46"] { color: #6ee7b7 !important; }
[style*="color:#991b1b"] { color: #fca5a5 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-box { padding: 3rem 1.5rem; }
  main { padding: 1.25rem 1rem; }
  .nav-links { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
}
