/* TX Checker design system — system fonts (no webfont requests), CSS variables, dark/light, mobile-first */
:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --bg: #f5f7fb; --bg-elev: #ffffff; --bg-soft: #eef1f8; --text: #0e1526; --muted: #5b6784; --line: #e1e6f1;
  --accent: #4561ff; --accent-2: #19b8a6; --accent-ink: #ffffff; --accent-soft: #e8ecff;
  --ok: #0f9d6b; --ok-bg: #e2f6ee; --warn: #b7791f; --warn-bg: #fdf3dc; --bad: #d03b4a; --bad-bg: #fde8ea;
  --shadow: 0 1px 2px rgba(14,21,38,.05), 0 8px 24px -8px rgba(14,21,38,.12);
  --shadow-lg: 0 2px 4px rgba(14,21,38,.05), 0 24px 48px -16px rgba(40,60,160,.25);
  --r: 16px; --r-sm: 10px; --max: 1120px; --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0e1a; --bg-elev: #111729; --bg-soft: #161e34; --text: #e8ecf8; --muted: #93a0c2; --line: #1f2943;
  --accent: #6b86ff; --accent-2: #2dd4bf; --accent-ink: #0a0e1a; --accent-soft: #1a2342;
  --ok: #34d399; --ok-bg: #0f2a22; --warn: #f2c14e; --warn-bg: #2a2310; --bad: #ff7a86; --bad-bg: #2d1519;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e1a; --bg-elev: #111729; --bg-soft: #161e34; --text: #e8ecf8; --muted: #93a0c2; --line: #1f2943;
    --accent: #6b86ff; --accent-2: #2dd4bf; --accent-ink: #0a0e1a; --accent-soft: #1a2342;
    --ok: #34d399; --ok-bg: #0f2a22; --warn: #f2c14e; --warn-bg: #2a2310; --bad: #ff7a86; --bad-bg: #2d1519;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.has-ads { padding-bottom: 0; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
