:root {
  --bg: #050608;
  --bg-2: #0a0c12;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --surface: #101218;
  --surface-2: #171922;
  --text: #f7f8f8;
  --muted: #9ca3af;
  --faint: #62666d;
  --accent: #5e6ad2;
  --accent-2: #7170ff;
  --cyan: #35e7c4;
  --green: #20d48a;
  --red: #ff5f7a;
  --orange: #ffb86b;
  --border: rgba(255, 255, 255, 0.085);
  --border-soft: rgba(255, 255, 255, 0.055);
  --shadow: rgba(0, 0, 0, 0.42) 0 28px 90px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: "cv01", "ss03";
  background:
    radial-gradient(circle at 18% -10%, rgba(94,106,210,.22), transparent 34rem),
    radial-gradient(circle at 82% 8%, rgba(53,231,196,.11), transparent 28rem),
    linear-gradient(180deg, #050608 0%, #080a0f 45%, #050608 100%);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 80;
}
.page-glow { position: fixed; width: 38rem; height: 38rem; border-radius: 50%; filter: blur(80px); opacity: .22; pointer-events: none; z-index: -1; }
.glow-one { top: 10rem; left: -16rem; background: var(--accent); }
.glow-two { top: 36rem; right: -18rem; background: var(--cyan); }

.sunset-banner {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 18px;
  color: #dbe0ea;
  background: linear-gradient(90deg, rgba(32,212,138,.12), rgba(94,106,210,.16), rgba(255,184,107,.11));
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.sunset-banner a { color: var(--cyan); font-weight: 700; }
.pulse, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }
.pulse { animation: ping 1.8s infinite; }
@keyframes ping { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.22); } }

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 26px;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5,6,8,.86), rgba(5,6,8,.56));
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.045em; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #1b1d28); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 34px rgba(94,106,210,.42); font-family: var(--mono); }
nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 13px; font-weight: 520; }
nav a:hover, nav a.active { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search-pill { display: flex; align-items: center; gap: 9px; width: 290px; border: 1px solid var(--border); background: rgba(255,255,255,.035); color: var(--muted); border-radius: 12px; padding: 10px 12px; text-align: left; }
.search-pill span { font-family: var(--mono); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 2px 5px; font-size: 11px; }

.btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 15px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.065); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #30368d); border-color: rgba(130,143,255,.52); box-shadow: 0 16px 38px rgba(94,106,210,.25); }
.btn-secondary { background: rgba(255,255,255,.045); }
.btn-lg { padding: 14px 18px; font-size: 15px; }

