/* TERA OPTIONS — real-account opening and wallet. Builds on auth.css and verify.css. */

.rl-risk { margin: 0 0 var(--s-5); padding: 12px 14px; border-radius: var(--r-md); border: 1px solid rgba(242, 184, 75, 0.4); background: rgba(242, 184, 75, 0.08); font-size: var(--fs-sm); color: #f6d58e; line-height: 1.55; }
.rl-risk b { display: block; color: #ffe2a3; margin-bottom: 2px; }
.rl-risk a { color: #8fb3ff; }


/* ---------------------------------------------------------------- wallet */
/* inside the platform's wallet popup: no page chrome, the popup supplies the frame */
.wl-embed body { background: transparent; }
.wl-embed .au-bg, .wl-embed .wl-top { display: none; }
.wl-embed .wl-main { min-height: 0; padding: 4px 16px 24px; }

.wl-main { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center;
  padding: max(20px, var(--safe-t)) max(16px, var(--safe-r)) max(48px, calc(var(--safe-b) + 24px)) max(16px, var(--safe-l)); }
.en-top-links { display: flex; gap: 8px; }
.wl-top { width: 100%; max-width: 720px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.wl-brand { flex-direction: row; margin: 0; gap: 10px; }
.wl-loading { display: grid; place-items: center; gap: 12px; min-height: 50vh; color: var(--c-text-2); }
.wl-gate { margin-top: 6vh; }
.wl-wrap { width: 100%; max-width: 720px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; animation: viewIn var(--dur-3) var(--ease-out) both; }
.wl-wrap > .au-card { max-width: none; margin: 0; padding: clamp(18px, 3vw, 28px); }

.wl-balance { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-xl); border: 1px solid rgba(47, 193, 178, 0.28);
  background: radial-gradient(120% 140% at 0% 0%, rgba(34, 179, 154, 0.14), transparent 55%), linear-gradient(180deg, rgba(16, 31, 51, 0.92), rgba(11, 23, 40, 0.94)); }
.wl-label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: #5fd3c2; }
.wl-balance b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: clamp(32px, 6vw, 44px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wl-balance small { color: var(--c-text-3); font-size: 12px; }
.wl-balance-btns { display: flex; gap: 8px; }
.wl-paused { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid rgba(242, 184, 75, 0.4); background: rgba(242, 184, 75, 0.08); color: #f6d58e; font-size: var(--fs-sm); }

.wl-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-md); background: rgba(7, 17, 31, 0.6); border: 1px solid var(--c-border); }
.wl-tabs button { flex: 1; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--c-text-2); font: 600 var(--fs-sm) var(--font-sans); cursor: pointer; }
.wl-tabs button[aria-selected="true"] { background: var(--c-surface-2); color: var(--c-text); }
.wl-h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }

.wl-methods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.wl-coins-head { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-text-2); }
.wl-coins-head span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--c-text-3); }
.wl-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.wl-coin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px 10px; border-radius: var(--r-md); border: 1px solid var(--c-border-strong); background: rgba(7, 17, 31, 0.5); cursor: pointer; text-align: center; }
.wl-coin input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wl-coin:has(input:checked) { border-color: var(--c-cyan); background: var(--c-cyan-soft); }
.wl-coin:has(input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.wl-coin .coin-ic { margin-bottom: 3px; }
.wl-coin b { font-size: var(--fs-sm); line-height: 1.2; }
.wl-coin small { font-size: 11.5px; color: var(--c-text-3); line-height: 1.2; }
.coin-ic { position: relative; display: inline-block; flex: none; }
.coin-ic > svg { display: block; }
.coin-ic-net { position: absolute; right: -3px; bottom: -3px; display: block; border-radius: 50%; box-shadow: 0 0 0 2px #0b1626; line-height: 0; }
@media (max-width: 420px) { .wl-coins { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wl-method { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--c-border-strong); background: rgba(7, 17, 31, 0.5); cursor: pointer; }
.wl-method input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wl-method:has(input:checked) { border-color: var(--c-cyan); background: var(--c-cyan-soft); }
.wl-method:has(input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.wl-method i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--c-surface-2); flex: none; }
.wl-method i svg { width: 20px; height: 20px; fill: none; stroke: #8fb3ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wl-method b { display: block; font-size: var(--fs-sm); }
.wl-method small { font-size: 12px; color: var(--c-text-3); }
.wl-method.is-off { cursor: default; border-style: dashed; border-color: var(--c-border); background: transparent; }
.wl-method.is-off i svg { stroke: var(--c-text-3); }
.wl-method.is-off b { color: var(--c-text-2); }
.wl-method .wl-soon { margin-left: auto; flex: none; font-style: normal; font-size: 11px; font-weight: 600; color: var(--c-text-3); border: 1px solid var(--c-border-strong); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.wl-amount { display: flex; align-items: center; gap: 8px; }
.wl-amount > span { font-weight: 600; color: var(--c-text-2); }
.wl-amount .input { flex: 1; min-width: 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wl-chips button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c-border-strong); background: none; color: var(--c-text-2); font: 600 12.5px var(--font-sans); cursor: pointer; }
.wl-note { margin-top: 6px; font-size: 12.5px; color: var(--c-text-3); }
.wl-fine { margin: 0; font-size: 12.5px; color: var(--c-text-3); line-height: 1.55; text-align: center; }
.wl-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.wl-dest { display: grid; gap: var(--s-4); }
.wl-fee { margin-top: 8px; font-size: var(--fs-sm); color: var(--c-text-2); }
.wl-fee b { color: var(--c-text); }

/* payment window: the "TERA Pay" checkout card (js/wallet.js instructions()). A light, calm card like a hosted checkout. */
.tp { --tp-ink: #0f172a; --tp-ink-2: #475569; --tp-ink-3: #64748b; --tp-line: #e6ebf1; --tp-soft: #f6f8fb; --tp-accent: #315fea; --tp-ok: #0f8a5f;
  container-type: inline-size; margin: 0 0 var(--s-5); border-radius: 16px; background: #fff; color: var(--tp-ink); overflow: hidden; font-family: var(--font-sans);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(0, 0, 0, 0.18), 0 24px 48px -20px rgba(0, 0, 0, 0.55); font-variant-numeric: tabular-nums; line-height: 1.45; }
.tp svg { flex: none; }
.tp .tp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 500; letter-spacing: 0; }
.tp .coin-ic-net { box-shadow: 0 0 0 2px #fff; }

.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--tp-line); }
.tp-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1 var(--font-display); letter-spacing: -0.01em; color: var(--tp-ink); }
.tp-brand > span { font-weight: 500; color: var(--tp-ink-2); margin-left: -4px; }
.tp-ref { font-size: 12.5px; color: var(--tp-ink-3); white-space: nowrap; }
.tp-ref b { color: var(--tp-ink); font-size: 12.5px; }

.tp-sum { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 24px 18px; }
.tp-sum small { display: block; font-size: 12.5px; color: var(--tp-ink-3); }
.tp-to b { display: block; margin: 2px 0 1px; font-size: 15px; font-weight: 600; }
.tp-total { text-align: right; }
.tp-total b { display: block; font: 700 32px/1.1 var(--font-display); letter-spacing: -0.02em; }

.tp-steps { list-style: none; margin: 0; padding: 0 24px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tp-steps li { display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 3px solid var(--tp-line); font-size: 12.5px; font-weight: 500; color: var(--tp-ink-3); min-width: 0; }
.tp-steps i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #cbd5e1; font: 600 11px/1 var(--font-sans); font-style: normal; color: var(--tp-ink-3); }
.tp-steps i svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tp-steps li.now { border-top-color: var(--tp-accent); color: var(--tp-ink); font-weight: 600; }
.tp-steps li.now i { border-color: var(--tp-accent); background: var(--tp-accent); color: #fff; }
.tp-steps li.done { border-top-color: var(--tp-ok); color: var(--tp-ink-2); }
.tp-steps li.done i { border-color: var(--tp-ok); background: var(--tp-ok); }

.tp-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 24px; border-top: 1px solid var(--tp-line); }

/* "Pay with": a plain summary line, not a field */
.tp-paywith { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp-paywith .tp-k { margin: 0; }
.tp-paywith > div { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: right; }
.tp-paywith > div > span { min-width: 0; }
.tp-paywith b { display: block; font-size: 15px; font-weight: 600; }
.tp-paywith em { font-style: normal; font-weight: 500; color: var(--tp-ink-3); }
.tp-paywith small { display: block; font-size: 12.5px; color: var(--tp-ink-3); }

/* the address with its QR code: one bordered block, QR on the left when there's room */
.tp-addr-box { display: flex; align-items: center; gap: 20px; padding: 14px; border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-soft); }
.tp-addr-main { flex: 1; min-width: 0; display: grid; gap: 12px; justify-items: start; }
.tp-addr-box.has-qr .tp-qr { order: -1; }
.tp-qr { flex: none; text-align: center; }
.tp-qr-tile { position: relative; display: inline-block; padding: 8px; border-radius: 10px; border: 1px solid var(--tp-line); background: #fff; line-height: 0; }
.tp-qr-tile > svg { display: block; width: 148px; height: 148px; }
.tp-qr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 3px; border-radius: 50%; background: #fff; line-height: 0; }
.tp-qr p { margin: 6px 0 0; font-size: 12px; color: var(--tp-ink-3); }

.tp-k { margin-bottom: 6px; font-size: 12.5px; font-weight: 500; color: var(--tp-ink-2); }
.tp-v { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 10px 9px 14px; border: 1px solid var(--tp-line); border-radius: 10px; background: var(--tp-soft); }
.tp-val { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.tp-val small { font-size: 13px; font-weight: 500; color: var(--tp-ink-3); }
.tp-val .tp-mono > span { display: inline-block; margin-right: 0.45em; color: var(--tp-ink-2); }
.tp-val .tp-mono > span.tp-edge { color: var(--tp-ink); font-weight: 650; }
.tp-addr .tp-val { font-size: 15px; line-height: 1.65; text-wrap: balance; }
.tp-strong { font-weight: 650 !important; letter-spacing: 0.04em !important; }
.tp-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--tp-ink-3); }
.tp-bank { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #eef2ff; }
.tp-bank svg { width: 17px; height: 17px; fill: none; stroke: #3446b8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; border: 1px solid #d4dbe5; background: #fff; color: var(--tp-ink); font: 600 12.5px/1 var(--font-sans); cursor: pointer; }
.tp-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tp-list { border: 1px solid var(--tp-line); border-radius: 10px; background: var(--tp-soft); }
.tp-li { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; }
.tp-li + .tp-li { border-top: 1px solid var(--tp-line); }
.tp-li > div { flex: 1; min-width: 0; }
.tp-li span { display: block; font-size: 12px; color: var(--tp-ink-3); }
.tp-li b { display: block; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.tp-li .tp-mono > span { display: inline-block; margin-right: 0.45em; font-size: inherit; color: var(--tp-ink-2); }
.tp-li .tp-mono > span.tp-edge { color: var(--tp-ink); font-weight: 650; }
.tp-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 11px 14px; border-radius: 10px; background: #fff8eb; border: 1px solid #f6dfae; color: #7a4a06; font-size: 13px; }
.tp-alert svg { width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: #b7791f; stroke-width: 2; stroke-linecap: round; }
.tp-alert b { font-weight: 650; color: #5c3605; }
.tp-alert.tp-bad { background: #fff1f1; border-color: #f5c2c2; color: #8a1c1c; }
/* the reference for a crypto payment: one small line (it isn't sent with the coins) */
.tp-refline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -4px 0 0; font-size: 12.5px; color: var(--tp-ink-3); }
.tp-refline b { color: var(--tp-ink); font-size: 12.5px; }
.tp-refline .tp-copy { padding: 4px 6px; border-color: var(--tp-line); color: var(--tp-ink-2); }
.tp-refline > span { flex-basis: 100%; }
.tp-note { margin: 0; font-size: 13px; color: var(--tp-ink-2); }
.tp-note b { color: var(--tp-ink); font-weight: 600; }

.tp-act { padding: 0 24px 22px; }
.tp-label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 500; color: var(--tp-ink-2); }
.tp-label span { font-weight: 400; color: var(--tp-ink-3); }
.tp-input { display: block; width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid #cfd7e2; background: #fff; color: var(--tp-ink); font: 500 14px var(--font-sans); outline: none; }
.tp-input::placeholder { color: #94a3b8; }
.tp-input:focus { border-color: var(--tp-accent); box-shadow: 0 0 0 3px rgba(49, 95, 234, 0.18); }
.tp-btn { display: block; width: 100%; height: 50px; margin-top: 12px; border: 0; border-radius: 10px; background: var(--tp-accent); color: #fff; font: 600 15.5px var(--font-sans); cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2); }
.tp-btn:disabled { opacity: 0.6; cursor: default; }
.tp-link { display: block; margin: 10px auto 0; padding: 6px 10px; border: 0; background: none; color: var(--tp-ink-3); font: 500 13.5px var(--font-sans); cursor: pointer; }
.tp-copy:focus-visible, .tp-btn:focus-visible, .tp-link:focus-visible, .tp-foot a:focus-visible, .tp-more summary:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 2px; }

.tp-sent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: #effaf5; border: 1px solid #c4ead8; }
.tp-sent > i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tp-ok); }
.tp-sent > i svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tp-sent b { display: block; font-size: 15px; font-weight: 650; color: #0b5e41; }
.tp-sent p { margin: 3px 0 0; font-size: 13.5px; color: #2d4b40; }
.tp-sent .tp-sent-ref { margin-top: 8px; font-size: 12.5px; color: #3e5d52; overflow-wrap: anywhere; }
.tp-more { border-top: 1px solid var(--tp-line); }
.tp-more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; font-size: 13.5px; font-weight: 600; color: var(--tp-ink); cursor: pointer; list-style: none; }
.tp-more summary::-webkit-details-marker { display: none; }
.tp-tog { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--tp-accent); }
.tp-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-more[open] .tp-chev { transform: rotate(180deg); }
.tp-more .tp-hide, .tp-more[open] .tp-show { display: none; }
.tp-more[open] .tp-hide { display: inline; }
.tp-more .tp-body { border-top: 0; padding-top: 4px; }

.tp-meta { padding: 0 24px 16px; font-size: 12.5px; color: var(--tp-ink-3); text-align: center; }
.tp-more + .tp-meta { padding-top: 4px; }
.tp-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 13px 24px; border-top: 1px solid var(--tp-line); background: var(--tp-soft); font-size: 12px; color: var(--tp-ink-3); }
.tp-foot > span { display: inline-flex; align-items: center; gap: 7px; }
.tp-foot .tp-mark { width: 16px; height: 16px; }
.tp-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--tp-accent); font-weight: 600; text-decoration: none; }
.tp-foot a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* narrow card (phones): the address and its Copy button first, the QR code under them (for paying from another device) */
@container (max-width: 540px) {
  .tp-head, .tp-sum, .tp-body, .tp-foot { padding-left: 18px; padding-right: 18px; }
  .tp-steps, .tp-act, .tp-meta { padding-left: 18px; padding-right: 18px; }
  .tp-more summary { padding-left: 18px; padding-right: 18px; }
  .tp-addr-box { flex-direction: column; align-items: stretch; gap: 14px; }
  .tp-addr-box.has-qr .tp-qr { order: 0; padding-top: 14px; border-top: 1px solid var(--tp-line); }
  .tp-addr-main { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .tp-total b { font-size: 28px; }
  .tp-steps { gap: 6px; }
  .tp-steps li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.25; }
  .tp-foot { justify-content: center; text-align: center; }
  .tp-addr .tp-val { font-size: 13.5px; }
  .tp-copy { padding: 7px 9px; }
}
@container (max-width: 360px) {
  .tp-sum { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tp-total { text-align: left; }
}

/* while a payment is open the checkout card is the outermost surface: the deposit panel loses its frame */
.wl-wrap > .wl-panel.wl-checkout { padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.wl-panel.wl-checkout::before { display: none; }
.wl-panel.wl-checkout .tp { margin-bottom: 14px; }
.wl-panel.wl-checkout #depForm { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--c-border-strong); border-radius: 20px; background: linear-gradient(180deg, rgba(20, 39, 64, 0.82), rgba(13, 26, 44, 0.86)); }
.wl-another { text-align: center; }
.wl-another-btn { padding: 8px 12px; border: 0; background: none; color: var(--c-text-2); font: 600 var(--fs-sm) var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wl-another-btn:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }

/* history */
.wl-list { display: grid; gap: 8px; }
.wl-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--c-border); background: rgba(7, 17, 31, 0.45); }
.wl-item i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 700; }
.wl-item i.in { background: rgba(34, 179, 154, 0.14); color: #2fc1b2; }
.wl-item i.out { background: rgba(143, 179, 255, 0.12); color: #8fb3ff; }
.wl-item b { display: block; font-size: var(--fs-sm); }
.wl-item small { display: block; font-size: 12px; color: var(--c-text-3); }
.wl-item .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.wl-item .reason { grid-column: 1 / -1; font-size: 12.5px; color: #ff9da1; }
.wl-item .acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.wl-st { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(148, 163, 184, 0.12); color: var(--c-text-2); }
.wl-st.ok { background: rgba(47, 193, 178, 0.14); color: #2fc1b2; }
.wl-st.wait { background: rgba(242, 184, 75, 0.14); color: #f6c76b; }
.wl-st.bad { background: rgba(240, 82, 90, 0.14); color: #ff7c80; }
.wl-empty { margin: 0; color: var(--c-text-2); font-size: var(--fs-sm); }
.wl-toast { position: fixed; left: 50%; bottom: max(24px, calc(var(--safe-b) + 12px)); transform: translateX(-50%); z-index: 50; width: max-content; max-width: calc(100% - 32px); text-align: center; padding: 10px 16px; border-radius: 10px; background: #13243b; border: 1px solid var(--c-border-strong); color: var(--c-text); font-size: var(--fs-sm); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }

@media (max-width: 560px) {
  .wl-balance-btns { width: 100%; }
  .wl-balance-btns .btn { flex: 1; }
  .wl-item { grid-template-columns: auto 1fr; }
  .wl-item .amt { grid-column: 2; text-align: left; }
}
#realForm .field { margin-bottom: var(--s-4); }

/* phones: finger-sized targets. Sizes only — where the look must stay small, an invisible ::before grows the hit area */
@media (pointer: coarse) {
  .wl-brand, .wl-tabs button, .wl-another-btn, .tp-link, .tp-more summary { min-height: var(--tap); }
  .wl-chips button { min-height: var(--tap-sm); padding: 0 14px; }
  .tp-copy, .tp-foot a { min-height: var(--tap-sm); }
  .tp-refline .tp-copy { position: relative; }
  .tp-refline .tp-copy::before { content: ''; position: absolute; inset: -8px; }
  /* the wallet has no pressed animation: the browser's own tap flash is the feedback */
  .wl-main .btn, .wl-tabs button, .wl-chips button, .wl-coin, .wl-method, .tp-copy, .tp-btn, .tp-link, .wl-another-btn { -webkit-tap-highlight-color: rgba(56, 189, 248, 0.18); }
}
/* iOS zooms into fields under 16px on focus */
@media (max-width: 600px), (pointer: coarse) { .tp-input { font-size: 16px; } }

/* the wallet has no hover effects: buttons, fields and links look the same under the pointer */
.wl-main .btn:hover, .wl-main .btn:active { background: var(--btn-bg); transform: none; }
.wl-main .btn-primary:hover { background: var(--c-accent); box-shadow: 0 8px 24px -10px rgba(49, 95, 234, 0.8); }
.wl-main .btn, .wl-main .input { transition: none; }
.wl-main .input:hover { border-color: var(--c-border-strong); }
.wl-main a:hover { text-decoration: none; }
.wl-main .au-brand:hover { text-decoration: none; }
/* …and no motion: no entrance animations, drifting background or transitions (the loading spinner stays) */
.wl-hold { display: flex; gap: 14px; padding: 4px 0; }
.wl-hold > svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--c-warn); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.wl-hold .wl-h2 { margin: 0 0 6px; }
.wl-hold p { margin: 0 0 16px; color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.55; }
.wl-page *:not(.spinner), .wl-page *::before, .wl-page *::after { animation: none !important; transition: none !important; }
.wl-page { scroll-behavior: auto; animation: none !important; transition: none !important; }

/* Arabic (right to left): the layout mirrors, but codes, addresses and account numbers still read left to right,
   in their own order, so what the customer sees is exactly what they copy and send to. */
html[dir="rtl"] .tp-mono, html[dir="rtl"] .wl-mono { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] input.wl-mono { text-align: right; }
html[dir="rtl"] .tp-li b { unicode-bidi: plaintext; text-align: right; }
html[dir="rtl"] .tp-total, html[dir="rtl"] .tp-paywith > div, html[dir="rtl"] .wl-item .amt { text-align: left; }
html[dir="rtl"] .wl-method .wl-soon { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .tp-brand > span { margin-left: 0; margin-right: -4px; }
@media (max-width: 560px) { html[dir="rtl"] .wl-item .amt { text-align: right; } }
@container (max-width: 360px) { html[dir="rtl"] .tp-total { text-align: right; } }

/* ---- welcome bonus: the offer before the first deposit, then its progress (static: no motion in the wallet) */
.wl-bonus-bal { display: block; margin-top: 2px; color: #f6d58e; font-size: var(--fs-sm); }
.wl-bonus-bal b { display: inline; margin: 0; font-family: inherit; font-size: inherit; letter-spacing: 0; }
.wl-bonus { display: flex; align-items: center; gap: 20px; padding: 20px 22px; border-radius: var(--r-xl); border: 1px solid rgba(242, 184, 75, 0.45);
  background: radial-gradient(120% 140% at 0% 0%, rgba(242, 184, 75, 0.2), transparent 60%), linear-gradient(135deg, rgba(49, 95, 234, 0.18), rgba(16, 31, 51, 0.9)); }
.wl-bonus h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; }
.wl-bonus p { margin: 0; color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.55; }
.wl-bonus p + p { margin-top: 6px; }
.wl-bonus p b { color: var(--c-text); }
.wl-bonus a:not(.btn) { color: #f6d58e; }
.wl-bonus-main { flex: 1; min-width: 0; }
.wl-bonus-pct { flex: none; display: grid; place-items: center; text-align: center; width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe7a3, #f2b84b 55%, #b9791a); color: #2a1a02; box-shadow: 0 10px 30px rgba(242, 184, 75, 0.35), inset 0 -6px 12px rgba(0, 0, 0, 0.18); }
.wl-bonus-pct b { font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.wl-bonus-pct span { display: block; margin-top: -18px; max-width: 80px; font-size: 10.5px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; }
.wl-bonus .btn { flex: none; }
.wl-bonus-amt { margin-inline-start: 6px; color: #f6d58e; font-variant-numeric: tabular-nums; }
.wl-bonus-bar { height: 10px; margin: 10px 0 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.wl-bonus-bar i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, #f2b84b, #ffe7a3); }
.wl-bonus-acts { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.wl-bonus.is-done { border-color: rgba(34, 179, 154, 0.45); background: rgba(34, 179, 154, 0.08); }
.wl-bonus-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid rgba(242, 184, 75, 0.45); background: rgba(242, 184, 75, 0.08);
  color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.5; cursor: pointer; }
.wl-bonus-opt input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: #f2b84b; }
.wl-bonus-opt b { display: block; color: #f6d58e; font-size: var(--fs-md); }
.wl-bonus-opt a { color: #f6d58e; }
.wl-bonus-warn { display: block; margin-bottom: 4px; color: #f6d58e; }
.tp-bonus { margin: 0 20px 12px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid #f1d58f; background: #fff7e0; color: #5b4a2a; font-size: var(--fs-sm); line-height: 1.5; }
.tp-bonus b { color: #8a5a00; }
@media (max-width: 640px) {
  .wl-bonus { flex-direction: column; align-items: stretch; text-align: start; }
  .wl-bonus-pct { width: 92px; height: 92px; }
  .wl-bonus-pct b { font-size: 28px; }
  .wl-bonus-pct span { margin-top: -14px; }
}
.wl-bonus-pct b { direction: ltr; unicode-bidi: isolate; }
