/* ============================================================
   Earth LinC — Events Module CSS
   Dark terminal aesthetic, matching wallet brand
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-variable-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-variable-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: 'Press Start 2P';
  src: url('../assets/fonts/press-start-2p-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ---------- Root variables ---------- */
:root {
  --bg: #050607;
  --bg2: #080c0e;
  --bg3: #0d1214;
  --text: #F5F5F0;
  --text-dim: rgba(192,255,242,0.55);
  --accent: #05FCC4;
  --border: rgba(5,252,196,0.12);
  --border-mid: rgba(5,252,196,0.2);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-pixel: 'Press Start 2P', monospace;

  /* State colors */
  --live: #10B981;
  --active: #10B981;
  --closed: #F0F0EB;
  --archived: #60A5FA;

  /* Spec v1 palette tokens (§9.2) — additive; existing literals keep #1F4633 */
  --cream:  #F5F0E5;
  --forest: #1F4633;       /* canonical (existing literal across codebase) */
  --forest-spec: #2D5A3D;  /* spec §9.2 lighter forest — used for NFT preview / leaf accents */
  --forest-dark: #163325;
  --forest-light: #5A8C68;
  --moss:   #5A8C68;       /* secondary accent · active dot, sprout */
  --bark:   #6B4D2E;       /* warmer than forest · transfer / seed */
  --sun:    #C97A2E;       /* warning + warm highlight */
  --blue:   #2563EB;       /* Sovereign Blue · links, input focus */
  --ink:    #0A0A0A;
  --ink-2:  #4A4A4A;

  --radius: 6px;
  --transition: 200ms ease;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  /* Prevent overscroll gap above fixed header on macOS / iOS */
  overscroll-behavior-y: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Hide scrollbar WebKit */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* ---------- View system ---------- */
.view {
  display: none;
  opacity: 0;
  transition: opacity 300ms ease;
}
.view.visible {
  display: block;
  opacity: 1;
}

/* ---------- Header (wallet-aligned 3-col grid) ---------- */
.events-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  padding: 0 32px;
  background: rgba(10,15,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.events-header-left { display: flex; align-items: center; gap: 8px; }
.events-header-right { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.header-signin-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #1F4633;
  text-decoration: none;
  border: 1.5px solid rgba(31, 70, 51, 0.35);
  border-radius: 6px;
  padding: 6px 12px;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.header-signin-link:hover {
  background: rgba(31, 70, 51, 0.08);
  border-color: #1F4633;
}
html.theme-light .header-signin-link {
  color: #1F4633;
  border-color: rgba(31, 70, 51, 0.3);
}
html.theme-light .header-signin-link:hover {
  background: rgba(31, 70, 51, 0.07);
  border-color: #1F4633;
}

.events-header-home-btn {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: rgba(5,252,196,0.5);
  background: rgba(5,252,196,0.04);
  border: 1px solid rgba(5,252,196,0.2);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.events-header-home-btn:hover {
  color: rgba(5,252,196,0.95);
  border-color: rgba(5,252,196,0.55);
  background: rgba(5,252,196,0.08);
  box-shadow: 0 0 10px -2px rgba(5,252,196,0.22);
  text-decoration: none;
}

.events-header-h1 {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(5,252,196,0.28);
  white-space: nowrap; user-select: none;
}
.events-header-h1-text {
  color: inherit;
  max-width: 50vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hosted-by badge (top-right; replaces old footer host-line) */
.events-host-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(5,252,196,0.22);
  background: rgba(5,252,196,0.04);
}
.events-host-badge-label {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: rgba(5,252,196,0.55);
  letter-spacing: 0.16em;
}
.events-host-badge-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* Reserve space under fixed header */
body { padding-top: 56px; }

/* ---------- State badge ---------- */
.state-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: var(--radius);
  border: 1px solid;
}

.badge-live {
  color: var(--live);
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.08);
}
.badge-active {
  color: var(--active);
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.08);
}
.badge-closed {
  color: var(--closed);
  border-color: rgba(240,240,235,0.35);
  background: rgba(240,240,235,0.06);
}
.badge-archived {
  color: var(--archived);
  border-color: rgba(96,165,250,0.4);
  background: rgba(96,165,250,0.08);
}

@keyframes counterBlink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.2; }
}
.counter-blink {
  animation: counterBlink 1.4s ease-in-out infinite;
}

/* ===== Background chrome (ported from wallet) ===== */
#bg-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
#global-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(5,252,196,0.055) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 50%, rgba(5,252,196,0.022) 0%, transparent 65%);
}
#hacker-grid {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  overflow: hidden;
}

/* All views/header above background */
.events-header { z-index: 200; }
.view { position: relative; z-index: 10; }

/* ===== Event page — two-panel dashboard ===== */
#event-page-view {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.event-block {
  display: flex; gap: 18px; align-items: stretch;
  margin-bottom: 40px;
  position: relative;
}

.event-panel {
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,0,0,0.07) 3px, rgba(0,0,0,0.07) 4px),
    linear-gradient(160deg, rgba(2,10,7,0.82) 0%, rgba(3,14,9,0.78) 100%);
  border: 1px solid rgba(5,252,196,0.22);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(5,252,196,0.05),
    0 0 48px -14px rgba(5,252,196,0.22),
    inset 0 0 90px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(5,252,196,0.20);
}
.event-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-state, var(--live)), transparent);
  z-index: 3; pointer-events: none;
}

/* SoftAurora canvas */
.panel-rays-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.40;
  mix-blend-mode: screen;
}
.panel-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
}

.event-panel-left {
  flex: 1 1 auto; min-width: 0;
  padding: 32px 36px 30px;
}
.event-panel-left .panel-content {
  justify-content: center; gap: 14px;
}
.event-panel-right {
  flex: 0 0 380px; width: 380px;
  padding: 32px 32px 28px;
}
.event-panel-right .panel-content {
  justify-content: center; align-items: stretch; gap: 14px;
}

/* Live dot in top-right corner of right panel */
.event-panel-right .panel-live-dot {
  position: absolute; top: 14px; right: 18px;
  font-family: 'Press Start 2P', monospace; font-size: 7px; letter-spacing: .14em;
  padding: 5px 9px;
  border: 1px solid currentColor;
  background: rgba(0,0,0,0.4);
  z-index: 4;
  animation: liveDot 5s ease-in-out infinite;
}
/* Push panel content below the badge so it never overlaps */
.event-panel-right .panel-content {
  padding-top: 42px;
}
@keyframes liveDot {
  0%, 80%, 100% { opacity: .8; }
  88% { opacity: .25; }
  93% { opacity: .8; }
  96% { opacity: .3; }
}

/* Left panel content */
.event-identity {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: rgba(192,255,242,0.5); letter-spacing: .22em;
  text-transform: uppercase;
}
.event-slug-row {
  display: flex; align-items: baseline; gap: 12px;
}
.event-slug-text {
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  color: var(--accent); letter-spacing: .12em;
  text-shadow: 0 0 14px rgba(5,252,196,0.4);
}
.event-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--text); line-height: 1.5;
  letter-spacing: .02em;
  margin: 6px 0 0;
  text-shadow: 0 0 24px rgba(5,252,196,0.25);
}
.event-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(192,255,242,0.65);
  line-height: 1.7;
  max-width: 480px;
  font-style: italic;
}
.event-meta-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(5,252,196,0.14);
}
.event-meta-cell { display: flex; flex-direction: column; gap: 3px; }
.meta-label {
  font-family: 'Press Start 2P', monospace; font-size: 5.5px;
  letter-spacing: .2em;
  color: rgba(5,252,196,0.55);
}
.meta-value {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(192,255,242,0.85);
  letter-spacing: .04em;
}

/* Right panel — counter centerpiece */
.counter-eyebrow {
  font-family: 'Press Start 2P', monospace; font-size: 6.5px;
  letter-spacing: .22em;
  color: rgba(5,252,196,0.55);
  text-align: center;
  margin-bottom: -6px;
}
.event-counter {
  display: flex; justify-content: center; align-items: baseline;
  gap: 8px;
}
.counter-num {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(64px, 9vw, 110px);
  line-height: 1;
  color: var(--live);
  letter-spacing: -0.02em;
  text-shadow:
    0 0 8px rgba(16,185,129,0.7),
    0 0 32px rgba(16,185,129,0.4),
    0 0 64px rgba(16,185,129,0.18);
  transition: color 400ms ease, text-shadow 400ms ease;
}
.counter-divider {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--accent);
  opacity: 0.7;
  align-self: flex-end;
  padding-bottom: 6px;
}
.counter-fraction {
  display: flex; justify-content: center; align-items: baseline;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: rgba(192,255,242,0.55);
}
.counter-slash { opacity: 0.4; }
.counter-total { color: rgba(192,255,242,0.85); font-weight: 700; }
.counter-unit { font-size: 10px; opacity: 0.55; }
.counter-remaining {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(192,255,242,0.45);
  text-align: center;
  font-style: italic;
}

/* Panel-anchored CTA (host action: drop more) */
.event-panel-right .event-cta {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px 18px;
  text-align: center;
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  letter-spacing: .12em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  box-shadow: 0 0 22px rgba(5,252,196,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  cursor: pointer;
  transition: box-shadow 200ms, transform 100ms;
}
.event-panel-right .event-cta:hover {
  box-shadow: 0 0 38px rgba(5,252,196,0.85), inset 0 1px 0 rgba(255,255,255,0.4);
  transform: translateY(-1px);
  text-decoration: none;
}

.event-panel-right .state-message {
  text-align: center; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: rgba(192,255,242,0.55);
  font-style: italic; margin-top: 8px;
}
.event-panel-right .all-claimed-msg {
  text-align: center; font-family: 'Press Start 2P', monospace;
  font-size: 8px; color: var(--accent); letter-spacing: .12em;
  padding: 12px; border: 1px dashed rgba(5,252,196,0.4);
}

/* Per-state color overrides for right-panel counter */
#event-page-view.state-live .counter-num,
#event-page-view.state-active .counter-num {
  color: var(--active);
  text-shadow: 0 0 8px rgba(16,185,129,0.7), 0 0 32px rgba(16,185,129,0.4), 0 0 64px rgba(16,185,129,0.18);
}
#event-page-view.state-closed .counter-num {
  color: var(--closed);
  text-shadow: 0 0 8px rgba(240,240,235,0.6), 0 0 32px rgba(240,240,235,0.3), 0 0 64px rgba(240,240,235,0.12);
}
#event-page-view.state-archived .counter-num {
  color: var(--archived);
  text-shadow: 0 0 8px rgba(96,165,250,0.7), 0 0 32px rgba(96,165,250,0.4), 0 0 64px rgba(96,165,250,0.18);
}

/* ===== Navi pixel canvas (left panel) ===== */
.event-navi-canvas {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 96px;
  height: 96px;
  z-index: 3;
  pointer-events: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 16px rgba(5,252,196,0.35));
}

/* ===== Tree pool card — wallet single-action + React Bits TiltedCard 3D ===== */
.event-pool-card-wrap {
  perspective: 900px;
  margin: 32px auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 32px;
  gap: 20px;
}

.pool-card-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  letter-spacing: .22em;
  color: var(--accent);
  text-align: center;
  opacity: .85;
  text-shadow: 0 0 12px rgba(5,252,196,0.55);
  animation: poolEyebrowIn 1.2s ease-out .2s both;
}
@keyframes poolEyebrowIn {
  from { opacity: 0; letter-spacing: .5em; }
  to   { opacity: .85; letter-spacing: .22em; }
}

/* Breathe glow only — does NOT touch transform (so JS tilt owns transform fully) */
@keyframes poolCardBreathe {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50%      { box-shadow: 0 0 28px -4px rgba(5,252,196,0.55); }
}

.event-pool-card {
  display: block;
  width: 460px; max-width: 92vw;
  background: rgba(5,252,196,0.015);
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  /* Inner stacking context for 3D children */
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  /* Entry: opacity-only transition (NO transform) so JS tilt is never overridden */
  opacity: 0;
  transition: opacity 0.6s 0.4s ease;
  animation: poolCardBreathe 5s ease-in-out 1.6s infinite;
}
.event-pool-card.tilt-entry { opacity: 1; }
.event-pool-card:hover { text-decoration: none; }

/* Ceremonial crop marks — subtle corner ticks */
.event-pool-card::before {
  content: ''; position: absolute; inset: -1px;
  pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--accent),var(--accent)) top left/10px 1px no-repeat,
    linear-gradient(var(--accent),var(--accent)) top left/1px 10px no-repeat,
    linear-gradient(var(--accent),var(--accent)) top right/10px 1px no-repeat,
    linear-gradient(var(--accent),var(--accent)) top right/1px 10px no-repeat,
    linear-gradient(var(--accent),var(--accent)) bottom left/10px 1px no-repeat,
    linear-gradient(var(--accent),var(--accent)) bottom left/1px 10px no-repeat,
    linear-gradient(var(--accent),var(--accent)) bottom right/10px 1px no-repeat,
    linear-gradient(var(--accent),var(--accent)) bottom right/1px 10px no-repeat;
  opacity: .6;
}

/* Image — dominant, full-aspect on top, sits flat */
.pool-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: brightness(0.95) saturate(0.95);
  transition: filter .3s;
  transform: translateZ(0);
  will-change: transform;
}
.event-pool-card:hover .pool-card-thumb { filter: brightness(1) saturate(1); }

/* Info area below image — popped forward for 3D parallax depth */
.pool-card-info {
  padding: 18px 20px 22px;
  position: relative; z-index: 1;
  transform: translateZ(40px);
}
.pool-card-cta-label { transform: translateZ(10px); display: inline-block; }
.pool-card-cat-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.pool-card-cat {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  letter-spacing: .12em;
  color: var(--accent);
}
.pool-card-state {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  letter-spacing: .12em;
  color: var(--live);
  opacity: .9;
}
.pool-card-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 15px;
  color: var(--text);
  line-height: 1.35;
  margin-top: 2px;
  margin-bottom: 8px;
}
.pool-card-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(192,255,242,0.85);
  letter-spacing: .02em;
  margin-top: 8px;
}
.pool-card-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--accent);
}
.pool-card-slash { color: rgba(192,255,242,0.45); }
.pool-card-total {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(192,255,242,0.75);
  font-weight: 700;
}
.pool-card-label-inline {
  color: rgba(192,255,242,0.55);
  font-style: italic;
}
.pool-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(192,255,242,0.45);
  font-style: italic;
  margin-top: 6px;
}
.pool-card-cta-row {
  display: flex; justify-content: flex-start; align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(5,252,196,0.12);
}
.pool-card-cta-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(5,252,196,0.5);
  transition: text-shadow .25s ease, transform .25s ease;
}
.event-pool-card:hover .pool-card-cta-label {
  text-shadow: 0 0 22px rgba(5,252,196,0.85);
  transform: translateX(4px);
}

.pool-card-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(192,255,242,0.5);
  font-style: italic;
  text-align: center;
  max-width: 460px;
  line-height: 1.7;
  letter-spacing: .02em;
  margin-top: 8px;
}

/* State-color overrides for pool card */
#event-page-view.state-active .event-pool-card { border-left-color: var(--active); }
#event-page-view.state-active .pool-card-eyebrow,
#event-page-view.state-active .pool-card-state,
#event-page-view.state-active .pool-card-cat,
#event-page-view.state-active .pool-card-cta-label,
#event-page-view.state-active .pool-card-num { color: var(--active); }

#event-page-view.state-closed .event-pool-card { border-left-color: var(--closed); }
#event-page-view.state-closed .pool-card-eyebrow,
#event-page-view.state-closed .pool-card-state,
#event-page-view.state-closed .pool-card-cat,
#event-page-view.state-closed .pool-card-cta-label,
#event-page-view.state-closed .pool-card-num { color: var(--closed); }

#event-page-view.state-archived .event-pool-card { border-left-color: var(--archived); }
#event-page-view.state-archived .pool-card-eyebrow,
#event-page-view.state-archived .pool-card-state,
#event-page-view.state-archived .pool-card-cat,
#event-page-view.state-archived .pool-card-cta-label,
#event-page-view.state-archived .pool-card-num { color: var(--archived); }

.all-claimed-msg {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- State message ---------- */
.state-message {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
  max-width: 520px;
  line-height: 1.7;
  margin: 12px 0 24px;
  padding: 14px 18px;
  border-left: 2px solid var(--border-mid);
}

/* ---------- Stats row ---------- */
.event-stats-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}
.event-stat-cell {
  flex: 1;
  padding: 18px 20px;
  text-align: center;
}
.event-stat-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}
.event-stat-label {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.event-stat-value {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.event-stat-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ---------- Event explainer (3-col grid) ---------- */
.event-explainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin: 32px 0 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-mid);
}