main { max-width: 1320px; margin: 0 auto; padding: 38px 26px 96px; }
.shell-grid, .hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); gap: 26px; align-items: center; }
.hero { min-height: 660px; }
.eyebrow { color: var(--cyan); font-weight: 760; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin: 0 0 15px; }
h1 { font-size: clamp(58px, 8vw, 112px); line-height: .88; letter-spacing: -0.082em; margin: 0; max-width: 780px; font-weight: 650; }
h2 { font-size: clamp(32px, 4.6vw, 58px); line-height: .97; letter-spacing: -0.058em; margin: 0 0 14px; font-weight: 620; }
h3 { letter-spacing: -0.035em; margin: 0; }
p { color: var(--muted); line-height: 1.62; }
.lede { font-size: 19px; max-width: 700px; margin: 26px 0; color: #b8beca; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contract-strip { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 7px 7px 13px; border: 1px solid var(--border); background: rgba(255,255,255,.035); border-radius: 13px; color: var(--muted); font-size: 13px; }
.contract-strip button { border: 0; background: rgba(94,106,210,.18); color: white; border-radius: 9px; padding: 8px 10px; font-family: var(--mono); }

.terminal-hero, .terminal-panel, .activity-card, .reward-card, .launchpad-band, .market-table-wrap {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.068), rgba(255,255,255,.032));
  box-shadow: var(--shadow);
}
.terminal-hero { padding: 14px; border-radius: 28px; overflow: hidden; }
.terminal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 8px 16px; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.terminal-top div { display: flex; gap: 6px; }
.terminal-top div span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.terminal-top div span:first-child { background: var(--red); }
.terminal-top div span:nth-child(2) { background: var(--orange); }
.terminal-top div span:nth-child(3) { background: var(--green); }
.featured-spotlight { border: 1px solid var(--border); border-radius: 22px; background: rgba(0,0,0,.24); overflow: hidden; }
.spotlight-art { height: 320px; position: relative; display: grid; place-items: end start; padding: 24px; overflow: hidden; }
.spotlight-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 22%, rgba(255,255,255,.65), transparent 3rem), radial-gradient(circle at 74% 45%, rgba(53,231,196,.4), transparent 8rem), linear-gradient(135deg, #272f88, #0f1119 52%, #23c5a8); }
.spotlight-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 28px); mask-image: linear-gradient(to bottom, transparent, #000); }
.spotlight-art span { position: relative; z-index: 1; font-size: 58px; font-weight: 780; letter-spacing: -.09em; text-shadow: 0 20px 50px #000; }
.spotlight-copy { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px; }
.spotlight-copy p { margin: 0 0 4px; font-size: 12px; }
.spotlight-copy h2 { font-size: 28px; margin: 0; }
.mini-stats, .status-grid, .stats-grid { display: grid; gap: 10px; }
.mini-stats { grid-template-columns: repeat(3, 1fr); padding: 0 18px 18px; }
.mini-stats div, .status-grid div, .market-strip div { padding: 14px; border: 1px solid var(--border-soft); background: rgba(255,255,255,.035); border-radius: 15px; }
.mini-stats span, .status-grid span, .market-strip span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.mini-stats strong, .market-strip strong { font-size: 24px; letter-spacing: -.04em; }
.mini-stats small { color: var(--faint); margin-left: 4px; font-family: var(--mono); }
.orderbook-card { margin-top: 12px; padding: 16px; border-radius: 20px; background: rgba(0,0,0,.24); border: 1px solid var(--border-soft); }
.depth-row { display: grid; grid-template-columns: 58px 1fr 52px; gap: 10px; align-items: center; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: #cdd3df; }
.depth-row div { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--green) var(--w), rgba(255,255,255,.08) var(--w)); }
.depth-row b { color: var(--muted); font-weight: 500; }

.market-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: -14px 0 90px; }
.market-strip em { display: block; margin-top: 4px; color: var(--faint); font-style: normal; font-size: 12px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.section { margin: 94px 0; }
.route-view { display: none !important; }
.route-view.active { display: block !important; }
.route-view.market-strip.active { display: grid !important; }
.route-view.hero.active { display: block !important; }
.route-shell {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10,15,18,.96), rgba(5,8,10,.96));
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.collection-route-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 220px;
  margin: -10px -10px 16px;
  padding: 26px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background-image: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.28)), var(--banner-image);
  background-size: cover;
  background-position: center;
}
.route-actions, .route-tabs { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.route-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.route-stat-grid div { padding: 14px; border: 1px solid var(--border-soft); background: rgba(3,6,7,.55); border-radius: 12px; }
.route-stat-grid span, .route-stat-grid em { display: block; color: var(--muted); font-size: 11px; font-style: normal; }
.route-stat-grid strong { display: block; margin-top: 6px; color: #eafff8; font-family: var(--mono); font-size: 20px; overflow-wrap: anywhere; }
.route-tabs { margin: 16px 0; }
.route-tabs span { border: 1px solid var(--border); background: rgba(135,248,220,.045); color: var(--muted); border-radius: 999px; padding: 8px 11px; font-size: 12px; }
.route-tabs span.active { color: var(--text); border-color: rgba(135,248,220,.38); background: rgba(135,248,220,.12); }
.collection-workbench { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.filter-panel { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border-soft); border-radius: 14px; background: rgba(0,0,0,.22); }
.filter-panel label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.filter-panel select, .filter-panel input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: rgba(255,255,255,.055); color: var(--text); }
.compact-head { margin-bottom: 12px; }
.token-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.token-art-large { min-height: 340px; border: 1px solid var(--border); border-radius: 18px; background-color: #071013; background-image: linear-gradient(to top, rgba(0,0,0,.55), transparent), var(--avatar-image); background-size: cover; background-position: center; display: grid; place-items: end start; padding: 18px; }
.token-art-large span { font-family: var(--mono); font-size: 22px; color: white; text-shadow: 0 8px 24px #000; }
.token-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-head { max-width: 820px; margin-bottom: 26px; }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 22px; }
.row-head > div:first-child { max-width: 790px; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-controls button, .tabbar button { border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--muted); border-radius: 10px; padding: 10px 13px; }
.tabbar { display: flex; gap: 8px; flex-wrap: wrap; }
.tabbar button.active { color: var(--text); background: rgba(94,106,210,.22); border-color: rgba(130,143,255,.42); }

.featured-grid { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.collection-card { min-height: 334px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,.042); overflow: hidden; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.collection-card:hover { transform: translateY(-4px); border-color: rgba(53,231,196,.38); background: rgba(255,255,255,.06); }
.collection-banner { display: block; height: 148px; position: relative; background: var(--banner-image); overflow: hidden; }
.collection-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), transparent 55%); }
.collection-banner img, .collection-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.collection-banner img { position: relative; z-index: 0; }
.collection-avatar { display: block; width: 58px; height: 58px; border-radius: 16px; border: 2px solid rgba(255,255,255,.16); background: var(--avatar-image); position: relative; margin: -32px 0 12px 16px; box-shadow: 0 12px 28px rgba(0,0,0,.35); overflow: hidden; }
.collection-body { padding: 0 16px 16px; }
.collection-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.collection-title h3 { font-size: 19px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.collection-metrics { display: grid; gap: 8px; }
.metric-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.metric-line strong { color: var(--text); font-family: var(--mono); font-weight: 600; }
.badge { display: inline-flex; align-items: center; border-radius: 8px; padding: 6px 9px; background: rgba(32,212,138,.14); color: #8fffd0; font-weight: 760; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.badge.neutral { background: rgba(255,255,255,.07); color: #d7dbe6; }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 12px var(--green); }

.rewards-layout { display: grid; grid-template-columns: 1.18fr .82fr; gap: 18px; }
.reward-card { border-radius: 26px; padding: 28px; }
.season-card { background: radial-gradient(circle at 80% 20%, rgba(53,231,196,.18), transparent 18rem), linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.countdown-grid div { padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(0,0,0,.24); text-align: center; }
.countdown-grid strong { display: block; font-size: 32px; letter-spacing: -.05em; font-family: var(--mono); }
.countdown-grid span { color: var(--muted); font-size: 11px; font-family: var(--mono); }
.check-list { padding: 0; margin: 20px 0 24px; list-style: none; display: grid; gap: 12px; color: #cbd1dc; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list span { color: var(--green); font-weight: 800; }

.market-table-wrap { border-radius: 24px; overflow-x: auto; }
.market-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.market-table th, .market-table td { padding: 16px 18px; text-align: right; border-bottom: 1px solid var(--border-soft); }
.market-table th:first-child, .market-table td:first-child { text-align: left; }
.market-table th { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; background: rgba(255,255,255,.028); }
.market-table th button { border: 0; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; padding: 0; cursor: pointer; }
.market-table th button:hover, .market-table th button.active { color: var(--cyan); }
.market-table th button[aria-sort="descending"]::after { content: " ↓"; }
.market-table th button[aria-sort="ascending"]::after { content: " ↑"; }
.market-table td { color: #d7dbe5; font-family: var(--mono); font-size: 13px; }
.market-table tr:hover td { background: rgba(255,255,255,.026); }
.market-table tr.selected td { background: rgba(53,231,196,.055); }
.row-action { margin-left: 10px; border: 1px solid var(--border); background: rgba(53,231,196,.08); color: var(--cyan); border-radius: 8px; padding: 6px 8px; font-family: var(--mono); font-size: 11px; }
.table-name { display: flex; align-items: center; gap: 12px; font-family: 'Inter', system-ui, sans-serif; }
.table-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--avatar); border: 1px solid var(--border); }
.table-name strong { display: block; color: var(--text); font-size: 14px; font-family: 'Inter', system-ui, sans-serif; }
.table-name span { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.delta { display: block; margin-top: 3px; font-size: 11px; }

.split-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: 24px; align-items: start; }
.feature-pills { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.feature-pills span { border: 1px solid var(--border); border-radius: 999px; padding: 8px 11px; color: #c8ceda; background: rgba(255,255,255,.035); font-size: 12px; }
.activity-card { padding: 18px; border-radius: 24px; }
.listings-section { margin-top: 40px; }
.listing-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.selected-collection-pill { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; padding: 13px 15px; border: 1px solid var(--border); background: rgba(255,255,255,.035); border-radius: 14px; }
.selected-collection-pill span { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.listing-grid { display: grid; gap: 12px; }
.listing-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) max-content max-content;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(135,248,220,.16);
  background: linear-gradient(180deg, rgba(10,15,18,.96), rgba(5,8,10,.96));
  border-radius: 16px;
  min-width: 0;
  overflow: hidden;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.listing-card:hover,
.listing-card:focus-within {
  border-color: rgba(135,248,220,.38);
  background: #0a1013;
  box-shadow: inset 0 0 0 1px rgba(135,248,220,.06);
}
.listing-art { width: 56px; height: 56px; border-radius: 14px; background-color: #071013; background-image: linear-gradient(to top, rgba(0,0,0,.55), transparent), var(--avatar-image); background-size: cover; background-position: center; display: grid; place-items: end start; padding: 6px; overflow: hidden; }
.listing-art span { font-family: var(--mono); font-size: 10px; color: white; text-shadow: 0 2px 10px #000; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.listing-copy { min-width: 0; }
.listing-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-copy span { display: block; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-price { font-family: var(--mono); color: var(--cyan); white-space: nowrap; }
.listing-card .btn { white-space: nowrap; flex-shrink: 0; }
.activity-head, .panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; }
.activity-list { display: grid; gap: 10px; }
.activity-item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 13px; border-radius: 15px; background: rgba(0,0,0,.22); border: 1px solid var(--border-soft); }
.activity-item span { color: var(--cyan); font-weight: 760; }
.activity-item p { margin: 0; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; color: #cfd5df; }
.empty { color: var(--muted); padding: 22px; border: 1px dashed var(--border); border-radius: 16px; text-align: center; }

.terminal-panel { border-radius: 28px; padding: 24px; }
.status-grid { grid-template-columns: 1.25fr 1fr 1fr .55fr; margin-bottom: 18px; }
.status-grid strong { overflow-wrap: anywhere; font-size: 13px; }
.forms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seller-quick-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 14px; align-items: center; margin: 0 0 16px; padding: 18px; border: 1px solid rgba(135,248,220,.16); border-radius: 20px; background: linear-gradient(135deg, rgba(53,231,196,.08), rgba(94,106,210,.08)); }
.seller-quick-start h3 { font-size: 24px; }
.seller-quick-start p { margin-bottom: 0; }
.quick-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-steps span, .readiness-card, .draft-chip { border: 1px solid var(--border-soft); background: rgba(0,0,0,.22); border-radius: 12px; padding: 10px 11px; color: var(--muted); font-size: 12px; }
.readiness-card { display: grid; gap: 4px; line-height: 1.45; }
.readiness-card strong { color: var(--text); }
.readiness-card span { color: var(--muted); overflow-wrap: anywhere; }
.recent-draft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.recent-draft-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.recent-draft-head strong { color: var(--text); }
.draft-chip { display: grid; gap: 3px; text-align: left; color: var(--text); }
.draft-chip span { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.trade-form { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: rgba(0,0,0,.24); border: 1px solid var(--border-soft); }
.trade-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.trade-form input { width: 100%; border: 1px solid var(--border); border-radius: 11px; padding: 12px 13px; background: rgba(255,255,255,.055); color: var(--text); outline: none; }
.trade-form input:focus { border-color: rgba(53,231,196,.58); box-shadow: 0 0 0 4px rgba(53,231,196,.08); }
.fineprint { font-size: 13px; margin: 14px 4px 0; }

.launchpad-band { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 32px; border-radius: 28px; background: radial-gradient(circle at 86% 10%, rgba(94,106,210,.22), transparent 18rem), linear-gradient(180deg, rgba(255,255,255,.072), rgba(255,255,255,.035)); }
.launchpad-band div:first-child { max-width: 760px; }
.launch-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.statusbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 9px 14px; background: rgba(5,6,8,.86); backdrop-filter: blur(18px); border-top: 1px solid var(--border-soft); color: var(--muted); font-family: var(--mono); font-size: 11px; }
.toast { position: fixed; right: 20px; bottom: 54px; z-index: 90; max-width: 420px; padding: 14px 16px; border-radius: 14px; background: rgba(12,14,20,.94); border: 1px solid var(--border); color: white; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  nav, .search-pill { display: none; }
  .shell-grid, .hero, .split-section, .rewards-layout { grid-template-columns: 1fr; }
  .market-strip { grid-template-columns: repeat(2, 1fr); }
  .status-grid, .forms-grid { grid-template-columns: 1fr; }
  .seller-quick-start { grid-template-columns: 1fr; }
  .quick-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sunset-banner { justify-content: flex-start; overflow-x: auto; }
  .topbar { padding: 14px; }
  main { padding: 28px 14px 92px; }
  h1 { font-size: 58px; }
  h2 { font-size: 36px; }
  .row-head, .launchpad-band, .panel-head, .activity-head { align-items: flex-start; flex-direction: column; }
  .listing-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }
  .listing-art { width: 48px; height: 48px; border-radius: 12px; }
  .listing-copy span { white-space: normal; overflow-wrap: anywhere; }
  .listing-price, .listing-card .btn { grid-column: 2; justify-self: start; }
  .selected-collection-pill { align-items: flex-start; flex-direction: column; }
  .market-strip, .countdown-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: repeat(5, 238px); }
  .spotlight-art { height: 250px; }
  .spotlight-art span { font-size: 42px; }
  .statusbar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}

/* Tight marketplace pass: compact, image-led, less AI-hero. */
body {
  background: #050608;
}
.page-glow { opacity: .08; }
.sunset-banner {
  min-height: 34px;
  background: #0b0d12;
  justify-content: flex-start;
  max-width: 1320px;
  margin: 0 auto;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
}
.topbar {
  padding: 12px 26px;
  background: rgba(5,6,8,.92);
}
.brand { font-size: 18px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.btn { border-radius: 8px; padding: 9px 12px; }
.btn-lg { padding: 11px 14px; font-size: 14px; }
.search-pill { height: 36px; border-radius: 8px; }
main { padding-top: 20px; }
.compact-market-hero {
  grid-template-columns: minmax(0, .72fr) minmax(500px, 1.28fr);
  gap: 16px;
  min-height: 0;
  align-items: stretch;
  margin-bottom: 16px;
}
.hero-copy {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border-radius: 18px;
  padding: 22px;
  min-height: 100%;
}
h1 {
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: .94;
  letter-spacing: -.06em;
  max-width: 520px;
}
h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -.045em;
}
.lede { font-size: 15px; margin: 18px 0; max-width: 560px; }
.terminal-hero { border-radius: 18px; padding: 10px; box-shadow: none; }
.terminal-top { padding: 4px 6px 10px; }
.spotlight-art {
  height: 220px;
  background-image: linear-gradient(135deg, rgba(94,106,210,.45), rgba(19,23,35,.92)), var(--spotlight-image, none);
  background-size: cover;
  background-position: center;
}
.spotlight-art::before,
.spotlight-art::after { display: none; }
.spotlight-art span {
  font-size: 38px;
  letter-spacing: -.06em;
}
.spotlight-copy { padding: 14px; }
.spotlight-copy h2 { font-size: 24px; }
.mini-stats { padding: 0 14px 14px; }
.mini-stats div, .status-grid div, .market-strip div { border-radius: 10px; padding: 11px; }
.mini-stats strong, .market-strip strong { font-size: 20px; }
.orderbook-card { border-radius: 14px; padding: 12px; }
.market-strip {
  margin: 14px 0 46px;
  gap: 10px;
}
.section { margin: 52px 0; }
.section-head { margin-bottom: 16px; }
.row-head { align-items: center; }
.row-head p { margin-bottom: 0; }
.featured-grid {
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 10px;
}
.collection-card {
  min-height: 288px;
  border-radius: 14px;
  background: #0c0e13;
  box-shadow: none;
}
.collection-card:hover { transform: translateY(-2px); }
.collection-banner {
  height: 132px;
  background-image: linear-gradient(to top, rgba(0,0,0,.74), rgba(0,0,0,.05)), var(--banner-image);
  background-size: cover;
  background-position: center;
}
.collection-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-image: var(--avatar-image);
  background-size: cover;
  background-position: center;
  margin: -26px 0 10px 12px;
}
.collection-body { padding: 0 12px 12px; }
.collection-title { margin-bottom: 10px; }
.collection-title h3 { font-size: 16px; }
.metric-line { font-size: 12px; }
.badge { border-radius: 6px; padding: 5px 7px; font-size: 10px; }
.rewards-layout { gap: 12px; }
.reward-card { border-radius: 16px; padding: 20px; box-shadow: none; }
.market-table-wrap { border-radius: 14px; box-shadow: none; }
.market-table th, .market-table td { padding: 12px 14px; }
.table-icon {
  background-image: var(--avatar-image);
  background-size: cover;
  background-position: center;
}
.activity-card, .terminal-panel, .launchpad-band { border-radius: 16px; box-shadow: none; }
@media (max-width: 1100px) {
  .compact-market-hero { grid-template-columns: 1fr; }
}

/* Final tightening: avoid stretched empty marketing panel. */
.compact-market-hero { align-items: start; }
.hero-copy { min-height: auto; }
.terminal-hero { align-self: start; }

/* Mobile product pass: market-first, thumb-native, no desktop terminal cruft. */
@media (max-width: 720px) {
  body { background: #050608; }
  .noise, .page-glow { display: none; }

  .sunset-banner {
    min-height: 28px;
    max-width: none;
    padding: 5px 10px;
    gap: 6px;
    font-size: 11px;
    white-space: nowrap;
    border-left: 0;
    border-right: 0;
    scrollbar-width: none;
  }
  .sunset-banner::-webkit-scrollbar { display: none; }
  .sunset-banner span:nth-of-type(2) { color: var(--muted); }
  .sunset-banner a { display: none; }
  .pulse { width: 6px; height: 6px; flex: 0 0 6px; }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 9px 10px 8px;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    background: rgba(5,6,8,.96);
  }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .top-actions { margin-left: auto; }
  #connectWallet {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 9px;
    box-shadow: none;
  }
  nav {
    order: 3;
    display: flex;
    width: calc(100vw - 20px);
    gap: 7px;
    overflow: visible;
    flex-wrap: wrap;
    padding: 2px 0 1px;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: #d4d9e4;
    font-size: 12px;
  }

  main { padding: 10px 10px 40px; }
  .compact-market-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
  }
  .hero-copy {
    order: -2;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #0b0d12;
  }
  .hero-copy .eyebrow { margin-bottom: 8px; font-size: 9px; letter-spacing: .06em; color: #7eeed2; }
  h1 { font-size: 31px; line-height: .96; letter-spacing: -.05em; max-width: 310px; }
  .lede { display: none; }
  .hero-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-actions .btn { width: 100%; min-height: 38px; }
  .contract-strip { display: none; }

  .terminal-hero {
    order: -1;
    width: 100%;
    align-self: stretch;
    padding: 8px;
    border-radius: 14px;
    background: #090b10;
  }
  .terminal-top { display: none; }
  .featured-spotlight { border-radius: 12px; }
  .spotlight-art {
    height: 128px;
    padding: 12px;
    background-position: center 42%;
  }
  .spotlight-art span { font-size: 28px; }
  .spotlight-copy { padding: 10px 11px; }
  .spotlight-copy p { font-size: 10px; }
  .spotlight-copy h2 { font-size: 20px; }
  .mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 8px 8px; }
  .mini-stats div { padding: 8px 7px; border-radius: 9px; }
  .mini-stats span { font-size: 10px; margin-bottom: 4px; }
  .mini-stats strong { font-size: 17px; }
  .mini-stats small { display: block; margin-left: 0; font-size: 9px; }
  .orderbook-card { display: none; }

  .market-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin: 10px 0 22px;
    padding: 0;
    scrollbar-width: none;
  }
  .market-strip::-webkit-scrollbar { display: none; }
  .market-strip div { min-width: 0; padding: 9px; border-radius: 10px; }
  .market-strip span { font-size: 10px; margin-bottom: 5px; }
  .market-strip strong { font-size: 16px; white-space: normal; overflow-wrap: anywhere; line-height: 1.12; }
  .market-strip em { font-size: 10px; }

  .section { margin: 26px 0; }
  .route-shell { padding: 12px; border-radius: 13px; box-shadow: none; }
  .collection-route-hero { min-height: 154px; margin: -4px -4px 10px; padding: 14px; align-items: flex-start; flex-direction: column; }
  .route-stat-grid, .token-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .route-stat-grid div { padding: 10px 8px; border-radius: 10px; }
  .route-stat-grid strong { font-size: 15px; }
  .collection-workbench, .token-shell { grid-template-columns: 1fr; gap: 10px; }
  .filter-panel { display: none; }
  .token-art-large { min-height: 220px; border-radius: 13px; }
  .section-head { margin-bottom: 10px; }
  .row-head { align-items: stretch; gap: 10px; }
  .section-head .eyebrow { margin-bottom: 6px; font-size: 10px; }
  h2 { font-size: 25px; line-height: 1; }
  .row-head p { display: none; }
  .carousel-controls { display: none; }

  .featured-grid {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -10px;
    padding: 0 10px 7px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .featured-grid::-webkit-scrollbar { display: none; }
  .collection-card {
    flex: 0 0 min(82vw, 336px);
    max-width: 336px;
    min-height: 236px;
    border-radius: 13px;
    scroll-snap-align: start;
  }
  .collection-banner { height: 106px; }
  .collection-avatar { width: 42px; height: 42px; margin: -22px 0 8px 10px; border-radius: 9px; }
  .collection-body { padding: 0 10px 10px; }
  .collection-title { margin-bottom: 8px; }
  .collection-title h3 { font-size: 15px; max-width: 150px; }
  .badge { padding: 4px 6px; font-size: 9px; }
  .metric-line { font-size: 11px; }

  .tabbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px 1px;
    scrollbar-width: none;
  }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabbar button { flex: 0 0 auto; padding: 8px 11px; font-size: 12px; }

  .market-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .market-table, .market-table tbody, .market-table tr, .market-table td { display: block; width: 100%; }
  .market-table { min-width: 0; border-collapse: separate; }
  .market-table thead { display: none; }
  .market-table tbody { display: grid; gap: 9px; }
  .market-table tr {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #0b0d12;
  }
  .market-table td {
    border-bottom: 0;
    padding: 5px 0;
    text-align: right;
    font-size: 12px;
  }
  .market-table td:not(:first-child) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
  .market-table td:not(:first-child)::before {
    content: attr(data-label);
    color: var(--muted);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
  }
  .market-table td:first-child { padding-bottom: 9px; margin-bottom: 4px; border-bottom: 1px solid var(--border-soft); }
  .table-icon { width: 38px; height: 38px; border-radius: 9px; }
  .delta { display: inline; margin-left: 6px; font-size: 10px; }

  .rewards-layout, .split-section { grid-template-columns: 1fr; gap: 10px; }
  .reward-card, .activity-card, .terminal-panel, .launchpad-band { padding: 14px; border-radius: 13px; }
  .countdown-grid { gap: 7px; }
  .countdown-grid div { padding: 10px 6px; border-radius: 10px; }
  .countdown-grid strong { font-size: 22px; }
  .check-list { gap: 8px; font-size: 13px; }
  .activity-item { grid-template-columns: 58px 1fr; padding: 10px; }
  .feature-pills { gap: 6px; }
  .feature-pills span { padding: 7px 9px; font-size: 11px; }

  .forms-grid, .status-grid { grid-template-columns: 1fr; }
  .panel-head, .activity-head, .launchpad-band { flex-direction: column; align-items: stretch; }
  .trade-form { padding: 13px; border-radius: 13px; }
  .launch-actions { justify-content: stretch; }
  .launch-actions .btn { width: 100%; }
  .statusbar { display: none; }
  .toast { left: 10px; right: 10px; bottom: 12px; max-width: none; }
}


