/* daostonks — dark neon trading UI */
:root {
  --bg: #0a0b0f;
  --bg-elev: #0d0f14;
  --surface: #12141a;
  --surface-2: #171a22;
  --surface-3: #1c202b;
  --border: rgba(255, 255, 255, 0.07);
  --border-hi: rgba(255, 255, 255, 0.13);
  --text: #eef0f4;
  --text-2: #b6bac7;
  --muted: #7d8293;
  --green: #22f39a;
  --green-2: #14c97a;
  --green-dim: rgba(34, 243, 154, 0.12);
  --green-glow: rgba(34, 243, 154, 0.28);
  --red: #ff4d6d;
  --red-dim: rgba(255, 77, 109, 0.12);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --magenta: #e879f9;
  --magenta-dim: rgba(232, 121, 249, 0.12);
  --amber: #f5c14a;
  --amber-dim: rgba(245, 193, 74, 0.12);
  --purple: #a78bfa;
  --purple-dim: rgba(167, 139, 250, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(34, 243, 154, 0.07), transparent 55%),
    radial-gradient(700px 380px at 92% 8%, rgba(34, 211, 238, 0.06), transparent 50%),
    radial-gradient(600px 300px at 70% 100%, rgba(232, 121, 249, 0.04), transparent 45%),
    var(--bg);
}

body.modal-open {
  overflow: hidden;
}

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

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

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

img {
  max-width: 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  transition: 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--border-hi);
  background: var(--surface-3);
}