.explainer-col {}

.explainer-col-heading {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

.explainer-col p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  opacity: 0.85;
}

/* ---------- Event footer ---------- */
.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  flex-wrap: wrap;
  gap: 8px;
}

.event-footer {
  justify-content: center;
}

.permanent-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  opacity: 0.5;
}

/* ---------- Claim overlay ---------- */
#claim-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,6,7,0.88);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
#claim-overlay.visible {
  display: flex;
}

#claim-view {
  background: var(--bg2);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  margin: 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(5,252,196,0.06), 0 24px 48px rgba(0,0,0,0.6);
}

.claim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.claim-header-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.claim-event-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

#claim-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
#claim-close-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ---------- Claim panels (wallet-ritual style: typewriter heading + stagger fade-up) ---------- */
.claim-panel {
  display: none;
  padding: 32px 24px;
}
.claim-panel.active {
  display: block;
}

.claim-panel-heading {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 14px;
  min-height: 22px;
  letter-spacing: 0.02em;
}
.claim-panel-heading::after {
  content: '_';
  color: var(--accent);
  margin-left: 4px;
  animation: claimTypeCursor 0.9s steps(2) infinite;
}
.claim-panel-heading.done::after { animation: none; opacity: 0; }
@keyframes claimTypeCursor { 50% { opacity: 0; } }

/* Stagger fade-up for body content after heading types out */
.claim-stagger {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.22,1,.36,1);
}
.claim-stagger.in {
  opacity: 1;
  transform: translateY(0);
}

.claim-panel-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* Email input */
.claim-email-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.claim-email-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

#claim-email-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color var(--transition);
}
#claim-email-input:focus {
  border-color: var(--accent);
  background: rgba(5,252,196,0.04);
}
#claim-email-input::placeholder { color: var(--text-dim); opacity: 0.5; }

.claim-btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.claim-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.claim-btn-primary:active { transform: translateY(0); }

.claim-btn-secondary {
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin-top: 10px;
  transition: border-color var(--transition), color var(--transition);
}
.claim-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Sent panel */
.claim-sent-address {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding: 10px 14px;
  background: rgba(5,252,196,0.06);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: inline-block;
}

.claim-simulate-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  opacity: 0.6;
  margin-top: 16px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* Navi canvas */
.claim-navi-canvas {
  display: block;
  margin: 0 auto 24px;
  image-rendering: pixelated;
}

/* Confirm panels */
.claim-success-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.claim-explore-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-align: center;
  cursor: pointer;
  margin-top: 20px;
  transition: background var(--transition);
}
.claim-explore-btn:hover { background: rgba(5,252,196,0.08); text-decoration: none; }

/* LC card */
.lc-card {
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.03);
  margin: 16px 0;
  font-family: var(--font-mono);
}

.lc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lc-id {
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lc-birth-badge {
  font-size: 10px;
  color: var(--live);
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius);
  background: rgba(16,185,129,0.06);
}

.lc-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.lc-label {
  color: var(--text-dim);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 60px;
}

.lc-value {
  color: var(--text);
  font-style: italic;
  line-height: 1.4;
}

/* Already panel */
.claim-already-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Manage overlay ---------- */
.manage-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,6,7,0.90);
  backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  overflow-y: auto;
}
.manage-overlay.visible {
  display: flex;
}

.manage-panel {
  background: var(--bg2);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  width: 100%;
  max-width: 760px;
  padding: 32px;
  box-shadow: 0 0 80px rgba(5,252,196,0.06), 0 32px 64px rgba(0,0,0,0.7);
}

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

.manage-panel-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.12em;
}

#manage-close-overlay {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
#manage-close-overlay:hover { color: var(--text); }

.manage-section {
  margin-bottom: 28px;
}

.manage-section-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.manage-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}



#manage-stats {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  letter-spacing: 0.04em;
}

#manage-emails {
  width: 100%;
  height: 100px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  resize: vertical;
  transition: border-color var(--transition);
}
#manage-emails:focus { border-color: var(--accent); background: rgba(5,252,196,0.03); }
#manage-emails::placeholder { color: var(--text-dim); opacity: 0.4; }

.manage-btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background var(--transition), opacity var(--transition);
}

#manage-send-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: var(--font-pixel);
  font-size: 8px;
  margin-top: 8px;
}
#manage-send-btn:hover { opacity: 0.85; }
#manage-send-btn:disabled { opacity: 0.5; cursor: default; }

.manage-send-errors {
  margin-top: 8px;
  font-size: 10px;
  color: #ef4444;
  line-height: 1.6;
}
.manage-send-err-line {
  display: block;
  font-family: var(--font-mono, monospace);
}

.manage-status-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#manage-active-btn {
  background: transparent;
  border: 1px solid rgba(16,185,129,0.4);
  color: var(--active);
  font-family: var(--font-pixel);
  font-size: 7px;
  flex: 1;
}
#manage-active-btn:hover { background: rgba(16,185,129,0.08); }

#manage-close-btn {
  background: transparent;
  border: 1px solid rgba(240,240,235,0.25);
  color: var(--closed);
  font-family: var(--font-pixel);
  font-size: 7px;
  flex: 1;
}
#manage-close-btn:hover { background: rgba(240,240,235,0.06); }

#manage-archive-btn {
  background: transparent;
  border: 1px solid rgba(96,165,250,0.4);
  color: var(--archived);
  font-family: var(--font-pixel);
  font-size: 7px;
  flex: 1;
}
#manage-archive-btn:hover { background: rgba(96,165,250,0.08); }

/* ---------- Buy view ---------- */
#buy-view {
  min-height: calc(100vh - 73px);
  display: none;
}
#buy-view.visible {
  display: block;
}

/* ===== BUY HERO — Three-Act Pixel Narrative (rewritten 2026-05-14) ===== */
.buy-hero {
  padding: 96px 24px 56px;
  max-width: 820px;
  margin: 0 auto;
}

.buy-hero-label { display: none; } /* removed — absorbed into buy-hero-title */

/* Part 1 (0527) — eyebrow above headline */
.buy-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.15vw, 16px);
  font-style: italic;
  font-weight: 500;
  color: rgba(31, 70, 51, 0.80);
  margin: 0 0 14px;
}

.buy-hero-title {
  font-family: var(--font-pixel);
  font-weight: 400;
  margin-bottom: 18px;
  text-transform: uppercase;
}

/* Main headline — standing alone, commands the page */
.buy-hero-title-main {
  display: block;
  font-size: clamp(32px, 4.2vw, 54px);
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.2;
  word-spacing: 0.06em;
  /* Shuffle character spans inherit this inline, gap-free */
  white-space: nowrap;
}

/* ── Three-act narrative — card + text, native Earth LinC voice ── */
.buy-act {
  margin-block: 96px;
  /* Reveal-on-scroll fade-in (toggled by IntersectionObserver in buy.js) */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease-out, transform 0.85s cubic-bezier(0.22, 0.65, 0.30, 1);
  /* Module unity: hairline at top groups eyebrow + text + card into one section
     without putting a frame around the whole thing (the card has its own frame). */
  padding-top: 32px;
  border-top: 1px solid rgba(31, 70, 51, 0.10);
}
.buy-act.is-visible {
  opacity: 1;
  transform: none;
}
.buy-act:first-of-type { margin-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  .buy-act { opacity: 1; transform: none; transition: none; }
}

/* ── Single-section lede + connection diagram (2026-05-14 redesign) ── */
.buy-act-lede {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.55vw, 18px);
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-dim);
  margin: 0 auto 44px;
  max-width: 62ch;
  text-align: center;
}
.buy-act-lede .buy-act-key {
  font-weight: 700;
  color: var(--text);
  display: inline;
  margin-top: 0;
}

/* ── Editorial intro · eyebrow + display lead + prose rail + numbered list (2026-05-14n2) ──
   Replaces .buy-points. Designed for substance and rhythm.
   Visual hierarchy: kicker → display → body → divider → numbered. */
.buy-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 8px;
}

/* 1 · Eyebrow kicker — terminal-style tag identifying this region */
.buy-intro-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(31,70,51,0.62);
  text-transform: uppercase;
  margin-bottom: 36px;
}

/* 2 · Prose block with left accent rail — editorial sidebar feel */
.buy-intro-prose {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid rgba(31,70,51,0.32);
  margin: 0 0 56px 0;
}
.buy-intro-prose p {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  color: #4A4A4A;
  margin: 0 0 18px 0;
  max-width: 56ch;
}
.buy-intro-prose p:last-child { margin-bottom: 0; }

/* Opening lead sentence — heavier sans, forest color, slightly larger; not a heading */
.buy-intro-prose .buy-intro-lead {
  font-size: 18.5px;
  font-weight: 600;
  color: #1F4633;
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Key phrase highlight — forest-tint underline band, like an editor's mark */
.buy-intro-prose .buy-intro-mark {
  font-weight: 700;
  color: #0A0A0A;
  background-image: linear-gradient(
    to top,
    rgba(31,70,51,0.16) 0%,
    rgba(31,70,51,0.16) 24%,
    transparent 24%
  );
  padding: 0 2px;
}

/* 4 · Hairline divider between prose and numbered list */
.buy-intro-divider {
  width: 100%;
  height: 1px;
  background: rgba(31,70,51,0.14);
  margin: 0 0 40px 0;
}

/* 5 · Numbered list — vertical rhythm, presentation-feel */
.buy-numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.buy-numbered-item {
  display: grid;
  grid-template-columns: 80px 1fr 52px;
  gap: 32px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(31,70,51,0.08);
}
.buy-numbered-item:first-child { padding-top: 6px; }
.buy-numbered-item:last-child { border-bottom: none; padding-bottom: 6px; }

.buy-numbered-icon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0.72;
}

.buy-numbered-num {
  font-family: var(--font-pixel);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #1F4633;
  line-height: 1;
  align-self: center;
}
.buy-numbered-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.buy-numbered-label {
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #1F4633;
  line-height: 1.3;
}
.buy-numbered-body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.65;
  color: #4A4A4A;
  max-width: 52ch;
}

/* Mobile */
@media (max-width: 720px) {
  .buy-intro { padding: 0 4px; }
  .buy-intro-eyebrow { margin-bottom: 24px; font-size: 9.5px; }
  .buy-intro-prose { padding-left: 18px; margin-bottom: 36px; }
  .buy-intro-prose p { font-size: 15px; }
  .buy-intro-prose .buy-intro-lead { font-size: 17px; }
  .buy-intro-divider { margin-bottom: 28px; }
  .buy-numbered-item { grid-template-columns: 52px 1fr; gap: 18px; padding: 18px 0; }
  .buy-numbered-icon { display: none; }
  .buy-numbered-num { font-size: 22px; }
  .buy-numbered-body { font-size: 14px; }
}

/* (Orphaned, kept temporarily for safety — superseded by .buy-points)
   Connection card — forest green specimen, illustrative diagram (NOT data) */
.buy-conn-card {
  position: relative;
  background: #1F4633;
  color: #F0EAD8;
  border-radius: 14px;
  padding: 44px 48px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10), 0 0 0 1px rgba(31,70,51,0.20);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 0.65, 0.30, 1), box-shadow 0.35s ease;
}
.buy-conn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(31,70,51,0.18), 0 0 0 1px rgba(31,70,51,0.28);
}
.bcc-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.bcc-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 90px;
}
.bcc-col-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #F0EAD8;
  text-transform: uppercase;
  margin-top: 6px;
}
.bcc-col-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(240,234,216,0.55);
  text-transform: lowercase;
  font-style: italic;
}

/* Figure: host = single big dot; place = circle with leaf-vein motif */
.bcc-figure {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.bcc-figure--host {
  background: #F0EAD8;
  box-shadow: 0 0 0 4px rgba(240,234,216,0.18);
}
.bcc-figure--place {
  background: radial-gradient(circle at 30% 30%, #5A8C68 0%, #2D5A43 60%, #163325 100%);
  box-shadow: 0 0 0 4px rgba(90,140,104,0.18), inset 0 0 0 1px rgba(240,234,216,0.12);
}

/* Guests row — 5 figures, each a dot + tree below */
.bcc-guest-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}
.bcc-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bcc-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F0EAD8;
  opacity: 0.82;
}
/* Pixel tree — pure CSS, trunk + canopy */
.bcc-tree {
  position: relative;
  width: 16px;
  height: 22px;
}
.bcc-tree::before {
  /* canopy */
  content: '';
  position: absolute;
  top: 0;
  left: 2px;
  width: 12px;
  height: 14px;
  background: #5A8C68;
  border-radius: 6px 6px 4px 4px;
  box-shadow: inset 1px 1px 0 rgba(240,234,216,0.18), inset -1px -1px 0 rgba(0,0,0,0.15);
}
.bcc-tree::after {
  /* trunk */
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  width: 4px;
  height: 8px;
  background: #6B4D2E;
}

/* Connectors between columns */
.bcc-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 70px;
  opacity: 0.8;
}
.bcc-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(240,234,216,0.4), transparent);
}
.bcc-link-word {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(240,234,216,0.65);
  text-transform: uppercase;
  background: #1F4633;
  padding: 2px 8px;
  position: relative;
  z-index: 1;
}

/* Mobile: stack columns vertically */
@media (max-width: 720px) {
  .buy-conn-card { padding: 28px 20px; }
  .bcc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
  }
  .bcc-link { transform: rotate(90deg); min-width: 0; min-height: 44px; }
  .bcc-link::before { background: linear-gradient(to right, transparent, rgba(240,234,216,0.4), transparent); }
  .bcc-guest-row { gap: 10px; }
}

/* ── Express Way grid · 6 root states ── */
.ew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .ew-grid { grid-template-columns: repeat(2, 1fr); }
}
.ew-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 12px;
  background: rgba(31,70,51,0.04);
  border: 1px solid rgba(31,70,51,0.18);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-align: left;
}
.ew-card:hover {
  border-color: rgba(31,70,51,0.42);
  background: rgba(31,70,51,0.07);
}
.ew-card.is-selected {
  border-color: #1F4633;
  background: rgba(31,70,51,0.10);
  box-shadow: 0 0 0 1px #1F4633 inset;
}
.ew-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ew-card-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: rgba(31,70,51,0.55);
  text-transform: uppercase;
}
.ew-card-label {
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #1F4633;
  margin-top: 2px;
}
.ew-card-root {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: rgba(31,70,51,0.62);
  font-style: italic;
}
/* Compact variant for the new-event modal */
.ew-grid--compact .ew-card { padding: 10px 12px 10px; }
.ew-grid--compact .ew-card-label { font-size: 10px; }
.ew-grid--compact .ew-card-root { font-size: 9.5px; }

/* ── Text side ── */
.buy-act-text { padding-top: 4px; }
.buy-act-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.30em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.88;
  position: relative;
  padding-left: 16px;
}
.buy-act-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}
/* Headline in pixel font — brand-native voice; smaller scale than hero title to keep hierarchy */
.buy-act-headline {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.015em;
  color: var(--text);
  margin: 0 0 22px 0;
  text-transform: uppercase;
  max-width: 22ch;
  word-spacing: 0.05em;
}
.buy-act-body {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-dim);
  margin: 0;
  max-width: 56ch;
}
.buy-act-body strong {
  color: var(--text);
  font-weight: 600;
}
/* Key punchy lines — bolder, same size, not bigger than headline */
.buy-act-body .buy-act-key {
  font-weight: 700;
  color: var(--text);
  display: inline-block;
  margin-top: 5px;
}

/* ── Card side — unified forest specimen, reusing dashboard's visual language ── */
.buy-act-card {
  background: #1F4633;
  color: #F0EAD8;
  border-radius: 14px;
  padding: 22px 24px 24px;
  min-height: 304px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10), 0 0 0 1px rgba(31,70,51,0.20);
  transition: transform 0.35s cubic-bezier(0.22, 0.65, 0.30, 1), box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.buy-act-card::before {
  /* Subtle leaf-vein flourish, mirrors spec §9.5 / dashboard cards */
  content: '';
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 30% 30%, rgba(127,255,212,0.10), transparent 60%);
  pointer-events: none;
}
.buy-act-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31,70,51,0.18), 0 0 0 1px rgba(31,70,51,0.28);
}

