/* Vectis — site styles. Iron / bone / ochre. Saira for display, Plex Mono for data. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--text); }
body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- header ---------- */
#site-header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--iron-2);
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--slag-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.wallet-slot { display: flex; align-items: center; gap: 12px; }
.net-pill { font-size: 11px; color: var(--slag-2); display: inline-flex; align-items: center; gap: 7px; padding: 3px 0; border: 0; }
.net-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 3px rgba(62,124,106,.18); }
.net-pill.testnet .dot { background: var(--rust); box-shadow: 0 0 0 3px rgba(162,75,42,.18); }
.ca-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--slag-2); border: 1px solid var(--line-2); padding: 4px 9px; font-family: var(--font-mono); }
.ca-chip[data-copy]:hover { color: var(--accent); border-color: var(--accent); cursor: pointer; }
.ca-chip.soon .mono { color: var(--slag); }
.ca-chip svg { width: 12px; height: 12px; }
@media (max-width: 760px) { .wallet-slot .ca-chip { display: none; } }
@media (max-width: 480px) { .net-pill .txt { display: none; } }
.wallet-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 240px; background: var(--surface); border: 1px solid var(--iron-2); border-radius: 2px;
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.menu-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; border-radius: 2px; width: 100%; }
.menu-row:hover { background: var(--iron); }
.menu-row.muted { color: var(--muted); cursor: default; }
.menu-row img { border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 2px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .01em;
  transition: background-color .12s, border-color .12s, color .12s;
}
.btn-primary { background: var(--accent); color: var(--iron); }
.btn-primary:hover { background: #E2B04C; color: var(--iron); }
.btn-primary:disabled { background: var(--iron-2); color: var(--muted); cursor: not-allowed; }
.btn-ghost { border-color: var(--iron-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--slag); color: var(--text); }
.btn-ghost.connected { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 22px; font-size: 16px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.05; }
h1 { font-weight: 800; font-size: clamp(30px, 5vw, 48px); text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: 22px; }
h3 { font-weight: 700; font-size: 16px; }
.lede { color: var(--slag-2); max-width: 72ch; margin: 10px 0 0; }
.muted { color: var(--muted); }
.up { color: var(--buy); }
.down { color: var(--sell); }
.mono { font-family: var(--font-mono); }
main { flex: 1; padding: 36px 0 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }

/* ---------- token table ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.toolbar select, .toolbar input {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--iron-2);
  border-radius: 2px; padding: 8px 10px;
}
.toolbar .spacer { flex: 1; }
.source { font-size: 12px; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; text-align: right; border-bottom: 1px solid var(--iron-2); white-space: nowrap; }
.table th { color: var(--slag-2); font-weight: 500; font-size: 12px; cursor: pointer; user-select: none; }
.table th[aria-sort="descending"], .table th[aria-sort="ascending"] { color: var(--accent); }
.table th:first-child, .table td:first-child { text-align: left; }
.table tbody tr { transition: background-color .12s; }
.table tbody tr:hover { background: var(--surface); }
.table tbody tr { cursor: pointer; }
.tok { display: flex; align-items: center; gap: 12px; }
.tok img, .tok .ph { width: 32px; height: 32px; border-radius: 2px; background: var(--iron-2); flex: none; object-fit: cover; }
.tok .ph { display: grid; place-items: center; color: var(--accent); font-family: var(--font-display); font-weight: 800; }
.tok b { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.tok small { color: var(--muted); display: block; }
.pair { color: var(--slag-2); text-transform: none; }
.empty { padding: 48px 0; color: var(--slag-2); }
.empty a { color: var(--accent); }

/* ---------- forms ---------- */
.form { max-width: 860px; display: grid; gap: 22px; }
.form .row2 { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; align-content: start; } /* no row stretch: keeps paired inputs level */
.field .err:empty, .field .hint:empty { display: none; }
.field label { font-size: 13px; color: var(--slag-2); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--iron-2);
  border-radius: 2px; padding: 11px 12px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--rust); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.drop {
  border: 1px dashed var(--slag); border-radius: 2px; padding: 20px; display: flex; gap: 16px; align-items: center;
  cursor: pointer; background: var(--surface);
}
.drop.over { border-color: var(--accent); }
.drop img { width: 64px; height: 64px; border-radius: 2px; object-fit: cover; background: var(--iron-2); }
.drop .ph { width: 64px; height: 64px; border-radius: 2px; background: var(--iron-2); }
.drop input { display: none; }
.rules { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; color: var(--slag-2); font-size: 13px; display: grid; gap: 4px; }
.rules b { color: var(--text); font-weight: 500; }
.preview { background: var(--surface); border: 1px solid var(--iron-2); border-radius: 2px; padding: 14px 16px; display: grid; gap: 6px; font-size: 13px; }
.preview .k { color: var(--muted); }
.progress { display: grid; gap: 8px; }
.progress .step { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.progress .step.on { color: var(--text); }
.progress .step.done { color: var(--buy); }
.progress .step.fail { color: var(--rust); }
.progress .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- token page ---------- */
.tp-head { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; margin-bottom: 28px; }
.tp-head img, .tp-head .ph { width: 96px; height: 96px; border-radius: 2px; background: var(--iron-2); object-fit: cover; }
.tp-head .ph { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--accent); }
.tp-head .desc { color: var(--slag-2); max-width: 60ch; margin: 8px 0 0; }
.tp-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.tp-links a { color: var(--slag-2); border-bottom: 1px solid var(--iron-2); }
.tp-links a:hover { color: var(--accent); border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--iron-2); border: 1px solid var(--iron-2); margin-bottom: 28px; }
.stat { background: var(--bg); padding: 16px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-top: 4px; }
.stat .s { font-size: 12px; color: var(--slag-2); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.panel { border: 1px solid var(--iron-2); border-radius: 2px; padding: 20px; display: grid; gap: 14px; align-content: start; }
.panel h3 { margin-bottom: 4px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--iron-2); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--slag-2); }
.claim-amt { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--accent); }
.disclosure { border-left: 3px solid var(--rust); padding: 6px 0 6px 14px; color: var(--slag-2); font-size: 13px; margin-top: 28px; }
.holders { width: 100%; border-collapse: collapse; font-size: 13px; }
.holders td { padding: 7px 0; border-bottom: 1px solid var(--iron-2); }
.holders td:last-child { text-align: right; }

/* ---------- misc ---------- */
#toast-host { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--surface); border: 1px solid var(--iron-2); border-left: 3px solid var(--accent); padding: 12px 14px; border-radius: 2px; max-width: 360px; }
.toast.ok { border-left-color: var(--buy); }
.toast.err { border-left-color: var(--rust); }
footer { border-top: 1px solid var(--iron-2); padding: 20px 0; color: var(--muted); font-size: 12px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--slag-2); }

/* hamburger (mobile only) */
.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid var(--iron-2); background: none; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .15s, opacity .15s; }
#site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
#site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  #site-header { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; }
  .brand img { height: 36px; }
  .nav-toggle { display: inline-flex; }
  .wallet-slot { gap: 8px; }
  .wallet-slot .btn { padding: 8px 12px; font-size: 13px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--iron-2); padding: 6px 0 8px; }
  .nav a { padding: 12px 20px; border-bottom: 0; border-left: 3px solid transparent; font-size: 15px; }
  .nav a[aria-current="page"] { border-left-color: var(--accent); }
  .nav a.xlink { padding: 12px 20px; }
  #site-header.nav-open .nav { display: flex; }
  .cols { grid-template-columns: 1fr; }
  .tp-head { grid-template-columns: 64px 1fr; }
  .tp-head img, .tp-head .ph { width: 64px; height: 64px; font-size: 24px; }
  .row2, .form .row2 { grid-template-columns: 1fr; }
  .table th:nth-child(4), .table td:nth-child(4), .table th:nth-child(6), .table td:nth-child(6) { display: none; }
}

/* ================= v0.3 — Design layout ================= */
:root { --surface-2: #242220; --line: #2A2823; --line-2: #33302A; --placeholder: #5E594F; }
.field input, .field textarea, .field select, .toolbar select, .toolbar input {
  background: var(--surface-2); border-color: var(--line-2); border-radius: 0; height: 46px;
}
.field textarea { height: auto; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.btn { border-radius: 0; }
.panel, .preview, .drop, .stat, .stats, .wallet-menu, .toast, .table th, .table td { border-radius: 0; }
.nav a.xlink { display: inline-flex; align-items: center; }
.nav a.xlink svg { display: block; }

/* stats strip */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0 22px; }
.strip > div { background: var(--bg); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.strip .k { font-size: 11px; letter-spacing: .08em; color: var(--slag); }
.strip .v { font-size: 22px; }
.strip .v.gold { color: var(--accent); }

/* toolbar + chips + view toggle */
.toolbar { justify-content: space-between; }
.toolbar .group { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; min-width: 0; }
.toolbar select { width: 160px; height: 42px; }
.toolbar input { flex: 1; min-width: 160px; max-width: 280px; height: 42px; }
.view-toggle { display: flex; border: 1px solid var(--line-2); }
.view-toggle button { padding: 8px 14px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--slag-2); }
.view-toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

/* grid cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line); background: var(--surface); color: inherit; transition: border-color .12s; }
.card:hover { border-color: var(--accent); color: inherit; }
.card .head { display: flex; align-items: center; gap: 12px; }
.card .head img, .card .head .ph { width: 44px; height: 44px; flex: none; background: var(--line); object-fit: cover; }
.card .head .ph { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--accent); }
.card .id { display: flex; flex-direction: column; min-width: 0; }
.card .id b { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.card .id small { color: var(--slag); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .age { margin-left: auto; font-size: 11px; color: var(--slag); align-self: flex-start; }
.card .kv4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card .foot .burn { color: var(--rust); }
.card .kv4 span { display: block; }
.card .kv4 .k { font-size: 10px; letter-spacing: .08em; color: var(--slag); }
.card .kv4 .v { font-size: 13px; }
.card .kv4 .v.gold { color: var(--accent); }
.card .foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-size: 11px; color: var(--slag); }
.card .foot .trade { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text); }
.ca { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--slag); }
.ca button { display: inline-flex; align-items: center; gap: 4px; color: var(--slag-2); padding: 2px 4px; }
.ca button:hover { color: var(--accent); }

/* list rows */
.rows .row { display: grid; grid-template-columns: minmax(220px, 1.6fr) 1fr .8fr .7fr 1fr .6fr .5fr; gap: 16px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; }
.rows .row:hover { background: var(--surface); color: inherit; }
.rows .row.hd { color: var(--slag); font-size: 11px; letter-spacing: .08em; cursor: default; }
.rows .row.hd:hover { background: none; }
.rows .row > span { text-align: right; }
.rows .row > span:first-child { text-align: left; }
.rows .row .head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rows .row .head img, .rows .row .head .ph { width: 36px; height: 36px; flex: none; background: var(--line); object-fit: cover; }
.rows .row .head .ph { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--accent); }
.rows .row .id b { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.rows .row .id small { color: var(--slag); display: block; }

/* launch layout */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.launch .form { max-width: none; }
.sec { display: grid; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; padding-top: 0; }
.sec h2 { display: flex; align-items: baseline; gap: 12px; font-size: 18px; }
.sec h2 .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--accent); }
.sec h2 .opt { font-family: var(--font-mono); font-size: 11px; color: var(--slag); font-weight: 400; }
.sticky { position: sticky; top: 24px; border: 1px solid var(--line); background: var(--surface); }
.sticky .hd { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .08em; color: var(--slag); }
.sticky .hd img { width: 22px; height: 22px; }
.sticky .r { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.sticky .r .k { color: var(--slag); }
.sticky .r .k.sub { padding-left: 14px; }
.sticky .r .gold { color: var(--accent); }
.sticky .cta { padding: 18px 20px; display: grid; gap: 10px; }
.drop { border-radius: 0; background: var(--surface-2); border-color: var(--line-2); }

/* token page */
.tpg { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.tpg .left, .tpg .right { display: grid; gap: 22px; min-width: 0; }
.tpg .left > *, .tpg .right > * { min-width: 0; }
.chart-box, .trades { max-width: 100%; }
.trades .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#chart { max-width: 100%; overflow: hidden; }
.chart-box { border: 1px solid var(--line); background: var(--surface); }
.chart-box .hd { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px 6px; }
.chart-box .hd .px { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .01em; }
.chart-box .hd .px small { font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--slag-2); margin-left: 10px; }
/* one toolbar row under the price: chart type + volume on the left, timeframes on the right */
.chart-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chart-tools .grp { display: flex; gap: 8px; }
.tfs { display: inline-flex; border: 1px solid var(--line-2); background: var(--bg, transparent); }
.tfs button { padding: 5px 10px; font-size: 11.5px; font-family: var(--font-mono); letter-spacing: .02em; color: var(--slag-2); border: 0; background: transparent; cursor: pointer; }
.tfs button + button { border-left: 1px solid var(--line-2); }
.tfs button:hover { color: var(--text); }
.tfs button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
#chart { height: 360px; width: 100%; }
.trades { border: 1px solid var(--line); }
.trades .hd { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; color: var(--slag); }
.trades table { width: 100%; border-collapse: collapse; font-size: 12px; }
.trades td { padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.trades td:not(:first-child):not(:nth-child(2)) { text-align: right; }
.trades tr:last-child td { border-bottom: 0; }
.swap { border: 1px solid var(--line); background: var(--surface); }
.swap .tabs { display: grid; grid-template-columns: 1fr 1fr; }
.swap .tabs button { padding: 13px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--slag-2); border-bottom: 2px solid var(--line); }
.swap .tabs button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }
.swap .tabs button.sell[aria-pressed="true"] { border-bottom-color: var(--sell); }
.swap .body { padding: 16px; display: grid; gap: 12px; }
.amt { border: 1px solid var(--line-2); background: var(--surface-2); padding: 10px 12px; display: grid; gap: 6px; }
.amt .lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--slag); }
.amt .lbl button { color: var(--accent); font-size: 11px; }
.amt .in { display: flex; align-items: center; gap: 10px; }
.amt input { background: none; border: 0; padding: 0; height: auto; font-size: 22px; font-family: var(--font-mono); color: var(--text); width: 100%; min-width: 0; }
.amt input:focus { outline: none; }
.amt select { width: auto; height: 34px; padding: 0 8px; font-size: 13px; }
.amt .sym { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.swap .meta { display: grid; gap: 6px; font-size: 12px; color: var(--slag-2); }
.swap .meta div { display: flex; justify-content: space-between; gap: 12px; }
.swap .meta .slip { display: flex; gap: 6px; align-items: center; }
.swap .meta .slip button { padding: 2px 6px; border: 1px solid var(--line-2); font-size: 11px; color: var(--slag-2); }
.swap .meta .slip button[aria-pressed="true"] { color: var(--text); border-color: var(--slag); }
.swap .btn-sell { background: var(--sell); color: var(--bone); }
.swap .btn-sell:hover { background: #B8553A; color: var(--bone); }
.swap .get { font-size: 12px; color: var(--slag-2); }
.swap .get a { color: var(--accent); }
.info { border: 1px solid var(--line); background: var(--surface); }
.info .hd { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; color: var(--slag); display: flex; justify-content: space-between; }
.info .r { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.info .r:last-child { border-bottom: 0; }
.info .r .k { color: var(--slag); }
.info .r a { color: var(--slag-2); }
.info .r a:hover { color: var(--accent); }
.tp-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.tp-top img, .tp-top .ph { width: 56px; height: 56px; background: var(--line); object-fit: cover; }
.tp-top .ph { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--accent); }
.tp-top h1 { font-size: clamp(26px, 4vw, 36px); }
.tp-top .sub { color: var(--slag-2); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tp-top .actions { margin-left: auto; display: flex; gap: 8px; }
.tp-top .actions .btn { padding: 8px 12px; font-size: 13px; }
.badge { font-size: 10px; letter-spacing: .08em; color: var(--accent); border: 1px solid var(--accent); padding: 2px 6px; }
.rewards .claim-amt { font-size: 30px; }

/* faq */
.faq { max-width: 760px; display: grid; gap: 6px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--slag-2); max-width: 68ch; line-height: 1.7; }
.faq .a a { color: var(--accent); }
.faq .a p { margin: 0 0 10px; }

@media (max-width: 860px) {
  .strip { grid-template-columns: repeat(3, 1fr); margin: 18px 0 16px; }
  .strip > div { padding: 10px 12px; gap: 2px; }
  .strip .k { font-size: 9.5px; letter-spacing: .06em; }
  .strip .v { font-size: 15px; }
  .stats-row { grid-template-columns: repeat(3, auto); gap: 12px 22px; padding-bottom: 12px; margin-bottom: 16px; }
  .stats-row .v { font-size: 15px; }
  .stats-row .s { font-size: 10px; }
  .trades td:nth-child(4), .trades tr.th td:nth-child(4), .trades td:nth-child(7), .trades tr.th td:nth-child(7) { display: none; }
  .trades td { padding: 8px 10px; }
  .chart-tools { padding: 6px 10px 8px; }
  .chart-tools button { padding: 5px 8px; font-size: 11px; }
  .launch { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .tpg { grid-template-columns: 1fr; }
  .rows .row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .rows .row > span:not(.keep) { display: none; }
  .rows .row.hd { display: none; }
  .tp-top .actions { margin-left: 0; }
  #chart { height: 260px; }
}

/* token page v0.3a */
.back { display: inline-block; color: var(--slag-2); font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--accent); }
.tp-top .actions { gap: 8px; flex-wrap: wrap; }
.ca-btn .mono { color: var(--text); }
.ca-btn:hover .mono { color: var(--accent); }
.stats-row { margin-bottom: 22px; grid-template-columns: repeat(6, auto); justify-content: start; gap: 40px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; }
.stats-row > div { background: none; padding: 0; display: grid; gap: 3px; }
.stats-row .k { font-size: 10px; letter-spacing: .08em; color: var(--slag); }
.stats-row .v { font-family: var(--font-mono); font-weight: 500; font-size: 18px; }
.stats-row .s { font-size: 11px; color: var(--slag-2); }
.pos .s a { color: var(--accent); }
.stat .v.gold { color: var(--accent); }
.tabs-hd { align-items: center; }
.subtabs { display: flex; gap: 2px; }
.subtabs button { padding: 4px 10px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--slag-2); border-bottom: 2px solid transparent; }
.subtabs button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }
.trades table tr.th td { color: var(--slag); font-size: 10px; letter-spacing: .08em; }
.trades table td.gold, .gold { color: var(--accent); }
.swap .meta .sub { padding-left: 14px; color: var(--slag); }
.pos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pos > div { display: grid; gap: 3px; }
.pos .k { font-size: 10px; letter-spacing: .08em; color: var(--slag); }
.pos .v { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.pos .s { font-size: 12px; color: var(--slag-2); }
@media (max-width: 860px) { .trades td:nth-child(6), .trades tr.th td:nth-child(6) { display: none; } }
@media (max-width: 480px) { .strip { grid-template-columns: 1fr 1fr; } .strip > div:last-child { grid-column: 1 / -1; } .stats-row { grid-template-columns: repeat(2, auto); } }

/* v0.3c */
.field input.ro { color: var(--slag-2); background: var(--surface); border-style: dashed; cursor: default; }
.field input.ro:focus { border-color: var(--line-2); }
.launch-banner { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 16px; margin: 16px 0 4px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--surface); color: var(--slag-2); font-size: 12.5px; line-height: 1.4; }
.launch-banner .k { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; font-weight: 600; }
.launch-banner .sep { display: inline-block; width: 1px; height: 12px; background: var(--line-2); margin: 0 12px; vertical-align: -2px; }
.launch-banner .dim { color: var(--slag); }
.launch-banner b { color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.launch-banner .t { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .launch-banner { flex-direction: column; align-items: flex-start; gap: 6px; } .launch-banner .sep { margin: 0 8px; } }
.amt .pct { display: inline-flex; gap: 2px; margin-left: 6px; }
.amt .pct button { color: var(--accent); font-size: 11px; padding: 0 5px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.amt .pct button:hover { color: var(--text); border-color: var(--slag); }
.amt .usd { margin-top: 4px; font-size: 11.5px; color: var(--slag); font-family: var(--font-mono); min-height: 14px; }

.ro-text { height: 46px; box-sizing: border-box; display: flex; align-items: center; padding: 11px 12px; border: 1px dashed var(--line-2); color: var(--slag-2); background: var(--surface); user-select: none; font-size: 14px; line-height: 1; }
.drop .ph.up { display: grid; place-items: center; color: var(--accent); opacity: .8; }

.creator-strip { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; color: var(--slag-2); margin-bottom: 14px; }
.creator-strip b { color: var(--accent); font-family: var(--font-display); font-weight: 700; }
.creator-strip a, .creator-strip button { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.creator-strip a:hover, .creator-strip button:hover { color: var(--accent); }
.launched { border: 1px solid var(--accent); background: var(--surface); padding: 18px 20px; display: grid; gap: 10px; }
.launched h3 { color: var(--accent); }
.launched .ca-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.launched .ca-row .mono { word-break: break-all; }
.launched .spin { color: var(--slag-2); font-size: 12px; }

/* launch overlay */
.overlay { position: fixed; inset: 0; background: rgba(27,26,24,.92); display: grid; place-items: center; z-index: 60; padding: 20px; }
.overlay-card { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line-2); padding: 22px 24px; display: grid; gap: 18px; }
.overlay-hd { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.overlay-hd img { width: 28px; height: 28px; }
.overlay-foot { color: var(--slag-2); font-size: 13px; }
.pstep { display: grid; gap: 6px; color: var(--slag); }
.pstep.on, .pstep.done { color: var(--text); }
.pstep.fail { color: var(--sell); }
.prow { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.pnote { color: var(--slag-2); font-size: 12px; }
.pstep.done .pnote { color: var(--buy); }
.bar { height: 4px; background: var(--line); overflow: hidden; }
.fill { height: 100%; background: var(--accent); transition: width .4s ease; }
.pstep.on .fill { animation: pulse 1.4s ease-in-out infinite; }
.pstep.done .fill { background: var(--buy); }
.pstep.fail .fill { background: var(--sell); width: 100% !important; }
@keyframes pulse { 0%,100% { opacity: .55 } 50% { opacity: 1 } }

.icopy { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; color: var(--slag); padding: 2px; position: relative; }
.icopy:hover { color: var(--accent); }
.icopy svg { width: 14px; height: 14px; }
.icopy.lg svg { width: 20px; height: 20px; }
.icopy[title]:hover::after { content: attr(title); position: absolute; left: 50%; top: -28px; transform: translateX(-50%); background: var(--surface-2); color: var(--text); font-size: 11px; font-family: var(--font-mono); padding: 3px 7px; border: 1px solid var(--line-2); white-space: nowrap; pointer-events: none; }

.lede a { color: var(--accent); border-bottom: 1px solid rgba(214,162,58,.35); }
.lede a:hover { border-bottom-color: var(--accent); }

.tp-top .socials { display: inline-flex; gap: 10px; align-items: center; }
.tp-top .socials a { color: var(--slag-2); display: inline-flex; }
.tp-top .socials a:hover { color: var(--accent); }
.swap .meta #fee-lbl { font-size: 12px; }

.chart-box .hd .px { white-space: nowrap; }
@media (max-width: 480px) { .chart-tools { justify-content: flex-start; } .chart-box .hd .px { font-size: 19px; } }

/* ================= first-buy asset picker (launch page) ================= */
.buy-in { position: relative; }
.buy-in input { padding-right: 12px; }
.buy-in.has-pills input { padding-right: 232px; }
.pay-pills { position: absolute; right: 6px; top: 6px; bottom: 6px; display: flex; gap: 2px; padding: 2px; background: var(--surface); border: 1px solid var(--line-2); }
.pay-pills:empty { display: none; }
.pay-pills button { font: inherit; font-size: 12px; font-family: var(--font-mono); padding: 0 10px; border: 0; background: transparent; color: var(--slag-2); cursor: pointer; letter-spacing: .02em; }
.pay-pills button[aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--slag); }
.pay-pills button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--slag); }
.pay-pills button:not(:disabled):hover { color: var(--text); }
#cbuy-bal { font-family: var(--font-mono); letter-spacing: .01em; }
#cbuy-bal b { color: var(--slag-2); font-weight: 500; }
@media (max-width: 560px) {
  .buy-in.has-pills input { padding-right: 12px; }
  .pay-pills { position: static; margin-top: 6px; width: max-content; }
}

/* ================= paired pToken cards (launch page) ================= */
.qcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .qcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qcard { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 12px 10px 10px; min-width: 0; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.qcard:hover { border-color: var(--slag); }
.qcard[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface-2); }
.qcard .qc-top { display: flex; align-items: center; gap: 8px; }
.qcard .qc-ico { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; line-height: 1; flex: none; object-fit: cover; }
.qcard .qc-ico.mono { background: var(--surface-2); color: var(--text); font-size: 9.5px; letter-spacing: .04em; box-shadow: inset 0 0 0 1px var(--line-2); }
.qcard .qc-sym { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .01em; }
.qcard .qc-und { font-size: 12px; color: var(--slag-2); }
.qcard .qc-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; width: 100%; margin-top: 4px; gap: 4px 6px; }
.qcard .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; padding: 2px 6px; border: 1px solid currentColor; }
.qcard .tag.long { color: var(--buy); }
.qcard .tag.short { color: var(--sell); }
.qcard .qc-px { font-family: var(--font-mono); font-size: 11.5px; color: var(--slag); }
@media (max-width: 560px) { .qcards { grid-template-columns: 1fr 1fr; } }

/* ================= Blockscout verification badge (token header) ================= */
.vbadge { font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; padding: 2px 7px; border: 1px solid var(--line-2); color: var(--slag-2); }
.vbadge a { color: inherit; text-decoration: none; }
.vbadge.verified { color: var(--buy); border-color: var(--buy); }
.vbadge.failed { color: var(--accent); border-color: var(--accent); }
.vbadge.checking, .vbadge.submitting, .vbadge.waiting { opacity: .75; }

.liqchart { width: 100%; height: auto; margin: 14px 0 6px; display: block; }
.faq .a .small, .a .small { font-size: 12px; color: var(--slag); }
