/* ============================================================
   Elys Launch — design system (light theme)
   Warm marble paper background, white surfaces, aegean-blue
   primary, laurel-gold CTA accent, compact density, small
   radii, Archivo UI type + JetBrains Mono numerals.
   Presentation only.
   ============================================================ */

:root {
  --bg: #f6f3ea;               /* marble */
  --surface: #ffffff;
  --well: #eff2f7;             /* slate-100 */
  --line: #e4e8f0;             /* slate-200 */
  --line-soft: #eff2f7;
  --txt: #0b0f1a;              /* ink-900 */
  --muted: #646e87;            /* text-2 */
  --dim: #98a2b8;              /* slate-400 */
  --primary: #123783;          /* aegean-700 */
  --primary-2: #1a4aa8;        /* aegean-600 */
  --primary-soft: #e2eafb;     /* aegean-100 */
  --accent: #d99d18;           /* laurel-500 */
  --accent-2: #f0b93e;         /* laurel-400 */
  --accent-soft: #fbeed0;      /* laurel-100 */
  --accent-ink: #96690a;       /* laurel-700 */
  --on-accent: #06080f;        /* ink-950 */
  --up: #16c784;
  --down: #f0435a;
  --danger: #f0435a;
  --gold: #b98510;
  --ink: #06080f;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(7, 22, 52, 0.10);
  --shadow-pop: 0 24px 64px rgba(6, 8, 15, 0.35);
  --font-d: "Archivo", system-ui, -apple-system, sans-serif;
  --font-b: "Archivo", system-ui, -apple-system, sans-serif;
  --font-w: "Outfit", "Archivo", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sb-w: 184px;
  --hdr-h: 55px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--txt); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c7cddc; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; border-radius: 6px; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.mono { font-family: var(--font-m); font-size: 0.92em; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.gold { color: var(--gold); }

/* ================= app shell: sidebar + column ================= */
.layout { display: flex; align-items: flex-start; min-height: 100svh; }
.col { flex: 1; min-width: 0; min-height: 100svh; display: flex; flex-direction: column; }

/* ---- left sidebar (slim, bordered, quiet) ---- */
#sidebar {
  width: var(--sb-w);
  flex: none;
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  z-index: 60;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.side-nav button svg { width: 17px; height: 17px; flex: none; }
.side-nav button:hover { background: var(--well); color: var(--txt); }
.side-nav button.active {
  background: var(--surface);
  color: var(--txt);
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(7, 22, 52, 0.08);
}
.side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}
.side-foot a { color: var(--muted); font-weight: 600; }
.side-foot a:hover { color: var(--primary); }
.side-foot .mono { font-size: 11px; }
.side-net { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--muted); }
.backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(11, 14, 13, 0.42);
}
.backdrop.show { display: block; }

/* ================= header — flat 55px bar ================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header .bar {
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}
#sb-toggle {
  display: none;
  flex: none;
  width: 36px; height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--txt);
  padding: 0;
}
#sb-toggle svg { width: 19px; height: 19px; }
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--txt);
  flex: none;
}
.logo:hover { color: var(--txt); }
.logo img {
  width: 32px; height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}
.logo > span {
  font-family: var(--font-w);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.logo-sub {
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 2px;
}
.hdr-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hdr-nav { display: flex; gap: 2px; }
.hdr-nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.hdr-nav button:hover { background: var(--well); color: var(--txt); }
.hdr-nav button.active { background: var(--primary-soft); color: var(--primary); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(22, 199, 132, 0.5);
  animation: dot-pulse 2.2s ease-out infinite;
  flex: none;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(22, 199, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0); }
}
#connect {
  flex: none;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 1px 3px rgba(7, 22, 52, 0.12);
  transition: background 0.15s, transform 0.12s;
  white-space: nowrap;
}
#connect:hover { background: var(--accent-2); }
#connect:active { transform: scale(0.98); }

/* ================= layout / views ================= */
main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px 72px;
}
.view { display: none; }
.view.active { display: block; animation: view-in 0.3s cubic-bezier(0, 0, 0.2, 1) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.view > h1 {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 6px 0 10px;
}

/* reveal-on-scroll (gated on .js-rv, set by the presentation script) */
.js-rv .rv { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0, 0, 0.2, 1); }
.js-rv .rv.in { opacity: 1; transform: none; }

/* ---- banners ---- */
.banner {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #4a3b00;
  background: var(--accent-soft);
  border: 1px solid rgba(217, 157, 24, 0.45);
  margin-bottom: 14px;
}
.banner .mono { color: var(--accent-ink); font-weight: 600; }

