:root {
  --background: 205 60% 98%;
  --foreground: 224 35% 12%;
  --primary: 211 100% 52%;
  --primary-foreground: 0 0% 100%;
  --secondary: 252 88% 62%;
  --secondary-foreground: 0 0% 100%;
  --muted: 214 28% 91%;
  --muted-foreground: 220 14% 42%;
  --destructive: 354 86% 58%;
  --destructive-foreground: 0 0% 100%;
  --border: 214 28% 86%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 18px rgba(23, 58, 112, 0.08);
  --shadow-md: 0 16px 38px rgba(23, 58, 112, 0.13);
  --shadow-lg: 0 24px 70px rgba(23, 58, 112, 0.18);
  --transition-fast: 160ms cubic-bezier(.2,.8,.2,1);
  --transition-smooth: 360ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 24px;
}
.dark {
  --background: 224 34% 8%;
  --foreground: 210 35% 96%;
  --primary: 204 100% 62%;
  --primary-foreground: 224 34% 8%;
  --secondary: 267 88% 70%;
  --secondary-foreground: 224 34% 8%;
  --muted: 224 25% 16%;
  --muted-foreground: 215 20% 70%;
  --destructive: 354 86% 64%;
  --destructive-foreground: 0 0% 100%;
  --border: 224 20% 22%;
  --card: 224 28% 12%;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
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; overflow-x: hidden; }
button, a, input, textarea, select { touch-action: manipulation; }
input, textarea, select { font-size: max(16px, 1rem); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid hsl(var(--primary) / .35); outline-offset: 3px; }
.safe-top { padding-top: calc(16px + env(safe-area-inset-top)); }
.safe-bottom { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.nav-safe { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.app-shell { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; background: radial-gradient(circle at 15% 0%, hsl(var(--primary) / .10), transparent 30%), hsl(var(--background)); }
.fade-in { animation: fadeIn .55s ease both; }
.slide-up { animation: slideUp .42s cubic-bezier(.2,.8,.2,1) both; }
.floaty { animation: floaty 3.2s ease-in-out infinite; }
.spin { animation: spin 1s linear infinite; }
.pulse-soft { animation: pulseSoft 1.6s ease-in-out infinite; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseSoft { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.ripple { position: relative; overflow: hidden; }
.ripple::after { content: ""; position: absolute; inset: auto; width: 1px; height: 1px; border-radius: 999px; background: rgba(255,255,255,.55); transform: scale(0); opacity: 0; pointer-events: none; }
.ripple:active::after { left: 50%; top: 50%; animation: ripple .55s ease-out; }
@keyframes ripple { from { opacity: .7; transform: scale(0); } to { opacity: 0; transform: scale(260); } }
.glass { background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.48)); backdrop-filter: blur(18px); border: 1px solid hsl(var(--border) / .55); }
.dark .glass { background: linear-gradient(135deg, rgba(18,26,44,.78), rgba(18,26,44,.48)); }
.skeleton { background: linear-gradient(90deg, hsl(var(--muted)), hsl(var(--card)), hsl(var(--muted))); background-size: 220% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.range { accent-color: hsl(var(--primary)); }
.before-after { clip-path: inset(0 var(--clip, 50%) 0 0); }