/* Card variants for distinguishing the three artifacts subtly */
.buy-act-card--lc {
  background: linear-gradient(180deg, #1F4633 0%, #1A3E2C 100%);
}
.buy-act-card--wallet {
  background: linear-gradient(180deg, #1F4633 0%, #163325 100%);
}

.bac-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 12px;
}
.bac-id {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(240,234,216,0.92);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bac-badge {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 0.14em;
  padding: 5px 9px 4px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.bac-badge--active {
  background: rgba(16,185,129,0.18);
  color: #7FFFD4;
  border-color: rgba(16,185,129,0.45);
  box-shadow: 0 0 8px rgba(16,185,129,0.25);
}
.bac-badge--birth {
  background: rgba(255,230,128,0.18);
  color: #FFE680;
  border-color: rgba(255,230,128,0.45);
  box-shadow: 0 0 8px rgba(255,230,128,0.20);
}
.bac-badge--level {
  background: rgba(127,255,212,0.10);
  color: #C0FFF2;
  border-color: rgba(127,255,212,0.30);
}

.bac-stat { margin-bottom: 14px; }
.bac-stat-num {
  font-family: var(--font-pixel);
  font-size: 40px;
  line-height: 1.0;
  color: #F0EAD8;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.bac-stat-num--id { font-size: 22px; }
.bac-stat-num--phrase {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0.03em;
}
.bac-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(240,234,216,0.55);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.bac-rule {
  width: 40px;
  height: 1px;
  background: rgba(240,234,216,0.25);
  margin: 4px 0 16px;
}

.bac-meta {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.bac-meta > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
}
.bac-meta dt {
  color: rgba(240,234,216,0.45);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.bac-meta dd {
  margin: 0;
  color: #F0EAD8;
  letter-spacing: 0.015em;
}
/* Placeholder/template field value — signals "this slot will be filled" */
.bac-meta dd.bac-slot {
  color: rgba(240,234,216,0.65);
  font-style: italic;
  position: relative;
  padding: 0 8px;
}
.bac-meta dd.bac-slot::before { content: '[ '; font-style: normal; color: rgba(127,255,212,0.55); }
.bac-meta dd.bac-slot::after  { content: ' ]'; font-style: normal; color: rgba(127,255,212,0.55); }

/* Wallet card's list of LCs */
.bac-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.bac-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  padding-left: 14px;
  position: relative;
}
.bac-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: rgba(127,255,212,0.65);
  font-size: 10px;
  top: 0;
}
.bac-list-id {
  color: #F0EAD8;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.bac-list-meta {
  color: rgba(240,234,216,0.65);
  letter-spacing: 0.015em;
}
.bac-list-meta em {
  font-style: normal;
  color: #7FFFD4;
}

/* ── Closing block ── */
.buy-hero-closing-block {
  margin: 112px auto 32px;
  padding: 32px 24px;
  text-align: center;
  /* Reveal-on-scroll */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s ease-out, transform 0.85s cubic-bezier(0.22, 0.65, 0.30, 1);
}
.buy-hero-closing-block.is-visible { opacity: 1; transform: none; }
.buy-hero-closing-line {
  font-family: var(--font-pixel);
  font-size: clamp(13px, 1.9vw, 19px);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
  animation: buyClosingPulse 3.6s ease-in-out infinite;
}
.buy-hero-closing-sub {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
@keyframes buyClosingPulse {
  0%, 100% { text-shadow: 0 0 12px rgba(5,252,196,0.30), 0 0 24px rgba(5,252,196,0.12); }
  50%      { text-shadow: 0 0 18px rgba(5,252,196,0.55), 0 0 36px rgba(5,252,196,0.22); }
}
@media (prefers-reduced-motion: reduce) {
  .buy-hero-closing-block { opacity: 1; transform: none; transition: none; }
  .buy-hero-closing-line { animation: none; }
}

.buy-hero-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}
html.theme-light .buy-hero-divider { background: rgba(31, 70, 51, 0.14); }

/* ── Hero tagline ───────────────────────────────────────────────────────── */
.buy-hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.78;
  color: var(--text);
  max-width: 62ch;
  margin: 0;
  letter-spacing: 0.005em;
}
.buy-hero-tagline-mark {
  font-family: var(--font-sans);
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: #1F4633;
}

/* ── Hero verse — poetic line-by-line layout ────────────────────────────── */
.buy-hero-verse {
  max-width: 52ch;
  margin: 0 0 32px;
}
/* All verse elements share one base size — variation is color + style only */
.bhv-opener,
.bhv-line {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.42vw, 20px);
  line-height: 1.80;
  letter-spacing: 0.002em;
}
/* Opening line — italic, slightly bolder */
.bhv-opener {
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin: 0 0 18px;
}
html.theme-light .bhv-opener { color: #1F4633; }
/* Stanza — font/color defined here (Part 1 0527 simplified structure) */
.bhv-stanza {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.42vw, 20px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: rgba(42, 42, 34, 0.85);
  margin: 0 0 14px;
}
html.theme-light .bhv-stanza { color: rgba(42, 42, 34, 0.85); }
.bhv-stanza-2 { margin-bottom: 0; }
/* Individual lines — each on its own row */
.bhv-line {
  display: block;
  font-weight: 400;
  color: var(--text);
}
html.theme-light .bhv-line { color: #2A2A22; }
/* Second stanza — only color shifts, nothing else */
.bhv-line-mid {
  color: rgba(245,240,229,0.60);
}
html.theme-light .bhv-line-mid { color: rgba(42,42,34,0.55); }
/* Closing beat — italic only, forest green */
.bhv-line-close {
  font-style: italic;
}
html.theme-light .bhv-line-close { color: #1F4633; }
/* Closing line — pixel font, deliberate, acts as a full stop */
.buy-hero-tagline-closing {
  margin-top: 28px;
  font-family: var(--font-pixel);
  font-size: clamp(9px, 0.85vw, 11px);
  font-weight: 400;
  color: rgba(31,70,51,0.70);
  letter-spacing: 0.10em;
  line-height: 2;
}
html.theme-light .buy-hero-tagline-closing { color: #1F4633; }

/* html.theme-light .buy-hero-tagline color moved to LIGHT THEME block above */

/* ── Hero roots block ──────────────────────────────────────────────────── */
.buy-hero-roots {
  margin: 0;
}
.buy-hero-roots-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(31, 70, 51, 0.62);
  padding: 6px 14px;
  border: 1px solid rgba(31, 70, 51, 0.18);
  border-radius: 4px;
  background: rgba(31, 70, 51, 0.04);
  margin-bottom: 22px;
  text-transform: uppercase;
}
html.theme-light .buy-hero-roots-eyebrow {
  color: #1F4633;
  border-color: rgba(31, 70, 51, 0.22);
  background: rgba(31, 70, 51, 0.05);
}
.buy-hero-roots-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(31, 70, 51, 0.62);
  margin: -10px 0 22px;
  letter-spacing: 0.01em;
}
html.theme-light .buy-hero-roots-sub { color: rgba(31, 70, 51, 0.72); }

/* Hero variant of the root grid — wider gutters, no left/right inset,
   larger tile swatches (cards feel like a proper feature, not a form field). */
.root-grid-hero {
  padding: 0;
  gap: 20px;
}
.root-grid-hero .root-tile-swatch { height: 168px; }
.root-grid-hero .root-tile-foot { padding: 16px 18px 18px; }
.root-grid-hero .root-tile-name { font-size: 16px; }
.root-grid-hero .root-tile-sub { font-size: 11px; }
.root-grid-hero .root-tile {
  border-radius: 14px;
  box-shadow: 0 2px 6px -2px rgba(31, 70, 51, 0.08);
}
.root-grid-hero .root-tile:hover {
  /* Baseline for browsers without :has() support */
  box-shadow: 0 12px 28px -10px rgba(31, 70, 51, 0.28);
  transform: translateY(-6px);
}
.root-grid-hero .root-tile.is-selected {
  border-color: #1F4633;
  box-shadow: 0 16px 32px -12px rgba(31, 70, 51, 0.32);
}

@media (max-width: 720px) {
  .root-grid-hero { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .root-grid-hero .root-tile-swatch { height: 130px; }
}

/* ── Pixel arrow hint — appears below callout after first root pick ── */
@keyframes bha-bounce {
  0%, 100% { transform: translateY(0px); opacity: 0.55; }
  50%       { transform: translateY(7px); opacity: 1;    }
}
@keyframes bha-bounce-lag {
  0%, 100% { transform: translateY(0px); opacity: 0.25; }
  50%       { transform: translateY(7px); opacity: 0.6;  }
}
.buy-hero-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin: 28px auto 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
  width: fit-content;
}
.buy-hero-arrow.is-visible { opacity: 1; }
.bha-row {
  display: flex;
  gap: 3px;
}
/* Each pixel block in the arrow sprite */
.bha-px {
  width: 6px;
  height: 6px;
  background: #1F4633;
  image-rendering: pixelated;
}
/* First chevron — leads the bounce */
.bha-chevron-1 { animation: bha-bounce     1.3s ease-in-out infinite; }
/* Second chevron — follows 200ms later */
.bha-chevron-2 { animation: bha-bounce-lag 1.3s ease-in-out 0.22s infinite; }

/* Callout placed in hero — no left margin (hero already has its own padding). */
.root-callout-hero {
  margin: 22px 0 0;
}

/* ── Form lock state — folded shut until a root is picked, then unfolds.
   The transform-origin keeps the fold anchored at the top edge so it reads
   like a banner unrolling downward rather than a generic fade-in. ─────── */
.buy-form {
  opacity: 1;
  max-height: 12000px;
  transition: opacity 600ms ease 200ms;
}
.buy-form.is-locked {
  opacity: 0;
  overflow: hidden;
  max-height: 0;
  pointer-events: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .buy-form { transition: none; }
}

/* Mobile tightening */
@media (max-width: 720px) {
  .buy-act { margin-block: 64px; }
  .buy-act-eyebrow { font-size: 10px; letter-spacing: 0.22em; margin-bottom: 14px; }
  .buy-act-headline { font-size: 15px; letter-spacing: 0.02em; }
  .buy-act-body { font-size: 14.5px; line-height: 1.68; }
  .buy-act-card { padding: 18px 18px 20px; min-height: auto; }
  .bac-stat-num { font-size: 34px; }
  .buy-hero-closing-block { margin: 72px auto 20px; padding: 22px 16px; }
}

/* ===== BUY FORM — Design your event ===== */
.buy-form {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.buy-form-header {
  margin-bottom: 32px;
}
.buy-form-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
}
.buy-form-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ----- Section ----- */
.buy-section {
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  margin-bottom: 18px;
  overflow: hidden;
}
.buy-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(5,252,196,0.025);
}
.buy-section-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  padding: 3px 8px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
}
.buy-section-title {
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.buy-section-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  font-style: italic;
}
.buy-section-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ----- Field layout ----- */
.buy-field { display: flex; flex-direction: column; }
.buy-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.buy-field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.buy-field-hint {
  color: var(--text-dim);
  font-weight: normal;
  font-style: italic;
  margin-left: 4px;
}

.buy-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color var(--transition), background var(--transition);
}
.buy-input:focus {
  border-color: var(--accent);
  background: rgba(5,252,196,0.04);
}
.buy-input::placeholder { color: var(--text-dim); opacity: 0.4; }
.buy-input.input-error {
  border-color: #F87171 !important;
  box-shadow: 0 0 0 2px rgba(248,113,113,0.25);
  animation: buyInputShake 0.35s ease;
}
@keyframes buyInputShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

select.buy-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2305FCC4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select.buy-input option { background: var(--bg3); }

input[type=date].buy-input {
  color-scheme: dark;
  cursor: pointer;
}
input[type=date].buy-input::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(3) hue-rotate(100deg);
  cursor: pointer;
  opacity: 0.7;
}
input[type=date].buy-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ----- Slider row (Number of trees) ----- */
.buy-field-full { grid-column: 1 / -1; }
.buy-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
input[type=range].buy-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) calc(var(--pct, 5%) ), var(--border-mid) calc(var(--pct, 5%)));
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type=range].buy-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
  cursor: pointer;
  transition: box-shadow 0.15s;
}
input[type=range].buy-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
  cursor: pointer;
}
input[type=range].buy-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
}
.buy-pool-num {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--accent);
  min-width: 50px;
  text-align: right;
  letter-spacing: 0.02em;
}

/* ----- Textarea ----- */
.buy-textarea {
  resize: vertical;
  min-height: 56px;
  font-family: var(--font-sans);
  line-height: 1.55;
}

/* ----- Read-only field (auto-computed) ----- */
.buy-readonly {
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.buy-readonly-focus {
  border-style: solid;
  border-color: rgba(37, 99, 235, 0.7);
  background: rgba(37, 99, 235, 0.06);
  color: var(--text);
}

.buy-section-body-grid {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Inline label + input row (image 1 — "Theme | input box") */
.buy-field-line {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
}
.buy-field-inline-label {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}
.buy-field-stack { display: flex; flex-direction: column; gap: 10px; }
.buy-field-stack-label {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
}
.buy-field-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* Slider variant of buy-field-line */
.buy-field-line-slider { align-items: center; }
.buy-slider-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.buy-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    #1F4633 0%,
    #1F4633 var(--slider-pct, 9%),
    rgba(31,70,51,0.18) var(--slider-pct, 9%),
    rgba(31,70,51,0.18) 100%
  );
  outline: none;
  cursor: pointer;
}
.buy-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 3px; /* slightly square — pixel feel */
  background: #1F4633;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.buy-slider::-webkit-slider-thumb:hover { transform: scale(1.2); background: #2D5A43; }
.buy-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 3px;
  background: #1F4633;
  border: none;
  cursor: pointer;
}
.buy-slider-val {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #1F4633;
  min-width: 36px;
  text-align: right;
  letter-spacing: 0.04em;
}
html.theme-light .buy-slider {
  background: linear-gradient(
    to right,
    #1F4633 0%,
    #1F4633 var(--slider-pct, 0%),
    rgba(31,70,51,0.18) var(--slider-pct, 0%),
    rgba(31,70,51,0.18) 100%
  );
}
html.theme-light .buy-slider-val { color: #1F4633; }
input.buy-slider-num {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(31,70,51,0.30);
  border-radius: 0;
  outline: none;
  width: 48px;
  padding: 2px 0;
  cursor: text;
  -moz-appearance: textfield;
}
input.buy-slider-num:focus { border-bottom-color: #1F4633; }
input.buy-slider-num::-webkit-inner-spin-button,
input.buy-slider-num::-webkit-outer-spin-button { -webkit-appearance: none; }
.buy-section-footnote {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 4px;
}
.buy-auto-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.buy-section-prose {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 26px 18px;
  max-width: 76ch;
}
.buy-section-prose em {
  font-style: italic;
  color: var(--text);
}

/* ─── Root color matrix (2×3 grid) ───────────────────────────────── */
.root-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 26px;
}
.root-tile {
  appearance: none;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  /* Spring easing — gives the card a slight overshoot so it feels physical */
  transition: transform 0.30s cubic-bezier(0.34, 1.4, 0.64, 1),
              border-color 0.22s ease,
              box-shadow 0.30s ease,
              opacity 0.22s ease;
  will-change: transform;
  display: flex;
  flex-direction: column;
  position: relative;
}
.root-tile.is-selected {
  border-color: var(--text);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.35);
}
/* Selected tile: image gently floats up and down */
@keyframes root-float {
  0%   { transform: translateY(0)    scale(1); }
  40%  { transform: translateY(-5px) scale(1.015); }
  100% { transform: translateY(0)    scale(1); }
}
/* Unselected tiles: recede slightly when another is chosen */
.root-grid.has-selection .root-tile:not(.is-selected) {
  opacity: 0.52;
}
.root-grid.has-selection .root-tile:not(.is-selected):hover {
  opacity: 1;
}

/* ── Spotlight hover — hovered card rises, siblings retreat ──────────────
   Uses CSS :has() (Chrome 105+, Safari 15.4+, Firefox 121+).
   Non-hover fallback: cards still respond to click/selection normally.
   Directional push amounts are written by JS into --push-x / --push-y.
─────────────────────────────────────────────────────────────────────── */

/* The card under the cursor: rises, scales, glows with its own palette */
.root-grid:has(.root-tile:hover) .root-tile:hover {
  transform: translateY(-14px) scale(1.06);
  box-shadow:
    0 28px 56px -8px  rgba(0, 0, 0, 0.36),
    0  0   0    1.5px var(--root-mid),
    0  8px 24px -4px  var(--root-deep);
  border-color: var(--root-mid);
  z-index: 3;
  opacity: 1 !important;
}
/* Hero grid: a touch more dramatic */
.root-grid-hero:has(.root-tile:hover) .root-tile:hover {
  transform: translateY(-18px) scale(1.065);
}

