:root {
  --background: 195 45% 97%;
  --foreground: 202 39% 13%;
  --primary: 187 88% 32%;
  --primary-foreground: 0 0% 100%;
  --secondary: 31 95% 58%;
  --secondary-foreground: 202 39% 13%;
  --muted: 196 25% 89%;
  --muted-foreground: 199 18% 41%;
  --destructive: 3 77% 55%;
  --destructive-foreground: 0 0% 100%;
  --border: 194 23% 82%;
  --card: 0 0% 100%;
  --shadow-sm: 0 6px 18px rgba(15, 65, 82, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 65, 82, 0.12);
  --shadow-lg: 0 24px 70px rgba(15, 65, 82, 0.18);
  --transition-fast: 150ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

.dark {
  --background: 202 39% 9%;
  --foreground: 190 35% 94%;
  --primary: 185 76% 48%;
  --primary-foreground: 202 39% 9%;
  --secondary: 31 95% 62%;
  --secondary-foreground: 202 39% 9%;
  --muted: 201 28% 17%;
  --muted-foreground: 195 18% 70%;
  --destructive: 3 74% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 200 24% 24%;
  --card: 202 36% 13%;
}

* { 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, input, select, textarea { font: inherit; }
input, select, textarea { font-size: max(16px, 1rem); }
button, a { -webkit-tap-highlight-color: transparent; }
.focus-ring:focus-visible {
  outline: 3px solid hsl(var(--secondary));
  outline-offset: 3px;
}
.safe-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .safe-bottom { padding-bottom: 2rem; } }