/* CRM WhatsApp — Minimal Design System
   Esquema: análogo sage-teal + neutros cálidos
   Contraste: WCAG AA (texto 4.5:1+, UI 3:1+)
*/

:root {
  /* — Neutros (estructura) — */
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --surface-hover: #F0EFEC;
  --text: #1A1D1F;
  --text-secondary: #4D5358;
  --text-muted: #6B7280;
  --border: #E5E3DF;
  --border-light: #EFEDE9;

  /* — Primario (navegación, enlaces, foco — no CTAs) — */
  --primary: #3D5C56;
  --primary-hover: #2F4843;
  --primary-light: #E8EDEB;

  /* — Acento (solo CTAs: guardar, WhatsApp, crear) — */
  --accent: #0F766E;
  --accent-hover: #0D6560;
  --accent-light: #CCFBF1;

  /* — Barra lateral — */
  --sidebar-bg: #1A1D1F;
  --sidebar-text: #9CA3AF;
  --sidebar-active: #2D3238;
  --sidebar-border: rgba(255, 255, 255, 0.06);

  /* — Semánticos (apagados) — */
  --success: #059669;
  --success-light: #D1FAE5;
  --danger: #BE123C;
  --danger-light: #FFE4E6;
  --warning: #B45309;
  --warning-light: #FEF3C7;
  --info: #0369A1;
  --info-light: #E0F2FE;

  /* — Forma y espacio — */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(26, 29, 31, 0.04);
  --shadow: 0 1px 3px rgba(26, 29, 31, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 29, 31, 0.06);
  --shadow-lg: 0 8px 24px rgba(26, 29, 31, 0.08);
  --shadow-xl: 0 16px 40px rgba(26, 29, 31, 0.1);

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --sidebar-width: 252px;
  --header-height: 60px;
  --space-section: 32px;
  --space-card: 28px;
  --transition: 0.18s ease;
}

[data-theme="dark"] {
  --bg: #111315;
  --surface: #1A1D1F;
  --surface-hover: #25282C;
  --text: #F3F4F6;
  --text-secondary: #C4C8CC;
  --text-muted: #8B939E;
  --border: #2D3238;
  --border-light: #25282C;

  --primary: #7DD3C0;
  --primary-hover: #5EEAD4;
  --primary-light: #1A2E2A;

  --accent: #2DD4BF;
  --accent-hover: #14B8A6;
  --accent-light: #134E4A;

  --sidebar-bg: #0D0F10;
  --sidebar-text: #8B939E;
  --sidebar-active: #1A1D1F;

  --success-light: #064E3B;
  --danger-light: #4C0519;
  --warning-light: #451A03;
  --info-light: #0C4A6E;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.35em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.625rem; font-weight: 700; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

/* Layout */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #F3F4F6;
  letter-spacing: -0.02em;
}

.sidebar .brand .dot {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 700;
}

.sidebar nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar nav .nav-section {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7280;
  padding: 20px 12px 8px;
  font-weight: 600;
}

.sidebar nav a {
  color: var(--sidebar-text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition), color var(--transition);
}

.sidebar nav a:hover {
  background: var(--sidebar-active);
  color: #E5E7EB;
  text-decoration: none;
}

.sidebar nav a.active {
  background: var(--sidebar-active);
  color: #F9FAFB;
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar nav a .nav-icon { font-size: 1rem; width: 20px; text-align: center; opacity: 0.85; }

.sidebar .user-box {
  padding: 20px;
  border-top: 1px solid var(--sidebar-border);
  font-size: 0.8rem;
}

.sidebar .user-box .user-name { color: #E5E7EB; font-weight: 500; }
.sidebar .user-box .user-role { color: #6B7280; font-size: 0.75rem; margin-top: 2px; }

.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-card);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background var(--transition);
}

.main-content { padding: var(--space-section) var(--space-card); flex: 1; max-width: 1280px; }

.topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-section); gap: 20px; }
.topbar .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; max-width: 52ch; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.theme-toggle:hover { background: var(--border); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-card);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.card:hover { border-color: var(--border-light); }

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
  animation: fadeInUp 0.4s ease both;
}

.kpi:nth-child(2) { animation-delay: 0.05s; }
.kpi:nth-child(3) { animation-delay: 0.1s; }
.kpi:nth-child(4) { animation-delay: 0.15s; }

.kpi:hover { border-color: var(--text-muted); }

.kpi .kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.kpi .kpi-icon.blue { background: var(--info-light); }
.kpi .kpi-icon.green { background: var(--accent-light); }
.kpi .kpi-icon.purple { background: var(--primary-light); }
.kpi .kpi-icon.orange { background: var(--warning-light); }

.kpi .value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.kpi .trend {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
}

.kpi .trend.up { color: var(--success); background: var(--success-light); }
.kpi .trend.down { color: var(--danger); background: var(--danger-light); }

.kpi.accent .value { color: var(--accent); }

/* Tables */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-light); }

th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg);
}