/* ================= buttons ================= */
.act {
  border: 0;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 1px 3px rgba(7, 22, 52, 0.15);
  transition: background 0.15s, transform 0.12s;
}
.act:hover { background: var(--primary-2); }
.act:active { transform: scale(0.985); }
#t-submit.sell-mode { background: var(--down); color: #fff; }
#t-submit.sell-mode:hover { background: #d93650; }
.ghost {
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.ghost:hover { background: var(--well); border-color: #c7cddc; }
.ghost:active { transform: scale(0.98); }

/* ================= card ================= */
.card {
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(7, 22, 52, 0.04);
}
.card h2 {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

/* key-value rows */
.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.kv:last-child { border-bottom: 0; }
.kv .mono { color: var(--txt); font-weight: 600; text-align: right; word-break: break-all; }

/* progress */
.prog {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.prog i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s cubic-bezier(0, 0, 0.2, 1);
}

/* ================= hero (compact) ================= */
.hero { padding: 14px 0 20px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(217, 157, 24, 0.4);
  background: var(--accent-soft);
}
.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 16px 0 10px;
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--primary-2) 10%, var(--accent) 95%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.hero p {
  max-width: 640px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.hero-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* stats strip — one white bar, four cells */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(7, 22, 52, 0.04);
  overflow: hidden;
}
.stat { padding: 14px 18px; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat .v {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat .v em { font-style: normal; font-size: 0.55em; font-weight: 700; color: var(--accent-ink); margin-left: 4px; letter-spacing: 0.03em; }
.stat .k {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ================= discover / token cards ================= */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 30px 0 14px;
}
.section-head h2, .section-head h3 {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h3 { font-size: 16px; }
.section-head h2::before, .section-head h3::before {
  content: "";
  width: 4px; height: 18px;
  border-radius: 99px;
  background: var(--accent);
  flex: none;
}
.section-head h3::before { height: 15px; }
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1150px) {
  .tgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .tgrid { grid-template-columns: 1fr; }
}
.tgrid > .card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
}

/* ---- discover toolbar: search / sort / filter ---- */
.ds-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.ds-bar input[type="search"] { flex: 1 1 220px; width: auto; }
.ds-bar .xsel { flex: none; width: auto; min-width: 168px; }
/* One height for the whole toolbar trio (search / sort / filter segment):
   the sort trigger used to size itself from its own padding + line-height
   and stood visibly taller than its neighbours. Everywhere else the
   .xsel-btn keeps the form-control metrics (same padding, font size and
   line-height as the base input rule), so in the Launch form it stays
   exactly as tall as the inputs around it. */
.ds-bar input[type="search"], .ds-bar .xsel-btn, .ds-bar .ds-seg { height: 40px; }
.ds-bar .ds-seg { align-items: stretch; }
.ds-bar .ds-seg button { display: flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }
.ds-seg {
  display: inline-flex;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.ds-seg button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.ds-seg button:hover { color: var(--txt); }
.ds-seg button.on { background: var(--primary); color: #fff; }
#ds-empty { margin-top: 12px; text-align: center; }

/* ---- token activity feed ---- */
.act-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  flex-wrap: wrap;
}
.act-row:last-child { border-bottom: none; }
.act-time { color: var(--dim); font-size: 12px; min-width: 58px; flex: none; }
.act-badge {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
}
.act-badge.buy { background: rgba(22, 199, 132, 0.13); color: #0c9968; }
.act-badge.sell { background: rgba(240, 67, 90, 0.11); color: var(--down); }
.act-trader { flex: none; font-size: 12.5px; }
.act-amt { margin-left: auto; text-align: right; font-size: 12.5px; }
.act-tx { flex: none; color: var(--dim); font-size: 12px; }
.act-tx:hover { color: var(--primary-2); }
.tcard {
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(7, 22, 52, 0.04);
  transition: transform 0.18s cubic-bezier(0, 0, 0.2, 1), box-shadow 0.2s, border-color 0.18s;
  animation: view-in 0.35s cubic-bezier(0, 0, 0.2, 1) both;
}
.tcard:nth-child(2) { animation-delay: 0.04s; }
.tcard:nth-child(3) { animation-delay: 0.08s; }
.tcard:nth-child(4) { animation-delay: 0.12s; }
.tcard:nth-child(5) { animation-delay: 0.16s; }
.tcard:nth-child(6) { animation-delay: 0.2s; }
.tcard:hover {
  transform: translateY(-2px);
  border-color: #c7cddc;
  box-shadow: var(--shadow);
}
.tcard-head { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.avatar {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 17px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard-titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; text-align: left; }
.sym { font-family: var(--font-d); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.tcard-titles .sym { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  margin-left: auto;
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(217, 157, 24, 0.4);
}
.tcard .kv { padding: 6px 0; }
.tcard .kv .mono { font-size: 14px; }
.tcard .prog { margin-top: 11px; }
.tcard-grad {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--dim);
}
.tcard-grad span:last-child { color: var(--accent-ink); font-family: var(--font-m); letter-spacing: 0; }

/* ================= forms ================= */
label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 7px;
}
input, select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--txt);
  font-family: var(--font-b);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 70px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
input:disabled { opacity: 0.45; cursor: not-allowed; background: var(--well); }
input[type="number"] { font-variant-numeric: tabular-nums; }
/* Hide the native number-input spinner arrows everywhere (Trade amount /
   slippage, Launch form fields) — typing and the quick-amount chips are
   unaffected. */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px;
  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 1.5 6 6.5 11 1.5' fill='none' stroke='%23123783' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
select option { background: #fff; color: var(--txt); }

/* ---- custom dropdown (.xsel) — replaces the two native <select>s
   (#ds-sort, #l-quote). The native select stays in the DOM as the state
   holder, visually hidden below; the widget mirrors its options and its
   current value, and picking an option writes select.value and dispatches
   the same "change" event a native pick would — so every existing reader
   in app.js behaves exactly as before, while the closed state carries a
   single clean border (no native border + focus-ring doubling). ---- */
.xsel { position: relative; display: block; width: 100%; }
.xsel > select.xsel-native {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 1px;
  margin: 0; padding: 0; border: none;
  opacity: 0; pointer-events: none;
}
.xsel-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--txt);
  font-family: var(--font-b);
  font-size: 14px; line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.xsel-btn:hover { border-color: #c7cddc; }
.xsel-btn:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px var(--primary-soft); }
.xsel.open .xsel-btn { border-color: var(--primary-2); box-shadow: 0 0 0 3px var(--primary-soft); }
.xsel-label { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xsel-chev {
  flex: none; width: 12px; height: 8px;
  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 1.5 6 6.5 11 1.5' fill='none' stroke='%23123783' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform 0.18s;
}
.xsel.open .xsel-chev { transform: rotate(180deg); }
.xsel-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 4px;
  max-height: 304px; overflow-y: auto;
}
.xsel.up .xsel-panel { top: auto; bottom: calc(100% + 6px); }
.xsel-panel[hidden] { display: none; }
.xsel-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 14px; color: var(--txt);
  cursor: pointer; white-space: nowrap;
}
.xsel-check { flex: none; width: 14px; text-align: center; color: var(--accent); font-weight: 700; visibility: hidden; }
.xsel-opt.sel { font-weight: 600; }
.xsel-opt.sel .xsel-check { visibility: visible; }
.xsel-opt:hover { background: var(--accent-soft); }
.xsel-opt.active { background: var(--primary-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* token image upload zone (launch form) */
.img-drop {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1.5px dashed #c7cddc;
  border-radius: 10px;
  background: var(--well);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.img-drop:hover, .img-drop.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}
#l-img-preview {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.img-drop-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.45; }
.img-drop-txt strong { font-size: 13.5px; font-weight: 600; color: var(--txt); }
.img-clear { margin-left: auto; flex: none; padding: 6px 12px; font-size: 12.5px; }

/* range sliders — track fill painted by the presentation script */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
input[type="range"]:focus { box-shadow: none; border: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: transparent; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(7, 22, 52, 0.25);
  transition: transform 0.12s;
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]::-moz-range-track { height: 6px; background: transparent; }
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(7, 22, 52, 0.25);
}

/* quick chips + presets */
.qchips { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.qchip {
  flex: 1;
  min-width: 54px;
  padding: 7px 6px;
  border-radius: 8px;
  background: var(--well);
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-m);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.qchip:hover { background: var(--primary-soft); color: var(--primary); }
.qchip:active { transform: scale(0.96); }
.preset { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 4px; }
.preset button {
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.12s;
}
.preset button:hover { border-color: var(--primary-2); color: var(--primary); }
.preset button:active { transform: scale(0.96); background: var(--primary-soft); color: var(--primary); }

/* ================= launch ================= */
.launch-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 18px;
}
.launch-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.launch-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  position: sticky;
  top: calc(var(--hdr-h) + 14px);
}
.launch-side .side-card { position: static; }
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.adv-field { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line); }
.adv-field label { color: var(--dim); }
.launch-action #l-submit { margin-top: 0; }
.pv-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.pv-tcard { cursor: default; animation: none; }
.pv-tcard:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(7, 22, 52, 0.04);
}
.sec-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 26px 0 2px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}
.sec-head:first-child { margin-top: 0; }
.sec-num {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
}
@supports not (-webkit-text-stroke: 1px black) {
  .sec-num { color: var(--accent); }
}
.sec-head h3 {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--txt);
}
.sec-head .sec-note { margin-left: auto; font-size: 11.5px; color: var(--dim); letter-spacing: 0.02em; text-transform: none; font-weight: 500; }
.launch-grid .card > label:first-of-type { margin-top: 13px; }
.alloc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.alloc-head label { margin: 0; }
.alloc-head .mono, .alloc-head > span.mono { font-size: 13px; font-weight: 600; white-space: nowrap; }
#alloc-sliders > div { margin-top: 13px; }
#alloc-sliders .alloc-head { margin-bottom: 2px; }
#alloc-sliders .alloc-head .mono { color: var(--accent-ink); font-size: 13px; }
#l-submit { width: 100%; margin-top: 22px; padding: 13px; font-size: 15px; }
#l-status { margin: 11px 0 0; min-height: 1.2em; font-family: var(--font-m); font-size: 12px; word-break: break-all; }