/* Sibling cards: retreat slightly + drift */
.root-grid:has(.root-tile:hover) .root-tile:not(:hover) {
  transform: translate(var(--push-x, 0px), var(--push-y, 0px)) scale(0.968);
  opacity: 0.52;
}
/* Already-selected sibling: slightly less dimmed */
.root-grid:has(.root-tile:hover) .root-tile.is-selected:not(:hover) {
  opacity: 0.72;
}
.root-tile.is-selected .root-tile-swatch img,
.root-tile.is-selected .root-tile-swatch svg {
  animation: root-float 2.8s ease-in-out infinite;
}
.root-tile-swatch {
  height: 110px;
  overflow: hidden;
  position: relative;
  /* Fallback gradient — visible only if EVT_ROOT_SCENES failed to load. */
  background: linear-gradient(135deg, var(--root-light) 0%, var(--root-mid) 60%, var(--root-deep) 100%);
}
.root-tile-swatch svg {
  display: block;
  width: 100%;
  height: 100%;
}
.root-tile-foot {
  padding: 14px 16px 16px;
  background: rgba(245, 240, 229, 0.78);
}
.root-tile-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--root-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.root-tile-icon {
  font-size: 14px;
  color: var(--root-mid);
}
.root-tile-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--root-mid);
  opacity: 0.65;
  text-transform: lowercase;
}

/* Selected callout below the grid */
.root-callout {
  margin: 22px 26px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--root-mid, rgba(31,70,51,0.5));
  background: rgba(31, 70, 51, 0.04);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.root-callout[data-state="empty"] {
  border-left-color: var(--border-mid);
  background: rgba(255,255,255,0.02);
  color: var(--text-dim);
  font-style: italic;
}
.root-callout-compact {
  margin: 14px 0 0;
  padding: 10px 14px;
  font-size: 13px;
}
.root-callout strong {
  font-weight: 700;
  color: var(--root-mid);
}

/* Mobile */
@media (max-width: 720px) {
  .buy-field-line { grid-template-columns: 1fr; gap: 6px; }
  .buy-field-row-pair { grid-template-columns: 1fr; gap: 14px; }
  .root-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
  .buy-section-prose { margin: 0 16px 14px; }
  .root-callout { margin: 16px; }
  .buy-section-body-grid { padding: 4px 16px 18px; }
  .buy-section-header { padding: 18px 16px 10px; }
}


/* ----- Audit trail rows ----- */
.buy-audit-list { display: flex; flex-direction: column; gap: 10px; }
.buy-audit-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.015);
}
.buy-audit-check {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--live);
  font-size: 12px;
  font-weight: 700;
}
.buy-audit-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.buy-audit-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.buy-audit-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  background: rgba(0,0,0,0.25);
  white-space: nowrap;
}

/* ----- Summary ----- */
.buy-summary {
  margin-top: 22px;
  padding: 22px 26px;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: rgba(5,252,196,0.025);
}
.buy-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
}
.buy-summary-label {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dim);
}
.buy-summary-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.buy-summary-included {
  color: var(--text-dim);
  font-style: italic;
}
.buy-summary-total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 16px;
}
.buy-summary-total .buy-summary-label,
.buy-summary-total .buy-summary-val {
  color: var(--text);
  font-weight: 600;
}
.buy-tax-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.buy-tax-check {
  color: var(--live);
  font-weight: 700;
}

/* ----- Actions ----- */
.buy-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.buy-actions .buy-btn-primary { flex: 1; }
.buy-btn-primary,
.buy-btn-secondary {
  padding: 18px 24px;
  border-radius: var(--radius);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.buy-btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 0 24px rgba(5,252,196,0.22);
}
.buy-btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.buy-btn-primary:active { transform: translateY(0); }

.buy-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.buy-btn-secondary:hover { background: rgba(255,255,255,0.04); border-color: var(--accent); }

/* ---------- Email verification gate (bottom of buy form) ---------- */
.buy-verify-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(31,70,51,0.10);
}
.buy-verify-step[hidden] { display: none; }
.buy-verify-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #1F4633;
  display: block;
  margin-bottom: 12px;
}
.buy-verify-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.buy-verify-row .buy-verify-input {
  flex: 1;
  min-width: 0;
}
.buy-verify-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.buy-verify-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(31, 70, 51, 0.65);
  margin-top: 12px;
}
.buy-verify-hint a {
  color: #1F4633;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.buy-verify-hint a:hover { color: var(--accent); }
.buy-verify-confirmed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.30);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #1F4633;
  margin-bottom: 16px;
}
.buy-verify-check-mark {
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
}
.buy-verify-confirmed strong {
  font-weight: 600;
  color: #0A0A0A;
}
.buy-verify-restart {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(31,70,51,0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.buy-verify-restart:hover { color: #1F4633; }
@media (max-width: 540px) {
  .buy-verify-row { flex-direction: column; }
  .buy-verify-btn { width: 100%; }
}

/* Locked Mint & Plant (pre-verification) */
.buy-btn-primary.is-locked {
  background: rgba(31,70,51,0.18);
  color: rgba(31,70,51,0.45);
  border-color: rgba(31,70,51,0.18);
  box-shadow: none;
  cursor: not-allowed;
}
.buy-btn-primary.is-locked:hover {
  opacity: 1;
  transform: none;
  background: rgba(31,70,51,0.22);
}
html.theme-light .buy-btn-primary.is-locked {
  background: rgba(31,70,51,0.14);
  color: rgba(31,70,51,0.42);
  border-color: rgba(31,70,51,0.14);
}
.buy-publish-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sun);
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.02em;
}
/* Shake nudge when user clicks locked button */
.buy-verify-block.shake {
  animation: buy-verify-shake 0.55s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes buy-verify-shake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-6px); }
  30%, 60%, 90% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .buy-verify-block.shake { animation: none; }
}

/* ---------- Purchase modal ---------- */
.purchase-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5,6,7,0.95);
  align-items: center;
  justify-content: center;
}
.purchase-modal.visible {
  display: flex;
}

.purchase-modal-panel {
  text-align: center;
  max-width: 380px;
  padding: 48px 32px;
}

.purchase-modal-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.purchase-modal-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.6;
}

.purchase-progress-track {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.purchase-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(5,252,196,0.6);
}

.purchase-modal-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  opacity: 0.5;
  letter-spacing: 0.08em;
}

/* ---------- Confirm-before-publish modal ---------- */
.confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;  /* above new-event-modal (1000) and buy overlay */
  background: rgba(5,6,7,0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.confirm-modal.visible {
  display: flex;
}

.confirm-panel {
  background: #F5F0E5;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.confirm-header {
  background: #1F4633;
  padding: 22px 28px 18px;
}

.confirm-eyebrow {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: rgba(240,234,216,0.65);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.confirm-warning {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #F5F0E5;
  line-height: 1.55;
  opacity: 0.9;
}

.confirm-body {
  padding: 22px 28px 16px;
}

.confirm-img {
  width: 100%;
  height: 130px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
  border: 1.5px solid rgba(31,70,51,0.12);
}

.confirm-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
}

.confirm-dl dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(31,70,51,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 1px;
  white-space: nowrap;
}

.confirm-dl dd {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.45;
  word-break: break-word;
}

.confirm-dl dd strong {
  font-weight: 700;
  color: #1F4633;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  padding: 0 28px 24px;
}

.confirm-btn-back {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(31,70,51,0.75);
  background: transparent;
  border: 1.5px solid rgba(31,70,51,0.25);
  border-radius: 7px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.confirm-btn-back:hover {
  border-color: rgba(31,70,51,0.55);
  color: #1F4633;
}

.confirm-btn-go {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #F5F0E5;
  background: #1F4633;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
/* ── Confirm modal · payment method ───────────────────────────── */
.confirm-payment {
  margin: 0 28px 20px;
  border: 1.5px solid rgba(31,70,51,0.18);
  border-radius: 10px;
  overflow: hidden;
}
.confirm-pay-tabs {
  display: flex;
  border-bottom: 1.5px solid rgba(31,70,51,0.18);
}
.confirm-pay-tab {
  flex: 1;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.10em;
  padding: 11px 0;
  background: transparent;
  color: rgba(31,70,51,0.45);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.confirm-pay-tab.is-active {
  color: #1F4633;
  border-bottom-color: #10B981;
}
.confirm-pay-tab:not(.is-active):hover {
  color: #1F4633;
  background: rgba(31,70,51,0.04);
}
.confirm-pay-icon {
  font-size: 10px;
  line-height: 1;
}
.confirm-pay-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  background: rgba(31,70,51,0.04);
}
.confirm-pay-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(31,70,51,0.50);
}
.confirm-pay-amount {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: #1F4633;
  letter-spacing: 0.06em;
}

.confirm-btn-go:hover {
  background: #163325;
}

/* USDC connect button inside confirm modal */
.confirm-usdc-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid rgba(31,70,51,0.35);
  color: #1F4633;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, background 0.2s;
}
.confirm-usdc-btn:hover { background: rgba(31,70,51,0.06); border-color: #1F4633; }

/* Claim page wallet transfer section */
.claim-wallet-transfer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(31,70,51,0.12);
  width: 100%;
  max-width: 380px;
}
.claim-wallet-toggle {
  background: none;
  border: none;
  color: rgba(31,70,51,0.55);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.02em;
}
.claim-wallet-toggle:hover { color: #1F4633; }
.claim-wallet-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.claim-wallet-input {
  font-family: monospace;
  font-size: 11px;
  padding: 9px 12px;
  border: 1px solid rgba(31,70,51,0.25);
  background: #fff;
  outline: none;
  width: 100%;
}
.claim-wallet-input:focus { border-color: #1F4633; }
.claim-wallet-submit {
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  background: #1F4633;
  color: #fff;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.claim-wallet-submit:hover { background: #163325; }
.claim-wallet-submit:disabled { opacity: 0.5; cursor: default; }
.claim-wallet-status { font-size: 11px; color: #e87757; }
.claim-wallet-status.ok { color: #1F4633; }

/* ---------- Not found view ---------- */
#not-found-view {
  display: none;
  min-height: calc(100vh - 73px);
}
#not-found-view.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  padding: 48px 24px;
}

.not-found-code {
  font-family: var(--font-pixel);
  font-size: clamp(48px, 12vw, 120px);
  color: var(--border-mid);
  line-height: 1;
}

.not-found-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.not-found-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 400px;
  line-height: 1.7;
}

.not-found-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  border: 1px solid var(--border-mid);
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.not-found-link:hover { background: rgba(5,252,196,0.06); border-color: var(--accent); text-decoration: none; }

/* ---------- Toast ---------- */
.evt-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--bg3);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.evt-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Manage tree list (row-form, replaces public-page card grid) ---------- */
.manage-section-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
  gap: 12px;
}
.manage-tree-filters { display: flex; gap: 6px; }
.manage-filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.manage-filter-btn:hover { color: var(--accent); border-color: var(--border-mid); }
.manage-filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(5,252,196,0.06);
}

/* ---------- Manage: Audit reference ---------- */
.manage-audit-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.manage-audit-intro {
  margin: 0 0 14px 0;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.manage-audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.manage-audit-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.manage-audit-row:hover {
  border-color: var(--border-mid);
  background: rgba(16,185,129,0.03);
}
.manage-audit-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-family: var(--font-mono);
}
.manage-audit-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.manage-audit-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}
.manage-audit-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}
.manage-audit-download {
  margin-top: 14px;
  width: 100%;
}

/* ---------- Event page: Add another event card ---------- */
.event-add-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.event-add-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.015);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.event-add-card:hover {
  border-color: var(--accent);
  background: rgba(16,185,129,0.04);
  transform: translateY(-2px);
}
.event-add-plus {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.event-add-text { flex: 1; }
.event-add-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.event-add-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.event-add-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.manage-tree-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 320px;
  overflow-y: auto;
  background: rgba(255,255,255,0.015);
}
.manage-tree-row {
  display: grid;
  grid-template-columns: 70px 1fr 90px 70px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: background var(--transition);
}
.manage-tree-row:last-child { border-bottom: none; }
.manage-tree-row:nth-child(even) { background: rgba(255,255,255,0.012); }
.manage-tree-row:hover { background: rgba(5,252,196,0.04); }

.manage-tree-id {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.manage-tree-status {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-dim);
}
.manage-tree-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block;
}
.manage-tree-row.claimed .manage-tree-dot { background: var(--live); box-shadow: 0 0 6px var(--live); }
.manage-tree-row.claimed .manage-tree-status { color: var(--live); }
.manage-tree-row.open .manage-tree-dot { background: rgba(192,255,242,0.3); }

.manage-tree-meta {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manage-tree-date {
  color: rgba(5,252,196,0.55);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: right;
}
.manage-tree-row.open .manage-tree-date { color: rgba(192,255,242,0.35); font-style: italic; }

.manage-tree-overflow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  #event-page-view { padding: 32px 16px 60px; }
  .event-block { flex-direction: column; gap: 14px; }
  .event-panel-right { flex: 0 0 auto; width: auto; }
  .event-meta-grid { grid-template-columns: 1fr 1fr; }
  .event-navi-canvas { width: 64px; height: 64px; top: 12px; right: 12px; }
  .event-pool-card { width: 100%; }
  .pool-card-name { font-size: 12px; }
  .pool-card-info { padding: 14px 16px 18px; }
}

@media (max-width: 600px) {
  .events-header { padding: 10px 14px; grid-template-columns: auto 1fr auto; }
  .events-header-h1 { font-size: 8px; gap: 8px; justify-content: center; overflow: hidden; }
  .events-header-h1-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
  .events-header-home-btn { font-size: 6px; padding: 6px 8px; }
  .events-host-badge { padding: 4px 8px; }
  .events-host-badge-label { font-size: 5px; }
  .events-host-badge-name { font-size: 9px; }
  body { padding-top: 48px; }

  .event-explainer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .event-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .manage-status-row { flex-direction: column; }

  .buy-field-row { grid-template-columns: 1fr; }
  .buy-actions { flex-direction: column; }
  .buy-section-header { flex-wrap: wrap; }
  .buy-section-tag { margin-left: 0; width: 100%; padding-top: 4px; }
  .buy-hero { padding: 64px 20px 40px; }
  .buy-audit-row { grid-template-columns: 24px 1fr; }
  .buy-audit-badge { grid-column: 2; justify-self: start; margin-top: 4px; }
  /* keep this last in @media block */

  .evt-toast { right: 16px; bottom: 16px; left: 16px; right: 16px; }

  .manage-panel { padding: 24px 20px; }

  #claim-view { margin: 16px; }
  .claim-panel { padding: 24px 20px; }

  .db-hero { padding: 32px 20px; }
  .db-stat-grid { grid-template-columns: 1fr; gap: 20px; }
  .db-stat-divider { display: none; }
  .db-events-grid { grid-template-columns: 1fr; }
  .db-section { padding: 20px; }
  .db-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===========================================================
   DASHBOARD VIEW — Light B2B + Earth LinC hybrid
   =========================================================== */

/* ---------- Dashboard shell ---------- */
.dashboard-view {
  background: #F5F0E5;
  color: #0A0A0A;
  padding-top: 72px;
  min-height: 100vh;
}

/* ---------- Dashboard hero ---------- */
.db-hero {
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(16,185,129,0.10) 0%, transparent 60%),
    linear-gradient(180deg, #234d39 0%, #1F4633 55%, #18382A 100%);
  color: #F0EAD8;
  padding: 52px 64px 48px;
  position: relative;
  margin: 24px 24px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -28px rgba(0,0,0,0.35);
}
/* Subtle CRT scanlines for fancy terminal feel */
.db-hero-scanlines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(240,234,216,0.025) 0px,
    rgba(240,234,216,0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}
/* Pixel-style corner brackets */
.db-hero-corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: rgba(16,185,129,0.55);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  z-index: 2;
}
.db-hero-corner-tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.db-hero-corner-tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.db-hero-corner-bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.db-hero-corner-br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

.db-hero-body { position: relative; z-index: 3; }

.db-navi-canvas {
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0.95;
  z-index: 4;
  filter: drop-shadow(0 0 8px rgba(16,185,129,0.35));
}

/* Terminal-style status banner */
.db-hero-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #10B981;
  text-shadow: 0 0 8px rgba(16,185,129,0.4);
  margin-bottom: 22px;
  padding: 6px 0;
}
.db-hero-banner-bracket {
  color: rgba(16,185,129,0.7);
  font-size: 11px;
}
.db-hero-banner-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px rgba(16,185,129,0.9);
  animation: dbPulseDot 1.8s ease-in-out infinite;
}
@keyframes dbPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}
.db-hero-banner-text {
  background: linear-gradient(180deg, #B8F0D6 0%, #10B981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.db-hero-copy {
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.78;
  letter-spacing: 0.012em;
  color: rgba(240,234,216,0.82);
  max-width: 600px;
  margin: 0 0 36px;
}
.db-hero-copy strong { color: #F0EAD8; font-weight: 700; }

.db-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  align-items: start;
  padding-top: 24px;
  border-top: 1px dashed rgba(16,185,129,0.22);
}
.db-stat-divider {
  width: 1px;
  height: 88px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(16,185,129,0.35) 50%,
    transparent 100%);
  align-self: center;
}
.db-stat-cell { padding: 0 32px; }
.db-stat-cell:first-child { padding-left: 0; }

