/* LumePane 收款页样式
   色值、阴影、圆角全部取自 Site/style.css（拟态材质），只为 /buy 与 /claim 两个页面服务。
   没有外部字体、没有图标库、没有任何第三方请求。 */

:root {
  --canvas: #E2DED9; --surface: #F2EFEA; --sunken: #D2CEC7;
  --light: #FAF7F5; --dark: #B8B2A9;
  --ink: #26221E; --ink-strong: #3D3833; --ink-soft: #57514A;
  --hermes: #F37021; --hermes-deep: #B8480F; --hermes-link: #9A3C0E;
  --hermes-soft: #FBD9C4; --hermes-wash: #FDF0E8;
  --raise-sm: 2px 2px 1px var(--dark), -1.5px -1.5px .5px #fff,
              4px 4px 7px rgba(184,178,169,.30), -3px -3px 6px rgba(255,255,255,.55);
  --raise: 2.5px 2.5px 1px var(--dark), -2px -2px .5px #fff,
           8px 10px 14px rgba(184,178,169,.32), -6px -6px 10px rgba(255,255,255,.55);
  --raise-lg: 3px 3px 1px var(--dark), -2.5px -2.5px .5px #fff,
              10px 12px 16px rgba(184,178,169,.32), -7px -7px 12px rgba(255,255,255,.55);
  --sink-sm: inset 2px 2px 5px rgba(184,178,169,.85), inset -2px -2px 5px rgba(255,255,255,.9);
  --sink: inset 3px 3px 7px rgba(184,178,169,.85), inset -3px -3px 7px rgba(255,255,255,.9);
  --r-plate: 34px; --r-card: 26px; --r-ctl: 18px;
  --page: min(1000px, 100% - 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink-strong);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 700; letter-spacing: -.032em; line-height: 1.12; }
h2 { font-size: 1.2rem; font-weight: 680; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--hermes-link); text-underline-offset: 3px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
:focus-visible { outline: 2px solid var(--hermes-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--page); margin-inline: auto; }
.tid { font-variant-numeric: tabular-nums; }

.neu { position: relative; }
.neu::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, #fff 0, rgba(255,255,255,.9) 18%, rgba(255,255,255,0) 35%,
              rgba(255,255,255,0) 65%, rgba(184,178,169,.85) 85%, #B8B2A9 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.plate { background: var(--surface); border-radius: var(--r-plate); box-shadow: var(--raise-lg); }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--raise); }
.sunk { background: var(--sunken); border-radius: var(--r-card); box-shadow: var(--sink); }

