/* Buy QLTH (Transak on-ramp) */
.by-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: start; padding: 32px 0 40px; }
.by-mode { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--sans); padding: 4px 10px; border-radius: 999px; margin: 0 0 14px; font-style: normal; }
.by-mode.test { background: rgba(255, 196, 107, .12); color: var(--amber); }
.by-mode.soon { background: var(--mint-soft); color: var(--mint); }
i.by-mode { margin: 0 0 0 6px; padding: 1px 7px; font-size: 11.5px; }
.by-pitch h1 { font: 600 clamp(2rem, 4.2vw, 3.2rem)/1.06 var(--display); letter-spacing: -.035em; max-width: 15ch; }
.by-lead { font-size: 1.08rem; color: var(--muted); max-width: 52ch; margin: 18px 0 28px; }
.by-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 520px; }
.by-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; }
.by-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); font: 600 14px var(--mono); }
.by-steps b { font-weight: 500; }
.by-steps span { color: var(--muted); font-size: 14.5px; }
.by-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.by-pay .pm { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 10px; }

.by-box { padding: 22px; display: grid; gap: 8px; position: sticky; top: 84px; }
.by-box-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.by-box-h h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.by-prov { font-size: 12.5px; color: var(--dim); }
.by-lbl { font-size: 13px; color: var(--muted); margin-top: 10px; }
.by-amount { display: flex; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-in); overflow: hidden; }
.by-amount:focus-within { border-color: rgba(92, 242, 200, .6); }
.by-amount input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 600 28px var(--sans); padding: 12px 14px; outline: none; font-variant-numeric: tabular-nums; }
.by-amount select { background: var(--card2, #111a2c); color: var(--text); border: 0; border-left: 1px solid var(--line2); font: 500 15px var(--sans); padding: 0 14px; cursor: pointer; }
.by-quick, .by-wallets { display: flex; flex-wrap: wrap; gap: 6px; }
.by-quick .chip, .by-wallets .chip { cursor: pointer; font: inherit; font-size: 13px; transition: border-color .15s ease, color .15s ease; }
.by-quick .chip:hover, .by-wallets .chip:hover { color: var(--text); border-color: rgba(200, 215, 245, .38); }
.chip[aria-pressed="true"] { color: var(--mint); border-color: rgba(92, 242, 200, .55); background: var(--mint-soft); }
.by-hint { font-size: 12.5px; color: var(--dim); margin: 2px 0 0; }
.by-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.by-methods button { height: 44px; border-radius: var(--r-in); border: 1px solid var(--line2); background: var(--bg2); color: var(--muted); font: 500 14px var(--sans); cursor: pointer; transition: border-color .15s ease, color .15s ease, transform .12s ease; }
.by-methods button:hover { color: var(--text); }
.by-methods button:active { transform: scale(.97); }
.by-methods [aria-checked="true"] { color: var(--text); border-color: rgba(92, 242, 200, .6); box-shadow: inset 0 0 0 1px rgba(92, 242, 200, .35); }
.by-to { background: var(--bg2); border: 1px solid var(--line2); color: var(--text); border-radius: var(--r-in); padding: 11px 14px; font: 13.5px var(--mono); min-width: 0; width: 100%; }
.by-to:focus { border-color: rgba(92, 242, 200, .6); outline: none; }
.by-err { color: var(--red); font-size: 13.5px; margin: 4px 0 0; }
.by-go { margin-top: 14px; width: 100%; }
.by-note { font-size: 12.5px; color: var(--dim); margin: 6px 0 0; line-height: 1.5; }
.by-note b { color: var(--text); font-weight: 500; font-family: var(--mono); font-size: 12px; }

.by-sec { border-top: 1px solid var(--line); padding: 36px 0 12px; }
.by-sec h2 { font-size: 22px; margin-bottom: 18px; }
.by-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 820px; }
.bo { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--card); }
.bo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }
.bo.ok .bo-dot { background: var(--ok); }
.bo.bad .bo-dot { background: var(--red); }
.bo.wait .bo-dot { animation: bo-pulse 1.6s ease-in-out infinite; }
@keyframes bo-pulse { 50% { opacity: .35; } }
.bo-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bo-main b { font-weight: 500; }
.bo-main span { color: var(--dim); font-size: 13px; overflow-wrap: anywhere; }
.bo-id { color: var(--dim); font: 12px var(--mono); }
.by-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; margin: 0; max-width: 980px; }
.by-faq dt { font-weight: 500; margin-bottom: 4px; }
.by-faq dd { margin: 0; color: var(--muted); font-size: 14.5px; }

.by-dlg { padding: 0; border: 1px solid var(--line2); border-radius: 18px; background: var(--card); color: var(--text); width: min(480px, calc(100vw - 24px)); height: min(760px, calc(100dvh - 24px)); overflow: hidden; }
.by-dlg[open] { display: grid; grid-template-rows: auto 1fr auto; }
.by-dlg::backdrop { background: rgba(3, 5, 10, .72); backdrop-filter: blur(4px); }
.by-dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.by-frame { min-height: 0; background: #0b0f1a; }
.by-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.by-dlg-f { margin: 0; padding: 8px 14px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); }
.linkish { background: none; border: 0; padding: 0; color: var(--mint); font: inherit; cursor: pointer; text-decoration: underline; }

@media (max-width: 900px) {
  .by-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .by-box { position: static; order: -1; }
  .by-faq { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .by-dlg { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; border: 0; }
  .by-pitch h1 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { .bo.wait .bo-dot { animation: none; } }
