:root {
  --background: 210 33% 98%;
  --foreground: 222 28% 14%;
  --primary: 252 83% 61%;
  --secondary: 191 79% 48%;
  --muted: 214 26% 92%;
  --destructive: 0 76% 56%;
  --border: 215 21% 84%;
  --card: 0 0% 100%;

  --shadow-sm: 0 8px 20px hsla(222, 28%, 14%, 0.06);
  --shadow-md: 0 18px 40px hsla(252, 83%, 61%, 0.12);
  --shadow-lg: 0 24px 60px hsla(252, 83%, 61%, 0.18);

  --transition-fast: 120ms ease;
  --transition-smooth: 220ms cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
}

.dark {
  --background: 228 24% 10%;
  --foreground: 210 20% 96%;
  --primary: 258 100% 72%;
  --secondary: 191 90% 58%;
  --muted: 225 18% 18%;
  --destructive: 0 72% 60%;
  --border: 225 16% 26%;
  --card: 228 22% 14%;

  --shadow-sm: 0 10px 24px hsla(228, 70%, 4%, 0.26);
  --shadow-md: 0 18px 44px hsla(258, 100%, 72%, 0.14);
  --shadow-lg: 0 28px 70px hsla(191, 90%, 58%, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, hsla(252, 83%, 61%, 0.10), transparent 28%),
    radial-gradient(circle at top right, hsla(191, 79%, 48%, 0.10), transparent 24%),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

::selection {
  background: hsla(252, 83%, 61%, 0.24);
}

button,
a,
input,
select,
textarea {
  transition: all var(--transition-fast);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid hsl(var(--secondary));
  outline-offset: 2px;
}

.glass {
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.88), hsla(0, 0%, 100%, 0.74));
  backdrop-filter: blur(16px);
}

.dark .glass {
  background: linear-gradient(180deg, hsla(228, 22%, 14%, 0.88), hsla(228, 22%, 14%, 0.78));
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, hsla(252, 83%, 61%, 0.45), hsla(191, 79%, 48%, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.status-pulse {
  position: relative;
}

.status-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid hsla(191, 79%, 48%, 0.35);
  animation: pulseRing 2.4s infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, hsla(214, 26%, 92%, 0.8), hsla(214, 26%, 96%, 1), hsla(214, 26%, 92%, 0.8));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.dark .skeleton {
  background: linear-gradient(90deg, hsla(225, 18%, 18%, 0.75), hsla(225, 16%, 22%, 0.95), hsla(225, 18%, 18%, 0.75));
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.hide-scrollbar {
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}