:root {
  --bg: #0b1020;
  --card: #111827;
  --inner: #1f2937;
  --text: #f8fafc;
  --muted: #94a3b8;
  --gold: #eab308;
  --purple: #a78bfa;
  --green: #22c55e;
  --red: #ef4444;
  --border: rgba(148, 163, 184, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --nav-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.72) 0%, rgba(11, 16, 32, 0.88) 38%, rgba(11, 16, 32, 0.96) 100%),
    radial-gradient(circle at 50% 12%, rgba(139, 92, 246, 0.2), transparent 40%),
    radial-gradient(circle at 85% 8%, rgba(234, 179, 8, 0.14), transparent 30%),
    url("/static/mascot-bg.png") center top / cover no-repeat;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(234, 179, 8, 0.35);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link--accent {
  color: var(--gold);
}

.nav__link--accent:hover {
  background: rgba(234, 179, 8, 0.12);
  color: var(--gold);
}

.nav__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav__toggle {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: calc(var(--nav-h) + 2rem) clamp(1rem, 4vw, 2.5rem) 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 1.25rem 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  background: linear-gradient(135deg, #ca8a04, var(--gold));
  color: #1a1200;
  box-shadow: 0 8px 28px rgba(234, 179, 8, 0.28);
}

.btn--ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat__label {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mascot {
  width: min(420px, 100%);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(234, 179, 8, 0.2);
}

.hero__badge {
  position: absolute;
  bottom: -12px;
  right: 10%;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #eab308);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

/* ── Sections ── */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem clamp(1rem, 4vw, 2.5rem);
}

.section--alt {
  background: rgba(0, 0, 0, 0.22);
}

.section--dashboard {
  padding-top: 3rem;
}

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
}

.section__lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ── Features ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.35rem;
  backdrop-filter: blur(10px);
}

.feature-card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Steps ── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.35rem;
  backdrop-filter: blur(10px);
}

.step-card__num {
  display: block;
  color: var(--purple);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Tokenomics visual ── */
.split-visual__bar {
  display: flex;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-visual__segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.split-visual__segment--lp { background: #8b5cf6; }
.split-visual__segment--airdrop { background: #22c55e; }
.split-visual__segment--treasury { background: #fbbf24; color: #1a1200; }
.split-visual__segment--fees {
  background: #ef4444;
  min-width: 2.5rem;
  font-size: 0.72rem;
}

.split-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.split-legend__item {
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.split-legend__item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.split-legend__item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.split-legend__sol {
  display: block;
  margin-top: 0.5rem;
  color: var(--gold);
  font-weight: 700;
}

/* ── Dashboard ── */
.dashboard-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric-card {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.metric-card--primary {
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  margin-top: 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold);
}

.metric-value--purple { color: var(--purple); }
.metric-value--gold { color: var(--gold); }

.metric-sub,
.metric-foot {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.classic-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.55);
  backdrop-filter: blur(14px);
}

.classic-header .header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.classic-header h1 {
  margin: 0;
  font-size: 1.35rem;
}

.classic-header .subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.classic-header .logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 2px solid rgba(234, 179, 8, 0.35);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.layout--classic {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: grid;
  gap: 1.25rem;
}

.footer--classic {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.meteora-pool-bar {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.22);
  box-shadow: var(--shadow);
}

.token-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.token-bar--compact {
  margin-top: 0;
}

.token-bar__label {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.token-bar__mint {
  flex: 1;
  min-width: 180px;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-bar__copy {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--purple);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.token-bar__copy:hover {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.35);
}

.meteora-pool-bar__label {
  color: var(--purple);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.pool-pair-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pool-chip {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s, background 0.15s;
}

.pool-chip:hover,
.pool-chip.is-active {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
}

.pool-chip .pool-btn {
  border: none;
  border-radius: 0;
  background: transparent;
  padding-right: 0.55rem;
}

.pool-chip .pool-btn:hover,
.pool-chip .pool-btn.is-active {
  border: none;
  background: transparent;
}

.pool-chip.is-active .pool-btn {
  color: var(--text);
}

.pool-chip__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  color: var(--purple);
  text-decoration: none;
  font-size: 0.82rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s, color 0.15s;
}

.pool-chip__open:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.22);
}

.pool-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pool-btn:hover,
.pool-btn.is-active {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.16);
}

.meteora-pool-bar__stats {
  color: var(--muted);
  font-size: 0.88rem;
}

.interval-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--border);
}

.interval-bar__label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.interval-bar__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interval-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.interval-btn:hover,
.interval-btn.is-active {
  color: var(--text);
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.12);
}

