/* BitaxeDeploy crypto checkout */
:root {
  --ink: #0a0b0d;
  --ink-2: #14161a;
  --line: #262a31;
  --paper: #ffffff;
  --muted: #6b7280;
  --accent: #f7931a;
  --accent-deep: #e2700c;
  --teal: #2dd4bf;
  --danger: #ef4444;
  --warn-bg: #fff7ed;
  --warn-line: #fdba74;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #f4f5f7;
}

a { color: var(--accent-deep); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- header ---- */
.bd-bar {
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
}
.wrap { max-width: 980px; margin-inline: auto; padding-inline: 20px; }
.bd-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bd-bar img { height: 30px; width: auto; display: block; }
.bd-bar .secure {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: rgba(255,255,255,0.65);
}
.bd-bar .secure svg { width: 14px; height: 14px; }

/* ---- layout ---- */
main { padding: 28px 0 60px; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid { grid-template-columns: 1.45fr 1fr; align-items: start; } }

.card {
  background: var(--paper);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 22px;
}
.card + .card { margin-top: 18px; }
.card h2 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -0.01em; }
.card h3 { margin: 22px 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.sub { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }

/* ---- order summary ---- */
.sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 0.94rem; }
.sum-row.total {
  border-top: 1px solid #e5e7eb; margin-top: 8px; padding-top: 13px;
  font-size: 1.22rem; font-weight: 700;
}
.sum-item { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #f1f2f4; font-size: 0.92rem; }
.sum-item:last-of-type { border-bottom: 0; }
.sum-item .q { color: var(--muted); }
.ref {
  font-family: var(--mono); font-size: 0.86rem;
  background: #f4f5f7; border: 1px solid #e5e7eb; border-radius: 7px;
  padding: 3px 8px; display: inline-block;
}

/* ---- currency picker ---- */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 9px; }
.coin {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 13px; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px;
  font: inherit; color: inherit; transition: border-color .12s, background .12s;
}
.coin:hover { border-color: #cbd0d6; }
.coin[aria-pressed="true"] { border-color: var(--accent); background: #fffaf3; }
.coin:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.coin .t { font-weight: 650; }
.coin .n { font-size: 0.76rem; color: var(--muted); line-height: 1.35; }

/* ---- pay panel ---- */
.pay { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .pay { grid-template-columns: auto 1fr; } }

.qr {
  width: 188px; height: 188px;
  border: 1px solid #e5e7eb; border-radius: 10px; padding: 7px; background: #fff;
  justify-self: center;
}
.qr svg { width: 100%; height: 100%; display: block; }
.qr-note { font-size: 0.74rem; color: var(--muted); text-align: center; margin: 7px 0 0; max-width: 188px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 5px; }
.copyrow { display: flex; gap: 7px; align-items: stretch; }
.val {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 0.9rem; word-break: break-all;
  background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 9px 11px;
}
.val.amount { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; }
.val .chunk + .chunk::before { content: ' '; }

.btn {
  font: inherit; font-weight: 650; cursor: pointer;
  border-radius: 8px; border: 1px solid transparent; padding: 9px 15px;
  transition: filter .12s, background .12s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #16130c; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: #fff; border-color: #d1d5db; color: var(--ink); }
.btn-ghost:hover { background: #f8f9fa; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-wide { width: 100%; }

.copied { color: #15803d; font-size: 0.8rem; margin-left: 2px; }

/* ---- notices ---- */
.notice {
  border-radius: 10px; padding: 13px 15px; font-size: 0.88rem; line-height: 1.5;
  border: 1px solid; margin-bottom: 15px;
}
.notice strong { display: block; margin-bottom: 2px; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: #7c2d12; }
.notice-info { background: #f0f9ff; border-color: #bae6fd; color: #0c4a6e; }
.notice-err  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.timer.low { color: var(--danger); }

/* ---- form ---- */
input[type=text], input[type=email] {
  width: 100%; font: inherit; padding: 10px 12px;
  border: 1px solid #d1d5db; border-radius: 8px; background: #fff;
}
input[type=text] { font-family: var(--mono); font-size: 0.9rem; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hint { font-size: 0.8rem; color: var(--muted); margin: 5px 0 0; }

/* ---- footer ---- */
footer { border-top: 1px solid #e5e7eb; background: #fff; padding: 26px 0; font-size: 0.84rem; color: var(--muted); }
footer a { color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
footer .legal { line-height: 1.6; max-width: 90ch; }

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
