/* ============================================================
   Elys Launch — design system (aka.fun-style 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 (aka-style: 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 select { flex: none; width: auto; min-width: 148px; }
.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;
  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; }
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); }
.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-meta { line-height: 1.6; word-break: break-word; }
.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; }
}