/* HyperMart icon/style pass: black card, mint outline, sharp marketplace energy. */
:root {
  --accent: #7ff5d6;
  --accent-2: #b8ffe9;
  --cyan: #87f8dc;
  --green: #5cf0c7;
  --bg: #030607;
  --bg-2: #070b0e;
  --surface: #080c10;
  --surface-2: #0d1317;
  --border: rgba(135, 248, 220, 0.18);
  --border-soft: rgba(135, 248, 220, 0.10);
  --shadow: rgba(0, 0, 0, 0.58) 0 24px 70px;
}
body {
  background:
    radial-gradient(circle at 50% -18%, rgba(135,248,220,.13), transparent 29rem),
    radial-gradient(circle at 8% 18%, rgba(135,248,220,.055), transparent 20rem),
    #030607;
}
.sunset-banner {
  background: #05090c;
  border-color: rgba(135,248,220,.20);
}
.topbar {
  background: rgba(3,6,7,.94);
  border-bottom-color: rgba(135,248,220,.12);
}
.brand {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 800;
}
.brand-word strong { color: var(--cyan); }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 2px;
  background: #05090c;
  border: 1.5px solid rgba(135,248,220,.88);
  box-shadow: 0 0 26px rgba(135,248,220,.30), inset 0 0 18px rgba(135,248,220,.05);
  overflow: hidden;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.btn-primary {
  color: #03110d;
  background: linear-gradient(135deg, #b8ffe9, #5cf0c7);
  border-color: rgba(184,255,233,.78);
  box-shadow: 0 14px 34px rgba(92,240,199,.20);
}
.btn-secondary, .search-pill, .carousel-controls button, .tabbar button {
  background: rgba(135,248,220,.035);
  border-color: rgba(135,248,220,.16);
}
.hero-copy, .terminal-hero, .terminal-panel, .activity-card, .reward-card, .launchpad-band, .market-table-wrap, .collection-card {
  background: linear-gradient(180deg, rgba(10,15,18,.96), rgba(5,8,10,.96));
  border-color: rgba(135,248,220,.18);
}
.hero-copy, .terminal-hero {
  box-shadow: inset 0 0 0 1px rgba(135,248,220,.025), 0 18px 60px rgba(0,0,0,.44);
}
.eyebrow, .sunset-banner a, .activity-item span {
  color: var(--cyan);
}
.spotlight-art {
  border-bottom: 1px solid rgba(135,248,220,.16);
}
.spotlight-art span {
  color: #b8ffe9;
  text-shadow: 0 0 20px rgba(135,248,220,.34), 0 18px 40px #000;
}
.mini-stats div, .status-grid div, .market-strip div, .countdown-grid div, .trade-form, .activity-item {
  background: rgba(3,6,7,.55);
  border-color: rgba(135,248,220,.12);
}
.market-strip strong, .mini-stats strong, .metric-line strong {
  color: #eafff8;
}
.collection-card:hover {
  border-color: rgba(135,248,220,.50);
  background: #0a1013;
}
.collection-banner::after {
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.04) 56%);
}
.collection-avatar, .table-icon {
  border-color: rgba(135,248,220,.30);
  box-shadow: 0 10px 28px rgba(0,0,0,.38), 0 0 0 1px rgba(135,248,220,.12);
}
.badge {
  background: rgba(135,248,220,.12);
  color: #b8ffe9;
}
.badge.neutral {
  background: rgba(135,248,220,.07);
  color: #dffdf5;
}
.market-table th {
  background: rgba(135,248,220,.035);
}
.market-table tr[data-contract] {
  cursor: pointer;
}
.market-table tr[data-contract] td {
  transition: background .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.market-table tr:hover td {
  background: rgba(135,248,220,.035);
}
.market-table tr.selected td {
  background: rgba(135,248,220,.075);
  border-bottom-color: rgba(135,248,220,.24);
}
.market-table tr:focus-within td,
.market-table tr[data-contract]:focus td {
  outline: 1px solid rgba(135,248,220,.34);
  outline-offset: -1px;
}
.row-action {
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.row-action:hover {
  background: rgba(135,248,220,.16);
  border-color: rgba(135,248,220,.38);
  color: #eafff8;
}
.statusbar {
  background: rgba(3,6,7,.90);
  border-top-color: rgba(135,248,220,.13);
}
@media (max-width: 720px) {
  body { background: #030607; }
  .brand { letter-spacing: .12em; }
  .brand-word { font-size: 14px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 10px; }
  .brand-mark img { border-radius: 8px; }
  .hero-copy, .terminal-hero, .market-table tr, .collection-card, .reward-card, .activity-card, .terminal-panel, .launchpad-band {
    background: #060a0d;
    border-color: rgba(135,248,220,.18);
  }
  nav a {
    border-color: rgba(135,248,220,.14);
    background: rgba(135,248,220,.045);
  }
  h1 { text-transform: none; }
}


/* Clean homepage pass: remove marketing hero; make home a compact market dashboard. */
.market-dashboard-hero {
  display: block;
  grid-template-columns: 1fr !important;
  min-height: 0;
  margin: 18px 0 12px;
}
.market-dashboard-hero .terminal-hero {
  width: 100%;
  max-width: none;
}
.market-dashboard-hero .featured-spotlight {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) 1fr;
  align-items: stretch;
}
.market-dashboard-hero .spotlight-art {
  height: 340px;
}
.market-dashboard-hero .spotlight-copy,
.market-dashboard-hero .mini-stats {
  grid-column: 2;
}
.market-dashboard-hero .spotlight-copy {
  border-bottom: 1px solid var(--border-soft);
}
.market-dashboard-hero .mini-stats {
  align-self: end;
}
.sunset-banner a[href="#trade"] { display: none; }
@media (max-width: 720px) {
  .market-dashboard-hero { margin: 10px 0; }
  .market-dashboard-hero .featured-spotlight { display: block; }
  .market-dashboard-hero .spotlight-art { height: 154px; }
  .sunset-banner { padding-right: 12px; }
}

/* Mobile table correction: keep collections as a real horizontally scrollable table, not stacked cards. */
@media (max-width: 720px) {
  .market-table-wrap {
    border: 1px solid rgba(135,248,220,.16);
    background: #05090c;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -14px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
  }
  .market-table {
    display: table !important;
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    border-spacing: 0;
  }
  .market-table thead {
    display: table-header-group !important;
  }
  .market-table tbody {
    display: table-row-group !important;
    width: auto !important;
  }
  .market-table tr {
    display: table-row !important;
    width: auto !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .market-table th,
  .market-table td {
    display: table-cell !important;
    width: auto !important;
    padding: 10px 11px;
    border-bottom: 1px solid rgba(135,248,220,.10);
    text-align: right;
    white-space: nowrap;
    font-size: 12px;
  }
  .market-table th {
    background: #071013;
    color: #7f9698;
    font-size: 10px;
    letter-spacing: .08em;
  }
  .market-table th:first-child,
  .market-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 184px;
    text-align: left;
    background: #05090c;
    box-shadow: 10px 0 18px rgba(0,0,0,.34);
  }
  .market-table tr:hover td:first-child { background: #071013; }
  .market-table tr.selected td,
  .market-table tr.selected td:first-child {
    background: rgba(135,248,220,.075);
    border-bottom-color: rgba(135,248,220,.24);
  }
  .market-table th:first-child { z-index: 2; background: #071013; }
  .market-table td:not(:first-child)::before { content: none; }
  .market-table td:not(:first-child) {
    display: table-cell !important;
    justify-content: initial;
    align-items: initial;
    gap: 0;
  }
  .market-table td:first-child {
    padding-bottom: 10px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(135,248,220,.10);
  }
  .table-name { gap: 9px; }
  .table-icon { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; }
  .table-name strong { font-size: 13px; max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .table-name span:last-child { font-size: 10px; }
  .delta { display: block; margin: 2px 0 0; font-size: 10px; }
}


.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 86px 18px 18px;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(12px);
}
.search-overlay.open { display: flex; }
.search-modal {
  width: min(760px, 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16,18,24,.98), rgba(7,8,12,.98));
  box-shadow: var(--shadow);
  padding: 20px;
}
.search-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.search-head h2 { font-size: 32px; margin: 0; }
.search-input {
  width: 100%;
  border: 1px solid rgba(135,248,220,.26);
  border-radius: 14px;
  padding: 15px 16px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
  font-family: var(--mono);
}
.search-results { display: grid; gap: 9px; margin-top: 14px; max-height: 56vh; overflow: auto; }
.search-result {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 4px 12px;
  text-align: left;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  padding: 12px;
  color: var(--text);
  background: rgba(255,255,255,.035);
}
.search-result:hover { border-color: rgba(53,231,196,.42); background: rgba(53,231,196,.07); }
.search-result span { grid-row: span 2; color: var(--cyan); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.search-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-shell > p { max-width: 880px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.trust-grid div { border: 1px solid var(--border-soft); border-radius: 14px; background: rgba(255,255,255,.035); padding: 15px; }
.trust-grid strong { display: block; margin-bottom: 8px; color: #eafff8; }
.trust-grid span { display: block; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.statusbar a { color: var(--cyan); }
@media (max-width: 720px) {
  .search-overlay { padding-top: 72px; }
  .search-modal { padding: 14px; border-radius: 15px; }
  .search-result { grid-template-columns: 1fr; }
  .search-result span { grid-row: auto; }
  .trust-grid { grid-template-columns: 1fr; }
}


/* Keep search reachable on tablet/mobile; primary nav can collapse but search must stay tappable. */
@media (max-width: 1100px) {
  #globalSearch.search-pill {
    display: flex;
    width: auto;
    max-width: 42vw;
    min-height: 32px;
    padding: 7px 9px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 520px) {
  #globalSearch.search-pill {
    max-width: 38px;
    color: transparent;
    justify-content: center;
  }
  #globalSearch.search-pill span {
    color: var(--text);
    margin-right: -2px;
  }
}


/* Social marketplace + aggregator delivery pass. */
.os-section { margin-top: 40px; }
.os-grid, .social-grid, .trade-roadmap { display: grid; gap: 14px; }
.os-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.os-grid article, .social-grid div, .trade-roadmap div {
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028));
  border-radius: 18px;
  padding: 18px;
}
.os-grid article span, .form-step {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(53,231,196,.28);
  background: rgba(53,231,196,.09);
  color: var(--cyan);
  border-radius: 999px;
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-step.pending { border-color: rgba(255,184,107,.32); background: rgba(255,184,107,.1); color: var(--orange); }
.os-grid h3 { margin-top: 14px; }
.os-grid p, .trade-form p { margin: 0; font-size: 13px; }
.listing-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.social-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr); gap: 20px; align-items: start; }
.social-grid { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.social-grid strong, .trade-roadmap strong { display: block; color: var(--text); margin-bottom: 6px; }
.social-grid span, .trade-roadmap span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.chat-preview { display: grid; gap: 10px; padding: 16px; border: 1px solid rgba(53,231,196,.18); border-radius: 20px; background: radial-gradient(circle at 90% 10%, rgba(53,231,196,.12), transparent 14rem), rgba(0,0,0,.24); }
.chat-bubble { max-width: 88%; padding: 12px 13px; border-radius: 15px; color: #dbe4ee; background: rgba(255,255,255,.055); border: 1px solid var(--border-soft); font-size: 13px; line-height: 1.45; }
.chat-bubble span { display: block; margin-bottom: 4px; color: var(--cyan); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.chat-bubble.seller { justify-self: end; background: rgba(94,106,210,.14); }
.chat-bubble.system { max-width: 100%; border-color: rgba(32,212,138,.25); background: rgba(32,212,138,.08); }
.trade-roadmap { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.trade-form h3 { margin-top: 2px; }

@media (max-width: 1100px) {
  .os-grid, .social-shell, .social-grid, .trade-roadmap { grid-template-columns: 1fr; }
  .social-grid { grid-column: auto; }
}
@media (max-width: 720px) {
  .os-section { margin-top: 40px; }
  .listing-actions { grid-column: 2; justify-content: flex-start; }
}


/* Wallet profile / DM foundation pass. */
.profile-shell { display: grid; gap: 18px; }
.profile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.profile-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-badges span { border: 1px solid rgba(53,231,196,.24); background: rgba(53,231,196,.08); color: var(--cyan); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-family: var(--mono); }
.profile-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 14px; align-items: start; }
.profile-card { border: 1px solid var(--border-soft); border-radius: 18px; background: rgba(0,0,0,.22); padding: 16px; min-width: 0; overflow: hidden; }
.profile-shell, .profile-head > div, .profile-grid > *, #profileMeta { min-width: 0; overflow-wrap: anywhere; }
.chat-preview.compact { margin-top: 14px; }
@media (max-width: 900px) {
  .profile-head { flex-direction: column; }
  .profile-grid, .profile-stats { grid-template-columns: 1fr; }
}


/* Seller acquisition / native inventory pass. */
.seller-funnel { margin-top: 36px; }
.seller-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(53,231,196,.22);
  border-radius: 24px;
  padding: 22px;
  background: radial-gradient(circle at 100% 0%, rgba(53,231,196,.14), transparent 16rem), linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.026));
}
.seller-panel h2 { margin-bottom: 10px; }
.seller-panel p { max-width: 820px; }
.seller-scorecard { display: grid; gap: 10px; }
.seller-scorecard div {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 14px;
  background: rgba(0,0,0,.22);
}
.seller-scorecard span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.seller-scorecard strong { color: var(--text); font-size: 17px; overflow-wrap: anywhere; }
.seller-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.seller-grid article, .listing-empty-state {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.035);
}
.seller-grid strong, .listing-empty-state strong { display: block; color: var(--text); margin-bottom: 6px; }
.seller-grid span, .listing-empty-state span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.listing-empty-state .route-actions { margin-top: 14px; }
@media (max-width: 900px) {
  .seller-panel, .seller-grid { grid-template-columns: 1fr; }
  .seller-panel { padding: 16px; border-radius: 18px; }
}


/* Full vision hub pass from CD Capital screenshots. */
.vision-stack { margin-top: 38px; }
.vision-card-grid, .vision-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vision-card-grid article, .vision-lanes article {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  min-width: 0;
}
.vision-card-grid span {
  display: inline-flex;
  border: 1px solid rgba(94,106,210,.32);
  color: #aeb7ff;
  background: rgba(94,106,210,.1);
  border-radius: 999px;
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.vision-card-grid strong { display: block; color: var(--text); margin-bottom: 7px; }
.vision-card-grid p, .vision-lanes p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.vision-route-shell { display: grid; gap: 18px; }
.vision-lanes h3 { margin: 10px 0 8px; }
@media (max-width: 980px) {
  .vision-card-grid, .vision-lanes { grid-template-columns: 1fr; }
}


/* Clickable social market layer. */
.social-market-loop, .rooms-shell, .offers-shell { margin-top: 38px; }
.market-flow, .room-grid, .offer-inbox-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.market-flow article, .room-card, .offer-row { border: 1px solid var(--border-soft); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.026)); padding: 16px; min-width: 0; }
.market-flow span { display: inline-flex; color: var(--cyan); font-family: var(--mono); margin-bottom: 8px; }
.market-flow strong, .room-card h3, .offer-row strong { display: block; color: var(--text); margin-bottom: 7px; }
.market-flow p, .room-card p, .offer-row p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.social-market-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.featured-room { grid-column: span 2; }
.room-feed { display: grid; gap: 9px; margin-top: 12px; }
.room-feed div { border: 1px solid rgba(53,231,196,.16); border-radius: 14px; padding: 11px; background: rgba(0,0,0,.22); }
.room-feed strong, .room-feed span { display: block; }
.room-feed span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.offer-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.offer-tabs button { border: 1px solid var(--border-soft); border-radius: 999px; padding: 9px 13px; color: var(--muted); background: rgba(255,255,255,.04); }
.offer-tabs button.active { color: var(--text); border-color: rgba(53,231,196,.38); background: rgba(53,231,196,.09); }
.offer-modal { position: fixed; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.72); backdrop-filter: blur(14px); z-index: 80; }
.offer-modal.open { display: grid; }
.offer-dialog { width: min(620px, 100%); max-height: 92vh; overflow: auto; border: 1px solid rgba(53,231,196,.22); border-radius: 24px; padding: 20px; background: radial-gradient(circle at 90% 0%, rgba(53,231,196,.12), transparent 16rem), #070a10; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.offer-dialog h2 { margin: 0; }
.offer-form { display: grid; gap: 12px; margin-top: 16px; }
.offer-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.offer-form input, .offer-form select, .offer-form textarea { width: 100%; border: 1px solid var(--border-soft); border-radius: 12px; padding: 11px 12px; color: var(--text); background: rgba(255,255,255,.045); font: inherit; }
.offer-preview { display: grid; gap: 6px; border: 1px solid rgba(94,106,210,.25); border-radius: 14px; padding: 12px; margin-top: 14px; background: rgba(94,106,210,.08); }
.offer-preview span { color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) { .market-flow, .room-grid, .offer-inbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .market-flow, .room-grid, .offer-inbox-grid { grid-template-columns: 1fr; } .featured-room { grid-column: auto; } .offer-dialog { padding: 16px; } }


/* Roadmap OS delivery: bundles, swaps, ranks, incentives, and credit lab. */
.roadmap-shell { display: grid; gap: 18px; }
.roadmap-grid, .leaderboard-grid, .credit-grid, .incentive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.roadmap-grid article, .leaderboard-grid article, .credit-card, .incentive-grid article {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.026));
  min-width: 0;
}
.roadmap-feature.wide { grid-column: span 2; }
.roadmap-grid h3, .leaderboard-grid h3, .credit-card h3, .incentive-grid h3 { margin: 10px 0 8px; }
.roadmap-grid p, .leaderboard-grid p, .credit-card p, .incentive-grid p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.bundle-slots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bundle-slots b { border: 1px solid rgba(135,248,220,.24); border-radius: 999px; padding: 8px 10px; color: var(--cyan); background: rgba(135,248,220,.07); font-size: 12px; }
.swap-board { display: grid; grid-template-columns: 1fr 72px 1fr; gap: 14px; align-items: stretch; }
.swap-board article { border: 1px solid rgba(135,248,220,.20); border-radius: 20px; padding: 18px; background: radial-gradient(circle at 90% 8%, rgba(135,248,220,.12), transparent 14rem), rgba(0,0,0,.24); }
.swap-board span, .leaderboard-grid span, .credit-card span { display: block; color: var(--cyan); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.swap-board strong, .leaderboard-grid strong, .credit-card strong { display: block; color: #eafff8; font-size: 22px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.swap-board small { display: block; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.swap-arrow { display: grid; place-items: center; color: var(--cyan); font-size: 34px; padding: 0 !important; }
.leaderboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.leaderboard-grid article { background: linear-gradient(180deg, rgba(135,248,220,.07), rgba(255,255,255,.025)); }
.vision-card-grid a { display: inline-flex; margin-top: 10px; color: var(--cyan); font-weight: 700; font-size: 13px; }
@media (max-width: 980px) {
  .roadmap-grid, .leaderboard-grid, .credit-grid, .incentive-grid, .swap-board { grid-template-columns: 1fr; }
  .roadmap-feature.wide { grid-column: auto; }
  .swap-arrow { min-height: 54px; }
}


/* Launchpad design-doc pass: easy creator onboarding. */
.launchpad-shell { display: grid; gap: 18px; }
.launch-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.launch-flow article, .design-doc-panel {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.026));
}
.launch-flow span { display: inline-flex; color: var(--cyan); font-family: var(--mono); margin-bottom: 8px; }
.launch-flow strong { display: block; color: var(--text); margin-bottom: 7px; }
.launch-flow p, .design-doc-panel p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.design-doc-panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(280px, .58fr); gap: 18px; align-items: start; }
.doc-checklist { display: grid; gap: 10px; }
.doc-checklist label { display: flex; gap: 9px; align-items: flex-start; color: #dce7e4; font-size: 13px; line-height: 1.4; }
.doc-checklist input { accent-color: var(--cyan); margin-top: 2px; }
@media (max-width: 980px) { .launch-flow, .design-doc-panel { grid-template-columns: 1fr; } }