/* spec sheet (launch summary) */
.side-card { position: sticky; top: calc(var(--hdr-h) + 14px); }
.spec-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 1px var(--line);
}
.side-card .kv { padding: 8.5px 0; }
.side-card .kv .mono { font-size: 13.5px; }
.side-card p.small { line-height: 1.6; }

/* ================= token page ================= */
.cols {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 14px;
  align-items: start;
}
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.t-head { display: flex; align-items: center; gap: 13px; }
.t-head-main { min-width: 0; }
.t-head-main #t-addr { margin-top: 5px; }
.t-avatar { width: 52px; height: 52px; font-size: 22px; border-radius: 12px; }
#t-links { margin-top: 10px; }
.t-desc { font-size: 13.5px; line-height: 1.6; color: var(--muted); word-break: break-word; }
.t-link-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.t-link-row a {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid transparent;
  transition: background 0.15s;
}
.t-link-row a:hover { background: #d3e0f8; color: var(--primary); }
#t-title { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; word-break: break-word; }
#t-addr {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--well);
  border: 1px solid var(--line-soft);
  font-size: 11.5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
#t-addr a { color: var(--muted); transition: color 0.15s; }
#t-addr a:hover { color: var(--primary); }
.t-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-title-row .badge { margin-left: 0; }
/* Official seal: a compact serrated gold stamp beside the token name
   (replaces the old full-width gradient pill; same creator check). */
.off-seal { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.off-seal svg { width: 17px; height: 17px; display: block; filter: drop-shadow(0 1px 1px rgba(150, 105, 10, 0.35)); }
.off-seal .off-txt { font-size: 8.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.t-title-row .off-seal svg { width: 21px; height: 21px; }
.t-title-row .off-seal .off-txt { font-size: 10px; }

/* Stocks placeholder view */
.coming-soon { min-height: 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 64px 20px; }
.coming-soon h1 { font-size: 38px; margin: 12px 0 0; }
.coming-soon p { margin: 0; }
.cs-ico { width: 58px; height: 58px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(217, 157, 24, 0.4); display: grid; place-items: center; color: var(--accent); }
.cs-ico svg { width: 30px; height: 30px; }
.chart-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.chart-head h2 { margin: 0; }
.chart-head .ds-seg { margin-left: auto; }
#t-chart-price { color: #123783; font-weight: 600; }
#t-chart { width: 100%; display: block; }
.grad-wrap { margin-top: 16px; }
.grad-wrap .alloc-head { margin-bottom: 8px; }
#t-grad-pct { color: var(--accent-ink); font-size: 14px; font-weight: 600; }
#t-pool .kv:hover, #t-alloc .kv:hover { background: var(--well); }

/* trade panel */
.trade-card { position: sticky; top: calc(var(--hdr-h) + 14px); }
.trade-card h2 { display: flex; align-items: center; gap: 9px; }
.trade-card h2::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(22, 199, 132, 0.5);
  animation: dot-pulse 2.2s ease-out infinite;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--well);
  border: 1px solid var(--line-soft);
}
.seg button {
  border: 0;
  border-radius: 7px;
  padding: 9px;
  font-size: 13.5px;
  font-weight: 700;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  transition: background 0.15s, color 0.15s;
}
.seg button:hover { color: var(--txt); background: rgba(255, 255, 255, 0.6); }
#t-tab-buy.act { background: var(--up); color: #fff; box-shadow: 0 1px 3px rgba(7, 22, 52, 0.15); }
#t-tab-sell.act { background: var(--down); color: #fff; box-shadow: 0 1px 3px rgba(7, 22, 52, 0.15); }
#t-amt {
  font-family: var(--font-d);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 12px 14px;
}
#t-quote-out {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--primary-soft);
  border: 1px solid transparent;
  color: var(--primary);
  font-size: 13px;
  line-height: 1.55;
}
#t-fee-note { margin: 9px 0 0; font-size: 12px; color: var(--dim); line-height: 1.55; }
#t-submit { width: 100%; margin-top: 14px; padding: 13px; font-size: 15px; }
#t-status { margin: 11px 0 0; min-height: 1.2em; font-family: var(--font-m); font-size: 12px; word-break: break-all; }
.trade-meta { margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
#t-claim-div { width: 100%; margin-top: 12px; }

/* ================= profile ================= */
.pf-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 4px;
}
.pf-ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  font-size: 19px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid rgba(217, 157, 24, 0.35);
  margin-bottom: 12px;
}
.pf-cards .big {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.pf-cards p { line-height: 1.6; }
#pf-list { display: grid; gap: 12px; }
.pf-hold { display: grid; gap: 12px; }
.pf-sec { margin: 22px 0 10px; }
#pf-list .card .sym { font-size: 17px; }
#pf-list .ghost { padding: 8px 14px; font-size: 12.5px; border-radius: 8px; margin-top: 10px; }

/* ================= docs / how it works ================= */
.doc-lede {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 780px;
  margin: 0 0 24px;
}
.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.doc-grid .card:last-child { grid-column: 1 / -1; }
.doc-num { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.doc-n {
  font-family: var(--font-d);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--primary-2);
}
@supports not (-webkit-text-stroke: 1px black) {
  .doc-n { color: var(--primary-2); }
}
.doc-t {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.doc-grid h2 { font-size: 17px; margin-bottom: 8px; }
.doc-grid p { margin: 0; font-size: 13.5px; line-height: 1.68; color: var(--muted); }
table.const { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.const th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
table.const td { padding: 9px 8px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
table.const td:last-child {
  font-family: var(--font-m);
  text-align: right;
  color: var(--txt);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
table.const tr:last-child td { border-bottom: 0; }
table.const tr:hover td { background: var(--well); }
#d-contracts { font-size: 12.5px; line-height: 1.9; word-break: break-all; }

/* ================= footer / toast ================= */
footer { margin-top: auto; }
footer .bar {
  padding: 20px 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}
.fbrand { display: inline-flex; align-items: center; gap: 8px; }
.fbrand img { width: 18px; height: 18px; border-radius: 5px; }
.fcontracts { font-size: 11px; color: var(--dim); }
footer a { color: var(--muted); font-weight: 600; }
footer a:hover { color: var(--primary); }
#toast {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: #0b0f1a;
  border: 1px solid #222d45;
  box-shadow: var(--shadow-pop);
  animation: toast-in 0.25s cubic-bezier(0, 0, 0.2, 1) both;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ================= responsive ================= */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr 340px; }
}
@media (max-width: 900px) {
  #sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 232px;
    transform: translateX(-105%);
    transition: transform 0.22s ease-out;
    box-shadow: var(--shadow-pop);
  }
  #sidebar.open { transform: none; }
  #sb-toggle { display: grid; }
  main { padding: 22px 16px 56px; }
  .launch-grid { grid-template-columns: 1fr; }
  .launch-side { position: static; }
  .links-grid { grid-template-columns: 1fr 1fr; }
  .side-card { position: static; }
  .cols { grid-template-columns: 1fr; }
  .trade-card { position: static; }
  .doc-grid { grid-template-columns: 1fr; }
  .pf-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .chip { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .logo-sub { display: none; }
  .logo > span { font-size: 16px; }
  header .bar { padding: 0 10px; gap: 7px; }
  .hdr-nav button { padding: 7px 9px; font-size: 13px; }
  #connect { padding: 8px 12px; font-size: 13px; }
  .hero h1 { font-size: 30px; }
  .row { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  #t-title { font-size: 22px; }
  #t-amt { font-size: 22px; }
  .stat .v { font-size: 19px; }
  #toast { right: 14px; bottom: 14px; }
  footer .bar { justify-content: flex-start; padding: 18px 16px 24px; }
}

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-rv .rv { opacity: 1; transform: none; }
}

/* ============================================================
   ElysRocket — BOXA-style dark theme overrides (2026-11-04)
   Deep teal-black dashboard, cyan primary, gold brand accent,
   pill buttons, 20px cards, slim left rail.
   ============================================================ */
:root {
  --bg: #0A1A1F;
  --surface: #10242B;
  --well: #132A32;
  --line: rgba(255,255,255,.09);
  --line-soft: rgba(255,255,255,.06);
  --txt: #EAF3F5;
  --muted: #8CA2A8;
  --dim: #5F7A81;
  --primary: #29C6F2;
  --primary-2: #5FD7F7;
  --primary-soft: rgba(41,198,242,.13);
  --accent: #F0B93E;
  --accent-2: #FFD166;
  --accent-soft: rgba(240,185,62,.14);
  --accent-ink: #F0B93E;
  --on-accent: #06222B;
  --up: #34D399;
  --down: #F87171;
  --danger: #F87171;
  --gold: #F0B93E;
  --ink: #EAF3F5;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow-pop: 0 24px 64px rgba(0,0,0,.55);
  --font-d: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-w: "Inter", system-ui, -apple-system, sans-serif;
}
body { background: var(--bg); color: var(--txt); }
::selection { background: rgba(41,198,242,.35); color: #fff; }
::-webkit-scrollbar-thumb { background: #23404A; border-color: var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2F5563; }
:focus-visible { outline-color: var(--primary); }
a { color: var(--primary); }
a:hover { color: var(--primary-2); }
#sidebar { background: #08151A; border-right-color: var(--line); }
.side-nav button { border-radius: 12px; color: var(--muted); }
.side-nav button:hover { background: var(--well); color: var(--txt); }
.side-nav button.active { background: var(--surface-2, #132A32); background: #132A32; color: var(--txt); border-color: var(--line); box-shadow: none; }
.bar { background: rgba(10,26,31,.92); border-bottom-color: var(--line); backdrop-filter: blur(10px); }
.logo img { border-radius: 10px; }
.chip { background: var(--well); border-color: var(--line); color: var(--muted); border-radius: 999px; }
#connect, .act {
  background: var(--primary); color: #06222B; border: none;
  border-radius: 999px; font-weight: 700;
}
#connect:hover, .act:hover { background: var(--primary-2); color: #06222B; }
.ghost { background: transparent; color: var(--txt); border: 1px solid var(--line); border-radius: 999px; }
.ghost:hover { border-color: var(--primary); color: var(--primary); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: none; }
input, select, textarea {
  background: #0D1F26 !important; color: var(--txt) !important;
  border: 1px solid var(--line) !important; border-radius: 12px;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:disabled { opacity: .65; }
.hero-rocket {
  background-image: linear-gradient(90deg, rgba(10,26,31,.96) 25%, rgba(10,26,31,.55) 60%, rgba(10,26,31,.25)), url("assets/banner.webp");
  background-size: cover; background-position: center right;
  border: 1px solid var(--line); border-radius: 24px;
  padding: 44px 40px; margin-top: 18px;
}
.hero-rocket h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; color: #fff; }
.hero-rocket .grad { color: var(--primary); }
.hero-rocket .eyebrow { color: var(--accent-2); }
.hero-rocket p { color: #C7D8DC; }
.tcard { border-radius: 20px; background: var(--surface); border-color: var(--line); }
.qchip, .ds-seg button { border-radius: 999px; background: var(--well); color: var(--muted); border: 1px solid var(--line); }
.qchip:hover, .ds-seg button.on { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.banner { background: rgba(240,185,62,.12); border: 1px solid rgba(240,185,62,.4); color: #FFD166; border-radius: 14px; }
.stat .v { color: #fff; }
.badge.asc { background: rgba(52,211,153,.14); color: var(--up); border-color: rgba(52,211,153,.4); }

/* ============================================================
   ElysRocket — BOXA shell v2 (2026-11-04, user-directed)
   76px icon rail on the left (logo, Explore, Create, Profile,
   How, Stocks; explorer + chain at the foot), NO top nav bar:
   a boxa-style top strip inside the content column carries the
   search pill, the info ticker and Connect wallet. The wide
   text sidebar and brand header from the Elys shell are gone.
   ============================================================ */
:root { --sb-w: 76px; }
#sidebar {
  width: var(--sb-w); padding: 14px 8px; align-items: center;
  background: #08151A; border-right: 1px solid var(--line);
}
.rail-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; text-decoration: none; }
.rail-logo img { width: 42px; height: 42px; border-radius: 12px; display: block; }
.rail-word { font-size: 7.5px; font-weight: 800; letter-spacing: .22em; line-height: 1.5; text-align: center; color: var(--muted); }
.side-nav { width: 100%; gap: 4px; }
.side-nav button {
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; padding: 9px 2px 7px; border-radius: 12px; text-align: center;
  font-size: 9.5px; font-weight: 600; letter-spacing: .02em;
}
.side-nav button svg { width: 21px; height: 21px; }
.side-nav button.active { background: #132A32; color: #fff; border-color: var(--line); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; border-top: none; padding-top: 10px; }
.rail-x { color: var(--muted); display: flex; padding: 6px; border-radius: 10px; }
.rail-x:hover { color: var(--primary); background: var(--well); }
.rail-x svg { width: 19px; height: 19px; }
.rail-net { flex-direction: column; gap: 4px; font-size: 9px; color: var(--dim); }
.topstrip {
  position: sticky; top: 0; z-index: 55;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 28px;
  background: rgba(10,26,31,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.ts-search {
  display: flex; align-items: center; gap: 8px; flex: 0 1 340px;
  background: #0D1F26; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px;
}
.ts-search svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
.ts-search input {
  background: transparent !important; border: none !important; border-radius: 999px;
  height: 38px; width: 100%; padding: 0; font-size: 13.5px;
}
.ts-search input:focus { outline: none; }
.ts-ticker { display: flex; gap: 8px; overflow: hidden; flex: 1; justify-content: center; }
.tick {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12px; color: var(--muted); background: var(--well);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 11px;
}
.tick b { color: var(--txt); font-weight: 700; }
.ts-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
main { padding: 26px 40px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.85fr); gap: 26px; align-items: stretch; margin-bottom: 8px; }
.hero-left .eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-2); }
.hero-left h1 { font-size: 58px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 10px 0 12px; color: #fff; }
.hero-left h1 .grad { color: var(--primary); }
.hero-left p { color: #B9CDD2; max-width: 560px; margin: 0 0 20px; }
.stats-inline { display: flex; flex-wrap: wrap; gap: 0; background: transparent; border: none; }
.stats-inline .stat { padding: 4px 22px 4px 0; margin-right: 22px; border-left: none !important; }
.stats-inline .stat + .stat { border-left: none; }
.stats-inline .stat .v { font-size: 21px; }
.stats-inline .stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hero-card {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background-image: linear-gradient(180deg, rgba(10,26,31,.18) 30%, rgba(10,26,31,.88)), url("assets/banner.webp");
  background-size: cover; background-position: center right;
  display: flex; align-items: flex-end; min-height: 272px;
}
.hc-body { padding: 18px 20px; width: 100%; }
.hc-tag { display: inline-block; background: var(--primary); color: #06222B; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; margin-bottom: 8px; }
.hc-title { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.1; }
.hc-sub { color: #C7D8DC; font-size: 13px; margin-bottom: 10px; }
.hc-rows { margin-bottom: 14px; }
.hc-rows .kv { color: #C7D8DC; border-color: rgba(255,255,255,.14); padding: 4px 0; }
.hc-rows .kv .mono { color: #fff; }
@media (max-width: 1100px) { .ts-ticker { display: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left h1 { font-size: 42px; }
  main { padding: 20px 16px 48px; }
  .topstrip { padding: 10px 14px; }
  .ts-right .chip { display: none; }
}

/* ============================================================
   ElysRocket — footer status bar + Launch form v2 (2026-11-04)
   Footer becomes a boxa-style status strip. The Launch form is
   re-typeset: solid cyan number chips (no hollow outline type),
   sentence-case section titles, compact 44px fields, tighter
   two-column rhythm, gold dashed "fixed rule" box for the
   platform share, and no dead half-row when the custom-virtual
   field is hidden.
   ============================================================ */
.footbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px;
  justify-content: space-between;
  padding: 13px 28px; margin-top: auto;
  background: #08151A; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
footer { margin-top: auto; }
.fbrand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.fbrand img { width: 22px; height: 22px; border-radius: 6px; }
.fstats { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.fstat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fcontracts { font-size: 11.5px; color: var(--dim); }
.fcontracts a { color: var(--primary); }
.flinks { display: inline-flex; gap: 18px; }
.flinks a { color: var(--muted); font-weight: 600; }
.flinks a:hover { color: var(--primary); }

/* ---- Launch form ---- */
#view-launch > p.muted { max-width: 720px; color: #B9CDD2; }
#view-launch .launch-grid { gap: 16px; margin-top: 14px; }
#view-launch .card { padding: 20px 22px 22px; border-radius: 18px; }
#view-launch .sec-head { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); gap: 10px; }
#view-launch .sec-num {
  -webkit-text-stroke: 0; color: #29C6F2;
  background: rgba(41,198,242,.13); border: 1px solid rgba(41,198,242,.35);
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  padding: 5px 8px; border-radius: 8px; line-height: 1;
}
#view-launch .sec-head h3 { font-size: 15px; font-weight: 700; letter-spacing: .01em; text-transform: none; color: #fff; }
#view-launch .sec-note { font-size: 12.5px; color: var(--muted); }
#view-launch label {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  color: #8CA2A8; margin: 15px 0 6px; line-height: 1.45;
}
#view-launch .sec-head + .row label, #view-launch .card > label:first-of-type { margin-top: 12px; }
#view-launch input, #view-launch select, #view-launch textarea, #view-launch .xsel-btn {
  background: #0B1B21 !important; border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 12px; min-height: 44px; padding: 10px 14px; font-size: 14.5px;
}
#view-launch textarea { min-height: 76px; }
#view-launch input:focus, #view-launch select:focus, #view-launch textarea:focus {
  border-color: rgba(41,198,242,.65) !important; box-shadow: 0 0 0 3px rgba(41,198,242,.16);
}
#view-launch .row { gap: 14px; }
#view-launch .row:has(> #l-cv-wrap[style*="none"]) { grid-template-columns: 1fr; }
#view-launch .qchips { margin-top: 8px; gap: 8px; }
#view-launch .qchip { padding: 6px 15px; font-size: 12.5px; font-weight: 600; }
#view-launch .small.muted { line-height: 1.55; }
.fee-fixed {
  display: flex; align-items: center; min-height: 44px; padding: 10px 14px;
  background: rgba(240,185,62,.09); border: 1px dashed rgba(240,185,62,.45);
  border-radius: 12px; color: #FFD166; font-size: 14px; font-weight: 600;
}
#view-launch .img-drop { background: #0B1B21; border: 1.5px dashed rgba(255,255,255,.18); border-radius: 14px; padding: 18px; }
#view-launch .img-drop:hover, #view-launch .img-drop.drag { border-color: rgba(41,198,242,.6); }
#view-launch .alloc-head { align-items: baseline; gap: 12px; }
#view-launch .alloc-head label { margin: 0; line-height: 1.5; }
#alloc-total { white-space: nowrap; font-size: 13px; }
#view-launch input[type="range"] { min-height: 0; padding: 0; background: transparent !important; border: none !important; }
#view-launch .launch-action { display: flex; align-items: center; gap: 16px; }
#view-launch .launch-action #l-submit { padding: 12px 28px; font-size: 15px; }
#view-launch .side-card .kv { padding: 7px 0; }
@media (max-width: 720px) {
  #view-launch .card { padding: 16px; }
  #view-launch .row { grid-template-columns: 1fr; }
  .footbar { padding: 13px 16px; }
}

/* ============================================================
   ElysRocket — Create page v3 (2026-11-04, user-directed)
   Structural break from the Elys launch form: no stacked
   numbered cards, no right-hand summary rail. One panel, two
   columns (Identity+Market | Fee+QuadSplit), hairline section
   breaks, a pill fee selector, and a bottom action bar with
   summary chips. Preview sits under the panel as a token card.
   ============================================================ */
.create-head h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 8px; color: #fff; }
.create-head h1 .grad { color: var(--primary); }
.create-head p { color: #B9CDD2; max-width: 680px; margin: 0 0 20px; }
.create-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 28px 22px;
}
.create-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.create-col { min-width: 0; }
.create-col + .create-col { position: relative; }
.create-col + .create-col::before {
  content: ""; position: absolute; left: -22px; top: 4px; bottom: 4px;
  width: 1px; background: var(--line-soft);
}
.csec + .csec { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.csec-t {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  margin-bottom: 4px;
}
.csec-t::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--primary); flex: none; }
.csec-note { margin-left: auto; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
#view-launch .csec label { margin-top: 13px; }
#view-launch .csec .row label { margin-top: 13px; }
.fee-pills { display: flex; gap: 8px; }
.fee-pills button {
  flex: 1; padding: 10px 0; border-radius: 999px;
  background: var(--well); border: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px; font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
}
.fee-pills button:hover { color: var(--txt); border-color: rgba(41,198,242,.5); }
.fee-pills button.on { background: var(--primary); border-color: var(--primary); color: #06222B; }
.fee-select-hidden { display: none !important; }
.create-action {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
}
.ca-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 240px; }
.create-action #l-status { margin: 0; max-width: 300px; }
.create-action #l-submit { padding: 13px 34px; font-size: 15.5px; border-radius: 999px; margin-left: auto; }
.create-preview { margin-top: 20px; }
.create-preview .pv-tcard { max-width: 350px; }
@media (max-width: 980px) {
  .create-cols { grid-template-columns: 1fr; }
  .create-col + .create-col::before { display: none; }
  .create-col + .create-col { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
  .create-head h1 { font-size: 34px; }
  .create-panel { padding: 20px 16px; }
}

/* Create v3 fixes: the custom-dropdown script wraps every <select>,
   including the hidden #l-fee mirror — hide that wrapper; and the
   base #l-submit width:100% must not stretch the action-bar button. */
.xsel:has(> select#l-fee) { display: none !important; }
.create-action #l-submit { width: auto; flex: none; }

/* ============================================================
   ElysRocket — Portfolio page v2 (2026-11-04, user-directed)
   Breaks from the Elys profile (title + two wide explainer
   cards + full-width list): boxa-style portfolio head with a
   wallet identity card, then a two-column layout — a slim
   "How you earn" rail on the left, the data column on the right.
   ============================================================ */
.pf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.pf-head h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 6px; color: #fff; }
.pf-head h1 .grad { color: var(--primary); }
.pf-sub { color: #B9CDD2; margin: 0; }
.pf-id {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 12px 10px 10px;
}
.pf-id img { width: 42px; height: 42px; border-radius: 11px; display: block; }
.pf-id-t { font-weight: 700; color: #fff; font-size: 14.5px; line-height: 1.25; }
.pf-id-s { font-size: 12px; color: var(--muted); }
.pf-id .ghost { margin-left: 6px; }
.pf-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 20px; align-items: start; }
.pf-side { position: sticky; top: 84px; }
.pf-earn { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.pf-earn .csec-t { margin-bottom: 10px; }
.pf-earn-row { display: flex; gap: 11px; padding: 11px 0; }
.pf-earn-row + .pf-earn-row { border-top: 1px solid var(--line-soft); }
.pf-earn-row .pf-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240,185,62,.12); border: 1px solid rgba(240,185,62,.35);
  color: #FFD166; font-size: 15px;
}
.pf-earn-row b { color: #fff; font-size: 14px; }
.pf-earn-row p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.pf-main { min-width: 0; }
@media (max-width: 980px) {
  .pf-layout { grid-template-columns: 1fr; }
  .pf-side { position: static; }
  .pf-head h1 { font-size: 34px; }
}

/* Top info strip refinement (2026-11-04): slimmer, quieter pills —
   muted label + semibold value, tighter rhythm. */
.topbar-infos { gap: 8px; }
.topbar-infos .tick {
  padding: 6px 13px; font-size: 12.5px; letter-spacing: .01em;
  background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07);
  color: #93A9AF;
}
.topbar-infos .tick b { color: #EAF3F5; font-weight: 650; margin-left: 3px; }
.topbar-infos .tick .live-dot { width: 7px; height: 7px; }

/* Discover toolbar controls (2026-11-04): sort + filter unified with
   the search field — same height, pill geometry, filled cyan active. */
.ds-bar input[type="search"], .ds-bar .xsel-btn, .ds-bar .ds-seg { height: 46px; }
.ds-bar .xsel { min-width: 168px; }
.ds-bar .xsel-btn {
  border-radius: 13px; padding: 0 14px;
  background: var(--well); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--txt);
}
.ds-bar .xsel-btn:hover { border-color: rgba(41,198,242,.45); }
.ds-bar .ds-seg {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--well); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; box-sizing: border-box;
}
.ds-bar .ds-seg button {
  border: none; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 650; padding: 7px 16px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.ds-bar .ds-seg button:hover { color: var(--txt); }
.ds-bar .ds-seg button.on { background: var(--primary); color: #06222B; }