/* Beefier pixel-font labels with bullet markers */
.db-stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #B8F0D6;
  margin-bottom: 14px;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(16,185,129,0.25);
}
.db-stat-marker {
  color: #10B981;
  font-size: 11px;
  opacity: 0.9;
}

.db-stat-value {
  font-family: var(--font-pixel);
  font-size: 52px;
  color: #F0EAD8;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow:
    0 0 18px rgba(16,185,129,0.18),
    0 2px 0 rgba(0,0,0,0.18);
  letter-spacing: -0.02em;
}
.db-stat-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(240,234,216,0.6);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ---------- Dashboard sections ---------- */
.db-section {
  padding: 40px 24px;
  max-width: 1400px;
  width: 100%;
}
.db-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.db-section-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.db-section-title {
  /* Brand-consistent pixel font (wallet alignment) */
  font-family: var(--font-pixel);
  font-size: 14px;
  font-weight: 400;
  color: #0A0A0A;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
}
.db-events-summary {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6B6B5A;
}
.db-section-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #8A8A78;
  text-transform: uppercase;
}
.db-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1F4633;
  color: #F0EAD8;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.db-new-btn:hover { background: #163325; transform: translateY(-1px); }

/* ---------- Events grid ---------- */
.db-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .db-events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .db-events-grid { grid-template-columns: 1fr; } }

.db-event-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.db-event-card:hover {
  box-shadow: 0 6px 20px rgba(31,70,51,0.10), 0 0 0 1px rgba(31,70,51,0.12);
  transform: translateY(-2px);
}
.db-card-top {
  background: #1F4633;
  color: #F0EAD8;
  padding: 20px 22px 16px;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}
.db-event-card.closed .db-card-top { background: #4A554F; }
.db-event-card.archived .db-card-top { background: #2B3E58; }

.db-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}
.db-card-meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.db-card-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  color: rgba(240,234,216,0.55);
  text-transform: uppercase;
}
/* Express Way tag · subtle mono pill on the card-top forest backdrop */
.db-card-ew-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(240,234,216,0.88);
  background: rgba(240,234,216,0.14);
  border: 1px solid rgba(240,234,216,0.22);
  padding: 4px 8px 3px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.db-card-badge {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 0.12em;
  padding: 5px 9px 4px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.db-badge-active, .db-badge-live {
  background: rgba(16,185,129,0.18);
  color: #7FFFD4;
  border-color: rgba(16,185,129,0.45);
  box-shadow: 0 0 8px rgba(16,185,129,0.25);
}
.db-badge-closed {
  background: rgba(200,200,180,0.15);
  color: rgba(240,234,216,0.80);
  border-color: rgba(240,234,216,0.25);
}
.db-badge-archived {
  background: rgba(96,165,250,0.15);
  color: #BAD4FF;
  border-color: rgba(96,165,250,0.40);
}
.db-card-count {
  font-family: var(--font-pixel);
  font-size: 40px;
  color: #F0EAD8;
  line-height: 1;
  margin-bottom: 4px;
}
.db-card-count-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(240,234,216,0.5);
  letter-spacing: 0.06em;
}
.db-card-divider {
  width: 40px;
  height: 1px;
  background: rgba(240,234,216,0.25);
  margin-top: 12px;
}
.db-card-leaf {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 32px;
  height: 40px;
  color: rgba(240,234,216,0.15);
}

.db-card-bottom {
  background: #FFFFFF;
  padding: 16px 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.db-card-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #0A0A0A;
  margin-bottom: 4px;
  line-height: 1.3;
}
.db-card-info {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8A8A78;
  margin-bottom: 10px;
  line-height: 1.5;
}
/* New per-field grid */
.db-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #5A584E;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.db-card-fields {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 18px 20px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ECE7DA;
}
.db-card-field-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: #8A8A78;
  margin-bottom: 4px;
}
.db-card-field-value {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #0A0A0A;
  line-height: 1.2;
}
.db-card-field-sub {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: #5A584E;
  margin-top: 2px;
}
.db-card-quote {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4A4840;
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 2px solid rgba(31,70,51,0.18);
  /* clamp to 3 lines for card density */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.db-card-counts-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #4A4A3A;
  padding-bottom: 12px;
  border-bottom: 1px solid #ECE7DA;
  margin-bottom: 0;
}
.db-card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ECE7DA;
}
.db-action-btn {
  background: none;
  border: none;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #4A4A3A;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  text-align: center;
}
.db-action-btn:hover { color: #1F4633; background: rgba(31,70,51,0.04); }
.db-action-btn + .db-action-btn { border-left: 1px solid #ECE7DA; }

/* Add card placeholder */
.db-add-card {
  border-radius: 14px;
  border: 1.5px dashed #B5AC95;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 180px;
}
.db-add-card:hover { border-color: #1F4633; background: rgba(31,70,51,0.03); }
.db-add-plus {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(31,70,51,0.1);
  color: #1F4633;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-family: var(--font-mono);
}
.db-add-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #0A0A0A;
}
.db-add-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8A8A78;
  text-align: center;
}



/* ---------- Claim code inputs (new) ---------- */
.claim-code-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.claim-code-input {
  width: 44px;
  height: 56px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--text);
  background: var(--bg3);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}
.claim-code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5,252,196,0.12); }
.claim-code-error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FF6B6B;
  text-align: center;
  margin-bottom: 8px;
}
.claim-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.claim-host-switch {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.claim-host-switch:hover { opacity: 1; }
.claim-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Restore modal ---------- */
.restore-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.restore-modal.visible { display: flex; }
.restore-panel {
  background: #F5F0E5;
  border-radius: 16px;
  padding: 36px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.restore-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.restore-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: #0A0A0A;
}
.restore-close {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #8A8A78;
  cursor: pointer;
}
.restore-step { display: none; }
.restore-step.active { display: block; }
.restore-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #4A4A3A;
  line-height: 1.6;
  margin-bottom: 20px;
}
.restore-field { margin-bottom: 16px; }
.restore-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  color: #8A8A78;
  margin-bottom: 6px;
}
.restore-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #D8D3C0;
  border-radius: 8px;
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #0A0A0A;
  box-sizing: border-box;
}
.restore-input:focus { outline: none; border-color: #1F4633; }
.restore-btn {
  width: 100%;
  padding: 13px 20px;
  background: #1F4633;
  color: #F0EAD8;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 12px;
}
.restore-btn:hover { background: #163325; }
.restore-code-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.restore-code-input {
  width: 44px;
  height: 56px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 20px;
  color: #0A0A0A;
  background: #FFFFFF;
  border: 1.5px solid #D8D3C0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.restore-code-input:focus { border-color: #1F4633; box-shadow: 0 0 0 3px rgba(31,70,51,0.12); }
.restore-error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #C0392B;
  text-align: center;
  margin-bottom: 8px;
}
.restore-note {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #8A8A78;
  text-align: center;
  letter-spacing: 0.06em;
}

/* ---------- Fancy intensity dial-down ---------- */
#bg-canvas { opacity: 0.3; }
.panel-rays-canvas { opacity: 0.20 !important; }
.event-navi-canvas { opacity: 0.85; }

/* ---------- Event page: pool card simplified (no 3D tilt) ---------- */
.event-pool-card-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 24px;
}
.pool-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  opacity: 0.6;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.event-pool-card {
  display: block;
  padding: 18px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.event-pool-card:hover { border-color: var(--accent); background: rgba(5,252,196,0.04); }
.pool-card-info {}
.pool-card-cat-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pool-card-cat { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.10em; color: var(--text-dim); opacity: 0.7; }
.pool-card-state { font-family: var(--font-mono); font-size: 10px; color: var(--accent); }
.pool-card-name { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pool-card-line { font-family: var(--font-mono); font-size: 13px; color: var(--text); margin-bottom: 4px; }
.pool-card-num { color: var(--accent); font-weight: 700; }
.pool-card-slash { color: var(--text-dim); margin: 0 2px; }
.pool-card-total { color: var(--text-dim); }
.pool-card-label-inline { color: var(--text-dim); font-size: 11px; margin-left: 4px; }
.pool-card-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-bottom: 10px; }
.pool-card-cta-row {}
.pool-card-cta-label { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.04em; }

/* ---------- Event page claim button ---------- */
.event-claim-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #F0EAD8;
  color: #1F4633;
  border: none;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.event-claim-btn:hover { background: #FFFFFF; transform: translateY(-1px); }

/* ---------- Dashboard audit download click mock ---------- */

/* ---------- Light theme body override (event page + dashboard + restore) ---------- */
html.theme-light,
body.theme-light {
  background: #F5F0E5;
  color: #0A0A0A;
}
body.theme-light #bg-canvas { opacity: 0.04 !important; }
body.theme-light #hacker-grid canvas { opacity: 0.02 !important; }
body.theme-light ::-webkit-scrollbar-track { background: #EDE8DA; }
body.theme-light ::-webkit-scrollbar-thumb { background: #C2BAA6; }

/* Event page light mode — full-height cream wrapper */
#event-page-view.visible {
  background: #F5F0E5;
  min-height: 100vh;
  color: #0A0A0A;
}

/* Event page light — override terminal text to readable dark */
#event-page-view .event-slug-text,
#event-page-view .event-opened-text,
#event-page-view .host-placeholder,
#event-page-view .region-placeholder {
  color: rgba(31,70,51,0.7);
}
#event-page-view .event-block {
  background: #1F4633;
  color: #F0EAD8;
  border-color: transparent;
}
#event-page-view .panel-left {
  border-right-color: rgba(240,234,216,0.12);
}
#event-page-view .counter-total-label,
#event-page-view .counter-remaining {
  color: rgba(240,234,216,0.55);
}
#event-page-view .panel-live-dot.state-badge {
  border-color: rgba(240,234,216,0.3);
}
/* Event page explainer section on cream */
#event-page-view .event-explainer {
  background: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 24px;
}
#event-page-view .explainer-col-title { color: #1F4633; }
#event-page-view .explainer-col-body  { color: #4A4A4A; }
/* Event page footer on cream */
#event-page-view .event-footer {
  color: rgba(10,10,10,0.35);
  border-top-color: rgba(10,10,10,0.1);
}

/* ============================================================
   NEW EVENT MODAL (light B2B, opens from dashboard)
   ============================================================ */
.new-event-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 18, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  padding: 28px 24px;
  overflow-y: auto;
}
.new-event-modal.visible { display: flex; }
.new-event-panel {
  background: #FFFFFF;
  color: #0A0A0A;
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  border-radius: 16px;
  padding: 52px 52px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  position: relative;
  animation: ne-modal-in 320ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes ne-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.new-event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 44px;
}
.new-event-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #1F4633;
  opacity: 0.7;
  margin-bottom: 4px;
}
.new-event-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  font-weight: 400;
  color: #0A0A0A;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.new-event-title-block { display: flex; flex-direction: column; gap: 6px; }
