:root {
  --background: 31 100% 97%;
  --foreground: 232 28% 14%;
  --primary: 18 92% 54%;
  --primary-foreground: 0 0% 100%;
  --secondary: 258 86% 62%;
  --secondary-foreground: 0 0% 100%;
  --muted: 28 42% 90%;
  --muted-foreground: 232 12% 42%;
  --destructive: 0 82% 58%;
  --destructive-foreground: 0 0% 100%;
  --border: 26 35% 84%;
  --card: 0 0% 100%;
  --accent: 44 94% 61%;
  --success: 151 62% 42%;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 24px rgba(45, 30, 17, 0.08);
  --shadow-md: 0 18px 45px rgba(45, 30, 17, 0.12);
  --shadow-lg: 0 30px 80px rgba(45, 30, 17, 0.18);
  --transition-fast: 160ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
}
.dark {
  --background: 232 28% 9%;
  --foreground: 30 58% 96%;
  --primary: 18 92% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 258 86% 68%;
  --secondary-foreground: 0 0% 100%;
  --muted: 232 20% 17%;
  --muted-foreground: 31 18% 74%;
  --destructive: 0 76% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 232 18% 24%;
  --card: 232 24% 12%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: hsl(var(--foreground));
  background:
    radial-gradient(circle at top left, hsla(var(--accent), .30), transparent 34rem),
    radial-gradient(circle at 90% 10%, hsla(var(--secondary), .18), transparent 30rem),
    hsl(var(--background));
  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); }
.focus-ring:focus { outline: 3px solid hsla(var(--primary), .28); outline-offset: 2px; }
.glass {
  background: hsla(var(--card), .76);
  backdrop-filter: blur(18px);
  border: 1px solid hsla(var(--border), .8);
}
.soft-grid {
  background-image: linear-gradient(hsla(var(--border), .55) 1px, transparent 1px), linear-gradient(90deg, hsla(var(--border), .55) 1px, transparent 1px);
  background-size: 34px 34px;
}
.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)) 68%, hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.safe-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.bottom-safe { padding-bottom: env(safe-area-inset-bottom); }
.card-hover { transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }
@keyframes pop { from { transform: scale(.96); opacity: .2; } to { transform: scale(1); opacity: 1; } }
.pop { animation: pop .28s ease both; }