:root {
  --background: 42 42% 96%;
  --foreground: 218 38% 13%;
  --primary: 24 92% 48%;
  --primary-foreground: 0 0% 100%;
  --secondary: 173 58% 28%;
  --secondary-foreground: 0 0% 100%;
  --muted: 38 24% 86%;
  --muted-foreground: 218 16% 39%;
  --destructive: 0 75% 48%;
  --destructive-foreground: 0 0% 100%;
  --border: 34 23% 78%;
  --card: 0 0% 100%;
  --shadow-sm: 0 1px 2px rgba(28, 36, 52, 0.08);
  --shadow-md: 0 12px 32px rgba(28, 36, 52, 0.12);
  --shadow-lg: 0 24px 70px rgba(28, 36, 52, 0.18);
  --transition-fast: 140ms ease;
  --transition-smooth: 240ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}
.dark {
  --background: 218 35% 9%;
  --foreground: 42 42% 94%;
  --primary: 26 94% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 174 52% 42%;
  --secondary-foreground: 218 35% 9%;
  --muted: 217 26% 18%;
  --muted-foreground: 42 16% 72%;
  --destructive: 0 72% 55%;
  --destructive-foreground: 0 0% 100%;
  --border: 217 22% 27%;
  --card: 218 32% 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, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: max(16px, 1rem); }
.bg-1 { background: hsl(var(--background)); }
.bg-2 { background: hsl(var(--card)); }
.bg-3 { background: hsl(var(--muted)); }
.bg-4 { background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary))); }
.text-primary { color: hsl(var(--foreground)); }
.text-secondary { color: hsl(var(--muted-foreground)); }
.text-tertiary { color: hsl(var(--secondary)); }
.accent { color: hsl(var(--primary)); }
.card-shadow { box-shadow: var(--shadow-md); }
.soft-grid {
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--border)) 1px, transparent 0);
  background-size: 26px 26px;
}
.safe-bottom { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .safe-bottom { padding-bottom: 2rem; } }