:root {
  --background: 250 34% 98%;
  --foreground: 246 34% 12%;
  --primary: 262 86% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 188 92% 45%;
  --secondary-foreground: 247 34% 10%;
  --muted: 247 18% 90%;
  --muted-foreground: 247 12% 42%;
  --destructive: 350 84% 56%;
  --destructive-foreground: 0 0% 100%;
  --border: 247 20% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 6px 18px hsl(247 40% 20% / .08);
  --shadow-md: 0 14px 35px hsl(247 40% 20% / .14);
  --shadow-lg: 0 25px 70px hsl(262 86% 35% / .22);
  --transition-fast: 150ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: .65rem;
  --radius-md: 1rem;
  --radius-lg: 1.45rem;
}
.dark {
  --background: 247 34% 8%;
  --foreground: 250 40% 96%;
  --primary: 268 94% 68%;
  --primary-foreground: 247 34% 8%;
  --secondary: 188 94% 54%;
  --secondary-foreground: 247 34% 8%;
  --muted: 247 24% 16%;
  --muted-foreground: 247 16% 70%;
  --destructive: 350 86% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 247 20% 24%;
  --card: 247 30% 12%;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, hsl(var(--primary) / .16), transparent 34rem), radial-gradient(circle at bottom right, hsl(var(--secondary) / .14), transparent 32rem), hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
.focus-ring:focus { outline: 3px solid hsl(var(--primary) / .28); outline-offset: 2px; }
.glass { background: hsl(var(--card) / .78); backdrop-filter: blur(18px); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-md); }
.dot-typing span { animation: nebula-bounce 1.1s infinite ease-in-out; }
.dot-typing span:nth-child(2) { animation-delay: .15s; }
.dot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes nebula-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
.message-pop { animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(6px) scale(.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }