/* Token Launchpad — mobile-first, no horizontal overflow at 380px. */
:root {
  --bg: #0a0b12;
  --bg-2: #12131d;
  --panel: #161826;
  --panel-2: #1d2032;
  --line: #262a3d;
  --ink: #eef1f7;
  --muted: #9aa3b5;
  --brand: #8b5cf6;      /* launch violet */
  --brand-2: #22d3ee;    /* ignition cyan */
  --ok: #35c98b;
  --warn: #ffbf47;
  --err: #ff5c6c;
  --radius: 14px;
  --maxw: 1000px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 500px at 82% -10%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 8%, rgba(34,211,238,.09), transparent 55%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
a { color: var(--brand-2); }
img, svg { max-width: 100%; }

/* ── Nav ─────────────────────────────────────────────────── */
.tl-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 0; flex-wrap: wrap;
}
.tl-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .3px; }
.tl-logo .spark { color: var(--brand); }
.tl-nav-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-nav a.tl-link { font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.tl-nav a.tl-link:hover { color: var(--ink); }
.tl-net-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: var(--brand-2); border: 1px solid var(--line);
  background: var(--panel); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────────────── */
.tl-hero { padding: 28px 0 10px; }
.tl-hero h1 {
  font-size: clamp(28px, 8vw, 52px); line-height: 1.05; margin: 8px 0 12px;
  letter-spacing: -0.5px;
}
.tl-hero h1 .grad {
  background: linear-gradient(92deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tl-hero .sub { color: var(--muted); font-size: clamp(15px, 4vw, 19px); max-width: 48ch; }
.tl-kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--brand-2);
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px;
}
.tl-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tl-steps { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 22px 0 4px; }
.tl-step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tl-step b { color: var(--ink); }
.tl-step span { color: var(--muted); font-size: 14px; }
.tl-step .n {
  display: inline-flex; width: 24px; height: 24px; border-radius: 999px; margin-right: 8px;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  color: #0b0714; background: linear-gradient(92deg, var(--brand), var(--brand-2));
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  font-weight: 700; font-size: 15px; padding: 12px 16px; border-radius: 12px; cursor: pointer;
  transition: transform .06s ease, border-color .15s ease, opacity .15s ease;
  max-width: 100%; text-decoration: none; display: inline-block; text-align: center;
}
.btn:hover { border-color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary {
  border: none; color: #0b0714;
  background: linear-gradient(92deg, var(--brand), var(--brand-2));
}
.btn.wide { width: 100%; }

/* ── Cards / layout ──────────────────────────────────────── */
.tl-main { margin: 26px 0 40px; }
.tl-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.tl-card h2 { margin: 0 0 4px; font-size: 20px; }
.tl-card .tl-card-sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }

.tl-tok-head { display: flex; align-items: center; gap: 14px; }
.tl-tok-art {
  width: 64px; height: 64px; min-width: 64px; border-radius: 14px; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, #241a3a, #120d1f); border: 1px solid var(--line);
}
.tl-tok-head h2 { margin: 0; font-size: 22px; }
.tl-tok-head .sym { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.tl-tok-desc { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

.tl-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.tl-fact { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tl-fact .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.tl-fact .v { font-size: 16px; font-weight: 700; margin-top: 2px; word-break: break-word; }

.tl-hr { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* ── Form (create page) ──────────────────────────────────── */
.tl-form { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tl-field { display: flex; flex-direction: column; gap: 6px; }
.tl-field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tl-field input {
  appearance: none; width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 11px 12px; font-size: 15px; font-weight: 600;
}
.tl-field input:focus { outline: none; border-color: var(--brand); }
.tl-field .tl-err { color: var(--err); font-size: 12px; font-weight: 700; min-height: 0; }
.tl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Preview panel ───────────────────────────────────────── */
.tl-preview { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.tl-preview h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.tl-preview dl { margin: 0; display: grid; gap: 7px; }
.tl-preview dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.tl-preview dt { color: var(--muted); }
.tl-preview dd { margin: 0; text-align: right; font-weight: 700; word-break: break-word; }

/* ── Sale progress ───────────────────────────────────────── */
.tl-progress-wrap { margin: 14px 0; }
.tl-progress {
  height: 12px; width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.tl-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(92deg, var(--brand), var(--brand-2));
  transition: width .4s ease;
}
.tl-progress-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }

/* ── qty ─────────────────────────────────────────────────── */
.tl-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tl-qty-row .lbl { color: var(--muted); font-size: 14px; }
.tl-stepper { display: flex; align-items: center; gap: 10px; }
.tl-stepper button {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font-size: 22px; cursor: pointer; line-height: 1;
}
.tl-stepper input {
  width: 90px; text-align: center; font-weight: 800; font-size: 18px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px;
}

/* ── fee split ───────────────────────────────────────────── */
.tl-fees { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
.tl-fee-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.tl-fee-line.total { font-weight: 800; font-size: 16px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.tl-fee-line .who { color: var(--muted); }
.tl-fee-line .who .tag {
  font-size: 10px; color: var(--brand-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 5px; margin-left: 6px;
}

/* ── wallet pill ─────────────────────────────────────────── */
.tl-wallet-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; max-width: 100%;
}
.tl-wallet-pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }
.tl-wallet-pill .tl-addr { font-weight: 700; }
.tl-wallet-pill .tl-bal { color: var(--muted); }

/* ── status ──────────────────────────────────────────────── */
.tl-status { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; border: 1px solid var(--line); }
.tl-status[data-kind="ok"]    { border-color: rgba(53,201,139,.5);  background: rgba(53,201,139,.08);  color: #b8f0d6; }
.tl-status[data-kind="warn"]  { border-color: rgba(255,191,71,.5);  background: rgba(255,191,71,.08);  color: #ffe4a6; }
.tl-status[data-kind="error"] { border-color: rgba(255,92,108,.5);  background: rgba(255,92,108,.08);  color: #ffc2c9; }
.tl-status[data-kind="info"]  { border-color: rgba(139,92,246,.4);  background: rgba(139,92,246,.08);  color: #d9ccff; }

/* ── receipt ─────────────────────────────────────────────── */
.tl-receipt { margin-top: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.tl-receipt h3 { margin: 0 0 8px; font-size: 15px; }
.tl-receipt dl { margin: 0; display: grid; gap: 6px; }
.tl-receipt dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.tl-receipt dt { color: var(--muted); }
.tl-receipt dd { margin: 0; text-align: right; word-break: break-all; }
.tl-owned { margin-top: 12px; font-weight: 800; color: var(--brand-2); }
.tl-muted { color: var(--muted); }

/* ── footer ──────────────────────────────────────────────── */
.tl-foot { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 13px; }
.tl-foot .safe { color: var(--warn); }
.tl-foot code { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12px; }

/* ── Tablet / desktop ────────────────────────────────────── */
@media (min-width: 640px) {
  .tl-steps { grid-template-columns: repeat(3, 1fr); }
  .tl-facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .tl-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
}
