@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #080a07;
  --surface: #0f1310;
  --surface-hover: #151b14;
  --border: #1e2a1d;
  --border-strong: #2c3d2a;
  --text: #eef2ea;
  --text-secondary: #9aa694;
  --text-muted: #5f6b5c;
  --spirit: #cf0;
  --accent: #cf0;
  --accent-hover: #dcff52;
  --accent-soft: #ccff0024;
  --status-ok: #00e05a;
  --status-warn: #e8a33d;
  --status-down: #c0392b;
  --header-h: 72px;
  --max: 1440px;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid rgba(204, 255, 0, 0.3);
  box-shadow: 0 0 16px rgba(204, 255, 0, 0.28);
}

.brand .llm {
  color: var(--spirit);
  transition: color 0.15s;
}

.brand:hover .llm {
  color: #fff;
}

.buy-hop {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--spirit);
  background: var(--spirit);
  color: #0b0e0a;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(204, 255, 0, 0.14);
  transition: transform 0.15s, background 0.15s;
}

.buy-hop:hover {
  transform: translateY(-2px);
  background: #dcff52;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.main-nav a.active {
  font-weight: 500;
  color: rgba(204, 255, 0, 0.85);
}

.main-nav a.active:hover {
  background: rgba(204, 255, 0, 0.1);
  color: var(--spirit);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(204, 255, 0, 0.4);
  background: rgba(204, 255, 0, 0.1);
  color: var(--spirit);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.btn-connect:hover {
  background: var(--spirit);
  color: #0b1408;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  transition: border-color 0.15s, color 0.15s;
}

.icon-btn:hover,
.icon-btn.is-on {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.x-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  transition: border-color 0.15s, color 0.15s;
}

.x-link:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.connect-wrap {
  position: relative;
}

.connect-pop {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

.connect-wrap.open .connect-pop {
  display: block;
}

.connect-pop p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.connect-pop .ghost-btn {
  width: 100%;
  justify-content: center;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: var(--header-h) 20px 24px;
  overflow: hidden;
  background: #080a07;
}

.hero-art {
  position: absolute;
  inset: var(--header-h) 0 0 auto;
  width: min(62vw, 920px);
  height: calc(100% - var(--header-h));
  pointer-events: none;
  z-index: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-glow {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.16), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max);
  min-height: calc(100svh - var(--header-h) - 24px);
  margin: 0 auto;
  padding: clamp(14px, 3.6vh, 46px) 12px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(13px, 2.6vh, 28px);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.kicker .line {
  width: 32px;
  height: 1px;
  background: rgba(204, 255, 0, 0.7);
}

.kicker svg {
  color: var(--spirit);
}

.hero-title {
  max-width: 670px;
  font-size: clamp(3.4rem, 7.3vw, 7.35rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.07em;
  color: #fff;
}

.hero-title span {
  display: block;
  margin-top: 0.13em;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.55), rgba(204, 255, 0, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 460px;
  margin-top: clamp(16px, 2.7vh, 27px);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
}

.ca-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  margin-top: clamp(14px, 2.3vh, 22px);
  padding: 10px 14px;
  border-radius: 22px;
  border: 2px solid var(--spirit);
  background: var(--spirit);
  text-align: left;
  box-shadow: 0 0 32px rgba(204, 255, 0, 0.35);
  transition: transform 0.15s, background 0.15s;
}

.ca-btn:hover {
  transform: translateY(-2px);
  background: #dcff52;
}

.ca-tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0b1408;
  color: var(--spirit);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ca-addr {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0b1408;
}

.ca-copy {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #0b1408;
  color: var(--spirit);
}

.ca-btn-inline {
  margin-top: 0;
  margin-bottom: 18px;
}

.pill-dex {
  border: 1px solid rgba(204, 255, 0, 0.28);
  background: #10160e;
  color: #eef2ea;
}

.pill-dex:hover {
  border-color: var(--spirit);
  color: #fff;
}

.dex-frame {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #0b0e0a;
  min-height: 420px;
}

.dex-frame iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(12px, 2vh, 18px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill svg {
  width: 14px;
  height: 14px;
}

.pill-spirit {
  border: 1px solid rgba(204, 255, 0, 0.7);
  background: var(--spirit);
  color: #0b1408;
  box-shadow: 0 0 22px rgba(204, 255, 0, 0.22);
}

.pill-spirit:hover {
  background: #dcff52;
  box-shadow: 0 0 28px rgba(204, 255, 0, 0.32);
}

.pill-fomo {
  border: 1px solid rgba(139, 124, 255, 0.55);
  background: linear-gradient(135deg, #1b1548 0%, #3a2bb8 58%, #6a58ff 140%);
  color: #f3f0ff;
  padding-left: 10px;
  box-shadow: 0 0 24px rgba(92, 74, 255, 0.32), inset 0 1px rgba(255, 255, 255, 0.16);
}

.pill-fomo:hover {
  border-color: #b4a8ff;
  box-shadow: 0 0 32px rgba(110, 90, 255, 0.45);
}

.pill-fomo img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill-tg {
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: linear-gradient(135deg, #0a3d5c 0%, #1480c4 58%, #2aabee 140%);
  color: #fff;
  padding-left: 10px;
  box-shadow: 0 0 24px rgba(42, 171, 238, 0.28), inset 0 1px rgba(255, 255, 255, 0.16);
}

.pill-tg:hover {
  border-color: #b8ebff;
  box-shadow: 0 0 32px rgba(42, 171, 238, 0.42);
}

.tg-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #2aabee;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25);
}

.tg-ico img {
  width: 16px;
  height: 16px;
}

.hero-portals {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 12px;
  max-width: 860px;
  margin-top: clamp(18px, 3vh, 28px);
}

.portal {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 10px 10px 10px 10px;
  border-radius: 28px;
  transition: transform 0.2s;
}

.portal:hover {
  transform: translateY(-2px);
}

.portal-dark {
  background: #0c100c;
  border: 1px solid rgba(204, 255, 0, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 10px 40px rgba(0, 0, 0, 0.35);
}

.portal-light {
  background: #f4fbe8;
  color: #0b1408;
}

.portal-art {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  object-fit: cover;
  background: #000;
}

.portal-gift {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #0b1408;
  flex-shrink: 0;
}

.portal-copy {
  flex: 1;
  min-width: 0;
}

.portal-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.portal-light .portal-kicker {
  color: rgba(11, 20, 8, 0.45);
}

.portal-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.portal-sub {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.portal-light .portal-sub {
  color: rgba(11, 20, 8, 0.5);
}

.portal-go {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.portal-dark .portal-go {
  background: var(--spirit);
  color: #0b1408;
}

.portal-light .portal-go {
  background: #0b1408;
  color: #fff;
}

/* ========== LIBRARY ========== */
.library {
  position: relative;
  min-height: 100svh;
  padding: 56px 20px 80px;
  scroll-margin-top: var(--header-h);
  background: #080a07;
}

.library-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
}

.library-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.library-title {
  max-width: 720px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: #fff;
}

.library-title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.38);
}

.library-lead {
  max-width: 520px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
}

.stat-card {
  display: flex;
  align-items: stretch;
  min-width: 280px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.stat-item {
  flex: 1;
  padding: 22px 24px;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-num {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-item:last-child .stat-num {
  color: var(--spirit);
}

.stat-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}

.search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
}

.search input::placeholder {
  color: var(--text-muted);
}

.sort-wrap {
  position: relative;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.sort-btn strong {
  color: var(--text);
  font-weight: 500;
}

.sort-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  z-index: 10;
}

.sort-wrap.open .sort-menu {
  display: block;
}

.sort-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
}

.sort-menu button:hover,
.sort-menu button.active {
  background: var(--surface-hover);
  color: var(--text);
}

.library-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 88px;
  padding: 16px 14px 18px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.filters-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 12px;
  font-size: 14px;
  font-weight: 500;
}

.filter-group + .filter-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.filter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 6px 8px;
  font-size: 13px;
  color: var(--text);
}

.filter-label svg {
  color: var(--text-muted);
  transition: transform 0.15s;
}

.filter-group.collapsed .filter-label svg {
  transform: rotate(180deg);
}

.filter-group.collapsed .chips {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0c100c;
  color: var(--text-secondary);
  font-size: 12px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.chip.active {
  border-color: rgba(204, 255, 0, 0.45);
  background: rgba(204, 255, 0, 0.1);
  color: var(--spirit);
}

.results-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.results-count {
  font-size: 15px;
  font-weight: 500;
}

.results-count span {
  color: var(--text-secondary);
  font-weight: 400;
}

.results-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.view-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.view-toggle button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 999px;
  color: var(--text-muted);
}

.view-toggle button.active {
  background: var(--spirit);
  color: #0b1408;
}

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

.cards.list {
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.card:hover {
  transform: translateY(-1px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: 0 4px 18px -4px rgba(204, 255, 0, 0.16);
}

.card.is-hidden {
  display: none;
}

.card-top,
.card-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.model-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #3f4652;
  color: #fff;
}

.dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--status-ok);
  box-shadow: 0 0 0 0 rgba(0, 224, 90, 0.55);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 6px rgba(0, 224, 90, 0);
  }
}