tr:last-child td { border-bottom: none; }
tr { transition: background var(--transition); }
tr:hover td { background: var(--surface-hover); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.nuevo, .badge.nuevo_lead { background: var(--info-light); color: var(--info); }
.badge.contactado { background: var(--warning-light); color: var(--warning); }
.badge.interesado { background: var(--primary-light); color: var(--primary); }
.badge.cotizacion { background: var(--info-light); color: var(--info); }
.badge.negociacion, .badge.en_negociacion { background: var(--primary-light); color: var(--primary-hover); }
.badge.alta_probabilidad { background: var(--accent-light); color: var(--accent); }
.badge.venta_ganada, .badge.cerrado { background: var(--success-light); color: var(--success); }
.badge.venta_perdida, .badge.perdido { background: var(--danger-light); color: var(--danger); }
.badge.recontactar { background: var(--warning-light); color: var(--warning); }

.badge.facebook { background: var(--info-light); color: var(--info); }
.badge.instagram { background: #FDF2F8; color: #9D174D; }
.badge.tiktok { background: var(--surface-hover); color: var(--text-secondary); }
.badge.google { background: var(--warning-light); color: var(--warning); }
.badge.whatsapp { background: var(--accent-light); color: var(--accent); }
.badge.otro { background: var(--border-light); color: var(--text-muted); }

/* Score bar */
.score-bar {
  width: 60px;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.score-bar .fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s ease;
}

.score-bar .fill.high { background: var(--accent); }
.score-bar .fill.mid { background: var(--warning); }
.score-bar .fill.low { background: var(--danger); }

/* Buttons — acento reservado para CTAs (.green / .accent) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: var(--font-body);
}

.btn:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; border-color: var(--text-muted); }
.btn:active { background: var(--border-light); }

.btn.green, .btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
}
.btn.green:hover, .btn.accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn.outline:hover { background: var(--surface-hover); color: var(--text); border-color: var(--text-muted); }

.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: #9F1239; border-color: #9F1239; color: #fff; }

.btn.small { padding: 5px 12px; font-size: 0.78rem; }
.btn.block { width: 100%; }

.btn.oauth {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.btn.oauth:hover { background: var(--surface-hover); border-color: var(--text-muted); }

/* Forms */
.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.84rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

input[type=text], input[type=password], input[type=email], input[type=number],
input[type=date], select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 92, 86, 0.12);
}

.form-row { display: flex; align-items: center; justify-content: space-between; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); }
.form-check input { width: auto; }

.errors { color: var(--danger); font-size: 0.78rem; margin-top: 4px; }

/* Flash / Toast notifications */
.flash-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }

.flash {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash.success { background: var(--success-light); color: var(--success); border-left: 3px solid var(--success); }
.flash.danger { background: var(--danger-light); color: var(--danger); border-left: 3px solid var(--danger); }
.flash.info { background: var(--info-light); color: var(--info); border-left: 3px solid var(--info); }
.flash.warning { background: var(--warning-light); color: var(--warning); border-left: 3px solid var(--warning); }

/* Filters */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: end;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.filters-bar .form-group { margin-bottom: 0; min-width: 160px; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

/* Code pill */
.code-pill {
  font-family: "SF Mono", "Fira Code", monospace;
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

/* Section title */
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.muted { color: var(--text-muted); }

.link-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-box input { font-family: monospace; font-size: 0.82rem; min-width: 180px; flex: 1; }

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

.login-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.login-hero {
  flex: 1;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px 48px;
  color: #fff;
  position: relative;
}

.login-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.login-hero h2 {
  font-size: 1.75rem;
  color: #F9FAFB;
  margin-bottom: 16px;
  position: relative;
  font-weight: 600;
  text-align: center;
  max-width: 22ch;
}

.login-hero p { color: #9CA3AF; font-size: 0.95rem; max-width: 38ch; text-align: center; position: relative; line-height: 1.65; }

.login-hero .features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.login-hero .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #CBD5E1;
  font-size: 0.9rem;
}

.login-hero .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--sidebar-active);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  max-width: 520px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  animation: fadeInUp 0.5s ease;
}

.login-card .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}

.login-card .brand .dot {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.login-card .login-subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 0.9rem; }

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.oauth-buttons { display: flex; gap: 10px; }
.oauth-buttons .btn { flex: 1; }

/* Public form page */
.public-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px 20px;
}

.public-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 100%;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.4s ease;
}

.chat-bubble {
  background: var(--accent-light);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: var(--radius) var(--radius) var(--radius) 2px;
  padding: 16px 18px;
  font-size: 0.9rem;
  margin-bottom: 28px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.chat-bubble .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Sale form */
.sale-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--surface-hover) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 28px; width: 60%; margin-bottom: 12px; }
.skeleton-kpi { height: 100px; border-radius: var(--radius-lg); }

/* Chart container */
.chart-container {
  position: relative;
  height: 280px;
  padding: 16px 0;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.fade-in { animation: fadeInUp 0.4s ease both; }

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeInUp 0.2s ease;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }

  .main { margin-left: 0; }
  .main-content { padding: 20px 16px; }
  .mobile-menu-btn { display: block; }

  .login-split { flex-direction: column; }
  .login-hero { padding: 40px 24px; min-height: auto; }
  .login-hero h2 { font-size: 1.5rem; }
  .login-form-side { max-width: 100%; padding: 24px; }

  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .oauth-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .filters-bar { flex-direction: column; }
  .filters-bar .form-group { min-width: 100%; }
}

/* Stats grid (Community / empresa metrics) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