.nav {
  position: sticky; top: 0; z-index: 40; background: rgba(226,222,217,.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
.nav-in { display: flex; align-items: center; gap: 1rem; height: 52px; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 650; }
.brand img { width: 24px; height: 24px; border-radius: 6px; box-shadow: var(--raise-sm); }
.nav-links { margin-left: auto; display: flex; gap: 1.2rem; }
.nav-links a { color: var(--ink-strong); text-decoration: none; font-size: .86rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .78rem 1.5rem; border: 0; border-radius: var(--r-ctl); cursor: pointer;
  font: inherit; font-weight: 640; letter-spacing: -.012em; text-decoration: none;
}
.btn-primary { color: #fff; background: var(--hermes-deep); box-shadow: var(--raise-sm), inset 0 1px 0 rgba(255,255,255,.28); }
.btn-primary:hover { background: #A03E0C; }
.btn-primary:disabled { opacity: .55; cursor: progress; }
.btn-ghost { color: var(--ink); background: var(--surface); box-shadow: var(--raise-sm); }
.btn-ghost:hover { box-shadow: var(--raise); }
.btn:active { transform: translateY(1px); }

.page { padding: clamp(2.2rem, 5vw, 3.6rem) 0 4rem; }
.lede { margin-top: 1rem; max-width: 46rem; color: var(--ink-soft); font-size: 1.05rem; }
.muted { color: var(--ink-soft); font-size: .9rem; }
.stack { display: grid; gap: 1.1rem; margin-top: 2rem; }
.step { padding: 1.4rem 1.5rem 1.6rem; }
.step-head { display: flex; align-items: baseline; gap: .7rem; }
.step-num { font-size: .78rem; font-weight: 700; letter-spacing: .09em; color: var(--hermes-link); text-transform: uppercase; }
.grid-pay { display: grid; grid-template-columns: 260px 1fr; gap: 1.6rem; align-items: start; margin-top: 1rem; }
.qr-box { padding: 14px; border-radius: var(--r-card); background: var(--light); box-shadow: var(--raise); }
.qr-box svg { width: 100%; height: auto; }
.qr-cap { margin-top: .7rem; font-size: .8rem; color: var(--ink-soft); text-align: center; }
.fields { display: grid; gap: .9rem; }
.field label { display: block; font-size: .78rem; font-weight: 650; letter-spacing: .07em; color: var(--ink-soft); text-transform: uppercase; }
.field-row { display: flex; gap: .5rem; align-items: stretch; }
.field-val {
  flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: var(--r-ctl);
  background: var(--sunken); box-shadow: var(--sink-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem;
  word-break: break-all; user-select: all;
}
.amount { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.copy { flex: none; padding: .7rem 1rem; border: 0; border-radius: var(--r-ctl); cursor: pointer; font: inherit; font-size: .88rem; background: var(--surface); box-shadow: var(--raise-sm); }
.copy:hover { box-shadow: var(--raise); }
.seg { display: inline-flex; gap: .35rem; padding: .3rem; border-radius: 14px; background: var(--sunken); box-shadow: var(--sink-sm); }
.seg button { border: 0; background: transparent; font: inherit; font-size: .82rem; padding: .35rem .8rem; border-radius: 10px; cursor: pointer; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--raise-sm); }

.warn {
  margin-top: 1.1rem; padding: 1rem 1.15rem; border-radius: var(--r-ctl);
  border-left: 3px solid var(--hermes); background: var(--canvas);
  color: var(--ink-strong); font-size: .93rem; line-height: 1.72;
}
.warn strong { color: var(--ink); }
.warn.big { border-left-width: 5px; background: var(--hermes-wash); }
.badge { display: inline-block; padding: .12rem .5rem; border-radius: 999px; background: var(--hermes-soft); color: #6b2b09; font-size: .78rem; font-weight: 650; }
.state { margin-top: .8rem; font-size: .95rem; color: var(--ink-soft); }
.state.ok { color: #1f6b2f; font-weight: 600; }
.state.err { color: #9A3C0E; font-weight: 600; }
.code-box {
  margin-top: .7rem; padding: 1rem 1.1rem; border-radius: var(--r-ctl);
  background: var(--sunken); box-shadow: var(--sink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem;
  word-break: break-all; user-select: all;
}
.code-box.big { font-size: 1.15rem; font-weight: 700; letter-spacing: .12em; }
.notices { margin: 1.1rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); font-size: .88rem; line-height: 1.75; }
.notices li + li { margin-top: .3rem; }
footer { padding: 2.5rem 0 3.5rem; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.foot-links a { color: var(--ink-strong); text-decoration: none; font-size: .88rem; }
.foot-note { margin-top: .9rem; color: var(--ink-soft); font-size: .82rem; }
form.claim-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: stretch; margin-top: 1rem; }
form.claim-form input {
  flex: 1; min-width: 12rem; padding: .8rem 1rem; border: 0; border-radius: var(--r-ctl);
  background: var(--sunken); box-shadow: var(--sink-sm); font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem;
  letter-spacing: .22em; text-transform: uppercase;
}
@media (max-width: 720px) {
  .grid-pay { grid-template-columns: 1fr; }
  .qr-box { max-width: 260px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:active, .copy:active { transform: none; }
}
/* ── chain / token selector ── */
.chain-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; margin-top: 1rem; }
.chain-btn {
  display: flex; flex-direction: column; gap: .3rem; text-align: left;
  padding: .85rem 1rem; border: 0; border-radius: var(--r-ctl); cursor: pointer;
  background: var(--surface); box-shadow: var(--raise-sm); font: inherit; color: var(--ink-strong);
}
.chain-btn:hover { box-shadow: var(--raise); }
.chain-btn.is-active { background: var(--hermes-wash); box-shadow: var(--raise), inset 0 0 0 2px var(--hermes-deep); }
.chain-name { font-weight: 680; font-size: 1rem; color: var(--ink); }
.chain-fee { font-size: .78rem; color: var(--ink-soft); line-height: 1.5; }
.token-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.token-btn {
  padding: .5rem .95rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sunken); box-shadow: var(--sink-sm); font: inherit; font-size: .86rem; color: var(--ink-soft);
}
.token-btn.is-active { background: var(--hermes-deep); color: #fff; box-shadow: var(--raise-sm); }
.net-badge {
  display: inline-block; margin-top: .7rem; padding: .4rem .9rem; border-radius: 999px;
  background: var(--hermes-deep); color: #fff; font-weight: 700; font-size: .92rem; letter-spacing: -.01em;
}

/* 间距工具类：替代内联 style，让 CSP 的 style-src 'self' 不再拦截自己的样式 */
.mt-3 { margin-top: .3rem; }
.mt-6 { margin-top: .6rem; }
.mt-7 { margin-top: .7rem; }
.mt-8 { margin-top: .8rem; }
.mt-9 { margin-top: .9rem; }
.mt-10 { margin-top: 1rem; }
.mt-11 { margin-top: 1.1rem; }
.actions-inline { margin-top: .9rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.self-center { align-self: center; }

/* 语言切换（购买页）。放在导航栏内，视觉上与其他链接一致。 */
.lang-switch { display: inline-flex; gap: .5rem; align-items: center; font-size: .82rem; }
.lang-switch a { color: var(--ink-soft); text-decoration: none; padding: .15rem .35rem; border-radius: 6px; }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--sunken); font-weight: 600; }
.lang-switch a:hover { color: var(--ink); }

/* 购买页：支付宝/微信扫码人工发码（与加密货币同页） */
.qr-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .9rem; }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-decoration: none; color: var(--ink-soft); }
.qr-card img { width: 132px; height: 132px; border-radius: 10px; background: #fff; padding: 4px; box-shadow: var(--raise-sm); }
.qr-cap { font-size: .82rem; color: var(--ink-soft); }
.pay-steps { margin: .9rem 0 0 1.1rem; padding: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.pay-steps code { font-size: .86em; }
@media (max-width: 460px) { .qr-card img { width: 112px; height: 112px; } }

/* 小屏购买页：避免导航、网络选择器把页面撑出横向滚动 */
@media (max-width: 640px) {
  .nav-in { flex-wrap: wrap; height: auto; padding: .55rem 0; gap: .4rem .8rem; }
  .brand { flex: 1 1 auto; }
  .nav-links { margin-left: 0; gap: .9rem; flex-wrap: wrap; }
  .lang-switch { width: 100%; flex-wrap: wrap; gap: .3rem; }
  .page { padding-top: 1.5rem; }
  .step { padding: 1.1rem 1rem 1.25rem; }
  .chain-list { grid-template-columns: 1fr; }
  .qr-row { gap: .7rem; }
  .qr-card img { width: 120px; height: 120px; }
  .warn { font-size: .88rem; }
  .grid-pay { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   Checkout redesign: editorial split, one dark "terminal" slab,
   quiet paper cards, receipt rail. Scoped to .checkout-page so the
   claim page keeps its existing surfaces.
   ───────────────────────────────────────────────────────────── */
.checkout-page {
  background:
    radial-gradient(80rem 36rem at 50% -12%, rgba(255,255,255,.38), transparent 60%),
    var(--canvas);
}
.checkout-page .nav { height: 64px; border-bottom-color: rgba(38,34,30,.08); }
.checkout-page .nav-in { height: 64px; }
.checkout-page .nav-links a { font-size: .84rem; }
.checkout-page .brand img { width: 26px; height: 26px; }

.checkout-page .checkout { padding: 0 0 clamp(5rem, 10vw, 8rem); }
.checkout-page .checkout-intro {
  padding-top: clamp(4.5rem, 10vw, 8.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 3rem;
}
.checkout-page .checkout-intro > * { grid-column: 1; }
.checkout-page .intro-back {
  grid-column: 1 / -1; justify-self: start;
  font-size: .82rem; text-decoration: none; color: var(--ink-soft);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.checkout-page .intro-back:hover { color: var(--ink); }
.checkout-page .intro-kicker {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  color: var(--hermes-link); margin: 0 0 1.1rem;
}
.checkout-page #buy-title {
  font-size: clamp(3.4rem, 8.5vw, 7.2rem);
  font-weight: 700; line-height: .94; letter-spacing: -.055em;
  color: var(--ink); max-width: 10ch; text-wrap: balance;
}
.checkout-page .intro-lede {
  max-width: 34rem; margin-top: 1.8rem;
  color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65; text-wrap: balance;
}
.checkout-page .intro-price {
  grid-column: 2; grid-row: 3 / span 3; align-self: end;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 1rem;
  max-width: 19rem; padding-bottom: .35rem;
  color: var(--ink-soft); font-size: .8rem;
}
.checkout-page .intro-price-main {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem); font-weight: 700;
  letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.checkout-page .intro-price-alt { max-width: 7.5rem; line-height: 1.35; }
.checkout-page .intro-price-sep { width: 1px; height: 2.5rem; background: rgba(38,34,30,.18); }

.checkout-page .checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, .78fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
  padding-top: clamp(1rem, 2vw, 2rem);
}
.checkout-page .checkout-main { display: grid; gap: 1.35rem; min-width: 0; }
.checkout-page .method {
  position: relative;
  padding: clamp(1.6rem, 3.5vw, 2.85rem);
  border-radius: var(--r-plate);
  background: var(--surface);
  box-shadow: var(--raise);
  overflow: hidden;
}
.checkout-page .method::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0) 32%, rgba(184,178,169,.55) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.checkout-page .method-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.checkout-page .method-kicker {
  font-size: .69rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-soft);
}
.checkout-page .method-badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: var(--hermes-deep); border-radius: 999px; padding: .25rem .65rem;
}
.checkout-page .method h2 {
  margin-top: 1.3rem; font-size: clamp(1.55rem, 3.3vw, 2.35rem);
  letter-spacing: -.035em; line-height: 1.05;
}
.checkout-page .method-copy {
  max-width: 36rem; margin-top: .85rem; color: var(--ink-soft);
  font-size: .98rem; line-height: 1.7;
}
.checkout-page .method-note { margin-top: 1.1rem; max-width: 34rem; color: var(--ink-soft); font-size: .8rem; line-height: 1.65; }
.checkout-page .method-link { margin-top: 1.1rem; font-size: .85rem; }
.checkout-page .method-link a { text-decoration: none; border-bottom: 1px solid rgba(154,60,14,.3); }
.checkout-page .method-link .btn { border-bottom: 0; }

.checkout-page .method-primary {
  background: #26221E; color: #F2EFEA;
  box-shadow: 3px 3px 1px #B8B2A9, -2px -2px 1px rgba(255,255,255,.5), 18px 24px 50px rgba(38,34,30,.24);
}
.checkout-page .method-primary::before {
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0) 40%, rgba(0,0,0,.35));
}
.checkout-page .method-primary .method-kicker { color: #C9BDB1; }
.checkout-page .method-primary .method-badge { background: #F37021; color: #211A15; }
.checkout-page .method-primary h2 { color: #FAF7F5; }
.checkout-page .method-primary .method-copy,
.checkout-page .method-primary .method-note { color: #CFC6BC; }
.checkout-page .method-primary .method-link a { color: #F3B089; border-bottom-color: rgba(243,176,137,.4); }
.checkout-page .method-primary .method-link a:hover { color: #FFD2B8; }
.checkout-page .method-buy {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  margin-top: 1.8rem;
}
.checkout-page .method-price {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700;
  letter-spacing: -.055em; line-height: 1; color: #FAF7F5;
}
.checkout-page .method-primary .btn-primary {
  background: #F37021; color: #23180F;
  box-shadow: 0 8px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.35);
}
.checkout-page .method-primary .btn-primary:hover { background: #FF8A43; color: #1B120A; }
.checkout-page .method-primary .btn::after { content: "↗"; font-size: 1.05em; line-height: 1; }

.checkout-page .method-qr { background: var(--light); }
.checkout-page .method-price-small {
  font-size: 1rem; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.checkout-page .qr-tray {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start;
  margin-top: 1.5rem; padding: 1rem; width: fit-content; max-width: 100%;
  border-radius: calc(var(--r-card) - 2px); background: var(--sunken); box-shadow: var(--sink);
}
.checkout-page .qr-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--ink-soft); padding: .35rem;
  border-radius: 14px; transition: transform .25s cubic-bezier(.32,.72,0,1), background .25s;
}
.checkout-page .qr-card:hover { background: rgba(255,255,255,.55); transform: translateY(-2px); }
.checkout-page .qr-card img {
  width: 138px; height: 138px; border-radius: 10px; background: #fff;
  padding: 5px; box-shadow: 0 2px 7px rgba(38,34,30,.12);
}
.checkout-page .qr-cap { font-size: .74rem; font-weight: 600; }
.checkout-page .pay-steps {
  margin: 1.35rem 0 0; padding: 0; list-style: none;
  counter-reset: pay; display: grid; gap: .65rem;
  color: var(--ink-soft); font-size: .9rem; line-height: 1.55; max-width: 36rem;
}
.checkout-page .pay-steps li { position: relative; padding-left: 2.1rem; counter-increment: pay; }
.checkout-page .pay-steps li::before {
  content: counter(pay, decimal-leading-zero); position: absolute; left: 0; top: .1rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: var(--hermes-link);
}

.checkout-page .crypto-drawer {
  border-radius: var(--r-plate); background: rgba(242,239,234,.55);
  box-shadow: inset 0 0 0 1px rgba(38,34,30,.08);
  overflow: hidden;
}
.checkout-page .crypto-drawer > summary {
  display: flex; align-items: center; gap: 1.2rem; cursor: pointer;
  list-style: none; padding: 1.45rem clamp(1.2rem, 3vw, 2rem);
  color: var(--ink);
}
.checkout-page .crypto-drawer > summary::-webkit-details-marker { display: none; }
.checkout-page .crypto-summary-copy { display: grid; gap: .2rem; }
.checkout-page .crypto-kicker { font-size: .78rem; color: var(--ink-soft); }
.checkout-page .crypto-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.checkout-page .crypto-summary-note { margin-left: auto; color: var(--ink-soft); font-size: .8rem; }
.checkout-page .crypto-chevron {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  border-radius: 50%; background: var(--surface); box-shadow: var(--raise-sm);
  font-size: 1.2rem; font-weight: 300; color: var(--ink-soft);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.checkout-page .crypto-drawer[open] .crypto-chevron { transform: rotate(45deg); }
.checkout-page .crypto-body {
  border-top: 1px solid rgba(38,34,30,.09);
  padding: clamp(1.3rem, 3vw, 2rem); background: rgba(255,255,255,.18);
}
.checkout-page .crypto-drawer .step-head { margin-bottom: .8rem; }
.checkout-page .crypto-drawer .chain-list { margin-top: 1.2rem; }

.checkout-page .checkout-main .stack { display: grid; gap: 1.35rem; margin-top: .1rem; }
.checkout-page .checkout-main .step {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border-radius: var(--r-card); background: var(--surface); box-shadow: var(--raise-sm);
}
.checkout-page .checkout-main .step:empty { display: none; }
.checkout-page .checkout-main .step-head { margin-bottom: .65rem; }
.checkout-page .checkout-main .step-num { font-size: .68rem; }
.checkout-page .checkout-main .warn { border-radius: 14px; }
.checkout-page .checkout-main .grid-pay { grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); }

.checkout-page .checkout-aside {
  position: sticky; top: 92px;
  display: grid; gap: 1.3rem;
}
.checkout-page .receipt {
  border-radius: var(--r-card); background: var(--surface);
  box-shadow: var(--raise); padding: 1.5rem 1.4rem 1.25rem;
  position: relative;
}
.checkout-page .receipt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0) 45%, rgba(184,178,169,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.checkout-page .receipt-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-soft);
  text-transform: uppercase;
}
.checkout-page .receipt-tag { font-weight: 600; letter-spacing: .02em; color: var(--hermes-link); text-transform: none; }
.checkout-page .receipt-price {
  margin-top: 1.2rem; font-size: 2.7rem; font-weight: 700;
  letter-spacing: -.06em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.checkout-page .receipt-price span { font-size: .9rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink-soft); }
.checkout-page .receipt-list {
  list-style: none; padding: 0; margin: 1.35rem 0 0;
  border-top: 1px solid rgba(38,34,30,.1);
}
.checkout-page .receipt-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid rgba(38,34,30,.08);
  font-size: .82rem; color: var(--ink-soft);
}
.checkout-page .receipt-list strong { font-weight: 600; color: var(--ink); text-align: right; }
.checkout-page .receipt-cta { width: 100%; margin-top: 1.25rem; }
.checkout-page .receipt-foot { margin-top: .8rem; font-size: .74rem; line-height: 1.55; color: var(--ink-soft); }
.checkout-page .aside-note { padding: 1.1rem 1.2rem; border-radius: var(--r-ctl); background: rgba(242,239,234,.5); box-shadow: inset 0 0 0 1px rgba(38,34,30,.06); }
.checkout-page .aside-note p { font-size: .82rem; line-height: 1.6; color: var(--ink-soft); }
.checkout-page .aside-kicker { margin-bottom: .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); text-transform: uppercase; }
.checkout-page .aside-note a { text-decoration: none; border-bottom: 1px solid rgba(154,60,14,.28); }
.checkout-page .aside-quiet { opacity: .85; }

.checkout-page footer { padding-top: 4rem; }
.checkout-page .foot-links a { font-size: .8rem; }

@keyframes checkout-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.checkout-page .checkout-intro > * { animation: checkout-rise .8s cubic-bezier(.32,.72,0,1) both; }
.checkout-page .checkout-intro .intro-back { animation-delay: .02s; }
.checkout-page .checkout-intro .intro-kicker { animation-delay: .06s; }
.checkout-page #buy-title { animation-delay: .1s; }
.checkout-page .intro-lede { animation-delay: .16s; }
.checkout-page .intro-price { animation-delay: .22s; }
.checkout-page .checkout-grid { animation: checkout-rise .9s .18s cubic-bezier(.32,.72,0,1) both; }

@media (max-width: 980px) {
  .checkout-page .checkout-grid { grid-template-columns: 1fr; }
  .checkout-page .checkout-aside { position: static; grid-row: 1; }
  .checkout-page .checkout-main { grid-row: 2; }
  .checkout-page .checkout-intro { grid-template-columns: 1fr; }
  .checkout-page .intro-price { grid-column: 1; grid-row: auto; margin-top: 1.8rem; max-width: none; }
  .checkout-page .intro-price-sep { height: 1.8rem; }
}
@media (max-width: 640px) {
  .checkout-page .nav-in { height: auto; padding: .7rem 0; }
  .checkout-page #buy-title { font-size: clamp(3.1rem, 15vw, 4.6rem); }
  .checkout-page .checkout-intro { padding-top: 3.6rem; }
  .checkout-page .method { padding: 1.2rem 1.1rem 1.4rem; border-radius: 26px; }
  .checkout-page .method h2 { margin-top: 1rem; }
  .checkout-page .method-buy { gap: 1rem; }
  .checkout-page .method-primary .btn { width: 100%; }
  .checkout-page .qr-tray { width: 100%; justify-content: space-between; padding: .8rem; }
  .checkout-page .qr-card { flex: 1 1 0; }
  .checkout-page .qr-card img { width: 100%; height: auto; max-width: 150px; }
  .checkout-page .crypto-summary-note { display: none; }
  .checkout-page .checkout-main .grid-pay { grid-template-columns: 1fr; }
  .checkout-page .intro-price { gap: .4rem .75rem; }
  .checkout-page .intro-price-alt { font-size: .74rem; }
  .checkout-page .intro-price-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-page .checkout-intro > *, .checkout-page .checkout-grid { animation: none; }
}

.checkout-page .crypto-fallback { margin: 0 0 1rem; font-size: .85rem; }
.checkout-page .crypto-fallback a { text-decoration: none; border-bottom: 1px solid rgba(154,60,14,.3); }

/* Mobile containment: grid/flex children must be allowed to shrink, otherwise
   the QR tray and CTA force the whole page wider than the viewport. */
.checkout-page, .checkout-page .checkout-grid, .checkout-page .checkout-main,
.checkout-page .checkout-aside, .checkout-page .method,
.checkout-page .receipt { min-width: 0; }
.checkout-page .method-buy, .checkout-page .method-buy .btn,
.checkout-page .receipt-list li, .checkout-page .checkout-intro { max-width: 100%; }
@media (max-width: 980px) {
  .checkout-page .checkout-aside { grid-row: auto; }
  .checkout-page .checkout-main { grid-row: auto; }
}
@media (max-width: 640px) {
  .checkout-page .checkout-grid { width: calc(100% - 2rem); }
  .checkout-page .method-buy .btn { white-space: normal; }
  .checkout-page .receipt { overflow: hidden; }
  .checkout-page .intro-price { flex-wrap: wrap; }
}
