:root {
  --bg: #080a08;
  --bg-2: #0e120e;
  --panel: #111611;
  --line: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #5ecf5e;
  --accent-dim: rgba(94, 207, 94, 0.35);
  --accent-soft: #2d4a2d;
  --text: #e2ebe0;
  --muted: #7a8f78;
  --danger: #e85d5d;
  --radius: 6px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  /* legacy aliases */
  --neon: var(--accent);
  --neon-dim: var(--accent-dim);
  --neon-soft: var(--accent-soft);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.text-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 1.25rem 0 0.5rem;
}

.desk-lead {
  color: var(--muted);
  max-width: 36rem;
}

.hidden {
  display: none !important;
}

.link-subtle {
  color: var(--accent);
  font-size: 0.85rem;
}

.link-subtle:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0.25rem 0 0.5rem;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.5) 2px,
    rgba(0, 0, 0, 0.5) 4px
  );
  z-index: 9998;
}

.crt-vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 9997;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  z-index: 9996;
}

.vignette,
.spray-mist {
  display: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(8, 10, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-logo,
.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active,
.footer-links a:hover {
  color: var(--accent);
}

.nav a.active {
  color: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ——— Wallet pill (header) ——— */
.wallet-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(94, 207, 94, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(94, 207, 94, 0.07) 0%, rgba(94, 207, 94, 0.02) 100%),
    rgba(12, 16, 12, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.wallet-pill:hover {
  border-color: rgba(94, 207, 94, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 0 20px rgba(94, 207, 94, 0.12);
}

.wallet-pill:active {
  transform: translateY(1px);
}

.wallet-pill__idle,
.wallet-pill__live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-pill__icon {
  color: var(--accent);
  opacity: 0.9;
  flex-shrink: 0;
}

.wallet-pill--connected {
  padding: 0.3rem 0.65rem 0.3rem 0.55rem;
  border-color: rgba(94, 207, 94, 0.35);
  background:
    linear-gradient(180deg, rgba(94, 207, 94, 0.1) 0%, rgba(8, 10, 8, 0.92) 100%);
  cursor: copy;
}

.wallet-pill--connected:hover {
  border-color: rgba(94, 207, 94, 0.55);
  box-shadow:
    0 0 0 1px rgba(94, 207, 94, 0.08) inset,
    0 0 24px rgba(94, 207, 94, 0.16);
}

.wallet-pill--copied {
  border-color: var(--accent);
}

.wallet-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(94, 207, 94, 0.75);
  animation: wallet-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes wallet-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

.wallet-pill__addr {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.wallet-pill__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(94, 207, 94, 0.1);
  border: 1px solid rgba(94, 207, 94, 0.18);
}

.wallet-pill__meta:not(.hidden) {
  margin-left: 0.15rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(94, 207, 94, 0.22);
}

.wallet-pill__live {
  gap: 0.35rem;
}

@media (max-width: 720px) {
  .wallet-pill__meta:not(.hidden) {
    display: none;
  }
}

.btn {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent-soft);
  border-color: var(--accent-dim);
  color: var(--accent);
}

.btn-primary:hover {
  background: rgba(94, 207, 94, 0.2);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  background: rgba(184, 255, 46, 0.06);
  border-color: var(--line);
  color: var(--neon);
  font-family: "IBM Plex Mono", monospace;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: saturate(0.7) brightness(0.35) blur(1px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 3, 0.5), rgba(3, 4, 3, 0.96) 75%),
    radial-gradient(circle at 50% 30%, rgba(184, 255, 46, 0.08), transparent 50%);
}

.hero-fog {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(184, 255, 46, 0.04), transparent 60%);
  animation: fogDrift 12s ease-in-out infinite alternate;
}

@keyframes fogDrift {
  from { opacity: 0.4; transform: translateY(0); }
  to { opacity: 0.7; transform: translateY(-12px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  padding: 4rem 2rem 5rem;
  text-align: center;
}

.mark-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem 0.45rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--neon);
  border: 1px solid rgba(184, 255, 46, 0.35);
  border-radius: 4px;
  transform: skewX(-6deg);
  box-shadow:
    4px 4px 0 rgba(184, 255, 46, 0.12),
    inset 0 -3px 0 rgba(184, 255, 46, 0.15);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin: 0 0 1rem;
  line-height: 0.92;
  text-shadow: 0 0 40px rgba(184, 255, 46, 0.12);
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(109, 127, 106, 0.75);
  letter-spacing: 0.06em;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin: 0.8rem 0 1rem;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin: 0.2rem 0 0.8rem;
}

.hero-copy {
  max-width: 620px;
  margin: 0 auto 1.8rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-whisper {
  display: none;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stats-strip,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 2rem;
  margin-top: -2.5rem;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.stat-card strong {
  font-size: 1.2rem;
  font-family: "IBM Plex Mono", monospace;
}

.stat-card .live {
  color: var(--neon);
}

.section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  max-width: 680px;
  margin-bottom: 2rem;
}

.section-head.mysterious p:last-child {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Console */
.console-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(4, 6, 4, 0.95);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(184, 255, 46, 0.06);
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.2rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.console-topbar-left,
.console-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.console-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.console-dot.live {
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.console-sep {
  opacity: 0.3;
}

.console-grid {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 0;
}

.console-grid .panel {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--line);
  box-shadow: none;
  background: transparent;
}

.console-grid .panel:last-child {
  border-right: none;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mesh-head {
  margin-top: 1.2rem;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  color: var(--neon-dim);
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
}

.module-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--neon-dim);
}

.pulse-indicator {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
}

.pulse-indicator.running {
  color: var(--neon);
  animation: pulse 1s infinite;
}

.module-list,
.job-log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.module-list.advanced li {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
}

.module-list strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.module-list .module-desc {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.module-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.load-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.load-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-soft), var(--neon));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.status-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  flex-shrink: 0;
}

.status-pill.active {
  background: rgba(184, 255, 46, 0.1);
  color: var(--neon-dim);
}

.status-pill.standby {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.phase-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.phase-step {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.phase-step.done {
  border-color: rgba(184, 255, 46, 0.3);
  box-shadow: inset 0 0 12px rgba(184, 255, 46, 0.05);
}

.phase-step strong {
  display: block;
  text-transform: capitalize;
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.phase-step.done strong {
  color: var(--neon-dim);
}

.phase-step span {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.commerce-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.metric-chip {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(0, 0, 0, 0.2);
}

.metric-chip span {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.metric-chip strong {
  font-size: 0.88rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--neon-dim);
}

.scan-output {
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  min-height: 140px;
  max-height: 200px;
  overflow: auto;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.routes-head {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--neon-dim);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.route-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.route-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  background: rgba(0, 0, 0, 0.28);
}

.route-type {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--neon-dim);
  margin-bottom: 0.3rem;
}

.route-card strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.route-card p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.job-log .job-item {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 0.4rem;
}

.job-item strong {
  display: block;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 0.15rem;
}

.job-item span {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.mesh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.mesh-node {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  color: var(--muted);
  transition: 0.2s ease;
}

.mesh-node.active {
  border-color: rgba(184, 255, 46, 0.35);
  color: var(--neon-dim);
  box-shadow: inset 0 0 8px rgba(184, 255, 46, 0.08);
}

.mesh-node.pulse {
  animation: nodePulse 1.5s ease;
}

@keyframes nodePulse {
  0% { box-shadow: 0 0 0 rgba(184, 255, 46, 0.4); }
  50% { box-shadow: 0 0 12px rgba(184, 255, 46, 0.25); }
  100% { box-shadow: none; }
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-card,
.roadmap article,
.token-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.step {
  color: var(--neon-dim);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
}

.acp-flow {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.acp-flow span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

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

.nft-grid.classified .nft-card {
  position: relative;
  cursor: default;
}

.nft-grid.classified .nft-card img {
  filter: brightness(0.5) saturate(0.4) blur(2px);
  transition: 0.4s ease;
}

.nft-grid.classified .nft-card:hover img {
  filter: brightness(0.85) saturate(0.9) blur(0);
}

.nft-card .redact {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 4, 3, 0.55);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  transition: 0.4s ease;
  pointer-events: none;
}

.nft-card:hover .redact {
  opacity: 0;
}

.nft-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.nft-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}

.nft-card p {
  margin: 0;
  padding: 0.7rem 0.9rem 0.9rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tag {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
}

.tag.live {
  background: rgba(184, 255, 46, 0.1);
  color: var(--neon-dim);
}

.token-section .token-panel {
  max-width: 680px;
}

.token-panel ul {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 1.1rem;
}

.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.page-main {
  position: relative;
  z-index: 1;
  min-height: 60vh;
}

.page-hero {
  padding: 4rem 2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0.5rem 0 0.8rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

.page-section {
  padding-top: 2rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.portal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
  display: block;
}

.portal-card:hover {
  border-color: rgba(184, 255, 46, 0.35);
  transform: translateY(-2px);
}

.portal-card h3 {
  margin: 0.6rem 0 0.5rem;
  font-size: 1.8rem;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.preview-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.preview-row span {
  color: var(--muted);
}

.preview-row strong.completed {
  color: var(--neon-dim);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.module-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}

.module-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.module-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.module-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 0.8rem;
}

.load-bar.wide {
  height: 4px;
}

.agent-card {
  cursor: pointer;
}

.agent-role {
  display: block;
  padding: 0 0.9rem 0.8rem;
  font-size: 0.72rem;
  color: var(--neon-dim);
}

.agent-detail {
  margin-top: 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
  opacity: 0.5;
  transition: 0.3s ease;
}

.agent-detail.visible {
  opacity: 1;
}

.agent-detail img {
  width: 100%;
  border-radius: 12px;
  image-rendering: pixelated;
}

.detail-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  margin: 0;
}

.detail-role {
  color: var(--neon-dim);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}

.detail-copy {
  color: var(--muted);
  line-height: 1.6;
}

.detail-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.jobs-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1rem;
}

.jobs-list-panel,
.jobs-detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
}

.jobs-list-panel h3,
.jobs-detail-panel h3 {
  margin: 0 0 1rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.jobs-list {
  display: grid;
  gap: 0.4rem;
  max-height: 520px;
  overflow: auto;
}

.job-row {
  width: 100%;
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.7rem;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  transition: 0.15s ease;
}

.job-row:hover,
.job-row.active {
  border-color: rgba(184, 255, 46, 0.3);
  background: rgba(184, 255, 46, 0.04);
}

.job-type {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: capitalize;
}

.job-status.completed {
  color: var(--neon-dim);
  font-size: 0.72rem;
}

.job-id,
.job-time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

.job-detail-body {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  overflow: auto;
  max-height: 480px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.job-detail-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.job-detail-head h3 {
  margin: 0;
  text-transform: capitalize;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.tier-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
}

.tier-card.featured {
  border-color: rgba(184, 255, 46, 0.4);
  box-shadow: 0 0 30px rgba(184, 255, 46, 0.08);
}

.tier-price {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: var(--neon-dim);
  margin: 0.5rem 0 1rem;
}

.tier-card ul {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.btn-block {
  display: block;
  text-align: center;
  margin-top: 1rem;
  width: 100%;
}

.empty-msg,
.error-msg {
  color: var(--muted);
  font-size: 0.88rem;
}

.section-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  max-width: 820px;
}

.section-title em {
  color: var(--neon-dim);
  font-style: normal;
}

.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
}

.article-num {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  color: var(--neon-dim);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.article-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.article-card h4 {
  margin: 0 0 0.8rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  line-height: 1.1;
}

.article-card h4 em {
  color: var(--neon-dim);
  font-style: normal;
}

.article-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  font-size: 0.92rem;
}

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

.mode-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: 0.15s ease;
  display: block;
  width: 100%;
}

.mode-card:hover,
.mode-card.active {
  border-color: rgba(184, 255, 46, 0.4);
  background: rgba(184, 255, 46, 0.04);
}

.mode-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mode-type {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.mode-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.console-section {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.console-section-title {
  margin: 0 0 0.75rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 1rem;
}

.console-grid-2 {
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.commerce-form {
  display: grid;
  gap: 0.65rem;
}

.commerce-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.commerce-form input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font: inherit;
}

.approval-list {
  display: grid;
  gap: 0.5rem;
}

.approval-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.approval-item strong {
  display: block;
  font-size: 0.88rem;
}

.approval-item span {
  font-size: 0.72rem;
  color: var(--muted);
}

.approval-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.reject-btn {
  color: var(--danger) !important;
}

.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
}

.faq-num {
  font-family: "Bebas Neue", sans-serif;
  color: var(--neon-dim);
  font-size: 1.2rem;
}

.faq-item h3 {
  margin: 0.3rem 0 0.6rem;
  font-size: 1.15rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.jobs-toolbar {
  margin-bottom: 1rem;
}

.jobs-toolbar select {
  margin-left: 0.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

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

  .console-grid .panel {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .commerce-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .stats-strip,
  .cards.three,
  .roadmap,
  .nft-grid,
  .portal-grid,
  .module-grid,
  .tier-grid,
  .articles,
  .mode-preview,
  .mode-grid,
  .console-grid-2 {
    grid-template-columns: 1fr;
  }

  .jobs-layout {
    grid-template-columns: 1fr;
  }

  .agent-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav,
  .stats-strip,
  .cards.three,
  .roadmap,
  .nft-grid,
  .portal-grid,
  .module-grid,
  .tier-grid,
  .phase-timeline,
  .commerce-metrics,
  .route-cards {
    grid-template-columns: 1fr;
  }
}

.mcp-setup-panel {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mcp-setup-copy {
  padding: 0 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.mcp-setup-copy code {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
}

.mcp-setup-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0 1.25rem 1rem;
}

.mcp-setup-status {
  padding: 0 1.25rem 1.25rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ——— Docs ——— */
.docs-page .site-header {
  position: sticky;
}

.docs-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.docs-sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.docs-sidebar-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.docs-toc {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.docs-toc-link {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 2px solid transparent;
}

.docs-toc-link:hover {
  color: var(--neon);
  background: rgba(184, 255, 46, 0.04);
}

.docs-toc-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  opacity: 0.6;
}

.docs-main {
  min-width: 0;
}

.docs-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.docs-hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  margin: 0.5rem 0 1rem;
}

.docs-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.docs-live-note {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.docs-module {
  margin-bottom: 3rem;
  scroll-margin-top: 5rem;
}

.docs-module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.docs-module-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.docs-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.docs-badge.live {
  color: var(--neon);
  border-color: var(--neon-dim);
  background: rgba(184, 255, 46, 0.08);
}

.docs-badge.soon {
  color: #ffb347;
  border-color: rgba(255, 179, 71, 0.35);
  background: rgba(255, 179, 71, 0.08);
}

.docs-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.docs-kv-grid > div {
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.docs-kv-grid span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.docs-kv-grid strong,
.docs-kv-grid a {
  font-size: 0.9rem;
  word-break: break-all;
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.docs-table th,
.docs-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  text-align: left;
}

.docs-table th {
  width: 28%;
  color: var(--muted);
  font-weight: 500;
}

.docs-table td a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--neon);
}

.muted-cell {
  color: var(--muted);
  font-style: italic;
}

.docs-list {
  padding-left: 0;
  list-style: none;
  line-height: 1.8;
}

.docs-steps {
  line-height: 1.8;
  padding-left: 1.25rem;
}

.docs-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.docs-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.docs-footer a {
  color: var(--neon);
}

.status-pill.live {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--neon);
  border: 1px solid var(--neon-dim);
}

/* ——— Kong AMM Desk ——— */
.desk-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.desk-hero {
  margin-bottom: 1.5rem;
}

.desk-hero h1 {
  margin: 0.25rem 0 0.5rem;
}

.desk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.desk-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
}

.desk-tab:hover,
.desk-tab.active {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(94, 207, 94, 0.08);
}

.desk-panel {
  display: none;
}

.desk-panel.active {
  display: block;
}

.desk-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.25rem;
}

.desk-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

.desk-card h3 {
  margin-top: 0;
}

.desk-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.desk-ca {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.desk-ca-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.desk-ca code {
  word-break: break-all;
}

.tx-log-get {
  margin-top: 1rem;
  min-height: 2.5rem;
}

.soon-banner {
  padding: 0.75rem 1rem;
  background: rgba(255, 179, 71, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.25);
  border-radius: 8px;
  font-size: 0.9rem;
}

.swap-placeholder {
  margin: 1.25rem 0;
  display: grid;
  gap: 0.5rem;
}

.swap-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.desk-sidebar {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.desk-stat {
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.desk-stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.desk-steps {
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.snipe-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  margin-top: 1rem;
}

.snipe-row label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.tx-log {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 160px;
  overflow-y: auto;
}

.wallet-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

/* legacy — wallet UI now uses .wallet-pill */

.kong-row {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
}

.desk-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.desk-card label input,
.desk-card label select {
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
  }

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

.mark-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stock-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.stock-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-size: 0.875rem;
}

.stock-addr {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.stock-sym {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .stock-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ——— CRT desk theme (visual only — no "terminal" copy) ——— */
body.kb-crt {
  --bg: #010201;
  --bg-2: #040804;
  --panel: rgba(4, 10, 4, 0.92);
  --line: rgba(57, 255, 20, 0.18);
  --border: rgba(57, 255, 20, 0.18);
  --accent: #39ff14;
  --accent-dim: rgba(57, 255, 20, 0.4);
  --accent-soft: #1a6b18;
  --text: #b8ffb0;
  --muted: #4a6b47;
  --radius: 0;
  --neon: var(--accent);
  --neon-dim: var(--accent-dim);
  --neon-soft: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg);
}

body.kb-crt .status-bar {
  position: relative;
  z-index: 30;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #020402;
}

body.kb-crt .status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  vertical-align: middle;
}

body.kb-crt .site-header {
  background: rgba(2, 4, 2, 0.95);
  backdrop-filter: none;
  padding: 0.65rem 1.25rem;
}

body.kb-crt .brand {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

body.kb-crt h1,
body.kb-crt h2,
body.kb-crt h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.kb-crt h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
}

body.kb-crt .mark-tag {
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  display: inline-block;
}

body.kb-crt .btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

body.kb-crt .btn-primary {
  background: rgba(57, 255, 20, 0.1);
  box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.06);
}

body.kb-crt .btn-primary:hover {
  background: rgba(57, 255, 20, 0.18);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.12);
}

body.kb-crt .desk-card,
body.kb-crt .desk-stat,
body.kb-crt .desk-steps,
body.kb-crt .swap-row,
body.kb-crt .stock-row {
  border-radius: 0;
  background: rgba(0, 0, 0, 0.35);
}

body.kb-crt .desk-tab {
  border-radius: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.kb-crt .desk-tab.active {
  background: rgba(57, 255, 20, 0.08);
  box-shadow: inset 0 0 0 1px var(--accent-dim);
  color: var(--accent);
}

body.kb-crt .tx-log {
  border-radius: 0;
  background: rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

body.kb-crt .tx-log:empty::before {
  content: "> awaiting input…";
  color: var(--muted);
}

body.kb-crt .section-label::before {
  content: "> ";
  color: var(--accent);
}

body.kb-crt .console-shell,
body.kb-crt .scan-output {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

body.kb-crt .wallet-chip {
  color: var(--accent);
}

body.kb-crt .docs-badge.live {
  border-radius: 0;
}

/* ——— Mint page ——— */
body.mint-page {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(94, 207, 94, 0.08), transparent),
    var(--bg);
}

.mint-shell {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mint-hero {
  margin-bottom: 0.25rem;
}

.mint-hero h1 {
  margin: 0.35rem 0 0.5rem;
}

.mint-hero-lead {
  max-width: 36rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.mint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.mint-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mint-card-header,
.lore-desk-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.lore-desk-header {
  grid-template-columns: auto 1fr;
}

.mint-preview,
.lore-feature-kong {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  background: #0a0c0a;
  flex-shrink: 0;
}

.mint-card-title,
.lore-desk-title {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.lore-desk-lead {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.mint-metrics {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 1rem;
}

.mint-metric {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  min-height: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mint-metric-qty {
  align-items: center;
  justify-content: flex-end;
}

.mint-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.mint-metric strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.mint-accent {
  color: var(--accent);
}

.mint-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.mint-qty-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.mint-qty-btn:hover:not(:disabled) {
  border-color: var(--accent-dim);
  background: rgba(94, 207, 94, 0.08);
}

.mint-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#mint-qty {
  width: 2.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.4rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  -moz-appearance: textfield;
}

#mint-qty::-webkit-outer-spin-button,
#mint-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mint-progress-wrap {
  margin-bottom: 1rem;
}

.mint-progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.mint-progress-meta .mint-label {
  margin: 0;
}

.mint-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mint-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 0.35s ease;
}

.mint-supply {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.mint-actions {
  margin-top: auto;
}

.mint-cta {
  width: 100%;
  padding: 0.8rem 1.25rem;
  font-size: 0.92rem;
}

.mint-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.mint-log {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  max-height: 96px;
  overflow: auto;
}

.lore-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.lore-rank-item {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(0, 1.4fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.lore-rank-item-head {
  display: contents;
}

.lore-rank-item .rank-badge {
  justify-self: start;
}

.lore-rank-role {
  display: none;
}

.lore-rank-bonus {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}

.lore-desk-foot {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* Portfolio (My Kongs) */
.portfolio-section {
  gap: 0;
}

.portfolio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.portfolio-title {
  margin: 0;
  font-size: 1.15rem;
}

.portfolio-sub {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.portfolio-stats {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.portfolio-stat {
  min-width: 4.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.portfolio-stat-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.portfolio-stat strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
}

.portfolio-body {
  min-height: 200px;
}

.portfolio-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.portfolio-empty-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.portfolio-empty-text {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.portfolio-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.15rem 0.15rem 0.65rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.portfolio-strip::-webkit-scrollbar {
  height: 6px;
}

.portfolio-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.portfolio-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-card-art {
  display: block;
  aspect-ratio: 1;
  background: #0a0c0a;
  overflow: hidden;
}

.portfolio-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}

.portfolio-card-art:hover img {
  transform: scale(1.03);
}

.portfolio-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-mono);
  color: var(--accent);
}

.portfolio-card-body {
  padding: 0.65rem 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.portfolio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.portfolio-card-id {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.portfolio-status {
  font-size: 0.68rem;
  color: var(--muted);
}

.portfolio-status-live {
  color: var(--accent);
}

.portfolio-card-meta {
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.portfolio-card-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.portfolio-card-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.portfolio-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.rank-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.rank-badge.rank-partner,
.lore-rank-item.rank-partner {
  border-color: rgba(94, 207, 94, 0.35);
}

.rank-badge.rank-partner {
  color: var(--accent);
  background: rgba(94, 207, 94, 0.1);
}

.rank-badge.rank-md {
  color: #a8d4a8;
}

.rank-badge.rank-vp {
  color: #95c995;
}

.kong-card-head .rank-badge {
  margin-left: 0.25rem;
}

@media (max-width: 820px) {
  .mint-grid {
    grid-template-columns: 1fr;
  }

  .mint-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .mint-metric-qty {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .mint-shell {
    padding: 1.25rem 1rem 3rem;
  }

  .portfolio-header {
    flex-direction: column;
  }

  .portfolio-stats {
    width: 100%;
  }

  .portfolio-stat {
    flex: 1;
  }

  .mint-metrics {
    grid-template-columns: 1fr;
  }
}

.kong-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.85rem;
}

.kong-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.kong-card-art {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
}

.kong-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.kong-card-fallback {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.7;
}

.kong-card-body {
  padding: 0.65rem 0.75rem 0.75rem;
}

.kong-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.kong-card-head strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.kong-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.35rem;
  border: 1px solid var(--line);
  color: var(--muted);
}

.kong-badge-live {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.kong-card-meta {
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.kong-card-meta code {
  font-size: 0.65rem;
}

.kong-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.btn-small {
  padding: 0.35rem 0.55rem;
  font-size: 0.68rem;
}