.new-event-title-main {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  font-weight: 400;
  color: #0A0A0A;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.new-event-title-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  color: rgba(31, 70, 51, 0.78);
  letter-spacing: 0.01em;
}
.new-event-close {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #4A4A4A;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.new-event-close:hover { background: #ECE7DA; color: #1F4633; }

/* Summary band — appears at the bottom, above publish */
.new-event-summary {
  background: #FAF7EE;
  border: 1px solid #ECE7DA;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 8px;
}
.new-event-summary-note {
  font-style: italic;
  opacity: 0.65;
  letter-spacing: 0.02em;
}
.new-event-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.new-event-summary-row + .new-event-summary-row { border-top: 1px solid #ECE7DA; }
.new-event-summary-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #4A4A4A;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.new-event-summary-value {
  font-family: 'Inter', sans-serif;
  color: #0A0A0A;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.new-event-summary-value strong { font-weight: 700; color: #1F4633; }
.ne-tree-count-select {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #1F4633;
  background: #F5F0E5;
  border: 1.5px solid #C4BC9E;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
}
.ne-tree-count-select:focus { border-color: var(--blue, #2563EB); }
.new-event-summary-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #6A6A58;
}

/* Form */
.new-event-form { display: flex; flex-direction: column; gap: 32px; }
.ne-form-body { display: flex; flex-direction: column; gap: 32px; }
.new-event-field { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.new-event-field-row { display: flex; gap: 20px; }
@media (max-width: 540px) { .new-event-field-row { flex-direction: column; } }
.new-event-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: #4A4A4A;
  text-transform: uppercase;
}
.new-event-optional {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #9A9A9A;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 4px;
}

/* New-event modal section divider */
.new-event-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 32px 0 14px;
  border-top: 1px solid #ECE7DA;
  margin-top: 0;
}
.new-event-section-divider-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #1F4633;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.new-event-section-divider-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #6A6860;
  font-style: italic;
}

/* Buy section "optional" marker */
.buy-section-optional {
  font-size: 12px;
  font-weight: 400;
  color: #6A6860;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
}
.new-event-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #D6CFB8;
  border-radius: 8px;
  background: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #0A0A0A;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.new-event-input:focus {
  /* Sovereign Blue focus ring per spec §9.7 */
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
  outline: none;
}
.new-event-input::placeholder { color: #C8C2AC; }
select.new-event-input { cursor: pointer; }

.new-event-error {
  background: #FBEAEA;
  color: #993333;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid #E8BFBF;
}

.new-event-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.new-event-btn-secondary {
  padding: 11px 18px;
  background: transparent;
  border: 1.5px solid #D6CFB8;
  border-radius: 8px;
  color: #4A4A4A;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.new-event-btn-secondary:hover { background: #ECE7DA; color: #0A0A0A; }
.new-event-btn-primary {
  padding: 11px 22px;
  background: #1F4633;
  color: #F0EAD8;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.new-event-btn-primary:hover { background: #2D5A43; transform: translateY(-1px); }

/* ============================================================
   Event card v2 — image background + primary "Send invitations" CTA
   Overrides earlier .db-card-top so backgrounds & layout stack correctly.
   ============================================================ */
.db-card-top {
  position: relative;
  background: #1a3828;
  color: #F0EAD8;
  padding: 0;
  min-height: 200px;
  overflow: hidden;
  isolation: isolate;
}
.db-card-image {
  position: absolute;
  inset: 0;
  background-image: url('../assets/pool-card-forest.JPG');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.88;
  filter: saturate(1.05) brightness(0.88);
  z-index: 0;
  transition: opacity 0.4s ease, transform 0.7s ease;
}
.db-event-card:hover .db-card-image {
  opacity: 1;
  transform: scale(1.03);
  filter: saturate(1.12) brightness(0.92);
}
.db-event-card.closed .db-card-image,
.db-event-card.archived .db-card-image { opacity: 0.22; filter: grayscale(0.7) brightness(0.75); }
.db-card-top::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Top is nearly clear — photo shows fully; only darken at bottom where text sits */
  background: linear-gradient(180deg,
    rgba(10,24,17,0.08) 0%,
    rgba(10,24,17,0.18) 35%,
    rgba(10,24,17,0.62) 68%,
    rgba(8,20,14,0.90) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Leaf-vein motif per spec §9.5 — subtle SVG bottom-right corner, ~12% opacity */
.db-card-top::before {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 70px;
  height: 90px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100' fill='none' stroke='%23F5F0E5' stroke-width='1.2' stroke-linecap='round'><path d='M40 5 C20 25 15 55 25 85 C32 95 48 95 55 85 C65 55 60 25 40 5 Z'/><path d='M40 10 L40 92' stroke-width='1'/><path d='M40 28 Q30 33 25 44'/><path d='M40 28 Q50 33 55 44'/><path d='M40 48 Q28 53 22 64'/><path d='M40 48 Q52 53 58 64'/><path d='M40 68 Q32 73 28 80'/><path d='M40 68 Q48 73 52 80'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(-8deg);
  transition: opacity 0.4s ease;
}
.db-event-card:hover .db-card-top::before { opacity: 0.26; }
.db-event-card.closed .db-card-top::before,
.db-event-card.archived .db-card-top::before { opacity: 0.10; }
.db-card-top-content {
  position: relative;
  z-index: 2;
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
  justify-content: space-between;
}
/* Number + label stay together as one unit */
.db-card-count-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.db-event-card.closed .db-card-top { background: #2B342E; }
.db-event-card.archived .db-card-top { background: #1F3050; }

/* Bottom redesign — primary CTA + sub-actions */
.db-card-bottom { padding: 16px 20px 18px; }
.db-card-counts-row { padding-bottom: 14px; margin-bottom: 14px; }

/* Card actions: CTA + share on one row */
.db-card-actions-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.db-cta-btn {
  flex: 1;
  padding: 13px 14px;
  background: #1F4633;
  color: #F0EAD8;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  text-align: center;
  white-space: nowrap;
}
.db-cta-btn:hover {
  background: #2D5A43;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31,70,51,0.18);
}
.db-cta-btn:disabled {
  background: #E5DFCC;
  color: #8A8A78;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.db-share-btn {
  flex-shrink: 0;
  padding: 13px 14px;
  background: transparent;
  border: 1.5px solid #D6CFB8;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #4A4A3A;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.db-share-btn:hover { color: #1F4633; background: #FAF7EE; border-color: #B5AC95; }

/* ============================================================
   CLAIM MODAL — Light B2B override (cream + forest)
   Overrides the dark terminal styles defined earlier.
   ============================================================ */
#claim-overlay {
  background: rgba(15, 30, 22, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#claim-view {
  background: #FFFFFF;
  color: #0A0A0A;
  border: 1px solid #ECE7DA;
  border-radius: 16px;
  max-width: 500px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.claim-header {
  border-bottom: 1px solid #ECE7DA;
  background: #FAF7EE;
  border-radius: 16px 16px 0 0;
  padding: 18px 24px;
}
.claim-header-title { color: #1F4633; }
.claim-event-name { color: #4A4A3A; opacity: 0.85; }

.claim-host-switch {
  color: #4A4A3A;
  opacity: 0.7;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.01em;
}
.claim-host-switch:hover { color: #1F4633; opacity: 1; text-decoration: underline; }

#claim-close-btn, .claim-close-btn {
  color: #4A4A3A;
}
#claim-close-btn:hover, .claim-close-btn:hover {
  color: #1F4633;
  background: #ECE7DA;
}

.claim-panel { padding: 32px 28px; }
.claim-panel-heading {
  color: #1F4633;
  font-size: 15px;
}
.claim-panel-heading::after { color: #1F4633; }

.claim-panel-sub {
  color: #4A4A4A;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}

.claim-email-label,
.claim-confirm-eyebrow,
.claim-cert-eyebrow,
.claim-already-eyebrow,
.claim-sent-to-label,
.claim-step-label {
  color: #4A4A3A;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* Email & generic inputs */
#claim-email-input {
  background: #FFFFFF;
  border: 1.5px solid #D6CFB8;
  color: #0A0A0A;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
}
#claim-email-input::placeholder { color: #B5AC95; opacity: 1; }
#claim-email-input:focus {
  border-color: #1F4633;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(31,70,51,0.10);
}

/* Sent-to chip (masked email pill) */
.claim-sent-to,
#claim-code-sent-to {
  background: #FAF7EE;
  border: 1px solid #ECE7DA;
  color: #1F4633;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* 6-digit code inputs — light variant */
.claim-code-input {
  background: #FFFFFF !important;
  border: 1.5px solid #D6CFB8 !important;
  color: #0A0A0A !important;
  font-family: var(--font-pixel) !important;
  font-size: 18px !important;
  width: 46px !important;
  height: 56px !important;
}
.claim-code-input:focus {
  border-color: #1F4633 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(31,70,51,0.10) !important;
}

/* DEV mode + footer notes */
.claim-dev-note,
.claim-footer-note {
  color: #8A8A78;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* Primary button — forest green */
.claim-btn-primary {
  background: #1F4633;
  color: #F0EAD8;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 8px;
}
.claim-btn-primary:hover { background: #2D5A43; opacity: 1; }
.claim-btn-primary:disabled { background: #E5DFCC; color: #8A8A78; cursor: not-allowed; }

.claim-btn-secondary {
  background: transparent;
  border: 1.5px solid #D6CFB8;
  color: #4A4A3A;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 11px 18px;
}
.claim-btn-secondary:hover { background: #ECE7DA; color: #1F4633; }

/* Certificate card on confirm panels */
.claim-cert-card,
.claim-lc-card {
  background: #FAF7EE;
  border: 1px solid #ECE7DA;
  color: #0A0A0A;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.claim-cert-row,
.claim-lc-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #4A4A4A;
}
.claim-cert-num,
.claim-lc-num {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: #1F4633;
}
.claim-cert-label,
.claim-lc-label {
  color: #8A8A78;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.claim-cert-value,
.claim-lc-value { color: #0A0A0A; }
.claim-cert-badge,
.claim-lc-badge {
  background: rgba(16,185,129,0.18);
  color: #1F4633;
  border: 1px solid rgba(31,70,51,0.15);
}

/* Navi inside claim modal — keep its character on the cream card */
.claim-navi-wrap { display: flex; justify-content: center; margin-bottom: 8px; }
#claim-navi-new,
#claim-navi-existing { background: transparent; }

/* ============================================================
   LIGHT THEME — HEADER overrides (buy + dashboard share this)
   ============================================================ */
html.theme-light .events-header {
  background: linear-gradient(to right, rgba(31,70,51,0.18) 0%, transparent 40%) rgba(245,240,229,0.94);
  border-bottom: 1px solid rgba(31,70,51,0.14);
}
html.theme-light .events-header-home-btn {
  color: rgba(31,70,51,0.65);
  background: rgba(31,70,51,0.05);
  border: 1px solid rgba(31,70,51,0.2);
}
html.theme-light .events-header-home-btn:hover {
  color: #1F4633;
  border-color: rgba(31,70,51,0.5);
  background: rgba(31,70,51,0.09);
  box-shadow: none;
}
html.theme-light .events-header-h1 {
  color: #1F4633;
  text-shadow: none;
}

/* ============================================================
   LIGHT THEME — BUY PAGE overrides
   ============================================================ */

/* Hero text — forest green anchors the whole hero palette */
html.theme-light .buy-hero-title-main {
  color: #1F4633;
}
html.theme-light .buy-hero-tagline-mark {
  color: #1F4633;
  font-style: italic;
  font-weight: 800;
}
html.theme-light .buy-hero-tagline {
  color: #2A2A22;
}

/* Three-act narrative — light theme */
html.theme-light .buy-act-eyebrow {
  color: #1F4633;
  opacity: 0.80;
}
html.theme-light .buy-act-eyebrow::before {
  background: #1F4633;
  opacity: 0.45;
}
html.theme-light .buy-act-headline {
  color: #0A0A0A;
}
html.theme-light .buy-act-body {
  color: #4A4A4A;
}
html.theme-light .buy-act-body strong,
html.theme-light .buy-act-lede .buy-act-key {
  color: #0A0A0A;
}
html.theme-light .buy-act-lede {
  color: #4A4A4A;
}
html.theme-light .buy-point-body {
  color: #4A4A4A;
}
/* Cards keep their dark forest treatment under both themes — they're meant
   to look like real product artifacts. Just soften the shadow under light bg. */
html.theme-light .buy-act-card {
  box-shadow: 0 1px 4px rgba(31,70,51,0.10), 0 0 0 1px rgba(31,70,51,0.10);
}
html.theme-light .buy-act-card:hover {
  box-shadow: 0 12px 32px rgba(31,70,51,0.18), 0 0 0 1px rgba(31,70,51,0.18);
}
html.theme-light .buy-hero-closing-line {
  color: #1F4633;
  animation: buyClosingPulseLight 3.6s ease-in-out infinite;
}
html.theme-light .buy-hero-closing-sub {
  color: #4A4A4A;
}
@keyframes buyClosingPulseLight {
  0%, 100% { text-shadow: 0 0 10px rgba(31,70,51,0.18), 0 0 20px rgba(31,70,51,0.08); }
  50%      { text-shadow: 0 0 14px rgba(31,70,51,0.32), 0 0 28px rgba(31,70,51,0.14); }
}
html.theme-light .buy-hero-divider {
  background: rgba(31,70,51,0.15);
}

/* Form container */
html.theme-light .buy-form-title {
  color: #0A0A0A;
}
html.theme-light .buy-form-sub {
  color: #6A6A58;
}

/* Sections */
html.theme-light .buy-section {
  background: #FFFFFF;
  border: 1px solid rgba(31,70,51,0.12);
}
html.theme-light .buy-section-header {
  background: rgba(31,70,51,0.025);
  border-bottom: 1px solid rgba(31,70,51,0.08);
}
html.theme-light .buy-section-num {
  color: #1F4633;
  border-color: rgba(31,70,51,0.2);
  background: rgba(31,70,51,0.05);
}
html.theme-light .buy-section-title {
  color: #0A0A0A;
}
html.theme-light .buy-section-tag {
  color: #4A4840;
}
html.theme-light .buy-readonly-focus {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.55);
  color: #0A0A0A;
}
html.theme-light .buy-section-footnote { color: #5A584E; }
html.theme-light .buy-auto-pill {
  background: rgba(31,70,51,0.06);
  border-color: rgba(31,70,51,0.18);
  color: #1F4633;
}
html.theme-light .buy-section-prose { color: #4A4840; }
html.theme-light .buy-section-prose em { color: #1F4633; }

/* Root grid — light theme */
html.theme-light .root-tile-foot { background: #F5F0E5; }
html.theme-light .root-tile.is-selected {
  border-color: #1F4633;
  box-shadow: 0 8px 24px -10px rgba(31,70,51,0.35);
}
html.theme-light .root-callout {
  background: rgba(31,70,51,0.04);
  color: #0A0A0A;
}
html.theme-light .root-callout[data-state="empty"] {
  background: rgba(31,70,51,0.02);
  border-left-color: rgba(31,70,51,0.18);
  color: #5A584E;
}

/* Field labels */
html.theme-light .buy-field-label {
  color: #0A0A0A;
}
html.theme-light .buy-field-hint {
  color: #5A584E;
}
html.theme-light .buy-field-inline-label {
  color: #0A0A0A;
  font-weight: 500;
}
html.theme-light .buy-field-stack-label {
  color: #0A0A0A;
  font-weight: 500;
}
html.theme-light .buy-field-stack-label .buy-field-hint {
  color: #6A6A58;
  font-weight: 400;
}

/* Inputs */
html.theme-light .buy-input {
  background: #FAFAF7;
  border: 1px solid rgba(31,70,51,0.2);
  color: #0A0A0A;
}
html.theme-light .buy-input:focus {
  /* Sovereign Blue focus ring per spec §9.7 */
  border-color: var(--blue);
  background: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
}
html.theme-light .buy-input::placeholder {
  color: #C8C2AC;
  opacity: 1;
}
html.theme-light select.buy-input {
  background-color: #FAFAF7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231F4633' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
html.theme-light select.buy-input option {
  background: #FFFFFF;
  color: #0A0A0A;
}
html.theme-light input[type=date].buy-input {
  color-scheme: light;
}
html.theme-light input[type=date].buy-input::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 0.55;
}

/* Slider */
html.theme-light input[type=range].buy-slider {
  background: linear-gradient(
    to right,
    #1F4633 0%,
    #1F4633 var(--slider-pct, 0%),
    rgba(31,70,51,0.18) var(--slider-pct, 0%),
    rgba(31,70,51,0.18) 100%
  );
}
html.theme-light input[type=range].buy-slider::-webkit-slider-thumb {
  background: #1F4633;
  box-shadow: 0 0 8px rgba(31,70,51,0.3);
}
html.theme-light input[type=range].buy-slider::-moz-range-thumb {
  background: #1F4633;
  box-shadow: 0 0 8px rgba(31,70,51,0.3);
}
html.theme-light input[type=range].buy-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(31,70,51,0.2);
}
html.theme-light .buy-pool-num {
  color: #1F4633;
}

/* Read-only computed fields */
html.theme-light .buy-readonly {
  background: rgba(31,70,51,0.04);
  border: 1px dashed rgba(31,70,51,0.2);
  color: #4A4A4A;
}

/* Upload zone */

/* Audit rows */
html.theme-light .buy-audit-row {
  background: rgba(31,70,51,0.03);
  border: 1px solid rgba(31,70,51,0.1);
}
html.theme-light .buy-audit-check {
  color: #1F4633;
}
html.theme-light .buy-audit-label {
  color: #0A0A0A;
}
html.theme-light .buy-audit-value {
  color: #6A6A58;
}
html.theme-light .buy-audit-badge {
  background: rgba(31,70,51,0.08);
  border-color: rgba(31,70,51,0.15);
  color: #1F4633;
}

/* Summary block */
html.theme-light .buy-summary {
  background: #FFFFFF;
  border: 1px solid rgba(31,70,51,0.12);
}
html.theme-light .buy-summary-row {
  border-bottom-color: rgba(31,70,51,0.1);
}
html.theme-light .buy-summary-label {
  color: #4A4A4A;
}
html.theme-light .buy-summary-val {
  color: #0A0A0A;
}
html.theme-light .buy-summary-included {
  color: #1F4633;
}
html.theme-light .buy-summary-total {
  background: rgba(31,70,51,0.05);
}
html.theme-light .buy-summary-total .buy-summary-label,
html.theme-light .buy-summary-total .buy-summary-val {
  color: #0A0A0A;
  font-weight: 700;
}
html.theme-light .buy-tax-note {
  color: #6A6A58;
  border-top-color: rgba(31,70,51,0.1);
}
html.theme-light .buy-tax-check {
  color: #1F4633;
}

/* Action buttons */
html.theme-light .buy-btn-primary {
  background: #1F4633;
  color: #F0EAD8;
  border: none;
  box-shadow: 0 2px 8px rgba(31,70,51,0.2);
}
html.theme-light .buy-btn-primary:hover {
  background: #163325;
  opacity: 1;
}
html.theme-light .buy-btn-secondary {
  background: transparent;
  color: #1F4633;
  border: 1.5px solid rgba(31,70,51,0.35);
}
html.theme-light .buy-btn-secondary:hover {
  background: rgba(31,70,51,0.06);
  border-color: #1F4633;
}

/* Background chrome suppressed on light pages */
html.theme-light #global-glow { opacity: 0; }
html.theme-light #bg-canvas { opacity: 0.06; }
html.theme-light #hacker-grid { opacity: 0; }

/* ============================================================
   BUY PAGE — "Already registered?" return section
   ============================================================ */
/* Inline "already started an event?" line in hero */
.buy-return-label {
  font-size: 13px;
  color: #4A4A3A;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.buy-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--forest, #1F4633);
  color: #F0EAD8;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}
.buy-return-btn:hover {
  background: #163325;
}

/* ============================================================
   NEW EVENT MODAL — textarea field
   ============================================================ */
.new-event-textarea {
  resize: vertical;
  min-height: 62px;
  font-family: var(--font-sans);
  line-height: 1.55;
}

/* ============================================================
   MANAGE OVERLAY — Light theme override (opened from dashboard)
   ============================================================ */
html.theme-light .manage-overlay {
  background: rgba(180,190,184,0.55);
  backdrop-filter: blur(10px);
}
html.theme-light .manage-panel {
  background: #FFFFFF;
  border: 1px solid rgba(31,70,51,0.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}
html.theme-light .manage-panel-title {
  color: #1F4633;
}
html.theme-light #manage-close-overlay {
  color: #8A8A78;
}
html.theme-light #manage-close-overlay:hover {
  color: #0A0A0A;
}
html.theme-light .manage-section-label {
  color: #8A8A78;
}
html.theme-light .manage-url-row {
  background: #FAFAF7;
  border-color: rgba(31,70,51,0.15);
}
html.theme-light #manage-stats {
  background: #FAFAF7;
  border-color: rgba(31,70,51,0.12);
  color: #4A4A4A;
}
html.theme-light #manage-emails {
  background: #FAFAF7;
  border-color: rgba(31,70,51,0.2);
  color: #0A0A0A;
}
html.theme-light #manage-emails:focus {
  border-color: #1F4633;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(31,70,51,0.08);
}
html.theme-light #manage-emails::placeholder {
  color: #C8C2AC;
  opacity: 1;
}
html.theme-light #manage-send-btn {
  background: #1F4633;
  color: #F0EAD8;
}
html.theme-light #manage-send-btn:hover {
  background: #163325;
  opacity: 1;
}
html.theme-light #manage-active-btn {
  border-color: rgba(16,185,129,0.35);
  color: #0D9467;
}
html.theme-light #manage-close-btn {
  border-color: rgba(74,74,74,0.3);
  color: #4A4A4A;
}
html.theme-light #manage-archive-btn {
  border-color: rgba(96,130,180,0.35);
  color: #4A6090;
}
html.theme-light .manage-section-label-row {
  border-bottom-color: rgba(31,70,51,0.08);
}
html.theme-light .manage-tree-row {
  border-bottom-color: rgba(31,70,51,0.07);
  color: #0A0A0A;
}
html.theme-light .manage-tree-dot-claimed { background: #10B981; }
html.theme-light .manage-tree-dot-open    { background: #C8C3B3; }
html.theme-light .manage-filter-btn {
  border-color: rgba(31,70,51,0.2);
  color: #4A4A4A;
}
html.theme-light .manage-filter-btn.active {
  background: #1F4633;
  color: #F0EAD8;
  border-color: #1F4633;
}
html.theme-light .manage-audit-tag {
  color: #6A6A58;
  opacity: 1;
}
html.theme-light .manage-audit-intro {
  color: #4A4A4A;
  border-left-color: #1F4633;
}
html.theme-light .manage-audit-row {
  background: #FAFAF7;
  border-color: rgba(31,70,51,0.1);
}
html.theme-light .manage-audit-row:hover {
  background: rgba(31,70,51,0.04);
  border-color: rgba(31,70,51,0.2);
}
html.theme-light .manage-audit-check { color: #1F4633; }
/* FIX: actual class is .manage-audit-title (was wrongly overriding non-existent .manage-audit-label) */
html.theme-light .manage-audit-title { color: #0A0A0A; }
/* FIX: actual class is .manage-audit-sub (was wrongly overriding non-existent .manage-audit-value) */
html.theme-light .manage-audit-sub { color: #4A4A4A; }
/* Tree list */
html.theme-light .manage-tree-list {
  background: #FFFFFF;
  border-color: rgba(31,70,51,0.12);
}
html.theme-light .manage-tree-row { border-bottom-color: rgba(31,70,51,0.07); }
html.theme-light .manage-tree-row:nth-child(even) { background: #F7F4EE; }
html.theme-light .manage-tree-row:hover { background: rgba(31,70,51,0.04); }
html.theme-light .manage-tree-status { color: #6A6A58; }
html.theme-light .manage-tree-meta { color: #6A6A58; }
html.theme-light .manage-tree-date { color: #1F4633; }
html.theme-light .manage-tree-row.open .manage-tree-date { color: #8A8A78; }
html.theme-light .manage-tree-row.open .manage-tree-dot { background: #C8C3B3; box-shadow: none; }
html.theme-light .manage-tree-overflow { color: #6A6A58; }
html.theme-light .manage-audit-badge {
  background: rgba(31,70,51,0.08);
  border-color: rgba(31,70,51,0.15);
  color: #1F4633;
}

/* ============================================================
   EVENT CERTIFICATE PREVIEW (NFT "mint preview" component)
   ============================================================ */
/* ── Wallet-style cert card: bordered frame · image + meta inside ─────── */
.cert-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  max-width: 380px;
}

/* Bordered card wrap — matches wallet's .nft-card aesthetic */
.cert-preview-card {
  position: relative;
  background: linear-gradient(180deg, #0E2118 0%, #0A1812 100%);
  border: 1.5px solid rgba(16,185,129,0.42);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(16,185,129,0.06),
    0 12px 32px rgba(0,0,0,0.45),
    inset 0 0 60px rgba(16,185,129,0.04);
  isolation: isolate;
}
/* Subtle grid texture overlay across whole card */
.cert-preview-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(16,185,129,0.045) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(16,185,129,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.cert-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0A1812;
  z-index: 2;
  border-bottom: 1px solid rgba(16,185,129,0.20);
}
.cert-preview-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
}
/* RESTORATION-style pill — top-left overlay on image */
.cert-preview-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #7FFFD4;
  background: rgba(8,20,14,0.78);
  border: 1px solid rgba(16,185,129,0.55);
  border-radius: 3px;
  padding: 6px 9px 5px;
  text-shadow: 0 0 8px rgba(16,185,129,0.4);
  opacity: 0;
}

/* Info area inside the card, below image */
.cert-preview-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}
.cert-preview-phase-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -4px;
}
.cert-preview-phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #7FFFD4;
}
.cert-preview-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: #7FFFD4;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-top: 2px;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(16,185,129,0.25);
  word-break: break-word;
}
.cert-preview-bigline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(240,234,216,0.78);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.cert-preview-bigline-roots {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: #7FFFD4;
  letter-spacing: 0.04em;
  margin-left: 2px;
}
.cert-preview-species {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(240,234,216,0.70);
  letter-spacing: 0.02em;
  font-style: italic;
  margin-top: 8px;
}
.cert-preview-region {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(240,234,216,0.62);
  letter-spacing: 0.02em;
}
.cert-preview-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(16,185,129,0.62);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scanline (decorative sweep during animate) */
.cert-preview-scanline {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(180deg, rgba(127,255,212,0) 0%, rgba(127,255,212,0.9) 50%, rgba(127,255,212,0) 100%);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}

/* Legacy nodes (kept as no-ops so old selectors don't break) */
.cert-preview-scrim,
.cert-preview-leaf,
.cert-preview-content,
.cert-preview-top,
.cert-preview-bottom,
.cert-preview-pool,
.cert-preview-badge,
.cert-preview-check,
.cert-preview-cat-row,
.cert-preview-num,
.cert-preview-line { display: none; }

/* Caption below the frame */
.cert-preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 380px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: #6A6A58;
  line-height: 1.5;
}
.cert-preview-link {
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #2563EB;
  cursor: pointer;
  padding: 4px 6px;
  letter-spacing: 0.03em;
}
.cert-preview-link:hover { text-decoration: underline; }

/* Animation sequence (only when .cert-animate) */
.cert-preview.cert-animate .cert-preview-image  { animation: certImageIn 0.45s 0.05s ease-out forwards; }
.cert-preview.cert-animate .cert-preview-pill   { animation: certFadeIn 0.4s 0.55s ease-out forwards; }
.cert-preview.cert-animate .cert-preview-scanline { animation: certScan 0.7s 0.80s ease-out forwards; }
.cert-preview.cert-animate .cert-preview-frame  { animation: certFramePulse 0.8s 1.20s ease-out 1; }

/* Non-animated states render final immediately */
.cert-preview:not(.cert-animate) .cert-preview-image,
.cert-preview:not(.cert-animate) .cert-preview-pill { opacity: 1; }
.cert-preview:not(.cert-animate) .cert-preview-image { filter: saturate(1.05) brightness(0.92); }

@keyframes certImageIn {
  0%   { opacity: 0; filter: blur(8px) saturate(1.05) brightness(0.88); }
  100% { opacity: 1; filter: blur(0) saturate(1.05) brightness(0.88); }
}
@keyframes certFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes certSlideDown {
  0%   { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes certSlideUp {
  0%   { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes certFadeLeaf {
  0%   { opacity: 0; transform: rotate(-14deg) scale(0.92); }
  100% { opacity: 0.30; transform: rotate(-8deg) scale(1); }
}
@keyframes certScan {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 24px); opacity: 0; }
}
@keyframes certBadgeIn {
  0%   { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes certPulse {
  0%   { background: linear-gradient(180deg, rgba(8,20,14,0) 0%, rgba(8,20,14,0.8) 60%, rgba(8,20,14,0.95) 100%); }
  40%  { background: linear-gradient(180deg, rgba(201,122,46,0.15) 0%, rgba(31,70,51,0.85) 60%, rgba(8,20,14,0.95) 100%); }
  100% { background: linear-gradient(180deg, rgba(8,20,14,0) 0%, rgba(8,20,14,0.8) 60%, rgba(8,20,14,0.95) 100%); }
}
@keyframes certFramePulse {
  0%   { box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04); }
  50%  { box-shadow: 0 0 0 3px rgba(31,70,51,0.18), 0 8px 24px rgba(31,70,51,0.25); }
  100% { box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04); }
}

/* ============================================================
   EVENT DETAIL VIEW (host per-event page)
   ============================================================ */
/* ============================================================
   EVENT DETAIL PAGE — vertical (single-column) layout
   ============================================================ */
.ed-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 28px 72px;
}

/* ── Hero poster: full-width image + gradient scrim + text overlay ── */
.ed-hero {
  position: relative;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  margin-bottom: 0;
  background: #1A2F1F;
  border: 1.5px solid rgba(31,70,51,0.10);
  border-bottom: none;
}
.ed-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1A2F1F;
  opacity: 0.72;
}
.ed-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,24,18,0.04) 0%,
    rgba(10,24,18,0.18) 40%,
    rgba(10,24,18,0.76) 80%,
    rgba(10,24,18,0.92) 100%
  );
}
.ed-hero-top {
  position: absolute;
  top: 20px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
/* reuse .ed-root-tag — pill floats top-left over dark scrim */
.ed-hero-top .ed-root-tag {
  color: rgba(245,240,229,0.92);
  background: rgba(31,70,51,0.55);
  border: 1px solid rgba(245,240,229,0.18);
  backdrop-filter: blur(6px);
}
.ed-hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px 26px;
  z-index: 2;
}
.ed-hero-evtnum {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,229,0.56);
  margin-bottom: 8px;
}
.ed-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 800;
  color: #F5F0E5;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.ed-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(245,240,229,0.65);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.ed-hero-sep {
  color: rgba(245,240,229,0.32);
}
@media (max-width: 640px) {
  .ed-hero { aspect-ratio: 4 / 3; border-radius: 14px; }
  .ed-hero-title { font-size: 20px; }
  .ed-hero-bottom { padding: 16px 18px 18px; }
}

/* ── Stats strip (horizontal, below hero) ───────────────────── */
.ed-stats-strip {
  display: flex;
  align-items: stretch;
  background: #FFFFFF;
  border: 1.5px solid rgba(31,70,51,0.10);
  border-top: none;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  margin-bottom: 28px;
}
.ed-strip-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 16px;
  text-align: center;
  gap: 5px;
}
.ed-strip-div {
  width: 1px;
  background: rgba(31,70,51,0.10);
  margin: 12px 0;
  flex-shrink: 0;
}
.ed-strip-val {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 2.2vw, 22px);
  color: #1F4633;
  line-height: 1.1;
}
.ed-strip-val-money {
  color: #C97A2E;
}
.ed-strip-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  color: #6A6A58;
  text-transform: uppercase;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .ed-stats-strip { flex-wrap: wrap; border-radius: 0 0 12px 12px; }
  .ed-strip-stat { flex: 1 0 40%; border-bottom: 1px solid rgba(31,70,51,0.08); }
  .ed-strip-stat:last-child, .ed-strip-stat:nth-last-child(2) { border-bottom: none; }
  .ed-strip-div { display: none; }
  .ed-strip-val { font-size: 14px; }
}

/* Top meta row: root tag · date · host */
.ed-top-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.ed-root-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  padding: 4px 10px;
  border-radius: 999px;
  color: #F5F0E5;
  background: var(--root-mid, #1F4633);
  text-transform: uppercase;
}
.ed-meta-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #6A6A58;
  letter-spacing: 0.04em;
}
.ed-meta-sep { color: #B5B0A0; font-family: 'JetBrains Mono', monospace; }

/* Event name */
.ed-info-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #1F4633;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
}

/* ── Light image card (full container width, 16:9) ───────── */
.ed-image-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(31,70,51,0.14);
  background: #F0EBE0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
  margin-bottom: 20px;
}
.ed-image-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #D6CEBC;
}
.ed-image-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(31,70,51,0.10);
  background: #FAF7EE;
}
.ed-image-evtnum {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: rgba(31,70,51,0.52);
  text-transform: uppercase;
  flex: 1;
}
.ed-image-chain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(31,70,51,0.38);
  text-transform: uppercase;
}

/* compat — hidden cert-wrap no-op */
.ed-cert-wrap { display: none !important; }
/* unused two-col nodes */
.ed-layout, .ed-col-cert, .ed-col-info, .ed-info-eyebrow,
.ed-info-evtnum, .ed-info-meta, .ed-info-sep { /* kept; no-op */ }

/* ── Stats panel ─────────────────────────────────────────── */
/* ── Two-col bottom: claim activity + stats sidebar ─────── */
.ed-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: flex-start;
  margin-top: 8px;
}
@media (max-width: 860px) {
  .ed-grid { grid-template-columns: 1fr; }
}
.ed-col-main { min-width: 0; }
.ed-col-side {
  background: #FAF7EE;
  border: 1.5px solid rgba(31,70,51,0.10);
  border-radius: 14px;
  padding: 22px 20px;
}
.ed-stat-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.ed-stat { /* single stat row in sidebar */ }
.ed-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #6A6A58;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ed-stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 26px;
  color: #1F4633;
  line-height: 1.1;
}
/* Total value row inside sidebar */
.ed-stat-total-row {
  padding-top: 16px;
  border-top: 1px solid rgba(31,70,51,0.12);
  margin-bottom: 20px;
}
.ed-stat-total-val {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: #1F4633;
  letter-spacing: 0.02em;
  margin-top: 6px;
  margin-bottom: 6px;
}
.ed-stat-price-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(31,70,51,0.48);
  letter-spacing: 0.02em;
  font-style: italic;
}