.btn-primary {
  background: linear-gradient(180deg, #2bffab 0%, #16d07e 100%);
  color: #04160d;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(34, 243, 154, 0.18), 0 8px 24px var(--green-glow);
}

.btn-primary:hover {
  filter: brightness(1.06);
  background: linear-gradient(180deg, #3dffb4 0%, #18dc86 100%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-2);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hi);
}

.btn-lg {
  height: 46px;
  padding: 0 18px;
  font-size: 14.5px;
  border-radius: 12px;
}

.btn-buy {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(34, 243, 154, 0.28);
}

.btn-sell {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255, 77, 109, 0.28);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
  padding: 0 28px;
  background: rgba(10, 11, 15, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: none;
  color: #04160d;
  box-shadow: 0 0 18px rgba(34, 243, 154, 0.28);
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark svg {
  display: block;
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
}

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

.nav-link.active {
  color: var(--green);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 28px 36px;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.gradient {
  background: linear-gradient(90deg, #22f39a 0%, #22d3ee 52%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 26px;
  max-width: 520px;
  color: var(--text-2);
  font-size: 16px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-glow);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 243, 154, 0.55); opacity: 1; }
  70% { box-shadow: 0 0 0 8px rgba(34, 243, 154, 0); opacity: 0.85; }
  100% { box-shadow: 0 0 0 0 rgba(34, 243, 154, 0); opacity: 1; }
}

.sep {
  opacity: 0.45;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.03em;
  background: var(--surface-3);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.token-icon.stonk,
.token-icon.dao {
  background: linear-gradient(135deg, rgba(34, 243, 154, 0.22), rgba(34, 211, 238, 0.1));
  color: var(--green);
}

.token-icon.agent {
  background: var(--magenta-dim);
  color: var(--magenta);
}

.token-icon.hedge {
  background: var(--amber-dim);
  color: var(--amber);
}

.token-icon.token {
  background: var(--purple-dim);
  color: var(--purple);
}

.token-icon.meme {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.token-name {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.token-pair,
.token-ticker {
  color: var(--muted);
  font-size: 12px;
}

.token-ticker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  margin-right: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tag.xstocks { color: var(--cyan); border-color: rgba(34, 211, 238, 0.25); background: var(--cyan-dim); }
.tag.prestocks { color: var(--magenta); border-color: rgba(232, 121, 249, 0.25); background: var(--magenta-dim); }
.tag.meme { color: var(--green); border-color: rgba(34, 243, 154, 0.22); background: var(--green-dim); }
.tag.sol { color: var(--purple); border-color: rgba(167, 139, 250, 0.28); background: var(--purple-dim); }
.tag.custom { color: var(--amber); border-color: rgba(245, 193, 74, 0.25); background: var(--amber-dim); }

.hero-price {
  margin-left: auto;
  text-align: right;
}

.price-val {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.price-chg {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
}

.up { color: var(--green); }
.down { color: var(--red); }

.hero-chart-wrap {
  position: relative;
  margin: 12px 0 8px;
  height: 140px;
  overflow: hidden;
}

.chart-box {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

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

.stat-value {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Stats ---------- */
.stats-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 28px 12px;
}

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

.stat-card,
.chart-panel,
.token-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-card {
  padding: 16px 16px 14px;
}

.stat-card-label {
  color: var(--muted);
  font-size: 12px;
}

.stat-card-value {
  margin: 6px 0 4px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.stat-card-sub {
  color: var(--text-2);
  font-size: 12px;
}

.charts-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.chart-panel {
  padding: 14px 16px 10px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.panel-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.panel-tabs {
  display: flex;
  gap: 6px;
}

.tab,
.filter,
.sort-btn,
.type-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tab:hover,
.filter:hover,
.sort-btn:hover,
.type-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.tab.active,
.filter.active,
.sort-btn.active,
.type-btn.active {
  color: var(--green);
  background: var(--green-dim);
  border-color: rgba(34, 243, 154, 0.2);
}

/* ---------- Controls ---------- */
.controls {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 8px;
  display: grid;
  gap: 12px;
}

.search-wrap input,
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: 0.15s ease;
}

.search-wrap input:focus,
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(34, 243, 154, 0.4);
  box-shadow: 0 0 0 3px rgba(34, 243, 154, 0.08);
}

.search-wrap input::placeholder,
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #5d6272;
}

.filters,
.sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sort span {
  color: var(--muted);
  font-size: 12px;
  margin-right: 2px;
}

/* ---------- Grid ---------- */
.grid-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 28px 64px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.count {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.token-card {
  display: block;
  padding: 14px;
  text-align: left;
  transition: 0.16s ease;
  cursor: pointer;
  width: 100%;
}

.token-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-id {
  min-width: 0;
  flex: 1;
}

.card-id .token-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tags {
  margin: 10px 0 8px;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.card-spark {
  display: block;
  width: 100%;
  height: 46px;
  margin: 8px 0 10px;
}

.card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.metric-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-val {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Type badges */
.type-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.type-badge.dao { color: var(--cyan); background: var(--cyan-dim); border-color: rgba(34, 211, 238, 0.2); }
.type-badge.agent { color: var(--magenta); background: var(--magenta-dim); border-color: rgba(232, 121, 249, 0.2); }
.type-badge.token { color: var(--purple); background: var(--purple-dim); border-color: rgba(167, 139, 250, 0.22); }
.type-badge.hedge { color: var(--amber); background: var(--amber-dim); border-color: rgba(245, 193, 74, 0.22); }
.type-badge.meme { color: var(--green); background: var(--green-dim); border-color: rgba(34, 243, 154, 0.2); }

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(8px);
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
}

.modal-content.launch-modal { width: min(580px, 100%); }
.modal-content.detail-modal { width: min(860px, 100%); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  background: var(--surface-3);
  color: var(--text);
}

.modal-content h2 {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.steps {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.step {
  display: flex;
  gap: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-dim);
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
}

.step p {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
}

.form-row textarea {
  resize: vertical;
  min-height: 78px;
}

.form-row select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.type-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.type-btn {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Detail modal leftover (token page is token.html) */
.detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-price {
  margin-left: auto;
  text-align: right;
}

.detail-chart-wrap {
  height: 260px;
  margin: 8px 0 16px;
}

.detail-range {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.detail-copy p {
  color: var(--text-2);
  font-size: 13.5px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.trades {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.trades th,
.trades td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.trades th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  z-index: 100;
  min-width: 240px;
  max-width: min(520px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 12px;
  background: #151922;
  border: 1px solid var(--border-hi);
  color: var(--text);
  box-shadow: var(--shadow), 0 0 24px rgba(34, 243, 154, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  font-size: 13.5px;
  text-align: center;
}

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

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-2);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--green);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero,
  .charts-row,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    gap: 28px;
    padding-top: 36px;
  }

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

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

@media (max-width: 760px) {
  .nav {
    padding: 0 14px;
    height: 60px;
  }

  .nav-links {
    display: none;
  }

  .nav-right .btn-primary {
    display: none;
  }

  .hero,
  .stats-section,
  .controls,
  .grid-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero,
  .charts-row,
  .stats-grid,
  .hero-stats,
  .card-metrics {
    grid-template-columns: 1fr;
  }

  .hero-card-header {
    flex-wrap: wrap;
  }

  .hero-price {
    margin-left: 54px;
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .modal-content {
    padding: 22px 16px 16px;
  }
}


/* Extra icon / badge variants used by data.js + token page */
.token-icon.ai { background: var(--magenta-dim); color: var(--magenta); }
.token-icon.pre { background: var(--magenta-dim); color: var(--magenta); }
.token-icon.xstock { background: var(--cyan-dim); color: var(--cyan); }
.token-icon.custom { background: var(--amber-dim); color: var(--amber); }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge.dao, .type-badge.dao { color: var(--cyan); background: var(--cyan-dim); border-color: rgba(34, 211, 238, 0.2); }
.badge.ai, .type-badge.ai, .badge.agent { color: var(--magenta); background: var(--magenta-dim); border-color: rgba(232, 121, 249, 0.2); }
.badge.token { color: var(--purple); background: var(--purple-dim); border-color: rgba(167, 139, 250, 0.22); }
.badge.hedge { color: var(--amber); background: var(--amber-dim); border-color: rgba(245, 193, 74, 0.22); }
.badge.meme { color: var(--green); background: var(--green-dim); border-color: rgba(34, 243, 154, 0.2); }

.btn.connected {
  color: var(--green);
  border-color: rgba(34, 243, 154, 0.28);
  background: var(--green-dim);
}

a.btn { text-decoration: none; }
.btn-block { width: 100%; height: 42px; }

.hero-chart-wrap canvas,
.chart-box canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100%;
}

/* ---------- Token page (token.html) ---------- */
.token-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px 64px;
}

.token-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.back-link:hover { color: var(--green); }

.token-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.token-identity h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.token-identity .ticker {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.price-hero { margin: 6px 0 16px; }
.big-price {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.price-hero .sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.kpi, .panel, .chart-card, .trade-panel, .related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.kpi { padding: 12px 14px; }

.token-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 14px;
  align-items: start;
}
.stack { display: grid; gap: 12px; }

.chart-card { padding: 14px 16px 10px; }
.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.chart-card-head h3,
.panel h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.tf-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tf-tab {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.tf-tab:hover { color: var(--text); background: var(--surface-2); }
.tf-tab.active {
  color: var(--green);
  background: var(--green-dim);
  border-color: rgba(34, 243, 154, 0.2);
}

.price-chart-wrap {
  position: relative;
  height: 300px;
}
.vol-chart-wrap { height: 92px; margin-top: 6px; }
.price-chart-wrap canvas,
.vol-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  display: none;
}

.panel { padding: 14px 16px; }
.about-blurb {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
}

.agent-log {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.agent-log li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.agent-log time {
  flex: 0 0 72px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.data th,
table.data td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.data th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.side-buy { color: var(--green); font-weight: 700; }
.side-sell { color: var(--red); font-weight: 700; }

.trade-panel {
  padding: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 12px);
}
.trade-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.trade-side button {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text-2);
}
.trade-side .buy.active,
.trade-side button.buy.active {
  color: var(--green);
  background: var(--green-dim);
  border-color: rgba(34, 243, 154, 0.28);
}
.trade-side .sell.active,
.trade-side button.sell.active {
  color: var(--red);
  background: var(--red-dim);
  border-color: rgba(255, 77, 109, 0.28);
}
.trade-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}
.trade-input:focus {
  border-color: rgba(34, 243, 154, 0.4);
  box-shadow: 0 0 0 3px rgba(34, 243, 154, 0.08);
}
.trade-est {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12.5px;
}
.trade-est b { color: var(--text); font-weight: 600; }

.kv { display: grid; gap: 8px; }
.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.kv-row .stat-label { font-size: 12px; }
.kv-row .stat-value { font-size: 12.5px; text-align: right; }

.page-block { margin-top: 28px; }
.related-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.related-card { display: block; padding: 12px; transition: 0.16s ease; }
.related-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.card-head, .card-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-head { margin-bottom: 10px; }
.card-meta { min-width: 0; }

@media (max-width: 980px) {
  .token-layout,
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .trade-panel { position: static; }
}
@media (max-width: 760px) {
  .token-page { padding: 16px 14px 48px; }
  .token-topbar,
  .token-layout,
  .kpi-row { grid-template-columns: 1fr; display: grid; }
  .token-topbar { gap: 10px; }
  .price-chart-wrap { height: 220px; }
}

/* ===== stonkfun cool ===== */
:root {
  --bg: #071013;
  --bg-elev: #0b1619;
  --surface: #102127;
  --surface-2: #13262d;
  --surface-3: #183038;
  --border: #1e3239;
  --border-hi: #2a4650;
  --text: #f3f8f8;
  --text-2: #c5d4d6;
  --muted: #93a8ae;
  --green: #3ce3ab;
  --green-2: #2bb88a;
  --green-dim: rgba(60, 227, 171, 0.12);
  --green-glow: transparent;
  --brand: #69aac1;
  --red: #ff6b8a;
  --red-dim: rgba(255, 107, 138, 0.12);
  --cyan: #69aac1;
  --cyan-dim: rgba(105, 170, 193, 0.12);
  --magenta: #c9b6ff;
  --magenta-dim: rgba(201, 182, 255, 0.1);
  --amber: #e6c36a;
  --amber-dim: rgba(230, 195, 106, 0.12);
  --purple: #c9b6ff;
  --purple-dim: rgba(201, 182, 255, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: none;
  --nav-h: 60px;
}

html, body {
  background: #071013;
  color: var(--text);
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
}
body { background: #071013; }
body::before, body::after, body > .grain { display: none !important; }

.logo-text,
.hero-content h1,
.section-header h2,
.stat-card-value,
.modal-content h2 {
  font-family: Sora, Inter, sans-serif;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -2.6px;
  line-height: 1.05;
  text-shadow: none;
}
.hero-content h1 .mark,
.gradient {
  color: var(--brand);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  filter: none;
}

.stat-label,
.metric-label,
.eyebrow,
.hero-eyebrow,
.receipt-kicker,
.tape-demo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.logo-text {
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: none;
}
.logo-mark,
.logo .logo-mark,
.footer .logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: none;
  transform: none;
  animation: none;
  overflow: visible;
}
.logo-mark svg { width: 22px; height: 22px; display: block; }

.nav {
  height: 60px;
  background: #071013;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: none;
}
.nav-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 10px;
}
.nav-link.active,
.nav .nav-link.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
}
.nav .nav-link.active::after { display: none; }

.btn {
  height: 36px;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.btn-lg { height: 44px; border-radius: 10px; }
.btn-primary {
  background: var(--brand);
  color: #071013;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  filter: none;
}
.btn-primary:hover { background: #7dbcd1; filter: none; box-shadow: none; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
}
.btn-wallet {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.btn-wallet:hover { background: var(--surface-2); color: var(--text); }
.btn-wallet.connected { background: var(--green-dim); color: var(--green); border-color: transparent; }

/* dark tape */
.tape {
  position: relative;
  height: 28px;
  overflow: hidden;
  background: #0b1619;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.tape-demo {
  position: absolute;
  left: 10px;
  top: 0;
  z-index: 2;
  height: 28px;
  display: flex;
  align-items: center;
  padding-right: 12px;
  background: linear-gradient(90deg, #0b1619 70%, transparent);
  color: var(--brand);
  letter-spacing: 0.3px;
}
.tape-track {
  display: flex;
  gap: 28px;
  align-items: center;
  height: 28px;
  width: max-content;
  animation: tape 32s linear infinite;
  padding: 0 90px;
}
.tape-track span { white-space: nowrap; }
.tape-track .buy { color: var(--green); }
.tape-track .sell { color: var(--red); }
@keyframes tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero { padding-top: 48px; }
.eyebrow, .hero-eyebrow {
  color: var(--muted);
  text-shadow: none;
  margin-bottom: 14px;
}
.hero-sub { color: var(--text-2); }

header.hero .hero-card,
.hero-card,
.stat-card,
.chart-panel,
.token-card,
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: none !important;
}
header.hero .hero-card::after { display: none; }

.hero-live {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
  width: auto;
}

.stats-grid > .stat-card::before { display: none; }
.stat-card-value { text-shadow: none; font-weight: 750; letter-spacing: -1px; }

.token-icon {
  border-radius: 10px !important;
  box-shadow: none;
}

/* StonkFun card: huge mcap, ghost pair, footer vol/% */
.token-card {
  position: relative;
  overflow: hidden;
  animation: none !important;
  transform: none !important;
  padding: 16px 16px 14px;
  text-align: left;
}
.token-card .card-tags .tag:first-child {
  position: absolute;
  right: 10px;
  bottom: 36px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.5px;
  opacity: 0.08;
  border: 0;
  background: none;
  padding: 0;
  height: auto;
  pointer-events: none;
  text-transform: uppercase;
}
.token-card .card-metrics > div:first-child .metric-label { display: none; }
.token-card .card-metrics > div:first-child .metric-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1;
}
.token-card .card-price-row { margin-top: 8px; }
.token-card:hover,
.token-grid > .token-card:hover {
  transform: none !important;
  border-color: var(--border-hi) !important;
  box-shadow: none !important;
}
.token-card::before {
  content: "copy CA";
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity .15s;
}
.token-card:hover::before { opacity: 1; }

.type-badge, .badge, .tag {
  transform: none !important;
  box-shadow: none;
  border-radius: 999px;
  font-weight: 650;
}

/* chips + segmented sort */
.filters { gap: 8px; }
.filter, .tab, .type-btn {
  border-radius: 999px;
  height: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.filter em {
  margin-left: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}
.filter.active em { color: #071013; }
.filter.active,
.tab.active,
.sort-btn.active,
.type-btn.active {
  color: #071013;
  background: var(--brand);
  border-color: transparent;
  box-shadow: none;
}

.sort-seg {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: fit-content;
}
.sort-seg > span { display: none; }
.sort-seg .sort-btn {
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: transparent;
}

.search-wrap { position: relative; }
.search-wrap input {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 56px 12px 40px;
}
.search-wrap .kbd,
.kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  font-family: Sora, sans-serif;
}

.up { color: var(--green); text-shadow: none; }
.down { color: var(--red); text-shadow: none; }

/* launch receipt */
.launch-modal {
  width: min(860px, 100%) !important;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0 22px;
  align-items: start;
}
.launch-modal h2,
.launch-modal .modal-close { grid-column: 1 / -1; }
.launch-modal form { min-width: 0; }
.receipt {
  position: sticky;
  top: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 12px;
}
.receipt-kicker {
  color: var(--muted);
  margin-bottom: 12px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.receipt-row b {
  color: var(--text);
  font-weight: 650;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}
.receipt-lock {
  margin: 12px 0 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.modal-content { border-radius: 16px; }
.toast { border: 1px solid var(--border); box-shadow: none; border-radius: 10px; }
.footer { background: none; }

::selection { background: var(--brand); color: #071013; }

@media (max-width: 760px) {
  .launch-modal { grid-template-columns: 1fr; }
  .receipt { position: static; margin-top: 8px; }
}


/* prestige lockup */
.logo {
  align-items: baseline;
  gap: 10px;
}
.logo-mark,
.logo .logo-mark,
.footer .logo-mark {
  width: auto;
  height: auto;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 0.85;
  color: #c5dde4;
  background: none;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  transform: none;
  animation: none;
  overflow: visible;
  letter-spacing: -0.04em;
}
.logo-mark svg { display: none; }
.logo-text {
  font-family: Sora, Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f3f8f8;
  text-shadow: none;
  position: relative;
  top: -1px;
}

/* lockup */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-tick {
  width: 3px;
  height: 15px;
  border-radius: 1px;
  background: #3ce3ab;
  flex-shrink: 0;
}
.logo-word {
  font-family: Sora, Inter, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #f3f8f8;
  line-height: 1;
}
.logo-mark { display: none; }

/* ===== premium terminal ===== */
:root {
  --green: #3ce3ab;
  --green-2: #2bb88a;
  --green-dim: rgba(60, 227, 171, 0.14);
  --brand: #3ce3ab;
}

html, body, body {
  background:
    radial-gradient(900px 420px at 50% -20%, rgba(60, 227, 171, 0.04), transparent 50%),
    #071013;
}

.hero {
  padding-top: 36px;
  padding-bottom: 20px;
  gap: 36px;
}
.hero-content h1 {
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -1.8px;
  max-width: 15ch;
}
.hero-sub {
  max-width: 42ch;
  font-size: 14px;
  color: var(--muted);
}

.panel,
.hero-card,
.stat-card,
.chart-panel,
.token-card,
.modal-content,
.tk-hero,
.tk-chart-card,
.tk-panel,
.tk-trade {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 28%), var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.28) !important;
}

.hero-chart-wrap,
.chart-box,
.tk-chart-wrap,
.tk-vol-wrap {
  background: #061014;
  border: 1px solid #1a2e35;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.hero-chart-wrap { padding: 6px 6px 2px; }
.chart-box { padding: 6px; }

.btn-primary {
  background: #3ce3ab;
  color: #071013;
}
.btn-primary:hover { background: #54f0bb; }

.hero-content h1 .mark,
.gradient { color: #3ce3ab; }

.token-card {
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.token-card:hover,
.token-grid > .token-card:hover {
  transform: translateY(-2px) !important;
  border-color: #3a5660 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 14px 32px rgba(0,0,0,0.35) !important;
}

.nav {
  background: rgba(7, 16, 19, 0.86);
  backdrop-filter: blur(18px);
}
.nav-link.active,
.nav .nav-link.active {
  color: #071013;
  background: #3ce3ab;
}

.filter.active,
.tab.active,
.sort-btn.active,
.type-btn.active {
  background: #3ce3ab;
  color: #071013;
}


/* yellow daos tape — real Yahoo moves */
.tape {
  position: relative;
  height: 28px;
  overflow: hidden;
  background: #ffe14a;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-family: Sora, Inter, sans-serif;
}
.tape-demo { display: none; }
.tape-track {
  display: flex;
  gap: 28px;
  align-items: center;
  height: 28px;
  width: max-content;
  animation: tape 32s linear infinite;
  padding: 0 16px;
}
.tape-track span { white-space: nowrap; color: #111; }
.tape-track .up { color: #0d6b3a; }
.tape-track .down { color: #9b1d32; }


/* ===== hero visual: ticket + tape (no chart) ===== */
.hero-js-sink {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.hero-stage {
  position: relative;
  min-height: 420px;
  height: 420px;
  perspective: 1100px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(420px 220px at 70% 30%, rgba(60, 227, 171, 0.08), transparent 60%),
    linear-gradient(180deg, #0c1a1e 0%, #071013 70%);
  border: 1px solid #1a2e35;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 18px 40px rgba(0,0,0,0.35);
}
.stage-ribbon {
  position: absolute;
  left: -8%;
  right: -8%;
  height: 34px;
  background: #ffe14a;
  color: #111;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  z-index: 2;
  display: flex;
  align-items: center;
}
.stage-ribbon-back {
  top: 58px;
  transform: rotate(-8deg);
  z-index: 1;
}
.stage-ribbon-front {
  bottom: 72px;
  transform: rotate(6deg);
  z-index: 4;
  background: #ffd833;
}
.stage-ribbon-run {
  display: inline-block;
  white-space: nowrap;
  font-family: Sora, Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 18px;
  animation: stage-ribbon 22s linear infinite;
}
.stage-ribbon-front .stage-ribbon-run { animation-duration: 28s; animation-direction: reverse; }
@keyframes stage-ribbon {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.stage-ticket {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 168px;
  display: flex;
  align-items: stretch;
  background: #f6f1e4;
  color: #111;
  border-radius: 10px;
  transform: translate(-50%, -54%) rotateY(-16deg) rotateX(8deg) rotateZ(-3deg);
  box-shadow:
    0 22px 40px rgba(0,0,0,0.45),
    0 2px 0 #d8d0be;
  z-index: 3;
  animation: ticket-float 5.6s ease-in-out infinite;
  overflow: hidden;
}
@keyframes ticket-float {
  0%, 100% { transform: translate(-50%, -54%) rotateY(-16deg) rotateX(8deg) rotateZ(-3deg); }
  50% { transform: translate(-50%, -58%) rotateY(-12deg) rotateX(6deg) rotateZ(-2deg); }
}
.ticket-bar {
  width: 10px;
  background: #3ce3ab;
  flex-shrink: 0;
}
.ticket-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px 18px 18px;
}
.ticket-tick {
  width: 8px;
  height: 42px;
  border-radius: 2px;
  background: #3ce3ab;
  flex-shrink: 0;
}
.ticket-kicker {
  font-family: Sora, Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5c584e;
}
.ticket-word {
  font-family: Sora, Inter, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  margin: 6px 0 8px;
}
.ticket-pair {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #3a3832;
}
.ticket-perf {
  width: 14px;
  background:
    radial-gradient(circle at 50% 8px, #071013 5px, transparent 5.5px) 0 0 / 14px 16px;
  flex-shrink: 0;
  opacity: 0.9;
}
.ticket-stub {
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #111;
  color: #f6f1e4;
  flex-shrink: 0;
}
.ticket-stub span {
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: #8a8a82;
}
.ticket-stub b {
  font-family: Sora, Inter, sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #3ce3ab;
}
.stage-pills {
  position: absolute;
  right: 22px;
  top: 22px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.stage-pills span {
  background: #3ce3ab;
  color: #071013;
  font-family: Sora, Inter, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
}
.stage-pills span:nth-child(2) { background: #ffe14a; }
.stage-pills span:nth-child(3) { background: #f6f1e4; }

@media (max-width: 860px) {
  .hero-stage { height: 340px; min-height: 340px; }
  .stage-ticket { width: 300px; height: 150px; }
  .ticket-word { font-size: 18px; }
}


/* ===== hero visual: tape reel, quieter ===== */
.hero-stage {
  perspective: none;
  background: #071013;
}
.tape-reel {
  position: absolute;
  inset: 0;
}
.reel-disc {
  position: absolute;
  width: 340px;
  height: 340px;
  left: 50%;
  top: 50%;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      #ffe14a 0deg 7deg,
      #f3d43a 7deg 14deg
    );
  box-shadow:
    inset 0 0 0 18px #e6c82e,
    0 16px 32px rgba(0,0,0,0.4);
}
.reel-hole {
  position: absolute;
  width: 132px;
  height: 132px;
  left: 50%;
  top: 50%;
  margin: -66px 0 0 -66px;
  border-radius: 50%;
  background: #071013;
  box-shadow: inset 0 0 0 1px #1a2e35;
}
.reel-band {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 50%;
  height: 30px;
  margin-top: -15px;
  background: #ffe14a;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.reel-run {
  white-space: nowrap;
  font-family: Sora, Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
  padding: 0 16px;
  animation: stage-ribbon 26s linear infinite;
}
.stage-lockup {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 3;
  pointer-events: none;
}
.stage-lockup .logo-tick {
  width: 3px;
  height: 15px;
  background: #3ce3ab;
}
.stage-lockup .logo-word {
  color: #f3f8f8;
  font-size: 12.5px;
  letter-spacing: 0.26em;
}
.stage-ribbon,
.stage-ticket,
.stage-pills { display: none; }

@media (max-width: 860px) {
  .reel-disc { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
  .reel-hole { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
}


/* reel: flatter, lockup in the hole */
.reel-disc {
  background: #ffe14a;
  box-shadow:
    inset 0 0 0 22px #efd046,
    0 12px 28px rgba(0,0,0,0.35);
}
.reel-band {
  top: 68%;
  margin-top: 0;
}
.stage-lockup {
  top: 44%;
}


/* ===== hero: two PFPs locked in looking out ===== */
.hero-stage {
  perspective: none;
  background: #05090b;
  overflow: hidden;
}
.tape-reel, .stage-lockup, .stage-ribbon, .stage-ticket, .stage-pills, .washi, .stage-tick-lg {
  display: none !important;
}
.lockin {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.lockin-window {
  width: min(420px, 86%);
  height: 300px;
  border: 1px solid #2a3d44;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 30%),
    #0a1418;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 18px 40px rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.lockin-window::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 10px;
  background: #ffe14a;
  z-index: 2;
}
.lockin-faces {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0 18px 0;
  position: relative;
  z-index: 1;
}
.lockin-face {
  margin: 0;
  flex: 1;
  max-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lockin-face img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px 6px 0 0;
  filter: saturate(0.92) contrast(1.05);
  display: block;
}
.lockin-face figcaption {
  width: 100%;
  background: #ffe14a;
  color: #111;
  font-family: Sora, Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 5px 6px 6px;
}
@media (max-width: 860px) {
  .lockin-window { height: 240px; }
}


/* lockin: heads in the window, not square pfps */
.lockin-window {
  align-items: center;
  justify-content: center;
  background: #081114;
}
.lockin-faces {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  height: 100%;
}
.lockin-face {
  width: 168px;
  height: 168px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: none;
  flex: none;
  max-width: none;
  filter: saturate(0.95) contrast(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
.lockin-face.gareth { transform: translate(14px, 8px); z-index: 1; }
.lockin-face.baoskee { transform: translate(-14px, -4px); z-index: 2; width: 176px; height: 176px; }
.lockin-face figcaption { display: none; }


/* one photo, two people standing side by side */
.lockin-window {
  padding: 0;
  align-items: stretch;
}
.lockin-faces { display: none !important; }
.lockin-duo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.lockin-window {
  width: min(460px, 92%);
  height: 280px;
  padding: 0;
}
.lockin-duo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.token-card.just-spawned {
  outline: 2px solid var(--green);
  box-shadow: 0 0 0 4px var(--green-dim);
}


/* finished lockin: standing duo, full bodies visible */
.hero-stage {
  min-height: 420px;
  height: 420px;
  background: #071013;
}
.lockin {
  inset: 0;
}
.lockin-window {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
  background: #071013;
  box-shadow: none;
  overflow: hidden;
}
.lockin-window::before {
  height: 8px;
  background: #ffe14a;
}
.lockin-duo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: #071013;
}
@media (max-width: 860px) {
  .hero-stage { height: 340px; min-height: 340px; }
  .lockin-window { height: 100%; }
}

