:root {
  --background: 214 48% 97%;
  --foreground: 218 42% 10%;
  --primary: 170 88% 37%;
  --primary-foreground: 175 100% 8%;
  --secondary: 224 76% 56%;
  --secondary-foreground: 0 0% 100%;
  --muted: 214 25% 90%;
  --muted-foreground: 217 18% 42%;
  --destructive: 358 78% 57%;
  --destructive-foreground: 0 0% 100%;
  --border: 214 24% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 22px rgba(7, 17, 31, 0.08);
  --shadow-md: 0 18px 44px rgba(7, 17, 31, 0.12);
  --shadow-lg: 0 28px 80px rgba(7, 17, 31, 0.18);
  --transition-fast: 150ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}
.dark {
  --background: 218 45% 7%;
  --foreground: 202 38% 96%;
  --primary: 170 88% 44%;
  --primary-foreground: 174 100% 8%;
  --secondary: 230 88% 67%;
  --secondary-foreground: 0 0% 100%;
  --muted: 218 30% 17%;
  --muted-foreground: 216 18% 70%;
  --destructive: 358 78% 61%;
  --destructive-foreground: 0 0% 100%;
  --border: 218 28% 22%;
  --card: 218 38% 11%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a, input, select { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: max(16px, 1rem); }
.safe-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.glass {
  background: color-mix(in srgb, hsl(var(--card)) 86%, transparent);
  backdrop-filter: blur(18px);
  border: 1px solid hsl(var(--border));
}
.chart-line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.8s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse-dot { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .45; } }