.panel--report {
  overflow: hidden;
}

.report-card-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
}

.report-card-img {
  width: min(100%, 720px);
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.pnl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.pnl-card {
  background: var(--inner);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.metric-value--loss {
  color: var(--red);
}

.action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.action-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: var(--purple);
  font-size: 0.82rem;
  text-transform: capitalize;
}

.tx-list--pnl {
  max-height: 280px;
}

.tx-item--classic {
  grid-template-columns: 110px 130px 1fr auto;
}

.panel {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel__head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.panel__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.split-table__head,
.split-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.split-table__head {
  padding: 0 0.75rem 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.split-row {
  padding: 0.85rem 0.75rem;
  border-top: 1px solid var(--border);
}

.split-row__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.split-row__bar {
  width: 6px;
  height: 34px;
  border-radius: 999px;
}

.split-row__value { font-weight: 600; }

.split-row__meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.tx-list {
  display: grid;
  gap: 0.65rem;
  max-height: 420px;
  overflow-y: auto;
}

.tx-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: var(--inner);
  border: 1px solid transparent;
}

.tx-item:hover {
  border-color: rgba(167, 139, 250, 0.25);
}

.tx-type {
  font-weight: 600;
  text-transform: capitalize;
}

.tx-time,
.tx-wallet {
  color: var(--muted);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-amount {
  font-weight: 700;
  color: var(--gold);
  text-align: right;
}

.tx-empty {
  color: var(--muted);
  padding: 1rem 0.25rem;
}

.dashboard-refresh {
  text-align: center;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-btn {
  border: none;
  background: none;
  color: var(--purple);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.link-btn:hover { color: var(--text); }

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.85);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.site-footer__brand p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__links {
  display: flex;
  gap: 1.25rem;
}

.site-footer__links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__links a:hover { color: var(--text); }

.site-footer__copy {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 1.5rem);
  }

  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__mascot { width: min(280px, 80vw); }

  .feature-grid,
  .steps,
  .split-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav__toggle { display: block; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: rgba(11, 16, 32, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .nav__links.is-open { display: flex; }

  .nav__status { display: none; }

  .feature-grid,
  .steps,
  .split-legend,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .split-table__head,
  .split-row,
  .tx-item,
  .tx-item--classic {
    grid-template-columns: 1fr;
  }

  .pnl-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tx-amount { text-align: left; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__brand { justify-content: center; }
  .site-footer__links { justify-content: center; }
}

/* ── Protocol pages (port from localhost:3000) ── */
.page-main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) 1rem 3rem;
  display: grid;
  gap: 1.25rem;
}

.page-main--narrow { max-width: 820px; }
.page-main--wide { max-width: 980px; }

.page-header { margin-bottom: 0.5rem; }

.page-header--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.page-header--center { text-align: center; }

.page-header h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero__actions--stack {
  margin-top: 0.75rem;
}

.hero__actions--center {
  justify-content: center;
}

.metric-value--green { color: var(--green); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-pill--online { color: var(--green); border-color: rgba(34, 197, 94, 0.35); }
.status-pill--online .status-pill__dot { background: var(--green); }
.status-pill--offline { color: var(--muted); }
.status-pill--offline .status-pill__dot { background: var(--muted); }
.status-pill--degraded { color: var(--gold); border-color: rgba(234, 179, 8, 0.35); }
.status-pill--degraded .status-pill__dot { background: var(--gold); }

.activity-feed {
  display: grid;
  gap: 0.35rem;
  max-height: 440px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
}

.activity-row {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.activity-time { color: var(--muted); }
.activity-msg { color: var(--text); }

.activity-type--purple { color: var(--purple); font-weight: 700; }
.activity-type--green { color: var(--green); font-weight: 700; }
.activity-type--gold { color: var(--gold); font-weight: 700; }
.activity-type--red { color: var(--red); font-weight: 700; }
.activity-type--white { color: var(--text); font-weight: 700; }
.activity-type--muted { color: var(--muted); font-weight: 700; }

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chart-card {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
}

.chart-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  text-transform: capitalize;
}

.chart-wrap { height: 220px; }

.kv-row, .data-table td, .data-table th {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead th {
  text-align: left;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.data-table tbody tr { border-bottom: 1px solid var(--border); }
.data-table td { display: table-cell; padding: 0.75rem 0.5rem; }
.mono { font-family: ui-monospace, monospace; }

.gov-params {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.gov-param {
  text-align: center;
  padding: 1rem;
  border-radius: 14px;
  background: var(--inner);
}

.gov-note {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.gov-proposal { margin-top: 1rem; }

.proposal-status {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: capitalize;
  border: 1px solid var(--border);
}

.proposal-status--active { color: var(--purple); border-color: rgba(139, 92, 246, 0.35); }
.proposal-status--passed { color: var(--green); }
.proposal-status--pending { color: var(--muted); }

.vote-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin: 0.75rem 0 0.35rem;
}

.vote-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--purple));
}

.vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.vote-for { color: var(--green) !important; border-color: rgba(34, 197, 94, 0.35) !important; }
.vote-against { color: var(--red) !important; border-color: rgba(239, 68, 68, 0.35) !important; }

.health-pill {
  margin-left: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: capitalize;
  border: 1px solid var(--border);
}

.health-pill--stable { color: var(--green); }
.health-pill--operational { color: var(--gold); }
.health-pill--offline { color: var(--red); }

.tokenomics-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.tokenomics-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tokenomics-num {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.tokenomics-item p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }

.roadmap-list { display: grid; gap: 1rem; }

.roadmap-card {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid var(--border);
}

.roadmap-card--active { border-color: rgba(139, 92, 246, 0.4); box-shadow: var(--shadow); }
.roadmap-card--completed { border-color: rgba(34, 197, 94, 0.3); }
.roadmap-card--planned { border-color: rgba(251, 191, 36, 0.35); }

.roadmap-card__link {
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

.roadmap-card__link a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.roadmap-card__link a:hover { text-decoration: underline; }

.roadmap-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.roadmap-card h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.roadmap-card p { margin: 0; color: var(--muted); }

.game-hero {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.game-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.game-hero__mascot {
  width: min(220px, 60vw);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.game-badge {
  position: absolute;
  top: 0.75rem;
  right: calc(50% - min(110px, 30vw) + 0.5rem);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.game-perks {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}

.game-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

.game-teaser {
  display: grid;
  gap: 1.5rem;
}

.game-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Pool Lord game ── */
.game-shell {
  display: grid;
  gap: 1rem;
}

.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.game-name-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.game-name-field input {
  min-width: 160px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--inner);
  color: var(--text);
  font: inherit;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.65rem;
}

.game-hud__item {
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--inner);
  border: 1px solid var(--border);
}

.game-volatility {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.28);
  color: var(--gold);
  font-weight: 600;
  text-align: center;
}

.game-bins {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.45rem;
  min-height: 220px;
}

.game-bin {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.35rem;
  align-items: end;
  padding: 0.55rem 0.35rem;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.game-bin--active {
  border-color: rgba(234, 179, 8, 0.65);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25), 0 0 24px rgba(234, 179, 8, 0.12);
}

.game-bin__label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

.game-bin__bar {
  height: 88px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.game-bin__fill {
  width: 100%;
  background: linear-gradient(180deg, var(--purple), #6d28d9);
  border-radius: 8px 8px 0 0;
  min-height: 4px;
  transition: height 0.2s;
}

.game-bin--active .game-bin__fill {
  background: linear-gradient(180deg, var(--gold), #ca8a04);
}

.game-bin__amt {
  font-size: 0.95rem;
}

.game-bin__controls {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.game-bin-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--inner);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.game-bin-btn:hover:not(:disabled) {
  border-color: var(--purple);
  color: var(--purple);
}

.game-bin-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.game-help {
  margin: 0;
}

.game-sidebar {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.game-sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.game-leaderboard {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.game-leaderboard li {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--inner);
  border: 1px solid var(--border);
}

.game-lb-rank { color: var(--muted); font-weight: 700; }
.game-lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-lb-score { color: var(--gold); font-weight: 700; }
.game-lb-empty { color: var(--muted); font-style: italic; }

.game-overlay:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(8px);
}

.game-overlay[hidden] {
  display: none !important;
}

.game-overlay__card {
  width: min(420px, 100%);
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.game-overlay__card h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: 2rem;
}

@media (max-width: 760px) {
  .game-bins {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.pool-card {
  padding: 1rem;
  border-radius: 16px;
  background: var(--inner);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.55rem;
}

.pool-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pool-card__label {
  margin: 0;
  font-size: 1rem;
  color: var(--purple);
}

.pool-card__link {
  font-size: 0.78rem;
  color: var(--gold);
  white-space: nowrap;
}

.pool-card__address {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pool-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.pool-card__filter {
  justify-self: start;
  margin-top: 0.25rem;
}

@media (max-width: 720px) {
  .charts-grid,
  .gov-params {
    grid-template-columns: 1fr;
  }
}
