:root {
  --bg: #0a0c0f;
  --panel: #12161b;
  --panel-2: #171c22;
  --line: #232a32;
  --text: #eef1f4;
  --muted: #8b95a1;
  --dim: #5d6772;
  --accent: #c9f25d;
  --accent-ink: #0a0c0f;
  --sol: #9b7bff;
  --eth: #7aa2ff;
  --warn: #ffb86b;
  --radius: 18px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* components that set display (flex/grid) must still hide */
/* anti-clickjacking: antiframe.js adds html.top only when the page is not inside a frame */
html:not(.top) body { visibility: hidden; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
.glow { position: fixed; inset: -30vh -20vw auto; height: 80vh; pointer-events: none; z-index: 0;
  background: radial-gradient(40% 50% at 30% 40%, rgba(155,123,255,.16), transparent 70%),
              radial-gradient(35% 45% at 70% 30%, rgba(201,242,93,.10), transparent 70%); filter: blur(10px); }
.wrap { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.mark { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 5px var(--accent), inset 0 0 0 9px var(--bg); }
.chains { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.sol { color: var(--sol); } .chip.eth { color: var(--eth); }

.hero { padding: 72px 0 28px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 7vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; }
.hl { color: var(--muted); }
.lead { max-width: 600px; margin: 22px 0 34px; color: var(--muted); font-size: 18px; line-height: 1.55; }

.search { display: flex; gap: 8px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); transition: border-color .2s; }
.search:focus-within { border-color: #3a4450; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 16px var(--mono); padding: 12px 12px; }
.search input::placeholder { color: var(--dim); font-family: var(--font); }
.search button { border: 0; border-radius: 11px; padding: 0 26px; background: var(--accent); color: var(--accent-ink); font: 700 16px var(--font); cursor: pointer; transition: transform .1s, filter .2s; }
.search button:hover { filter: brightness(1.08); } .search button:active { transform: scale(.97); }
.search button:disabled { opacity: .5; cursor: default; }
.detect { min-height: 20px; margin: 12px 4px 0; color: var(--dim); font-size: 13px; }
.detect.bad { color: var(--warn); }

.result { padding: 8px 0 20px; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.summary { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who code { font: 13px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.total { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
.total .label { color: var(--muted); font-size: 14px; }
.total .big { font-size: clamp(40px, 8vw, 64px); font-weight: 750; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.total .sub { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--dim); font-size: 13px; }
.progress .bar { flex: 0 0 140px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.progress.done .bar { display: none; }

.cards { display: grid; grid-template-columns: 1fr; align-items: start; gap: 12px; margin-top: 12px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); animation: rise .3s ease; }
.card .name { font-weight: 650; font-size: 15px; line-height: 1.3; }
.card .val { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card .val small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.card .detail { color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.card .detail div + div { margin-top: 2px; }
.card .act { margin-top: auto; padding-top: 4px; }
.card .act a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.card .act a:hover { text-decoration: underline; }
.card .act span { font-size: 12px; color: var(--dim); }

.active { margin-top: 22px; border: 1px dashed var(--line); border-radius: 14px; padding: 14px 18px; }
.active summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.active summary span { color: var(--dim); font-weight: 500; margin-left: 6px; }
.muted { color: var(--dim); font-size: 13px; }
.empty { margin-top: 12px; padding: 22px; text-align: center; color: var(--muted); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.next { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: rgba(201,242,93,.07); border: 1px solid rgba(201,242,93,.25); color: var(--text); font-size: 14px; line-height: 1.55; }
.next a { color: var(--accent); font-weight: 600; }
.warn { color: var(--warn); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 56px 0 30px; }
.how div { padding: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.how b { font-size: 14px; } .how span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 36px; color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 40px; }
  .lead { font-size: 16px; }
  .search { flex-direction: column; }
  .search button { padding: 14px; }
  .chains { display: none; }
  .how { grid-template-columns: 1fr; margin-top: 36px; }
  .summary { padding: 20px; }
}

/* ---------- how to withdraw ---------- */
.howto { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.howto > summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 650; color: var(--accent); }
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary::after { content: " ↓"; }
.howto[open] > summary::after { content: " ↑"; }
.howto .tx { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.howto .tx:first-of-type { border-top: 0; padding-top: 0; }
.txn { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.check { font-size: 12.5px; line-height: 1.45; padding: 8px 10px; border-radius: 9px; margin: 6px 0 4px; }
.check.ok { background: rgba(201,242,93,.08); color: var(--accent); }
.check.bad { background: rgba(255,184,107,.08); color: var(--warn); }
.way { margin: 12px 0 2px; font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
.steps { margin: 6px 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.steps li { margin: 3px 0; }
.steps b { color: var(--text); font-weight: 650; }
.steps code, .alt code { font: 12px var(--mono); color: var(--text); }
.steps a, .alt a { color: var(--accent); }
.alt { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.field { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: start; margin: 6px 0; padding: 8px 10px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.flabel { grid-column: 1 / -1; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.fval { font: 12px var(--mono); color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.fval.long { max-height: 88px; overflow-y: auto; }
.copy { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 7px; padding: 4px 10px; font: 600 12px var(--font); cursor: pointer; }
.copy:hover { border-color: #3a4450; }

/* ---------- step-by-step guide ---------- */
.howto > summary { font-size: 14px; padding: 4px 0; }
.need { margin: 12px 0 10px; padding: 12px 14px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); }
.needt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.need ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.need b, .stext b { color: var(--text); }
.need code, .stext code { font: 12.5px var(--mono); color: var(--text); background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin-top: 16px; }
.num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 14px;
  background: var(--accent); color: var(--accent-ink); }
.sbody { min-width: 0; }
.stitle { font-weight: 700; font-size: 15px; line-height: 30px; }
.stext { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.bigbtn { display: inline-flex; margin-top: 10px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink) !important;
  font-weight: 700; font-size: 14px; text-decoration: none !important; }
.bigbtn:hover { filter: brightness(1.08); }
.form { margin-top: 10px; padding: 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2); }
.ftitle { font: 700 13px var(--mono); color: var(--text); margin-bottom: 4px; }
.ftitle::before { content: "▾ "; color: var(--dim); }
.fhead { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; }
.fhint { font-size: 11px; color: var(--warn); text-align: right; }
.field .flabel { grid-column: auto; }
.repeat { margin: 14px 0 0 42px; }
.repeat .txn { margin-top: 12px; }
.other { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 10px; }
.other > summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; }
.alt { margin-top: 14px; }
@media (max-width: 640px) { .repeat { margin-left: 0; } .step { grid-template-columns: 26px 1fr; gap: 10px; } .num { width: 26px; height: 26px; font-size: 13px; } .stitle { line-height: 26px; } }
.what { margin: 0; color: var(--text); opacity: .85; font-size: 14px; line-height: 1.55; max-width: 680px; }
.safe { margin: 18px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.safe b { color: var(--text); }

/* ---------- FAQ + disclaimer ---------- */
.faq { margin: 20px 0 40px; }
.faq h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 12px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; font-size: 15px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 20px; color: var(--dim); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 720px; }
.disclaimer { margin: 0; flex: 1 1 520px; line-height: 1.55; }

/* ---------- share ---------- */
.share { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px;
  padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(155,123,255,.10), rgba(201,242,93,.06)); }
.share-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.share-text b { font-size: 16px; }
.share-text span { color: var(--muted); font-size: 13px; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sbtn { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); font: 600 13px var(--font); text-decoration: none; cursor: pointer; }
.sbtn:hover { border-color: #3a4450; }
.sbtn.x { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- X / Twitter ---------- */
.topright { display: flex; align-items: center; gap: 10px; }
.xlink { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.03); }
.xlink:hover { border-color: #3a4450; }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.foot-right a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-right a:hover { color: var(--text); }
@media (max-width: 640px) { .xlink span { display: none; } .xlink { padding: 7px; } .foot-right { align-items: flex-start; } }

/* ---------- tips ---------- */
.tips { margin: 4px 0 0; border: 1px solid rgba(201,242,93,.22); border-radius: 12px; background: rgba(201,242,93,.05); }
.tips > summary { cursor: pointer; list-style: none; padding: 10px 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tips > summary::-webkit-details-marker { display: none; }
.heart { color: var(--accent); margin-right: 4px; }
.tips-open { color: var(--accent); font-weight: 650; margin-left: 6px; white-space: nowrap; }
.tips[open] .tips-open::after { content: " ↑"; }
.tips:not([open]) .tips-open::after { content: " ↓"; }
.tips-body { padding: 0 14px 12px; }
.tips-body p { margin: 0 0 10px; font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.tips-body b { color: var(--text); }
.tip-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; margin-top: 6px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.tip-row code { flex: 1 1 260px; min-width: 0; font: 12.5px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.congrats { margin: 20px 0 0; padding: 20px 22px; border-radius: 14px; max-width: 820px;
  background: linear-gradient(120deg, rgba(201,242,93,.16), rgba(155,123,255,.12)); border: 1px solid rgba(201,242,93,.45);
  box-shadow: 0 0 0 4px rgba(201,242,93,.05), 0 12px 40px rgba(0,0,0,.25); animation: rise .4s ease; }
.congrats-title { font-size: clamp(20px, 3.2vw, 26px); font-weight: 750; letter-spacing: -.02em; line-height: 1.25; color: var(--text); }
.congrats-title span { color: var(--accent); }
.congrats p { margin: 10px 0 16px; font-size: 16px; line-height: 1.55; color: var(--text); opacity: .9; }
.tipbtn { border: 0; border-radius: 11px; padding: 12px 22px; background: var(--accent); color: var(--accent-ink); font: 750 15px var(--font); cursor: pointer; transition: transform .1s, filter .2s; }
.tipbtn:hover { filter: brightness(1.08); } .tipbtn:active { transform: scale(.97); }
