
:root {
  --bg: #07080c;
  --bg-soft: #0c0f16;
  --panel: rgba(15, 18, 27, 0.84);
  --panel-2: rgba(19, 23, 35, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(124, 77, 255, 0.34);
  --text: #eef2ff;
  --text-soft: #9aa4ba;
  --text-faint: rgba(238, 242, 255, 0.48);
  --accent-1: #6c7bff;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --gold: #facc15;
  --green: #22c55e;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 40px rgba(3, 6, 18, 0.22);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(108, 123, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #07080c 0%, #090b11 28%, #08090d 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.09), transparent 20%),
    radial-gradient(circle at 86% 16%, rgba(34, 211, 238, 0.07), transparent 20%),
    radial-gradient(circle at 70% 78%, rgba(108, 123, 255, 0.1), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(108, 123, 255, 0.05), transparent 30%);
  z-index: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(108, 123, 255, 0.24), rgba(139, 92, 246, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(108, 123, 255, 0.14);
}

.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-soft);
  padding: 10px 14px;
  border-radius: 12px;
  transition: 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.panel,
.card,
.stat-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    linear-gradient(180deg, rgba(16, 18, 28, 0.9), rgba(12, 14, 21, 0.94));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel::before,
.card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.panel { border-radius: var(--radius-lg); }

.hero {
  margin-top: 34px;
  padding: 36px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(108, 123, 255, 0.22), transparent 62%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(108,123,255,0.08), transparent 28%, transparent 70%, rgba(34,211,238,0.06));
  pointer-events: none;
}

.hero-badge,
.section-eyebrow {
  color: #b1bcda;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.hero-title,
.section-title,
.card-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.hero-title {
  margin-top: 14px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 0.98;
  max-width: 930px;
}

.hero-subtitle,
.section-text,
.card-text {
  color: var(--text-soft);
  line-height: 1.68;
}

.hero-subtitle {
  max-width: 780px;
  margin-top: 16px;
  font-size: 16px;
}

.hero-search {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-input {
  width: 100%;
  min-height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 18px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0,0,0,0.14);
}

.search-input::placeholder { color: rgba(229, 231, 235, 0.36); }

.btn-primary {
  min-height: 64px;
  padding: 0 22px;
  border: 0;
  border-radius: 18px;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 14px 34px rgba(108, 123, 255, 0.28);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }

.hero-note {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 13px;
}

.section { margin-top: 30px; }
.section-head { margin-bottom: 18px; }
.section-head-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-title { margin-top: 8px; font-size: clamp(28px, 4vw, 38px); }
.section-text { margin-top: 10px; }

.cards-grid { display: grid; gap: 16px; }
.cards-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 48px rgba(12, 15, 30, 0.42), 0 0 0 1px rgba(124, 77, 255, 0.08) inset;
}

.collection-card:hover {
  box-shadow:
    0 24px 54px rgba(8, 10, 22, 0.46),
    0 0 0 1px rgba(124, 77, 255, 0.12) inset,
    0 0 36px rgba(108, 123, 255, 0.12);
}

.card-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #d7dded;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title { margin-top: 14px; font-size: 24px; }
.card-text { margin-top: 10px; font-size: 15px; }

.collection-hero-emoji {
  margin-top: 24px;
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: 0.05em;
  font-family: "Space Grotesk", sans-serif;
}

.tiny-label { margin-top: 8px; color: var(--text-faint); font-size: 12px; }

.collection-meta-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.muted-text { color: var(--text-soft); font-size: 13px; }
.renewal-text { color: rgba(229, 231, 235, 0.62); font-size: 12px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card { border-radius: var(--radius-md); padding: 20px 18px 18px; }
.stat-label { color: var(--text-soft); font-size: 13px; }
.stat-value { margin-top: 10px; font-size: 30px; font-family: "Space Grotesk", sans-serif; }

.preview-list,
.board-list { margin-top: 14px; display: grid; gap: 10px; }

.preview-row,
.board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.preview-row:hover,
.board-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(124, 77, 255, 0.18);
}

