/* regulate.fun — pump.fun-flavoured: dark navy, neon green, [bracket links] */
:root {
  --bg: #15161f;
  --bg-2: #1b1d28;
  --card: #232533;
  --card-2: #2a2d3d;
  --line: #34374a;
  --text: #e8e9ef;
  --muted: #9a9cb0;
  --green: #86efac;
  --green-2: #4ade80;
  --green-ink: #0d1f14;
  --red: #f87171;
  --red-2: #ef4444;
  --yellow: #fde047;
  --gold: #fbbf24;
  --blue: #93c5fd;
  --radius: 10px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; color: var(--text); }
p { margin: 0 0 .8em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 60px; }

/* utilities */
.muted { color: var(--muted); }
.small { font-size: 13px; } .tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); }
.break { word-break: break-all; }
.green { color: var(--green); } .red { color: var(--red); } .yellow { color: var(--yellow); }
.center { text-align: center; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.row.gap { gap: 8px 12px; } .between { justify-content: space-between; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 28px; } .mt-s { margin-top: 10px; }
.w100 { width: 100%; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.plain li:last-child { border-bottom: 0; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(21, 22, 31, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-row { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand b { color: var(--green); font-weight: 800; }
.brand.small { font-size: 15px; }
.nav { display: flex; gap: 2px 10px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--muted); font-size: 13.5px; padding: 4px 2px; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav a.on { color: var(--green); }
.wallet-slot { display: flex; align-items: center; gap: 10px; }

/* ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 10px; padding: 6px 0; animation: marquee 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; background: var(--card); color: var(--text); }
.tick i { color: var(--muted); font-style: normal; margin-left: 4px; }
.tick-case, .tick-complaint { background: #3a3218; color: var(--yellow); }
.tick-charge { background: #3b1d22; color: #fca5a5; }
.tick-settle, .tick-payout, .tick-release { background: #173324; color: var(--green); }
.tick-lockup { background: #1d2a44; color: var(--blue); }
.tick-flag { background: #3a2614; color: #fdba74; }
.tick-registry { background: #173324; color: var(--green); }
.tick.shake { animation: shake .5s ease-in-out 3; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-3px, 1px) rotate(-2deg); }
  40% { transform: translate(3px, -1px) rotate(2deg); }
  60% { transform: translate(-2px, 1px) rotate(-1deg); }
  80% { transform: translate(2px, 0) rotate(1deg); }
}

/* buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 8px; padding: 9px 16px; font: 600 14px/1.2 inherit; cursor: pointer;
  background: var(--card-2); color: var(--text); transition: transform .08s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.1); color: inherit; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-green { background: var(--green); color: var(--green-ink); }
.btn-green:hover { background: var(--green-2); color: var(--green-ink); }
.btn-red { background: var(--red-2); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-small { padding: 5px 10px; font-size: 12.5px; }
.btn-wallet { background: var(--card); font-family: var(--mono); font-size: 13px; border: 1px solid var(--line); }
.linklike { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 12.5px; padding: 0; }
.linklike:hover { color: var(--text); }
.bracket { color: var(--text); font-weight: 600; }
.bracket:hover { color: var(--green); }
.bracket.big { font-size: 20px; font-weight: 700; }
.back { display: inline-block; margin-bottom: 16px; color: var(--muted); }

/* hero / king of the hill */
.hero { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; }
.koth { display: block; width: 100%; max-width: 520px; padding: 14px 18px 18px; border-radius: 14px; background: linear-gradient(160deg, #2a1a20, #1f1b26); border: 1px solid #5b2730; text-align: left; }
.koth:hover { color: inherit; border-color: var(--red); }
.koth-label { text-align: center; font-weight: 800; color: var(--red); letter-spacing: .04em; margin-bottom: 10px; animation: pulse 1.6s ease-in-out infinite; }
.koth-body { display: flex; gap: 14px; align-items: center; }
.koth-body img, .koth-ph { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; flex: none; background: var(--card); display: grid; place-items: center; font-size: 40px; }
.koth-title { font-weight: 800; font-size: 17px; margin: 2px 0; }
.koth-fine { color: var(--red); font-weight: 700; margin-top: 4px; }
.koth-empty { text-align: center; background: var(--bg-2); border-color: var(--line); }
.koth-empty .koth-label { animation: none; }
@keyframes pulse { 50% { opacity: .55; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 30px; }
.stats > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.stats b { display: block; font-size: 20px; font-weight: 800; }
.stats span { color: var(--muted); font-size: 12px; }
.small-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* sections & grids */
section { margin-bottom: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head h2, .section-head h3 { margin: 0; }
.page-head { margin-bottom: 22px; }
.page-head p { max-width: 760px; }
.page-head.center { text-align: center; }
.page-head.center p { margin-inline: auto; }
.wrap-row { flex-wrap: wrap; align-items: flex-start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.grid.one { grid-template-columns: 1fr; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.card { display: block; background: var(--bg-2); border: 1px solid transparent; border-radius: var(--radius); padding: 12px; transition: border-color .15s, background .15s; }
a.card:hover { border-color: var(--green); color: inherit; background: var(--card); }
.card-hot { border-color: #4a2229; }

/* case cards */
.case-head { display: flex; gap: 12px; }
.case-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex: none; background: var(--card-2); }
.case-gavel { display: grid; place-items: center; font-size: 30px; }
.case-meta { min-width: 0; }
.docket { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.case-title { font-weight: 700; font-size: 15px; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.fine { font-size: 13px; } .fine b { color: var(--red); }

/* coin cards */
.coin-card { display: flex; gap: 12px; }
.coin-img { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; flex: none; background: var(--card-2); }
.coin-ph { display: inline-grid; place-items: center; background: var(--card-2); color: var(--muted); font-weight: 800; text-transform: uppercase; border-radius: 50%; width: 20px; height: 20px; font-size: 9px; }
.coin-ph.big { width: 96px; height: 96px; border-radius: 8px; font-size: 22px; }
.coin-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.coin-name { font-weight: 700; }
.coin-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: 999px; padding: 2px 10px 2px 3px; font-size: 13px; font-weight: 600; }
.coin-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.badge-reg { display: inline-block; background: var(--green); color: var(--green-ink); font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 4px; letter-spacing: .04em; vertical-align: middle; width: fit-content; }

/* pills & rep */
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; margin-right: 4px; }
.pill-good { background: #173324; color: var(--green); }
.pill-bad { background: #3b1d22; color: #fca5a5; }
.pill-warn { background: #3a3218; color: var(--yellow); }
.pill-muted { background: var(--card-2); color: var(--muted); }
.pill-reg { background: var(--green); color: var(--green-ink); font-weight: 800; letter-spacing: .02em; }
.rep { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.rep b { font-size: 15px; }
.rep-good { background: #173324; color: var(--green); }
.rep-gold { background: #3a2e10; color: var(--gold); }
.rep-warn { background: #3a3218; color: var(--yellow); }
.rep-bad { background: #3b1d22; color: #fca5a5; }
.rep-muted { background: var(--card-2); color: var(--text); }

/* tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 8px; background: var(--bg-2); color: var(--muted); font-size: 13px; }
.tabs a.on { background: var(--green); color: var(--green-ink); font-weight: 700; }

/* docket */
.docket-sheet { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.docket-top { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.docket-top > div:first-child { flex: 1; min-width: 0; }
.case-h1 { font-size: 24px; margin: 6px 0 10px; }
.case-h1 .v { color: var(--muted); font-style: italic; font-weight: 600; }
.case-h1 .mono { font-size: 17px; }
.fine-box { background: var(--card); border-radius: 12px; padding: 14px; width: 280px; display: flex; flex-direction: column; gap: 8px; border: 1px solid #5b2730; }
.fine-box.settled { border-color: #1f5135; }
.fine-amt { font-size: 30px; font-weight: 800; color: var(--red); }
.docket-sec { margin-bottom: 24px; }
.docket-sec h3 { text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.evidence-grid div { background: var(--card); border-radius: 8px; padding: 10px; }
.evidence-grid span { display: block; color: var(--muted); font-size: 12px; }
.complaint { background: var(--card); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.complaint p { margin: 6px 0 0; white-space: pre-wrap; }
.investigating { color: var(--yellow); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; background: var(--bg-2); padding: 8px 10px; white-space: nowrap; }
.tbl td { padding: 8px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.tbl tr.sell td:nth-child(2) { color: var(--red); }
.tbl tr.buy td:nth-child(2) { color: var(--green); }
.tbl tr.in-window { background: rgba(248, 113, 113, .08); }
.tbl tr.row-bad { background: rgba(248, 113, 113, .08); }
.tbl td.notes { white-space: normal; }

/* wanted */
.wanted-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 30px; }
.wanted { text-align: center; position: relative; background: #f3e3c3; color: #3b2a14; border: 3px solid #8a6a3a; border-radius: 6px; padding: 16px 12px; font-family: Georgia, serif; }
a.wanted:hover { color: #3b2a14; background: #f8ebd0; border-color: var(--red-2); }
.wanted-rank { position: absolute; top: 6px; left: 8px; font: 700 12px var(--mono); }
.wanted-poster { font-size: 28px; font-weight: 900; letter-spacing: .12em; }
.wanted-img { display: block; width: 110px; height: 110px; margin: 10px auto 4px; object-fit: cover; border-radius: 6px; border: 3px solid #8a6a3a; filter: sepia(.35) contrast(1.05); background: #e6d2aa; }
.wanted-ph { display: grid; place-items: center; font: 900 26px var(--mono); color: #6b4f2a; }
.wanted-addr { font-size: 14px; margin: 6px 0; font-weight: 700; }
.wanted-fine { margin-top: 8px; font-size: 18px; font-weight: 900; color: #991b1b; }

/* forms */
.form-card { max-width: 560px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.two-col .form-card { margin: 0; max-width: none; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
input, textarea, select {
  width: 100%; background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font: 14px/1.4 inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--green); }
textarea { resize: vertical; }
.input-row { display: flex; gap: 6px; }
.input-row input { flex: 1; }
.search { display: flex; gap: 8px; max-width: 620px; margin: 18px auto 0; }
.search input { flex: 1; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; padding: 5px 8px; font-size: 12.5px; }
.form-msg { padding: 10px 12px; border-radius: 8px; font-size: 13px; background: var(--card); }
.msg-bad { background: #3b1d22; color: #fecaca; }
.msg-good { background: #173324; color: var(--green); }
.msg-warn { background: #3a3218; color: var(--yellow); word-break: break-all; }
.checklist { padding-left: 18px; color: var(--muted); }
.checklist li { margin: 4px 0; }
.notice { background: #3a3218; color: var(--yellow); padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.term { cursor: pointer; }
.term input { position: absolute; opacity: 0; pointer-events: none; }
.term span { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.term i { font-style: normal; color: var(--green); font-size: 12px; font-weight: 500; }
.term input:checked + span { border-color: var(--green); background: #173324; }
.term input:focus-visible + span { outline: 2px solid var(--green); }

/* lockups */
.lock-list { display: flex; flex-direction: column; gap: 8px; }
.lock-row { display: flex; flex-direction: column; gap: 8px; }
.bar { height: 6px; background: var(--card-2); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-2), var(--green)); }

/* coin page */
.coin-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.coin-hero > img, .coin-hero > .coin-ph { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; }
.coin-hero h1 { margin-bottom: 4px; }
.risk { width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid; flex: none; }
.risk b { font-size: 30px; line-height: 1; }
.risk span { font-size: 11px; color: var(--muted); }
.risk-good { border-color: var(--green); color: var(--green); }
.risk-warn { border-color: var(--yellow); color: var(--yellow); }
.risk-bad { border-color: var(--red); color: var(--red); }
.flags { list-style: none; padding: 0; margin: 0; }
.flags li { padding: 6px 0 6px 22px; position: relative; font-size: 13.5px; }
.flags li::before { position: absolute; left: 0; }
.flag-good::before { content: '✓'; color: var(--green); }
.flag-warn::before { content: '!'; color: var(--yellow); font-weight: 800; left: 4px; }
.flag-bad::before { content: '✗'; color: var(--red); }
.loading-card { display: flex; gap: 10px; align-items: center; padding: 22px; color: var(--muted); }
.cta-card { margin-top: 12px; }

/* wallet page */
.wallet-hero { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.wallet-hero h1 { font-size: 18px; margin: 4px 0; }
.wallet-hero.is-wanted { border-color: var(--red-2); background: linear-gradient(160deg, #2a1a20, var(--bg-2)); }
.rep-log li { font-size: 13px; }

/* steps */
.how h2 { text-align: center; margin-bottom: 16px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.steps li { background: var(--bg-2); border-radius: var(--radius); padding: 16px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-weight: 800; margin-bottom: 8px; }
.steps b { display: block; font-size: 16px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 13px; }

/* empty */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-gavel { font-size: 42px; margin-bottom: 8px; }
.empty.big { padding: 80px 16px; }
.empty.big h1 { color: var(--text); }

.prose { max-width: 760px; margin: 0 auto; }
.prose h3 { margin-top: 22px; color: var(--green); }
.prose p { color: #c9cad6; }

/* lockup coin picker & escrow disclosure */
.label-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.coin-picker { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; padding-right: 2px; }
.pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pick img, .pick .coin-ph { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; }
.pick span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pick b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick i { font-style: normal; font-size: 12px; color: var(--muted); }
.pick em { font-style: normal; font-weight: 800; font-size: 13px; }
.pick.ok em { color: var(--green); } .pick.no { opacity: .55; cursor: not-allowed; }
.pick.ok:hover { border-color: var(--green); }
.pick.sel { border-color: var(--green); background: #173324; }
.manual-mint { margin-top: 8px; }
.manual-mint summary { cursor: pointer; }
.manual-mint input { margin-top: 6px; }
.escrow-card { margin-top: 26px; }
.escrow-card p { color: #c9cad6; font-size: 14px; }
.escrow-card a { color: var(--green); }
.escrow-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
@media (max-width: 960px) { .escrow-grid { grid-template-columns: 1fr; } }

/* seo copy & faq */
.sub-h1 { font-size: 16px; font-weight: 700; color: var(--muted); margin: -6px 0 10px; }
.seo-blurb { max-width: 860px; margin: 10px auto 34px; text-align: center; color: #c9cad6; }
.seo-blurb a { color: var(--green); }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
.faq summary::marker { color: var(--green); }
.faq details p { margin: 10px 0 0; }

/* spinner */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
.spinner.sm { width: 12px; height: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(5, 6, 10, .72); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.modal-wide { max-width: 560px; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.modal-x:hover { color: var(--text); }
@keyframes fade { from { opacity: 0; } }
.wallet-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 600 14px inherit; cursor: pointer; text-align: left; }
.wallet-opt:hover { border-color: var(--green); color: var(--text); }
.wallet-opt img { border-radius: 6px; }
.wallet-dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; color: #fff; flex: none !important; }
.wallet-opt span { flex: 1; }
.wallet-opt i { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 400; }

/* checkout */
.co-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.co-amount { font-size: 30px; font-weight: 800; }
.co-np { font-size: 11px; color: var(--muted); }
.cur-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cur { display: flex; gap: 10px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--text); font: inherit; text-align: left; }
.cur:hover:not(:disabled) { border-color: var(--green); }
.cur:disabled { opacity: .5; cursor: wait; }
.cur.loading { opacity: 1; border-color: var(--green); }
.cur span { display: flex; flex-direction: column; }
.cur i { font-style: normal; color: var(--muted); font-size: 12px; }
.co-pay { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: start; }
.qr { background: #fff; border-radius: 10px; padding: 6px; }
.qr svg { display: block; width: 100%; height: auto; }
.co-fields { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.copy-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--card); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 13px; }
.copy-field span { min-width: 0; }
.co-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 10px; }
.co-step { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.co-step span { height: 4px; border-radius: 99px; background: var(--card-2); }
.co-step.done { color: var(--green); }
.co-step.done span { background: var(--green); }
.co-status { font-size: 13px; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* toasts */
.toasts { position: fixed; bottom: 16px; right: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; font-size: 13px; max-width: 380px; animation: fade .2s; transition: opacity .4s; }
.toast-bad { border-color: var(--red-2); } .toast-good { border-color: var(--green); }
.toast.out { opacity: 0; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 24px 0 18px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.disclaimer { font-size: 11.5px; color: #6c6e82; margin-top: 16px; }


/* ── grades & chips ── */
.grade { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 900; font-size: 16px; flex: none; color: #0d0e14; }
.grade.big { width: 54px; height: 54px; font-size: 28px; border-radius: 12px; }
.grade-A { background: #4ade80; } .grade-B { background: #a3e635; } .grade-C { background: #fde047; }
.grade-D { background: #fb923c; } .grade-F { background: #f87171; }
.grade-pending { background: var(--card-2); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.chip-bad { background: #3b1d22; color: #fca5a5; } .chip-warn { background: #3a3218; color: var(--yellow); } .chip-good { background: #173324; color: var(--green); }
.coin-hero + .chips { margin: -6px 0 10px; }
.dev-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ── top coin tiles ── */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; position: relative; }
.tile-top { position: relative; margin-bottom: 6px; }
.tile-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--card-2); display: grid; }
.tile .tile-img.coin-ph { width: 100%; height: auto; font-size: 28px; }
.tile-top .grade { position: absolute; right: 6px; bottom: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tile-rank { position: absolute; left: 6px; top: 6px; z-index: 1; background: rgba(13,14,20,.8); padding: 1px 6px; border-radius: 4px; font: 700 11px var(--mono); }
.tile-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sym { font-size: 12px; }

/* ── launch feed ── */
.launch-list { display: flex; flex-direction: column; gap: 6px; }
.launch { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid transparent; animation: fade .3s; }
.launch:hover { border-color: var(--green); color: inherit; }
.launch > img, .launch .launch-ph { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; font-size: 13px; }
.launch-main { flex: 1; min-width: 0; }
.launch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 10px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: middle; animation: pulse 1.4s infinite; }

/* ── graphs ── */
.graph-wrap { position: relative; background: radial-gradient(ellipse at center, #1d2030 0%, var(--bg-2) 70%); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 200px; touch-action: none; }
.graph-wrap > .loading-card { justify-content: center; min-height: 200px; }
.graph { display: block; cursor: grab; user-select: none; }
.graph:active { cursor: grabbing; }
.gnode { cursor: pointer; }
.gnode circle { transition: stroke .15s; }
.gnode:hover circle, .gnode.sel circle { stroke: #fff; stroke-width: 2.5; }
.glabel { fill: #c9cad6; font: 10px var(--mono); pointer-events: none; paint-order: stroke; stroke: #15161f; stroke-width: 3px; }
.gedge { stroke: #4b5068; stroke-opacity: .7; }
.gedge-in { stroke: #4ade80; } .gedge-out { stroke: #f87171; }
.gedge-funded { stroke: #c084fc; stroke-dasharray: 4 3; } .gedge-transfer { stroke: #fde047; }
.gedge-charged { stroke: #f87171; } .gedge-exchange { stroke: #64748b; stroke-dasharray: 1 4; } .gedge-money { stroke: #fb923c; stroke-dasharray: 2 2; }
.gedge-dev_dump, .gedge-sniper_dump { stroke: #fb923c; } .gedge-launched { stroke: #fde047; stroke-opacity: .4; } .gedge-serial_launcher, .gedge-bundler { stroke: #6b6f88; stroke-dasharray: 3 3; }
.graph-controls { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; }
.graph-controls button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font-size: 15px; }
.graph-note { position: absolute; left: 10px; bottom: 8px; }
.graph-panel { background: var(--bg-2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 10px 12px; margin-top: -8px; padding-top: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--muted); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.lg-center { background: #86efac; } .lg-wallet { background: #93c5fd; } .lg-bad { background: #f87171; } .lg-flag { background: #fb923c; }
.lg-dev { background: #fde047; } .lg-funder { background: #c084fc; } .lg-program { background: #4b5068; } .lg-exchange { background: #64748b; } .lg-coin { background: #34d399; }
.clusters { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 10px; }
.cluster { background: var(--bg-2); border-left: 3px solid var(--yellow); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.cluster-bad { border-left-color: var(--red); }

/* ── wallet ── */
.reg-card { border: 1px solid #1f5135; background: linear-gradient(160deg, #142a1d, var(--bg-2)); }
.reg-overall { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.reg-overall b { font-size: 34px; color: var(--green); }
.reg-row .coin-chip { justify-self: start; }
.reg-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr minmax(70px, auto); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.pf-total { text-align: right; display: flex; flex-direction: column; }
.pf-total b { font-size: 24px; }
.warn-list { margin-bottom: 16px; }
.warn-list .flags a { color: var(--green); }
.tbl.pf td { vertical-align: middle; }

/* responsive */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .reg-row { grid-template-columns: 1fr auto; }
  .reg-row > div { grid-column: 1 / -1; grid-row: 2; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .graph-wrap.tall svg { height: 420px; }
  .topbar-row { flex-wrap: wrap; gap: 8px 12px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav a { white-space: nowrap; }
  .wallet-slot { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .fine-box { width: 100%; }
  .case-h1 { font-size: 20px; }
  .bracket.big { font-size: 16px; }
  .co-pay { grid-template-columns: 1fr; }
  .qr { max-width: 200px; margin: 0 auto; }
  .cur-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .tick.shake, .koth-label { animation: none; }
}