/* no-op for removed standalone stats panel */
.ed-stats-panel, .ed-stats-row, .ed-stat-item, .ed-stat-item-label,
.ed-stat-item-val, .ed-stats-divider, .ed-stats-total-row,
.ed-stats-total-label, .ed-stats-total-val, .ed-stats-price-note { /* unused */ }

/* Host quote */
.ed-quote {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4A4840;
  margin: 0 0 24px;
  padding-left: 14px;
  border-left: 2px solid rgba(31,70,51,0.18);
}

/* ── Action buttons (vertical stack in right col) ────────── */
.ed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(31,70,51,0.10);
}
.ed-action {
  flex: 0 0 auto;
  padding: 10px 18px;
  background: #FFFFFF;
  color: #1F4633;
  border: 1.5px solid rgba(31,70,51,0.22);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  letter-spacing: 0.01em;
  text-align: left;
}
.ed-action:hover {
  background: rgba(31,70,51,0.05);
  border-color: rgba(31,70,51,0.40);
}
.ed-action-primary,
.ed-action[data-action="send-gifts"] {
  background: #1F4633;
  color: #F5F0E5;
  border-color: #1F4633;
  font-weight: 600;
}
.ed-action-primary:hover,
.ed-action[data-action="send-gifts"]:hover {
  background: #163325;
  border-color: #163325;
}
.ed-action[data-action="opensea"] {
  background: #2081E2;
  color: #FFFFFF;
  border-color: #2081E2;
}
.ed-action[data-action="opensea"]:hover {
  background: #1868B7;
  border-color: #1868B7;
}
.ed-action-danger,
.ed-action[data-action="close-event"] {
  border-color: rgba(189,75,75,0.25);
  color: #993333;
}
.ed-action-danger:hover,
.ed-action[data-action="close-event"]:hover {
  background: #993333;
  border-color: #993333;
  color: #FFF;
}

/* On-chain info */
.ed-on-chain {
  padding-top: 20px;
  border-top: 1px solid rgba(31,70,51,0.12);
}
.ed-on-chain-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #6A6A58;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ed-on-chain-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 0;
  color: #4A4A4A;
  gap: 10px;
}
.ed-on-chain-row code {
  color: #1F4633;
  background: rgba(31,70,51,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  word-break: break-all;
  text-align: right;
}

/* ── Claim activity (full width below the 2-col) ─────────── */
.ed-activity-section {
  padding-top: 32px;
  border-top: 1px solid rgba(31,70,51,0.10);
}
.ed-section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  font-weight: 400;
  color: #0A0A0A;
  margin: 0 0 16px 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ed-activity-list {
  background: #FFFFFF;
  border: 1px solid rgba(31,70,51,0.10);
  border-radius: 14px;
  overflow: hidden;
}
.ed-activity-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid #F0EBD9;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.ed-activity-row:last-child { border-bottom: none; }
.ed-activity-row:hover { background: #FAF7EE; }
.ed-activity-id {
  color: #1F4633;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ed-activity-recipient {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4A4A4A;
}
.ed-activity-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16,185,129,0.4);
  flex-shrink: 0;
}
.ed-activity-date { color: #8A8A78; }
.ed-activity-empty {
  padding: 28px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6A6A58;
}
.ed-activity-overflow {
  padding: 12px 18px;
  background: #FAF7EE;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #6A6A58;
  border-top: 1px solid #F0EBD9;
}

/* Legacy selectors (from old pool-side sidebar — kept as no-ops) */
.ed-top-meta,
/* ed-grid / ed-col-side / ed-stat-block — restored above */

/* ============================================================
   RECENT ACTIVITY TIMELINE (dashboard)
   ============================================================ */

/* Send-gift overlay placement — the preview at top of manage panel */
.manage-cert-block {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(31,70,51,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.manage-cert-block-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1F4633;
  margin-bottom: 12px;
  opacity: 0.7;
  align-self: flex-start;
}
/* Bigger card in send-gifts — overrides base max-width, fills panel */
.manage-cert-block .cert-preview {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}
.manage-cert-block .cert-preview-frame {
  aspect-ratio: 4 / 3;
}
.manage-cert-block .cert-preview-info {
  padding: 22px 26px 26px;
  gap: 8px;
}

/* ============================================================
   EVENT PAGE · COVER BANNER
   ============================================================ */
.event-cover-banner {
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  line-height: 0;
}
.event-cover-banner-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.event-cover-banner-overlay {
  position: absolute;
  bottom: 8%;
  left: 7%;
  right: 7%;
}
.event-cover-banner-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 2.4vw, 28px);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* ============================================================
   MANAGE · EVENT COVER
   ============================================================ */
.manage-cover-moment-tag {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.manage-cover-gen-btn {
  background: rgba(5,252,196,0.08);
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-bottom: 16px;
}
.manage-cover-gen-btn:hover:not(:disabled) { background: rgba(5,252,196,0.16); }
.manage-cover-gen-btn:disabled { opacity: 0.5; cursor: wait; }

.manage-cover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.manage-cover-tile {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  cursor: default;
  transition: border-color 0.2s;
}
.manage-cover-tile.is-ready { cursor: pointer; }
.manage-cover-tile.is-ready:hover { border-color: var(--accent); }
.manage-cover-tile.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.manage-cover-tile.is-loading {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07));
  animation: cover-pulse 1.8s ease-in-out infinite;
}
@keyframes cover-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}