.preview-left,
.board-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.preview-rank,
.board-rank { color: #dbe2f0; font-family: "Space Grotesk", sans-serif; }
.preview-right,
.board-right { color: #c7d1ea; font-size: 13px; white-space: nowrap; }
.board-domain { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ghost-link { color: var(--text-soft); font-size: 14px; }
.ghost-link:hover { color: var(--text); }

.footer { margin-top: 42px; padding: 26px 0 42px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(229, 231, 235, 0.45);
  font-size: 13px;
}
.footer-muted { color: rgba(229, 231, 235, 0.34); }

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: stretch;
}

.hero.panel {
  padding: 32px;
}

.home-hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-subtitle {
  max-width: 720px;
}

.hero-visual-card {
  min-height: 100%;
}




.icon-inline {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  color: rgba(238, 242, 255, 0.72);
}

.section-title .icon-inline,
.card-title .icon-inline {
  margin-right: 8px;
}

.hero-visual-card {
  height: 100%;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
}

.rarity-visual {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.rarity-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.rarity-visual-bars {
  display: grid;
  gap: 12px;
}

.rarity-row {
  display: grid;
  grid-template-columns: 92px 1fr 56px;
  align-items: center;
  gap: 12px;
}

.rarity-row-label {
  color: rgba(238, 242, 255, 0.72);
  font-size: 13px;
}

.rarity-row-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.rarity-row-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 22%, #3b82f6 58%, #8b5cf6 80%, #facc15 100%);
}

.rarity-row-value {
  text-align: right;
  color: rgba(238, 242, 255, 0.72);
  font-size: 12px;
}

.rarity-visual-spectrum {
  margin-top: 6px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.rarity-spectrum-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  margin-bottom: 10px;
}

.rarity-spectrum-bar {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 22%, #3b82f6 58%, #8b5cf6 80%, #facc15 100%);
}

.rarity-spectrum-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}

.rarity-spectrum-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  color: rgba(238, 242, 255, 0.52);
  font-size: 12px;
}

.metric-icon, .meta-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 7px;
  color: rgba(238,242,255,0.68);
}

@media (max-width: 1100px) {
  .cards-grid-3,
  .stats-grid,
  .home-hero-grid { grid-template-columns: 1fr; }
}

/* Burger button — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .topbar-inner {
    padding: 12px 0;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-burger { display: flex; }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .nav.is-open { display: flex; }

  .nav-link {
    width: 100%;
    padding: 12px 14px;
  }

  .hero-search { grid-template-columns: 1fr; }
  .section-head-inline,
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--container)); }
  .hero { padding: 24px; }
  .hero-title { font-size: 38px; }
  .brand-text { font-size: 18px; }
  .collection-hero-emoji { font-size: 50px; }
  .stat-value { font-size: 26px; }
}

/* =========================
   DOMAIN PAGE POLISH
   ========================= */

.domain-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 28px;
}

.domain-main,
.domain-side-card {
  border-radius: 24px;
}

.domain-main {
  padding: 28px;
  overflow: hidden;
}

.domain-side {
  display: grid;
  gap: 18px;
}

.domain-side-card {
  padding: 20px;
}

.domain-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.domain-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  transition: 0.18s ease;
}

.domain-back-link:hover {
  color: var(--text);
}

.domain-back-icon {
  font-size: 13px;
  opacity: 0.82;
}

.domain-emoji-row {
  display: block;
  margin-top: 18px;
}

.domain-emoji {
  display: none;
  font-size: clamp(56px, 8vw, 98px);
  line-height: 1;
  /*letter-spacing: 0.01em;*/
  filter: drop-shadow(0 10px 24px rgba(124, 77, 255, 0.12));
  position: relative;
  z-index: 1;
}

.domain-title-wrap {
  min-width: 0;
  max-width: 100%;
  margin-top: 16px;
}

.domain-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(46px, 3.6vw, 54px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  opacity: 0.88;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.domain-subline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 14px;
  flex-wrap: wrap;
  opacity: 0.9;
}

.domain-dot {
  opacity: 0.45;
}

