.billing { display: grid; gap: 16px; max-width: 760px; }
.billing h1 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -0.03em; }
.lead { color: var(--text-dim); }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plans form { height: 100%; background: linear-gradient(180deg, var(--ink-900), color-mix(in srgb, var(--ink-900) 80%, var(--ink-950))); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 6px; align-content: start; }
.plans h2 { font-size: 16px; }
.price { font: 800 28px var(--font-head); letter-spacing: -0.02em; }
.small { color: var(--text-dim); font-size: 13px; }
.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
.hist th, .hist td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.hist th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.pay .acct { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay code { font: 800 clamp(22px, 6vw, 30px) var(--font-mono); letter-spacing: 0.1em; }
.steps-list { color: var(--text-dim); padding-left: 20px; display: grid; gap: 6px; }
.copy.done { background: var(--teal); color: var(--on-teal); border-color: var(--teal); }
/* On a phone a table of several columns becomes one block per row, each value labelled by its column (data-label), so nothing scrolls sideways. */
@media (max-width: 560px) {
  .hist.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hist.stack, .hist.stack tbody, .hist.stack tr, .hist.stack td { display: block; }
  .hist.stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .hist.stack td { border: 0; padding: 2px 10px; }
  .hist.stack td::before { content: attr(data-label) ": "; color: var(--text-dim); font-weight: 600; }
}
.pay code { overflow-wrap: anywhere; }   /* a wallet address is one long word: it breaks anywhere rather than run off the page */
.qr { margin: 16px 0; max-width: 260px; }
.qr svg { display: block; width: 100%; height: auto; border-radius: 8px; }   /* black on white whatever the theme: a scanner needs that */
.qr figcaption { margin-top: 8px; }
