:root {
  --background: 42 46% 96%;
  --foreground: 224 35% 13%;
  --primary: 268 84% 48%;
  --primary-foreground: 0 0% 100%;
  --secondary: 176 74% 38%;
  --secondary-foreground: 0 0% 100%;
  --muted: 224 18% 88%;
  --muted-foreground: 224 14% 42%;
  --destructive: 348 82% 52%;
  --destructive-foreground: 0 0% 100%;
  --border: 224 18% 82%;
  --card: 0 0% 100%;
  --card-foreground: 224 35% 13%;
  --shadow-sm: 0 2px 8px rgba(23, 20, 43, 0.08);
  --shadow-md: 0 14px 30px rgba(23, 20, 43, 0.12);
  --shadow-lg: 0 24px 70px rgba(23, 20, 43, 0.18);
  --transition-fast: 150ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.6rem;
}

.dark {
  --background: 224 35% 8%;
  --foreground: 42 46% 96%;
  --primary: 271 92% 68%;
  --primary-foreground: 224 35% 8%;
  --secondary: 176 78% 46%;
  --secondary-foreground: 224 35% 8%;
  --muted: 224 24% 18%;
  --muted-foreground: 224 14% 72%;
  --destructive: 348 85% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 224 24% 24%;
  --card: 224 30% 12%;
  --card-foreground: 42 46% 96%;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, hsl(var(--primary) / 0.16), transparent 34rem),
    radial-gradient(circle at 90% 8%, hsl(var(--secondary) / 0.14), transparent 28rem),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.focus-ring:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.35);
  outline-offset: 3px;
}
.card-shine {
  position: relative;
  overflow: hidden;
}
.card-shine::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28), transparent 60%);
  transform: translateX(-65%) rotate(8deg);
  transition: transform var(--transition-smooth);
  pointer-events: none;
}
.card-shine:hover::after { transform: translateX(65%) rotate(8deg); }
.skeleton {
  background: linear-gradient(90deg, hsl(var(--muted)), hsl(var(--border)), hsl(var(--muted)));
  background-size: 220% 100%;
  animation: vault-pulse 1.2s infinite linear;
}
@keyframes vault-pulse { to { background-position: -220% 0; } }