.model-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card:hover .badge,
.card:hover .mini-ico {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.mini-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.card-mid {
  margin-top: 12px;
}

.prov {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.prov-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

.prov-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-ok {
  font-size: 11px;
  color: var(--status-ok);
}

.card-desc {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.free-tag {
  color: var(--spirit);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 8px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-size: 11px;
}

.tag.ghost {
  margin-left: auto;
}

.card.locked .card-inner {
  filter: blur(3.5px) brightness(0.9);
  pointer-events: none;
  user-select: none;
}

.lock-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(8, 10, 7, 0.08), rgba(8, 10, 7, 0.28));
}

.lock-circle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--spirit);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lock-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.show-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.show-more button {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.show-more button:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

/* ========== TOKEN ========== */
.page {
  padding: calc(var(--header-h) + 48px) 20px 80px;
}

.page-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
}

.token-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 80px);
}

.chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.chain-pill b {
  color: var(--text);
  font-weight: 500;
}

.token-kicker {
  margin: 28px 0 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--spirit);
}

.page-title {
  font-size: clamp(3.2rem, 6.5vw, 6.4rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.07em;
  color: #fff;
}

.page-title span {
  display: block;
  color: rgba(255, 255, 255, 0.36);
}

.page-lead {
  max-width: 460px;
  margin: 22px 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.token-art {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.token-art img {
  width: 140%;
  max-width: none;
  height: 680px;
  margin-left: -8%;
  object-fit: cover;
  object-position: 72% center;
  filter: drop-shadow(0 0 40px rgba(204, 255, 0, 0.18));
}

.section-space {
  margin-top: 80px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.util-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.util-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(204, 255, 0, 0.1);
  color: var(--spirit);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.util-card h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.util-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.tg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.tg-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.tg-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.tg-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.fine-print {
  margin-top: 48px;
  max-width: 720px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ========== HOP ========== */
.hop-page {
  padding: calc(var(--header-h) + 28px) 20px 40px;
}

.hop-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100svh - var(--header-h) - 70px);
}

.hop-left {
  display: flex;
  flex-direction: column;
}

.hop-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hop-orb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.18), rgba(8, 10, 7, 0.2) 62%);
  border: 1px solid rgba(204, 255, 0, 0.08);
  box-shadow: 0 0 48px rgba(204, 255, 0, 0.12);
}