.domain-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.domain-pill.is-soft {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.domain-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.domain-stat-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.domain-stat-card.is-rank {
  background:
    linear-gradient(180deg, rgba(124, 77, 255, 0.10), rgba(124, 77, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(124, 77, 255, 0.16);
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.10);
}

.domain-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.domain-stat-value {
  margin-top: 10px;
  font-size: 22px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
}

.domain-stat-rank {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
}

.domain-stat-foot {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.domain-spectrum-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.domain-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.domain-box-title {
  margin: 0;
  font-size: 18px;
  font-family: "Space Grotesk", sans-serif;
}

.domain-box-note {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.domain-spectrum-labels,
.domain-spectrum-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.domain-spectrum-labels {
  margin-bottom: 10px;
}

.domain-spectrum-foot {
  margin-top: 10px;
}

.domain-spectrum-bar {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ef4444 0%,
    #f97316 24%,
    #3b82f6 52%,
    #8b5cf6 76%,
    #facc15 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 30px rgba(124, 77, 255, 0.08);
}

.domain-spectrum-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -135%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid #ffffff;
  filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.22));
}

.domain-spectrum-marker-label {
  position: absolute;
  top: -36px;
  transform: translateX(-50%);
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
}

.domain-factor-list,
.domain-neighbor-list {
  display: grid;
  gap: 10px;
}

.domain-factor-row,
.domain-neighbor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.domain-neighbor-row {
  transition: 0.18s ease;
}

.domain-neighbor-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(124, 77, 255, 0.16);
}

.domain-factor-left,
.domain-neighbor-left {
  color: var(--text);
  min-width: 0;
}

.domain-factor-right,
.domain-neighbor-right {
  color: #cfd9f8;
  white-space: nowrap;
}

.domain-neighbor-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.domain-neighbor-rank {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e5ebf8;
  font-size: 12px;
}

.domain-neighbor-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-tech-row {
  display: grid;
  gap: 8px;
}

.domain-tech-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.domain-tech-value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .domain-shell {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 760px) {
  .domain-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .domain-title {
    font-size: clamp(42px, 5vw, 48px);
  }
}

@media (max-width: 520px) {
  .domain-main,
  .domain-side-card {
    padding: 18px;
  }

  .domain-stat-grid {
    grid-template-columns: 1fr;
  }

  .domain-box-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.domain-tech-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.domain-copy-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  transition: .16s ease;
  white-space: nowrap;
}

.domain-copy-btn:hover {
  background: rgba(255,255,255,.07);
}

@media (max-width: 520px) {
  .domain-tech-value-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.domain-copy-btn.copied {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
}

/* Decorative rarity line */
.collection-card{
  position: relative;
  overflow: hidden;
  /*border-top: none;*/
}

.collection-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:0px;

  background: linear-gradient(
    90deg,
    #ef4444,
    #f97316,
    #3b82f6,
    #8b5cf6,
    #facc15
  );
}


#collectionHero{
  position:relative;
}

#collectionHero::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:4px;

  background: linear-gradient(
    90deg,
    #ef4444,
    #f97316,
    #3b82f6,
    #8b5cf6,
    #facc15
  );
}



/* =========================
   INDEX PAGE EXTRACTED STYLES
   ========================= */
.search-status { margin-top: 12px; min-height: 18px; color: rgba(229, 231, 235, 0.56); font-size: 13px; }
.hero-side-title { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 22px; letter-spacing: -0.03em; }
.hero-side-copy { margin-top: 10px; color: var(--text-soft); line-height: 1.7; font-size: 14px; }
.hero-side-list { margin-top: 18px; display: grid; gap: 10px; }
.hero-side-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); }
.hero-side-item span:last-child { color: var(--text-soft); font-size: 13px; }
.hero-grid-main { display:grid; gap:18px; }


/* =========================
   COLLECTION PAGE EXTRACTED STYLES
   ========================= */
