:root {
  --background: 220 33% 98%;
  --foreground: 222 28% 14%;
  --primary: 250 84% 60%;
  --secondary: 186 72% 44%;
  --muted: 220 18% 92%;
  --destructive: 0 72% 54%;
  --border: 220 20% 84%;
  --card: 0 0% 100%;

  --shadow-sm: 0 6px 18px hsla(250, 60%, 30%, 0.08);
  --shadow-md: 0 16px 40px hsla(245, 55%, 22%, 0.12);
  --shadow-lg: 0 28px 64px hsla(245, 55%, 22%, 0.16);

  --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 26% 10%;
  --foreground: 220 25% 94%;
  --primary: 255 90% 68%;
  --secondary: 186 70% 54%;
  --muted: 227 18% 18%;
  --destructive: 0 75% 62%;
  --border: 226 16% 28%;
  --card: 228 24% 14%;

  --shadow-sm: 0 6px 18px hsla(0, 0%, 0%, 0.2);
  --shadow-md: 0 16px 40px hsla(0, 0%, 0%, 0.3);
  --shadow-lg: 0 28px 64px hsla(0, 0%, 0%, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, hsla(250, 84%, 60%, 0.14), transparent 28%),
    radial-gradient(circle at top right, hsla(186, 72%, 44%, 0.14), transparent 30%),
    hsl(var(--background));
}

.token-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.glass-panel {
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.7), hsla(0, 0%, 100%, 0.56));
  backdrop-filter: blur(12px);
}

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

.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, hsla(250, 84%, 60%, 0.55), hsla(186, 72%, 44%, 0.45), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: hsl(var(--muted));
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.44), transparent);
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.gradient-badge {
  background: linear-gradient(135deg, hsla(250, 84%, 60%, 1), hsla(186, 72%, 44%, 1));
}

.progress-track {
  background: hsl(var(--muted));
}

.progress-fill {
  background: linear-gradient(90deg, hsl(var(--secondary)), hsl(var(--primary)));
}

input,
textarea,
select,
button {
  font: inherit;
}

button,
a {
  transition: transform var(--transition-fast), box-shadow var(--transition-smooth), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid hsla(250, 84%, 60%, 0.35);
  outline-offset: 1px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.value-pill {
  border: 1px solid hsl(var(--border));
  background: hsla(250, 84%, 60%, 0.05);
  border-radius: 999px;
}

.hero-grid {
  background-image: linear-gradient(hsla(220, 20%, 50%, 0.08) 1px, transparent 1px), linear-gradient(90deg, hsla(220, 20%, 50%, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: hsla(220, 16%, 50%, 0.35);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}