:root {
  --background: 210 40% 98%;
  --foreground: 222 47% 11%;
  --primary: 219 77% 31%;
  --secondary: 43 62% 48%;
  --muted: 214 32% 94%;
  --muted-foreground: 215 16% 40%;
  --destructive: 0 72% 51%;
  --border: 214 22% 85%;
  --card: 0 0% 100%;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.12);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --background: 225 39% 7%;
  --foreground: 210 40% 98%;
  --primary: 43 74% 57%;
  --secondary: 217 91% 66%;
  --muted: 222 26% 16%;
  --muted-foreground: 215 20% 72%;
  --destructive: 0 70% 54%;
  --border: 220 22% 22%;
  --card: 221 39% 12%;
  --shadow-sm: 0 10px 24px rgba(2, 6, 23, 0.28);
  --shadow-md: 0 20px 50px rgba(2, 6, 23, 0.40);
  --shadow-lg: 0 32px 96px rgba(37, 99, 235, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

::selection {
  background: hsla(var(--primary), 0.22);
}

.glass-panel {
  background: linear-gradient(180deg, hsla(var(--background), 0.88), hsla(var(--background), 0.70));
}

.domain-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-smooth), border-color var(--transition-fast), background-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: hsla(var(--primary), 0.35);
}

.dark .domain-card:hover {
  box-shadow: 0 18px 55px rgba(37, 99, 235, 0.12), 0 0 0 1px hsla(var(--primary), 0.18);
}

.hero-search-input .MuiOutlinedInput-notchedOutline {
  border-color: hsl(var(--border));
}

.hero-search-input:hover .MuiOutlinedInput-notchedOutline,
.hero-search-input.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: hsl(var(--primary));
}

.chip-token {
  border-radius: 999px !important;
  border: 1px solid hsl(var(--border)) !important;
  background: hsl(var(--muted)) !important;
  color: hsl(var(--foreground)) !important;
  transition: all var(--transition-fast) !important;
}

.chip-token:hover {
  transform: translateY(-1px);
  border-color: hsla(var(--primary), 0.4) !important;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
  background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--primary)));
  box-shadow: var(--shadow-sm);
}

.MuiPaper-root,
.MuiCard-root,
.MuiMenu-paper,
.MuiDialog-paper,
.MuiDrawer-paper {
  border-color: hsl(var(--border)) !important;
}

.MuiButton-contained {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary))) !important;
  color: white !important;
  box-shadow: var(--shadow-sm) !important;
}

.MuiButton-contained:hover {
  filter: brightness(1.02);
  box-shadow: var(--shadow-md) !important;
}

.MuiButton-outlined {
  border-color: hsl(var(--border)) !important;
  color: hsl(var(--foreground)) !important;
}

.MuiInputBase-root,
.MuiOutlinedInput-root,
.MuiSelect-select,
.MuiFormLabel-root,
.MuiInputLabel-root {
  color: hsl(var(--foreground)) !important;
}

.MuiOutlinedInput-root {
  border-radius: 18px !important;
  background: hsl(var(--card));
}

.MuiOutlinedInput-notchedOutline {
  border-color: hsl(var(--border)) !important;
}

.MuiMenu-paper,
.MuiDialog-paper,
.MuiDrawer-paper,
.MuiPopover-paper {
  background: hsl(var(--card)) !important;
  color: hsl(var(--foreground)) !important;
}

.MuiSlider-thumb,
.MuiSlider-track {
  color: hsl(var(--primary)) !important;
}

.MuiDivider-root {
  border-color: hsl(var(--border)) !important;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
