:root {
  --bg: #08090b;
  --bg-2: #0d0f12;
  --panel: #111317;
  --panel-2: #171a1f;
  --line: #20242b;
  --line-2: #2c313a;
  --text: #f1f2f4;
  --muted: #8d939e;
  --dim: #5d636e;
  --accent: #3ee08f;
  --accent-2: #2bc97a;
  --accent-ink: #03150b;
  --accent-soft: rgba(62, 224, 143, 0.1);
  --bad: #ff6b6b;
  --warn: #f5c451;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.02; font-weight: 700; text-wrap: balance; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
.lead { color: var(--muted); font-size: 17px; margin: 14px 0 0; max-width: 600px; text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.fine { color: var(--dim); font-size: 12.5px; margin: 10px 0 0; text-align: center; }
.error { color: var(--bad); font-size: 13px; margin: 8px 0 0; }
.error:empty { display: none; }
.error.banner { background: rgba(255, 107, 107, 0.08); border: 1px solid rgba(255, 107, 107, 0.25); padding: 8px 12px; border-radius: 10px; }

/* icons */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.ic.xs { width: 11px; height: 11px; stroke-width: 3; }
.ic.lg { width: 26px; height: 26px; }

.net { background: #2a2205; color: #f5d76e; text-align: center; font: 12px var(--mono); padding: 5px; letter-spacing: 0.02em; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; max-width: 1160px; margin: 0 auto; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px var(--display); letter-spacing: -0.01em; }
.logo { width: 36px; height: 36px; }
.logo.sm { width: 28px; height: 28px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.hero-top .hero-copy { margin-bottom: 0; }
.hero-coin { width: 168px; height: 168px; flex: none; }
#site-name, #foot-name { text-transform: lowercase; }
nav { display: flex; gap: 2px; }
nav a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; }
nav a:hover { color: var(--text); }
nav a.on { color: var(--text); background: var(--panel-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wallet-slot { position: relative; }
.btn-wallet img { width: 18px; height: 18px; border-radius: 5px; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; min-width: 190px; padding: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; }
.wallet-menu button { background: none; border: 0; color: var(--text); text-align: left; padding: 9px 10px; border-radius: 8px; font: 14px var(--sans); cursor: pointer; }
.wallet-menu button:hover { background: var(--panel-2); }

main { max-width: 1160px; margin: 0 auto; padding: 0 20px 80px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); border-radius: 10px; padding: 9px 14px; font: 500 14px var(--sans);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s;
}
.btn:hover { border-color: #3a404b; background: #1c2026; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.wide { width: 100%; margin-top: 12px; padding: 11px; }
.btn-light { background: var(--text); color: #0b0c0e; border-color: var(--text); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn-accent:hover { background: #55eaa0; border-color: #55eaa0; }
.btn-claim.on { border-color: var(--accent); color: var(--accent); }
.primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 18px; padding: 15px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px; font: 600 16px var(--sans);
  cursor: pointer; text-decoration: none; transition: filter .12s;
}
.primary:hover { filter: brightness(1.06); }
.primary:disabled { opacity: .4; cursor: default; filter: none; }
.copy { padding: 7px 10px; font-size: 13px; }

/* inputs */
input, textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 14px; font: 15px var(--sans); outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus { border-color: rgba(62, 224, 143, 0.55); box-shadow: 0 0 0 3px rgba(62, 224, 143, 0.12); }
textarea { min-height: 84px; resize: vertical; }
label span { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }

/* hero */
.hero { padding: 56px 0 8px; }
.hero-copy { max-width: 760px; margin-bottom: 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: stretch; }

/* form */
.form { padding: 26px; }
.f-sec + .f-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.f-head { display: flex; align-items: center; gap: 10px; font: 600 15px var(--display); margin-bottom: 14px; }
.f-n { width: 24px; height: 24px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 600 12px var(--mono); }
.at { position: relative; }
.at .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.at input { padding-left: 38px; font-size: 16px; }
.hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 9px; min-height: 20px; }
.hint.ok { color: var(--accent); }
.hint.bad { color: var(--bad); }
.row { display: grid; grid-template-columns: 1fr 170px; gap: 12px; margin-bottom: 12px; }
.drop {
  display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed #343a44; border-radius: 12px;
  cursor: pointer; transition: border-color .15s, background .15s; background: rgba(255, 255, 255, 0.01);
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-thumb { width: 54px; height: 54px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; color: var(--dim); overflow: hidden; flex: none; }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop-text { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); min-width: 0; }
.drop-text b { color: var(--text); font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details { margin-top: 14px; }
summary { color: var(--muted); font-size: 13px; cursor: pointer; }
details textarea { margin-top: 10px; }

/* preview */
.preview { display: flex; flex-direction: column; }
.pv-card { flex: 1; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.pv-media { flex: 1; position: relative; min-height: 220px; background: var(--bg-2); }
.pv-media > * { position: absolute; inset: 0; }
.pv-media .cover { width: 100%; height: 100%; object-fit: cover; }
.cover.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--dim); font-size: 13px; background: var(--bg-2); }
.pv-body { padding: 16px 18px 14px; }
.pv-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; min-width: 0; }
.pv-name { font: 600 20px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-name.muted { color: var(--dim); }
.pv-who { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; min-width: 0; }
.pv-who > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.pv-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-who span { font-size: 13px; }
.pv-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pv-foot .mono { color: var(--accent); }

/* avatars, tags */
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-2); }
.avatar.ph { display: grid; place-items: center; color: var(--dim); }
.avatar.xs { width: 20px; height: 20px; }
.avatar.xs.ph .ic { width: 11px; height: 11px; }
.avatar.md { width: 42px; height: 42px; }
.avatar.lg { width: 64px; height: 64px; }
.tick { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #1d9bf0; color: #fff; margin-left: 5px; vertical-align: -2px; }
.sym { font: 500 12.5px var(--mono); color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.sym.lg { font-size: 15px; padding: 4px 10px; }
.xl { text-decoration: none; }
.xl:hover { text-decoration: underline; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 24px 0 0; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; }
.stat { padding: 20px 22px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-v { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.stat-l { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* blocks */
.block { margin-top: 64px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; }
.more:hover { color: var(--text); }
.block.two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "head ." "main side"; column-gap: 24px; align-items: stretch; }
.two-head { grid-area: head; }
.two-main { grid-area: main; display: flex; flex-direction: column; }
.two-main > * { flex: 1; }
.block.two .cta { grid-area: side; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step3 { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.step3-n { display: block; color: var(--dim); font-size: 14px; margin-bottom: 12px; }
.step3 h3 { margin-bottom: 8px; }
.step3 p { color: var(--muted); margin: 0; font-size: 14px; }

/* coin cards */
.coin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.coin-card { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s; min-height: 120px; }
.coin-card:hover { border-color: #3a404b; }
.coin-card.skeleton { aspect-ratio: 3 / 4; }
.cc-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-2); }
.cc-media .cover { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 10px; top: 10px; background: rgba(8, 9, 11, 0.85); color: var(--text); font: 500 11.5px var(--mono); padding: 4px 8px; border-radius: 8px; }
.cc-body { padding: 14px 14px 16px; }
.cc-title { display: flex; align-items: center; gap: 8px; justify-content: space-between; min-width: 0; }
.cc-title b { font: 600 16px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-for { display: flex; align-items: center; gap: 7px; margin: 8px 0 12px; color: var(--muted); font-size: 13px; min-width: 0; }
.cc-for span:not(.tick) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-stats { display: flex; justify-content: space-between; font-size: 14px; }
.cc-stats small { display: block; color: var(--dim); font-size: 11.5px; }
.cc-stats .right { text-align: right; }
.bar { height: 4px; background: var(--line); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* feed + cta */
.feed { display: grid; align-content: start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feed-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 18px; background: var(--panel); font-size: 14px; }
.feed-row + .feed-row { border-top: 1px solid var(--line); }
.feed-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amount { color: var(--accent); text-decoration: none; font-size: 13.5px; }
.cta { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.cta h3 { font-size: 20px; margin-bottom: 8px; }
.cta p { margin: 0 0 18px; font-size: 14px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 34px 20px; border: 1px dashed var(--line-2); border-radius: 16px; }
.empty p { margin: 0; }
.empty.wide { grid-column: 1 / -1; }

/* page heads, toolbar */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 48px); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.tab { background: none; border: 0; color: var(--muted); font: 500 14px var(--sans); padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.tab.on { background: var(--panel-2); color: var(--text); }
.search { position: relative; width: 320px; max-width: 100%; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search input { padding: 10px 12px 10px 36px; font-size: 14px; }

/* checkout / coin page */
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin: 32px 0 18px; }
.back:hover { color: var(--text); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 24px; align-items: start; }
.coin-hero { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.ch-media { background: var(--bg-2); min-height: 260px; }
.ch-media .cover { width: 100%; height: 100%; object-fit: cover; }
.ch-body { padding: 24px; min-width: 0; }
.ch-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ch-title h1 { font-size: clamp(26px, 3.4vw, 36px); overflow-wrap: anywhere; }
.ch-body > p { margin: 12px 0 0; }
.ch-who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.ch-who small { display: block; font-size: 12px; }
.ch-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 12px; overflow: hidden; margin-top: 18px; border: 1px solid var(--line); }
.ch-stats .stat { padding: 12px 14px; background: var(--panel); }
.ch-stats .stat-v { font-size: 17px; }
.ch-stats .stat-l { font-size: 12px; }

.status { padding: 24px; }
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 24px; gap: 8px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.stepper .sdot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 11px var(--mono); }
.stepper li.done { color: var(--text); border-color: var(--accent); }
.stepper li.done .sdot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stepper li.now { color: var(--text); }
.stepper li.now .sdot { border-color: var(--accent); color: var(--accent); }
.pay { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; }
.pay-main small { display: block; }
.amount-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 2px 0 14px; }
.amount-big { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.addr { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; margin: 6px 0 2px; }
.addr code { flex: 1; font: 13px/1.45 var(--mono); overflow-wrap: anywhere; }
.qr-wrap { text-align: center; }
.qr-wrap small { display: block; margin-top: 8px; font-size: 11.5px; }
.qr { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 7px; margin: 0 auto; }
.partial { margin-top: 16px; padding: 12px 14px; background: rgba(245, 196, 81, 0.07); border: 1px solid rgba(245, 196, 81, 0.25); border-radius: 12px; font-size: 13.5px; }
.ph-row { display: flex; justify-content: space-between; }
.partial .bar i { background: var(--warn); }
.waiting { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.waiting .push { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.notes { margin: 16px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 13px; display: grid; gap: 4px; }
.big-state { text-align: center; padding: 14px 0 20px; }
.big-state h2 { margin: 14px 0 6px; font-size: 24px; }
.big-state p { margin: 0; }
.ok-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto; }
.ok-ic .ic { width: 26px; height: 26px; stroke-width: 2.4; }
.ok-ic.warn { background: var(--warn); color: #2a1f00; }
.status > small { display: block; margin-bottom: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chart { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; height: 460px; background: var(--panel); }
.chart iframe { width: 100%; height: 100%; border: 0; }

.spin { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: rot .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
.spin.lg { width: 40px; height: 40px; border-width: 3px; margin: 0; }
@keyframes rot { to { transform: rotate(360deg); } }

/* claim */
.claim-hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: center; padding: 64px 0 20px; }
.login { padding: 30px; text-align: center; }
.login h3 { font-size: 22px; margin-bottom: 6px; }
.login p { font-size: 14px; }
.me { display: flex; align-items: center; gap: 18px; }
.me .lead { margin-top: 4px; }
.claim-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.my-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--bg-2); }
.my-main b { font-family: var(--display); font-weight: 600; }
.my-main small { display: block; margin-top: 2px; }
.my-amt { text-align: right; }
.my-amt small { display: block; font-size: 11.5px; }
.wallet-card .f-head { margin-bottom: 6px; }
.wallet-card p { margin: 0 0 14px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.faq summary { color: var(--text); font-size: 15px; font-weight: 500; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 28px 20px 40px; display: grid; grid-template-columns: auto 1fr; gap: 14px 30px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 8px; font: 600 15px var(--display); }
.foot-links { display: flex; gap: 18px; justify-content: flex-end; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.foot-links a:hover { color: var(--text); }
.foot p { grid-column: 1 / -1; color: var(--dim); font-size: 12.5px; margin: 0; }

/* wallet modal */
.modal-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.modal { width: 100%; max-width: 380px; padding: 22px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; }
.modal h3 { margin-bottom: 14px; }
.modal p { margin: 0 0 14px; }
.wallet-list { display: grid; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: 500 15px var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.wallet-opt:hover { border-color: #3a404b; }
.wallet-opt img { width: 28px; height: 28px; border-radius: 7px; }
.wallet-opt .push { margin-left: auto; color: var(--dim); }

/* checkout: pay with wallet */
.wallet-pay .primary { margin-top: 0; }
.wallet-pay .error { text-align: center; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--dim); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wallet-card .btn.wide + .btn.wide { margin-top: 8px; }

/* admin */
.admin-login { max-width: 380px; margin: 80px auto; display: grid; gap: 12px; }
.admin-login .primary { margin-top: 4px; }
.admin-login p { margin: 0; }
.tbl-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 12px 16px; text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 16px; vertical-align: middle; border-top: 1px solid var(--line); }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .right { text-align: right; white-space: nowrap; }
.tbl a { text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.adm-coin { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.thumb.sm { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.adm-form-tr td { border-top: 0; padding-top: 0; }
.adm-form { display: grid; gap: 6px; min-width: 260px; }
.adm-form-row { display: flex; gap: 8px; }
.adm-form-row input { flex: 1; padding: 9px 12px; font-size: 14px; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.adm-treasury { margin: 12px 0 0; overflow-wrap: anywhere; }
.admin .block-head .search { width: 280px; }
.admin .block > .small { margin: 10px 2px 0; }

/* responsive */
@media (max-width: 1020px) {
  .coin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order-grid { grid-template-columns: 1fr; }
  .pay-first .status { order: -1; }
  .block.two { grid-template-columns: 1fr; grid-template-areas: "head" "main" "side"; row-gap: 0; }
  .block.two .cta { margin-top: 16px; }
}
@media (max-width: 860px) {
  .hero-coin { width: 104px; height: 104px; margin-right: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .preview { order: -1; }
  .pv-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .pv-media { min-height: 120px; }
  .pv-foot { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats:not(.three) .stat:nth-child(3) { border-left: 0; }
  .stats:not(.three) .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps3 { grid-template-columns: 1fr; }
  .claim-hero, .claim-grid { grid-template-columns: 1fr; }
  .claim-hero { padding-top: 40px; }
}
@media (max-width: 640px) {
  .hero-top { align-items: flex-start; }
  .hero-coin { display: none; }
  .top-in { gap: 12px; padding: 12px 16px; }
  nav { display: none; }
  #site-name { display: none; }
  .btn-wallet span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  main { padding: 0 16px 60px; }
  .hero { padding-top: 32px; }
  .hero-copy { margin-bottom: 22px; }
  .lead { font-size: 15.5px; }
  .form, .card, .status { padding: 18px; }
  .row { grid-template-columns: 1fr 120px; }
  .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cc-body { padding: 10px 10px 12px; }
  .cc-title b { font-size: 14px; }
  .cc-title .sym { display: none; }
  .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 14px; }
  .stat-v { font-size: 19px; }
  .coin-hero { grid-template-columns: 1fr; }
  .ch-media { min-height: 0; aspect-ratio: 16 / 10; }
  .pay { grid-template-columns: 1fr; }
  .qr-wrap { display: none; }
  .amount-big { font-size: 28px; }
  .page-head { flex-direction: column; align-items: flex-start; padding: 32px 0 20px; }
  .search { width: 100%; }
  .feed-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .feed-row > .small { display: none; }
  .my-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .my-row .my-amt { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