/* Simplified Chinese: native CJK stacks, no tight tracking */
:lang(zh) { --font: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .brand, :lang(zh) .total, :lang(zh) .conv-out { letter-spacing: 0; }
:lang(zh) body { line-height: 1.75; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .92em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: none; gap: 4px; margin-left: 18px; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.seg a, .seg button { padding: 4px 11px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.seg button { border: 0; background: none; cursor: pointer; font-family: inherit; line-height: 1.6; }
.seg-cur button { min-width: 30px; padding: 4px 9px; }
.seg a[aria-current="true"], .seg button[aria-pressed="true"] { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); }
.seg a:hover, .seg button:hover { text-decoration: none; color: var(--text); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.icon-btn:hover { background: var(--bg-soft); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; } :root[data-theme="dark"] .theme-sun { display: block; } :root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: block; } :root:not([data-theme="light"]) .theme-moon { display: none; } }
@media (min-width: 900px) { .nav-links { display: flex; } }
@media (max-width: 479px) { .brand span { display: none; } .nav-end { gap: 6px; } .seg a { padding: 4px 8px; } .seg-cur button { min-width: 26px; padding: 4px 6px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.hero::before { width: 520px; height: 520px; left: -140px; top: -200px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.hero::after { width: 460px; height: 460px; right: -120px; top: -120px; background: color-mix(in srgb, var(--accent-2) 38%, transparent); }
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 60%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

.search { display: flex; gap: 8px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: var(--shadow-lg); transition: border-color .2s, box-shadow .2s; max-width: 760px; margin: 0 auto; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-lg); }
.search-ico { align-self: center; margin-left: 10px; color: var(--muted); width: 22px; height: 22px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 500 1rem/1.4 var(--mono); padding: 14px 6px; outline: none; }
.search input::placeholder { color: var(--muted); font-family: var(--font); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 700 .98rem var(--font); padding: 0 22px; min-height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2))); color: var(--accent-ink); transition: transform .18s var(--ease), box-shadow .18s, filter .18s; text-decoration: none; white-space: nowrap; }
:root[data-theme="dark"] .btn { color: #fff; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 24px -10px var(--accent); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
:root[data-theme="dark"] .btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); box-shadow: none; filter: none; }
.btn-tg { background: #229ed9; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--text); transition: transform .18s var(--ease), border-color .2s; }
a.chip:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--accent); }
.try { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.try button { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.try button:hover { text-decoration: underline; }
.coin { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .62rem; font-weight: 800; color: #fff; flex: none; letter-spacing: -.02em; }
.c-btc { background: #f7931a; } .c-eth { background: #627eea; } .c-ton { background: #0098ea; } .c-tron, .c-trx { background: #eb0029; } .c-sol { background: linear-gradient(135deg, #9945ff, #14f195); } .c-usdt { background: #26a17b; } .c-usdc { background: #2775ca; }
.coin-lg { width: 40px; height: 40px; font-size: .8rem; }

/* ---------- results ---------- */
.result-wrap { max-width: 860px; margin: 28px auto 0; text-align: left; }
.result-wrap:empty { display: none; }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.result { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.res-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-weight: 750; font-size: .9rem; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill svg { width: 16px; height: 16px; }
.res-title { font-weight: 750; font-size: 1.15rem; }
.meter { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin: 4px 0 18px; }
.meter > i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width .8s var(--ease); }
.kv { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.kv > div { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-top: 1px solid var(--line); min-width: 0; }
.kv > div:first-child { border-top: 0; }
.kv dt { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
@media (min-width: 640px) { .kv { grid-template-columns: 1fr 1fr; } .kv > div:nth-child(2) { border-top: 0; } .kv > div:nth-child(even) { border-left: 1px solid var(--line); } }
.list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); min-width: 0; transition: border-color .2s, transform .2s var(--ease); }
.row:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.row .grow { flex: 1; min-width: 0; }
.row .amt { font-weight: 750; }
.row .fiat { font-size: .85rem; color: var(--muted); }
.row .addr { font-family: var(--mono); font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .right { text-align: right; flex: none; }
.dir { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; }
.dir.in { background: var(--ok-bg); color: var(--ok); } .dir.out { background: var(--bad-bg); color: var(--bad); }
.total { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
.sub { margin: 18px 0 0; font-size: .95rem; font-weight: 750; }
.note { margin-top: 14px; font-size: .88rem; color: var(--muted); display: flex; gap: 8px; }
.note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.skeleton { display: grid; gap: 12px; }
.skeleton i { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--bg-soft), var(--line), var(--bg-soft)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton i:nth-child(1) { width: 40%; height: 28px; } .skeleton i:nth-child(3) { width: 80%; } .skeleton i:nth-child(4) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.error { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.copy { background: none; border: 0; cursor: pointer; color: var(--accent); font: 600 .8rem var(--font); padding: 4px 8px; border-radius: 8px; }
.copy:hover { background: var(--accent-soft); }
.copy.done { color: var(--ok); }

/* ---------- sections ---------- */
section { padding: 40px 0; }
.section-head { max-width: 640px; margin-bottom: 26px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 22px; transition: transform .25s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: 1fr; padding: 0; list-style: none; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 70px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.steps h3 { margin-bottom: 4px; } .steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.chain-card { display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--text); transition: transform .25s var(--ease), border-color .2s; }
.chain-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); }
.chain-card b { display: block; } .chain-card span { color: var(--muted); font-size: .86rem; }
.tg-band { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, #1b2a6b, #1f6f8b); color: #fff; align-items: flex-start; position: relative; overflow: hidden; }
.tg-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
.tg-band h2 { color: #fff; margin-bottom: 6px; } .tg-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 560px; }
.tg-band ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: rgba(255,255,255,.9); }
.tg-band li::before { content: "✓ "; color: #7ff0d6; font-weight: 800; }
@media (min-width: 760px) { .tg-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 34px 40px; } }
.trust { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust .card { display: flex; gap: 14px; padding: 18px; } .trust svg { width: 26px; height: 26px; color: var(--ok); flex: none; margin-top: 2px; }
.trust p { margin: 0; color: var(--muted); font-size: .92rem; }
.disclaimer { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--text); font-size: .9rem; border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.faq details { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 18px; margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 6px; }
.prose { max-width: 760px; } .prose h2 { margin-top: 1.6em; } .prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }
.crumbs { font-size: .86rem; color: var(--muted); padding: 18px 0 0; } .crumbs a { color: var(--muted); } .crumbs span { margin: 0 6px; }

/* page layout with optional sidebar (sidebar only exists when ads are enabled) */
.layout { display: block; }
@media (min-width: 1140px) { .layout.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; } }
.aside { display: none; }
@media (min-width: 1140px) { .aside { display: block; position: sticky; top: 90px; align-self: start; } }

/* ---------- converter ---------- */
.conv { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) { .conv { grid-template-columns: 1.2fr 1fr auto 1fr; } }
.field label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select { width: 100%; min-height: 50px; padding: 0 14px; font: 600 1.05rem var(--font); border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.swap { justify-self: center; }
.conv-out { margin-top: 18px; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; }
.pairs a { padding: 8px 14px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 600; font-size: .92rem; }
.pairs a:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- support (tasteful donation) ---------- */
.support { margin: 8px 0 0; }
.support details { background: var(--bg-elev); border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--r); }
.support summary { cursor: pointer; padding: 14px 18px; list-style: none; display: flex; align-items: center; gap: 12px; font-weight: 650; }
.support summary::-webkit-details-marker { display: none; }
.support summary .heart { color: #ef5b7a; font-size: 1.15rem; }
.support summary small { color: var(--muted); font-weight: 500; margin-left: auto; }
.support .body { padding: 4px 18px 20px; display: grid; gap: 14px; }
.support .pillrow { display: flex; flex-wrap: wrap; gap: 8px; }
.support .opt { cursor: pointer; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 7px 12px 7px 8px; border-radius: 999px; font: 650 .88rem var(--font); display: inline-flex; align-items: center; gap: 7px; transition: border-color .2s, background .2s; }
.support .opt:hover { border-color: var(--accent); }
.support .opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.support .opt.amt { padding: 7px 14px; }
.support .pay { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 640px) { .support .pay { grid-template-columns: 168px 1fr; } }
.qr { width: 168px; height: 168px; padding: 8px; background: #fff; border-radius: 14px; border: 1px solid var(--line); margin: 0 auto; }
.qr svg { width: 100%; height: 100%; }
.addr-box { font-family: var(--mono); font-size: .86rem; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.support .fine { font-size: .82rem; color: var(--muted); margin: 0; }
.custom-amt { width: 92px; min-height: 36px; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 0 12px; font: 600 .88rem var(--font); }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--bg-soft); }
.foot { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h4 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .94rem; }
.foot a { color: var(--text); } .foot p { color: var(--muted); font-size: .9rem; margin: 10px 0 0; max-width: 340px; }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* ---------- ads (reserved space = no layout shift; off unless ads.enabled) ---------- */
.ad { display: none; position: relative; margin: 16px auto; background: transparent; overflow: hidden; }
.ad[data-preview="1"] { background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 10px, var(--bg) 10px, var(--bg) 20px); border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; align-items: center; justify-content: center; }
.ad::before { content: attr(data-label); position: absolute; top: 3px; left: 8px; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .8; z-index: 1; }
.ad-leaderboard { width: 728px; max-width: 100%; height: 90px; }
.ad-rect { width: 300px; height: 250px; }
.ad-sticky { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 320px; height: 100px; margin: 0; z-index: 60; border-radius: 10px 10px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.15); background: var(--bg-elev); }
.ad-sticky[data-preview="1"] { background: var(--bg-elev); }
.ad-close { position: absolute; right: 2px; top: 2px; z-index: 2; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--text); cursor: pointer; font-size: 14px; line-height: 1; }
@media (min-width: 768px) { .ad-leaderboard { display: flex; } }
.ad-rect.in-content { display: flex; }
@media (max-width: 767px) { .ad-sticky { display: flex; } body.has-sticky-ad { padding-bottom: 100px; } .ad-sticky.closed { display: none; } }
@media (min-width: 1140px) { .has-aside .ad-rect.in-content { display: none; } .aside .ad-rect { display: flex; } }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .js .reveal { opacity: 1; transform: none; } }
@media print { .site-header, .site-footer, .ad, .tg-band, .support { display: none !important; } }