.manage-cover-tile-paint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  opacity: 0.5;
  letter-spacing: 0.08em;
}

.manage-cover-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.manage-cover-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.manage-cover-selected {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.manage-cover-img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.manage-cover-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.manage-cover-natural { color: var(--accent); opacity: 0.7; }

.manage-cover-soon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.5;
  letter-spacing: 0.04em;
  padding: 12px 0;
}

/* ============================================================
   TARGET CURSOR — vanilla port of React Bits component
   Used on the on-board hero. Applied to .cursor-target elements
   (e.g. each .buy-act). Initialized by EVT_TARGET_CURSOR.init().
   ============================================================ */
/* Native cursor hidden across the entire hero section (above the form) */
.buy-hero,
.buy-hero * {
  cursor: none !important;
}

.target-cursor-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  /* Always visible — cursor is on everywhere on the events page */
  opacity: 1;
  transition: opacity 0.15s ease;
}

.target-cursor-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.target-cursor-corner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  will-change: transform;
}
.target-cursor-corner.corner-tl { transform: translate(-150%, -150%); border-right: none; border-bottom: none; }
.target-cursor-corner.corner-tr { transform: translate( 50%, -150%); border-left:  none; border-bottom: none; }
.target-cursor-corner.corner-br { transform: translate( 50%,  50%);  border-left:  none; border-top:    none; }
.target-cursor-corner.corner-bl { transform: translate(-150%, 50%);  border-right: none; border-top:    none; }

/* ============================================================
   ACTOR GATE · "Who is this event for?"
   Sits between hero tagline and the six-roots block.
   Hidden via [hidden] / inline display:none once an answer is recorded.
   ============================================================ */
/* ── Gate steps: STEP 01 (identity) + STEP 02 (roots) ───────────────────── */

/* Step 01 container */
.buy-gate-step {
  max-width: 820px;
  margin: 40px auto 0;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(31,70,51,0.10);
}

/* Shared step header */
.bgs-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.bgs-num {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.06em;
  line-height: 1;
}
.bgs-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(31,70,51,0.52);
}

/* Two choice cards */
.bgs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 580px;
}
@media (max-width: 560px) {
  .bgs-cards { grid-template-columns: 1fr; }
}
.bgs-card {
  background: rgba(255,255,255,0.60);
  border: 1.5px solid rgba(31,70,51,0.16);
  border-radius: 12px;
  padding: 24px 22px 22px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.18s ease, border-color 0.18s ease,
              background 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}
.bgs-card:hover {
  transform: translateY(-2px);
  border-color: #1F4633;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 28px rgba(31,70,51,0.10);
}
.bgs-card.is-selected {
  border-color: #1F4633;
  background: rgba(31,70,51,0.07);
  box-shadow: 0 0 0 3px rgba(31,70,51,0.10);
}
.bgs-card-label {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #1F4633;
  letter-spacing: 0.04em;
}
.bgs-card-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(10,10,10,0.44);
  line-height: 1.5;
}

/* Step 02: roots — always visible (enterprise selected by default) */
#buy-hero-roots {
  display: block;
  max-width: 820px;
  margin: 36px auto 0;
}
.bgs-header-02 {
  margin-bottom: 20px;
}
@keyframes bgsReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #buy-hero-roots.is-revealed { animation: none; }
}

/* ── Actor visibility helpers ─────────────────────────────────
   When body has .actor-personal, hide .a-events-only nodes,
   and vice versa. Apply at body level so both buy view + modal benefit.
   ============================================================ */
body.actor-personal .a-enterprise-only,
body.actor-personal .a-events-only,
body.actor-events .a-personal-only,
body.actor-enterprise .a-personal-only {
  display: none !important;
}

/* ── Enterprise EW grid — per-tile palette shift ─────────────────────────
   Each root tile gets its own filter so it stays in its colour family but
   lands on a distinct shade — the enterprise "sibling" of the personal tone.
   Composition is identical; only the pigment register changes.           */

/* Root 1 · Love → Partnership  (rose-pink → deeper crimson) */
.root-grid.mode-enterprise [data-root-key="intertwined"] .root-tile-swatch img {
  filter: hue-rotate(-18deg) saturate(0.88) brightness(0.96);
}
/* Root 2 · Beginning → Launch  (warm amber → terracotta) */
.root-grid.mode-enterprise [data-root-key="just_begun"] .root-tile-swatch img {
  filter: hue-rotate(-24deg) saturate(0.90) brightness(0.97);
}
/* Root 3 · Memory → Legacy  (soft lavender → cool indigo) */
.root-grid.mode-enterprise [data-root-key="continuing"] .root-tile-swatch img {
  filter: hue-rotate(24deg) saturate(0.85) brightness(0.96);
}
/* Root 4 · Healing → Resilience  (bright teal → steel-blue) */
.root-grid.mode-enterprise [data-root-key="holding"] .root-tile-swatch img {
  filter: hue-rotate(20deg) saturate(0.84) brightness(0.95);
}
/* Root 5 · Gratitude → Stewardship  (warm gold → deep amber) */
.root-grid.mode-enterprise [data-root-key="nourishing"] .root-tile-swatch img {
  filter: hue-rotate(-12deg) saturate(0.92) brightness(0.96);
}
/* Root 6 · Together → Engagement  (forest green → deep teal-forest) */
.root-grid.mode-enterprise [data-root-key="connected"] .root-tile-swatch img {
  filter: hue-rotate(12deg) saturate(0.86) brightness(0.95);
}
.root-grid.mode-enterprise .root-tile-foot {
  background: #ECE6D6;
}
.root-grid.mode-enterprise .root-tile-name {
  letter-spacing: 0.02em;
}

/* ── Dashboard actor badge — top-right of #db-hero ───────────── */
.db-actor-badge {
  position: absolute;
  top: 22px;
  right: 90px; /* leaves room for the navi canvas */
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(240,234,216,0.08);
  border: 1px solid rgba(240,234,216,0.22);
  color: rgba(240,234,216,0.78);
  white-space: nowrap;
}
.db-actor-badge.is-enterprise {
  background: rgba(127,255,212,0.10);
  border-color: rgba(127,255,212,0.45);
  color: #7FFFD4;
}
.db-actor-badge.is-demo {
  background: rgba(201,122,46,0.12);
  border-color: rgba(201,122,46,0.45);
  color: #E3A053;
}
@media (max-width: 720px) {
  .db-actor-badge { top: 14px; right: 14px; font-size: 9px; }
}

/* ── Demo link in header ──────────────────────────────────────── */
.header-demo-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(127,255,212,0.78);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px dashed rgba(127,255,212,0.42);
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-right: 10px;
}
.header-demo-link:hover {
  color: #7FFFD4;
  border-color: #7FFFD4;
  background: rgba(127,255,212,0.06);
}
html.theme-light .header-demo-link {
  color: #1F4633;
  border-color: rgba(31,70,51,0.32);
}
html.theme-light .header-demo-link:hover {
  background: rgba(31,70,51,0.06);
  border-color: #1F4633;
}

/* ============================================================
   SHUFFLE TEXT — vanilla port of React Bits Shuffle component
   Characters inside .buy-hero-title-main after EVT_SHUFFLE.init().
   ============================================================ */
.sh-char {
  display: inline;
  /* no other styles — inherits font, color, size from parent */
}
.sh-space {
  /* non-breaking gap between words */
  display: inline;
  white-space: pre;
}
/* Prevent character-level wrapping during scramble */
.buy-hero-title-main.is-shuffled {
  white-space: nowrap;
}

/* ── New-event gate ─────────────────────────────────────────── */
.ne-gate {
  padding: 4px 0 28px;
}
.ne-gate-eyebrow {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.10em;
  color: #1F4633;
  padding: 6px 12px;
  border: 1px solid rgba(31,70,51,0.22);
  border-radius: 4px;
  background: rgba(31,70,51,0.05);
  margin-bottom: 14px;
}
.ne-gate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ne-gate-card {
  padding: 10px 12px;
  border: 1.5px solid rgba(31,70,51,0.18);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ne-gate-card:hover { border-color: #1F4633; background: rgba(31,70,51,0.04); }
.ne-gate-card.is-selected { border-color: #1F4633; background: rgba(31,70,51,0.08); }
.ne-gate-card-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #1F4633;
}
.ne-gate-card-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

/* ── Event card name row + type pill (bottom) ───────────────── */
.db-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.db-card-type-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1.6;
  align-self: center;
}
.db-card-type-personal {
  background: rgba(201,122,46,0.12);
  color: #C97A2E;
  border: 1px solid rgba(201,122,46,0.25);
}
.db-card-type-events {
  background: rgba(31,70,51,0.10);
  color: #1F4633;
  border: 1px solid rgba(31,70,51,0.20);
}

/* ============================================================
   Cover Reveal Modal — post-publish "pick 1 of 4 natural events"
   ============================================================ */

.cover-reveal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 6, 7, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: cover-reveal-fade-in 0.30s ease both;
}
.cover-reveal-overlay.visible { display: flex; }
@keyframes cover-reveal-fade-in { from { opacity: 0; } to { opacity: 1; } }

.cover-reveal-panel {
  width: 100%;
  max-width: 940px;
  background: rgba(10, 14, 18, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 48px 40px;
  max-height: 92vh;
  overflow-y: auto;
  text-align: center;
  color: var(--text);
  animation: cover-reveal-panel-in 0.40s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cover-reveal-panel-in {
  from { opacity: 0; transform: scale(0.96) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cover-reveal-eyebrow {
  margin: 0 auto 36px;
  max-width: 680px;
}
.cover-reveal-eyebrow .cr-line1 {
  display: block;
  font-family: var(--font-pixel);
  font-size: clamp(13px, 1.4vw, 17px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 14px;
}
.cover-reveal-eyebrow .cr-line2 {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(192, 255, 242, 0.62);
  text-transform: uppercase;
}

.cover-reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.cover-reveal-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.35s ease, outline-color 0.2s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.cover-reveal-tile[disabled] { cursor: default; }
.cover-reveal-tile:not([disabled]):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.cover-reveal-tile-skel {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 70%
  );
  background-size: 200% 100%;
  animation: cover-reveal-skel 1.4s linear infinite;
  opacity: 1;
  transition: opacity 0.4s ease;
}
@keyframes cover-reveal-skel {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.cover-reveal-tile.is-ready .cover-reveal-tile-skel { opacity: 0; }

.cover-reveal-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.cover-reveal-tile.is-ready .cover-reveal-tile-img { opacity: 1; }

.cover-reveal-tile-num {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.cover-reveal-tile.is-picked {
  outline-color: var(--accent);
  transform: scale(1.04);
  box-shadow: 0 0 32px rgba(5, 252, 196, 0.30);
}
.cover-reveal-tile.is-dimmed { opacity: 0.25; }

.cover-reveal-footnote {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(192, 255, 242, 0.45);
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .cover-reveal-panel { padding: 32px 20px 28px; border-radius: 14px; }
  .cover-reveal-eyebrow .cr-line1 { font-size: 11px; }
  .cover-reveal-eyebrow .cr-line2 { font-size: 11px; }
}

html.theme-light .cover-reveal-panel {
  background: rgba(244, 239, 228, 0.98);
  border-color: rgba(31, 70, 51, 0.14);
}
html.theme-light .cover-reveal-eyebrow .cr-line1 { color: #1F4633; }
html.theme-light .cover-reveal-eyebrow .cr-line2 { color: rgba(31, 70, 51, 0.58); }
html.theme-light .cover-reveal-tile {
  background: #FAFAF7;
  border-color: rgba(31, 70, 51, 0.18);
}
html.theme-light .cover-reveal-tile:not([disabled]):hover {
  box-shadow: 0 8px 28px rgba(31, 70, 51, 0.18);
}
html.theme-light .cover-reveal-tile-skel {
  background: linear-gradient(
    100deg,
    rgba(31, 70, 51, 0.04) 30%,
    rgba(31, 70, 51, 0.10) 50%,
    rgba(31, 70, 51, 0.04) 70%
  );
  background-size: 200% 100%;
}
html.theme-light .cover-reveal-tile-num { color: rgba(255, 255, 255, 0.92); }
html.theme-light .cover-reveal-tile.is-picked {
  outline-color: #1F4633;
  box-shadow: 0 0 32px rgba(31, 70, 51, 0.22);
}
html.theme-light .cover-reveal-footnote { color: rgba(31, 70, 51, 0.55); }

/* ── Global footer (buy-view + dashboard-view only) ─────────────── */
.evt-footer {
  margin-top: 80px;
  padding: 32px 24px 40px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(31, 70, 51, 0.32);
  border-top: 1px solid rgba(31, 70, 51, 0.06);
}
.evt-footer p { margin: 0; line-height: 1.7; }
.evt-footer p:first-child { color: rgba(31, 70, 51, 0.45); }

/* ============================================================
   Part 2/3 (0527) — header logo, hero cover-upload button,
   full-width Send gifts, ON-CHAIN chip bar
   ============================================================ */

/* Header logo button (events header, replaces ← MAIN text) */
.events-header-logo-btn {
  padding: 4px 6px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.events-header-logo { height: 20px; width: auto; display: block; opacity: 1; }

/* Logout button (Part 7) — visible only on dashboard + detail */
.header-logout-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(31, 70, 51, 0.70);
  background: transparent;
  border: 1px solid rgba(31, 70, 51, 0.20);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.header-logout-btn:hover {
  color: #1F4633;
  border-color: rgba(31, 70, 51, 0.50);
  background: rgba(31, 70, 51, 0.05);
}

/* Hero-integrated cover upload button (replaces action-bar entry) */
.ed-hero-top { display: flex; align-items: center; }
.ed-hero-top .ed-root-tag { /* keep left-side root tag */ }
.ed-cover-upload-hero-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.94);
  border: none;
  color: #1F4633;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.ed-cover-upload-hero-btn:hover {
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}

/* Send gifts — override original flex-pill .ed-action to be full-width block */
.ed-actions {
  display: block;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.ed-action {
  flex: none;
  display: block;
  width: 100%;
  background: #1F4633;
  color: #F5F0E5;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 24px;
  border-radius: 12px;
  border: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease;
  margin-bottom: 16px;
}
.ed-action:hover { background: #163325; }

/* ON-CHAIN bar — inline centered chips below #ed-actions */
.ed-onchain-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.ed-onchain-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(31,70,51,0.40);
}
.ed-onchain-bar-sep {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(31,70,51,0.15);
}
.ed-onchain-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 20px;
  border: 1.5px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.ed-onchain-bar-link[data-action="opensea"] {
  border-color: #2081E2;
  background: rgba(32,129,226,0.06);
  color: #1868B7;
}
.ed-onchain-bar-link[data-action="opensea"]:hover {
  border-color: #1868B7;
  background: rgba(32,129,226,0.14);
  box-shadow: 0 3px 12px rgba(32,129,226,0.18);
}
.ed-onchain-bar-link[data-action="polygonscan"] {
  border-color: #8247E5;
  background: rgba(130,71,229,0.06);
  color: #6930C3;
}
.ed-onchain-bar-link[data-action="polygonscan"]:hover {
  border-color: #6930C3;
  background: rgba(130,71,229,0.13);
  box-shadow: 0 3px 12px rgba(130,71,229,0.16);
}
.ed-onchain-bar-link:hover .ed-onchain-bar-arrow { transform: translate(1px, -1px); }
.ed-onchain-bar-arrow { transition: transform 0.18s ease; }