.hop-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: drop-shadow(0 0 28px rgba(204, 255, 0, 0.35));
}

.orb-note {
  text-align: center;
  margin: 14px 0 28px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hop-left h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.hop-left h1 span {
  display: block;
}

.hop-left > p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  max-width: 320px;
}

.hop-right {
  padding: 28px 28px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #101510, #0c100c);
  border: 1px solid var(--border);
}

.hop-right-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.hop-right h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.drops-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chests {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.chest {
  text-align: center;
}

.chest-box {
  display: grid;
  place-items: center;
  height: 84px;
  border-radius: 16px;
  background: #0a0d0a;
  border: 1px solid var(--border);
  font-size: 32px;
  margin-bottom: 8px;
  box-shadow: inset 0 0 24px rgba(204, 255, 0, 0.06);
}

.chest small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chest b {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}

.hop-note {
  margin: 16px 0 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ctrl {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
}

.ctrl.keys {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  width: 72px;
  flex-shrink: 0;
  align-content: center;
  padding: 0;
  background: none;
  border: none;
}

.key {
  display: grid;
  place-items: center;
  height: 22px;
  border-radius: 6px;
  background: #1a2118;
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-secondary);
}

.key.wide {
  grid-column: 1 / -1;
}

.ctrl h3 {
  font-size: 13px;
  font-weight: 500;
}

.ctrl p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.enemy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.08);
}

.enemy h3 {
  font-size: 13px;
}

.enemy p {
  font-size: 12px;
  color: var(--text-muted);
}

.drain {
  color: #e07a72;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.hop-foot p {
  font-size: 12px;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--spirit);
  color: #0b1408;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .library-body,
  .hop-grid,
  .token-hero,
  .hero-portals,
  .two-col,
  .tg-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .stat-card {
    min-width: 0;
  }

  .library-head {
    grid-template-columns: 1fr;
  }

  .chests {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .main-nav {
    display: none;
  }

  .x-link span,
  .buy-hop {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero-art {
    opacity: 0.28;
    width: 100%;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .mobile-nav {
    display: flex;
  }

  .dex-frame iframe {
    height: 360px;
  }

  .ca-addr {
    font-size: 11px;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 80;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
}

.mobile-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.mobile-nav a.active {
  background: var(--spirit);
  color: #0b1408;
}