.toolbar {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 0.7fr;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow-soft);
}
.control-input,
.control-select {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0f1219;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  appearance: auto;
}
.control-select option {
  background: #0f1219;
  color: #eef2ff;
}
.control-select option:checked {
  background: #1a1d2e;
  color: #eef2ff;
}
.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.018));
  box-shadow: var(--shadow);
}
.domains-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.domains-table th, .domains-table td { padding: 16px; text-align: left; }
.domains-table th { font-size: 12px; color: #a9b2c7; text-transform: uppercase; letter-spacing: 0.14em; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.domains-table tbody tr { border-top: 1px solid rgba(255, 255, 255, 0.04); transition: background .16s ease; }
.domains-table tbody tr:hover { background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(124, 77, 255, 0.08); }
.rank-cell { white-space: nowrap; }
.rank-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; font-family: "Space Grotesk", sans-serif; color: #eef2ff; background: linear-gradient(180deg, rgba(108,123,255,0.16), rgba(139,92,246,0.12)); border: 1px solid rgba(124,77,255,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.domain-table-link { font-family: "Space Grotesk", sans-serif; font-size: 22px; letter-spacing: -0.02em; }
.mini-note { margin-top: 6px; font-size: 12px; color: rgba(229, 231, 235, 0.42); }
.tier-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 12px; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.04); white-space: nowrap; }
.tier-0 { color: #ffe38a; background: rgba(250, 204, 21, 0.08); }
.tier-1 { color: #d3c1ff; background: rgba(139, 92, 246, 0.12); }
.tier-2 { color: #bed4ff; background: rgba(108, 123, 255, 0.12); }
.tier-3 { color: #cdd4e2; background: rgba(255, 255, 255, 0.06); }
.tier-4 { color: #aab3c4; background: rgba(255, 255, 255, 0.03); }
.empty-state { padding: 24px; text-align: center; color: var(--text-soft); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; color: var(--text-soft); font-size: 14px; padding: 0 4px; }
.pagination { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pagination-info { color: var(--text-soft); font-size: 14px; }
.pagination-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.page-button { min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; transition: 0.16s ease; }
.page-button:hover:not(:disabled) { background: rgba(255,255,255,.06); }
.page-button:disabled { opacity: 0.4; cursor: not-allowed; }
.collection-hero-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 24px; align-items: center; }
.collection-hero-copy { min-width: 0; }
.collection-hero-art { display:flex; align-items:flex-end; justify-content:flex-end; gap:12px; min-height:72px; }
.collection-hero-chip { display:block; width:12px; border-radius:999px; background:linear-gradient(180deg, rgba(59,130,246,.95), rgba(139,92,246,.95)); box-shadow:0 0 0 1px rgba(255,255,255,.06), 0 8px 18px rgba(59,130,246,.16); }
.collection-hero-chip:nth-child(1){ height:18px; opacity:.42; }
.collection-hero-chip:nth-child(2){ height:28px; opacity:.56; }
.collection-hero-chip:nth-child(3){ height:40px; opacity:.72; }
.collection-hero-chip:nth-child(4){ height:54px; opacity:.88; }
.collection-hero-chip:nth-child(5){ height:66px; }
@media (max-width: 1000px) { .toolbar { grid-template-columns: 1fr 1fr; } .collection-hero-shell { grid-template-columns: 1fr; } .collection-hero-art { justify-content:flex-start; } }
@media (max-width: 680px) { .toolbar { grid-template-columns: 1fr; } .domain-table-link { font-size: 18px; } .results-bar, .pagination { flex-direction: column; align-items: flex-start; } }


/* =========================
   LEADERBOARD PAGE EXTRACTED STYLES
   ========================= */
.leaderboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.leaderboard-card { border-radius: 20px; padding: 22px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); }
.leaderboard-note { margin-top: 10px; color: rgba(238,242,255,.62); line-height: 1.6; font-size: 14px; }
.board-list { margin-top: 14px; display: grid; gap: 10px; }
.board-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); transition: background 0.18s ease, border-color 0.18s ease; }
.board-row:hover { background: rgba(255,255,255,.045); border-color: rgba(124,77,255,.18); }
.board-left { color: #dbe1eb; display: flex; align-items: center; gap: 10px; min-width: 0; }
.board-rank { font-family: "Space Grotesk", sans-serif; color: #e1e8f5; white-space: nowrap; }
.board-domain { font-family: "Space Grotesk", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-right { color: #cdd7f8; white-space: nowrap; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.86; }
.loading-card { padding: 22px; border-radius: 20px; border: 1px dashed rgba(255,255,255,.12); color: var(--text-soft); background: rgba(255,255,255,.02); }
@media (max-width: 1100px) { .leaderboard-grid { grid-template-columns: 1fr; } }


/* =========================
   ADMIN PAGE EXTRACTED STYLES
   ========================= */
.admin-shell { margin-top: 28px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-sidebar, .admin-main { border-radius: 20px; padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); }
.admin-tabs { display: grid; gap: 10px; margin-top: 14px; }
.admin-tab { width: 100%; text-align: left; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; transition: .16s ease; }
.admin-tab:hover { background: rgba(255,255,255,.06); }
.admin-tab.is-active { background: linear-gradient(135deg, rgba(108,123,255,.18), rgba(139,92,246,.16)); border-color: rgba(124,77,255,.3); }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-secondary { min-height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; transition: .16s ease; }
.btn-secondary:hover { background: rgba(255,255,255,.06); }
.admin-meta { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-stat { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow-soft); }
.admin-stat-label { font-size: 12px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .12em; }
.admin-stat-value { margin-top: 8px; font-size: 18px; color: var(--text); font-family: "Space Grotesk", sans-serif; }
.status-box { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); color: var(--text-soft); line-height: 1.6; font-size: 14px; box-shadow: var(--shadow-soft); }
.status-box.is-ok { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.18); color: #a7e6bf; }
.status-box.is-error { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.18); color: #ffb3b3; }
.admin-grid { display:grid; gap:16px; margin-top: 18px; }
.admin-section { border:1px solid rgba(255,255,255,.06); border-radius:18px; background:rgba(255,255,255,.02); padding:18px; box-shadow: var(--shadow-soft); }
.admin-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap: wrap; }
.admin-section-title { margin:0; font-size:20px; font-family:"Space Grotesk", sans-serif; }
.admin-hint { color: var(--text-soft); font-size:13px; line-height: 1.5; margin-top: 4px; }
.admin-input-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:12px; }
.admin-field, .admin-row { display:grid; gap:6px; min-width: 0; }
.admin-field label, .admin-row label { font-size:12px; color: var(--text-soft); text-transform:uppercase; letter-spacing:.08em; }
.admin-input, .admin-select { width:100%; min-height:42px; border-radius:12px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.04); color:var(--text); padding:0 12px; outline:none; }
.admin-input:focus, .admin-select:focus { border-color: rgba(124,77,255,.35); box-shadow: 0 0 0 3px rgba(124,77,255,.12); }
.admin-number { text-align:right; }
.admin-table { display:grid; gap:10px; }
.admin-table-row { display:grid; grid-template-columns: minmax(92px, 110px) minmax(120px, 1fr) minmax(110px, 120px) minmax(110px, 130px) auto; gap:10px; align-items:end; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.04); }
.admin-table-row.is-simple { grid-template-columns: minmax(120px, 1fr) minmax(110px, 130px) auto; }
.admin-table-row.is-manual { grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) minmax(110px, 130px) auto; }
.admin-table-row .admin-static { min-height:42px; display:flex; align-items:center; padding:0 12px; border-radius:12px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.05); color:var(--text); }
.admin-inline-actions { display:flex; gap:8px; align-items:center; justify-content:flex-end; }
.admin-ghost-btn, .admin-danger-btn { min-height:42px; padding:0 12px; border-radius:12px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.04); color:var(--text); cursor:pointer; }
.admin-danger-btn { color:#ffb3b3; border-color: rgba(239,68,68,.18); }
.admin-json-preview { width:100%; min-height:200px; resize:vertical; border-radius:14px; border:1px solid rgba(255,255,255,.07); background:#0e1017; color:#d7def0; padding:14px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size:12px; line-height:1.55; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 30px rgba(0,0,0,.18); }
.admin-save-dot { display:inline-block; width:8px; height:8px; border-radius:999px; background:#22c55e; margin-right:8px; }
@media (max-width: 980px) { .admin-shell { grid-template-columns: 1fr; } .admin-meta { grid-template-columns: 1fr; } .admin-table-row, .admin-table-row.is-simple, .admin-table-row.is-manual { grid-template-columns:1fr; } }
@media (max-width: 640px) { .admin-input-grid { grid-template-columns:1fr; } .admin-actions { width: 100%; } .admin-actions > * { flex: 1 1 auto; } }


.admin-title-sm {
  font-size: 28px;
  margin-top: 8px;
}

.admin-title-md {
  font-size: 30px;
  margin-top: 8px;
}

.admin-status-intro {
  margin-top: 18px;
}

.admin-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(238,242,255,0.8) 50%),
    linear-gradient(135deg, rgba(238,242,255,0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.admin-table-row {
  align-items: end;
}

.admin-table-row .admin-row {
  min-width: 0;
}

.admin-main .admin-table-row {
  grid-template-columns: minmax(120px, 1.1fr) minmax(120px, 1fr) minmax(130px, 1fr) minmax(120px, 1fr) auto;
}

@media (max-width: 980px) {
  .admin-main .admin-table-row {
    grid-template-columns: 1fr;
  }

  .admin-inline-actions {
    justify-content: flex-start;
  }
}
/* Hide Score Card */
/*.domain-side-card:has(.domain-factor-list) { display: none; }*/
