:root {
  --background: 160 32% 96%;
  --foreground: 168 42% 10%;
  --primary: 164 84% 28%;
  --secondary: 42 93% 58%;
  --muted: 165 18% 88%;
  --destructive: 0 72% 51%;
  --border: 166 18% 78%;
  --card: 0 0% 100%;
  --shadow-sm: 0 6px 18px rgba(8, 45, 38, 0.08);
  --shadow-md: 0 14px 34px rgba(8, 45, 38, 0.12);
  --shadow-lg: 0 24px 70px rgba(8, 45, 38, 0.18);
  --transition-fast: 150ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

.dark {
  --background: 168 36% 7%;
  --foreground: 160 24% 94%;
  --primary: 164 76% 45%;
  --secondary: 42 93% 61%;
  --muted: 168 20% 15%;
  --destructive: 0 72% 58%;
  --border: 168 18% 22%;
  --card: 168 30% 11%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, hsla(var(--secondary), .22), transparent 34rem),
    radial-gradient(circle at top right, hsla(var(--primary), .18), transparent 30rem),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 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(5.5rem + env(safe-area-inset-bottom)); }
.glass {
  background: hsla(var(--card), .82);
  backdrop-filter: blur(18px);
  border: 1px solid hsla(var(--border), .75);
  box-shadow: var(--shadow-md);
}
.focus-ring:focus { outline: 3px solid hsla(var(--secondary), .65); outline-offset: 2px; }
