/* Касса: пополнение криптой (сеть, адрес, QR) и поле суммы местных способов. Разметка: lobby/wallet.blade.php, скрипт: /js/cashier.js. */

/* ---------- Сумма ---------- */
.amount { display: grid; justify-items: center; gap: 10px; margin: 22px 0 8px; text-align: center; }
.amount-field { display: flex; align-items: baseline; justify-content: center; gap: 8px; max-width: 100%; }
.amount-input {
  width: 0; min-width: 100%; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
  color: var(--text); font-size: 48px; font-weight: 800; line-height: 1.1; text-align: right; caret-color: var(--lime);
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em;
}
.amount-input:-webkit-autofill, .amount-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--lime); transition: background-color 600000s ease 0s;
}
.amount-input::placeholder { color: #4a4f56; }
.amount-code { color: #7b828a; font-size: 48px; font-weight: 800; line-height: 1.1; }
.amount-status { margin: 0; min-height: 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.amount-status[data-state="ok"] { color: var(--lime); }
.amount-status[data-state="bad"] { color: #ff9c9c; }
.amount-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.amount-chip {
  height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; background: #22252a; color: var(--text);
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.amount-chip:hover { background: #2a2d33; }
.amount-chip.is-on { border-color: var(--lime); color: var(--lime); }
.amount-limits { margin: 0; color: var(--muted-2); font-size: 13px; }
[data-amount]:not([hidden]) ~ [data-deposit-submit][data-ready="0"] { opacity: .55; }

/* ---------- Крипта ---------- */
.crypto { display: grid; gap: 14px; margin: 14px 0 6px; }
.crypto-net { display: grid; gap: 6px; }
.crypto-label { color: var(--muted); font-size: 13px; }
.crypto-net .profile-field { margin: 0; }
.crypto-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; align-items: start;
  padding: 16px; border-radius: 14px; background: #1c1e22;
}
.crypto-main { display: grid; gap: 8px; min-width: 0; }
.crypto-title { color: var(--muted); font-size: 14px; line-height: 1.3; }
.crypto-address {
  display: block; color: var(--text); font-family: var(--font); font-size: 17px; font-weight: 800; line-height: 1.35;
  letter-spacing: .01em; overflow-wrap: anywhere; word-break: break-all; user-select: all;
}
.crypto-address:empty::before { content: "…"; color: #4a4f56; }
.crypto-memo { padding: 8px 10px; border: 1px solid rgba(255, 212, 121, .4); border-radius: 10px; background: rgba(255, 212, 121, .08); color: #ffd479; font-size: 14px; font-weight: 700; line-height: 1.35; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.crypto-qr {
  display: block; width: 84px; height: 84px; padding: 4px; border: 0; border-radius: 10px; background: #fff; cursor: zoom-in; line-height: 0;
}
.crypto-qr svg { display: block; width: 100%; height: 100%; border-radius: 6px; }
.crypto-qr:hover { box-shadow: 0 0 0 2px var(--lime); }
.crypto-copy { grid-column: 1 / -1; margin-top: 0; }
.crypto-status { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.crypto-card[data-empty="1"] .crypto-address, .crypto-card[data-empty="1"] .crypto-copy, .crypto-card[data-empty="1"] .crypto-qr { display: none; }
.crypto-retry { padding: 0; border: 0; background: none; color: var(--lime); font-weight: 700; text-decoration: underline; }
.crypto-rules { display: grid; gap: 8px; margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.crypto-rules li::marker { color: var(--muted-2); }
.crypto-qr-view {
  position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px;
  background: rgba(0, 0, 0, .78);
}
.crypto-qr-box { padding: 12px; border-radius: 16px; background: #fff; line-height: 0; }
.crypto-qr-box svg { display: block; width: min(76vw, 320px); height: auto; }
.crypto-qr-view p { max-width: 360px; margin: 0; color: var(--text); font-size: 14px; text-align: center; overflow-wrap: anywhere; }
.crypto-qr-view .btn { width: min(76vw, 320px); }

@media (max-width: 560px) {
  .amount-input, .amount-code { font-size: 40px; }
  .crypto-card { grid-template-columns: minmax(0, 1fr); }
  .crypto-qr { order: 3; justify-self: start; }
  .crypto-address { font-size: 16px; }
}

/* ---------- Движение ---------- */
@keyframes wl-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes wl-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wl-blink { 50% { opacity: .3; } }
@keyframes wl-shimmer { to { background-position: -200% 0; } }
.corner-panel:not([hidden]) { animation: wl-pop .16s ease-out; transform-origin: top right; }
[data-wallet-pay]:not([hidden]) { animation: wl-rise .22s ease-out; }
.crypto:not([hidden]), .amount:not([hidden]) { animation: wl-fade .2s ease-out; }
.crypto-qr:not([hidden]) { animation: wl-fade .25s ease-out; }
.crypto-qr-view:not([hidden]) { animation: wl-fade .15s ease-out; }
.crypto-qr-view:not([hidden]) .crypto-qr-box { animation: wl-pop .2s ease-out; }
.pay-method { transition: background-color .15s ease, transform .12s ease; }
.pay-method:active { transform: scale(.992); }
.amount-chip { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease; }
.amount-chip:active { transform: scale(.96); }
.amount-status { transition: color .15s ease; }
.amount-input { transition: color .15s ease; }
.corner-offer-colon { animation: wl-blink 1s steps(1, end) infinite; }
.crypto-card[data-loading="1"] .crypto-address:empty {
  height: 22px; border-radius: 6px; color: transparent;
  background: linear-gradient(90deg, #2a2d33 25%, #363a42 37%, #2a2d33 63%); background-size: 200% 100%; animation: wl-shimmer 1.2s linear infinite;
}
.crypto-card[data-loading="1"] .crypto-address:empty::before { content: ""; }
.crypto-card[data-loading="1"] .crypto-copy { opacity: .5; }
@media (prefers-reduced-motion: reduce) {
  .corner-panel, [data-wallet-pay], .crypto, .amount, .crypto-qr, .crypto-qr-view, .crypto-qr-box, .corner-offer-colon, .crypto-address { animation: none !important; }
  .pay-method, .amount-chip, .amount-status, .amount-input { transition: none; }
}

/* ---------- Таймеры бонусов ---------- */
.bonus-clock { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.bonus-clock-label { color: var(--muted); font-size: 13px; }
.bonus-clock-time {
  padding: 3px 9px; border-radius: 8px; background: #22252a; color: var(--text); font-size: 14px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: .01em; transition: color .2s ease, background-color .2s ease;
}
.bonus-clock.is-soon .bonus-clock-time { color: #ffd479; background: rgba(255, 212, 121, .12); }
.bonus-clock.is-urgent .bonus-clock-time { color: #ff9c9c; background: rgba(255, 77, 79, .14); animation: wl-blink 1s steps(1, end) infinite; }
.bonus-clock.is-over .bonus-clock-time { color: var(--muted-2); background: #1c1e22; }
.bonus-queue-main .bonus-clock { margin-top: 4px; }
.corner-active { margin: 4px 0 8px; }
.corner-active-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.corner-active-item {
  display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #1c1e22; animation: wl-fade .2s ease-out;
}
.corner-active-item strong { font-size: 14px; }
.corner-active-sum { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .bonus-clock.is-urgent .bonus-clock-time, .corner-active-item { animation: none; } }

/* ---------- Вывод ---------- */
[data-withdraw] { margin-top: 14px; }
.wallet-side-info h2 { margin-bottom: 10px; }
.wallet-side-label { margin: 0; color: var(--muted); font-size: 14px; }
.wallet-side-sum { margin: 4px 0 14px; font-size: 40px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wallet-side-sum span { color: #7b828a; }
.wallet-side-list { display: grid; gap: 8px; margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.wallet-side-list li::marker { color: var(--muted-2); }
.wallet-side-info:not([hidden]) { animation: wl-rise .22s ease-out; }
.wallet-side-list .is-warn { color: #ffd479; }
.amount-balance { margin: 0; color: var(--muted); font-size: 14px; }
.amount-balance b { color: var(--text); font-weight: 700; }
.amount-receive {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; margin-top: 4px; padding: 12px 14px;
  border-radius: 12px; background: #1c1e22; color: var(--muted); font-size: 14px;
}
.amount-receive b { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.wallet-form [data-payout-quote] { display: none; }
.pay-history .pay-history-day { display: block; margin: 14px 0 4px; padding: 0; border: 0; background: none; color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pay-history-title time { margin-left: 0; }
[data-withdraw] .amount-input { max-width: 100%; }

.wager-hold { display: grid; gap: 4px; margin: 0 0 10px; padding: 14px 16px; border: 1px solid rgba(255, 212, 121, .35); border-radius: 12px; background: rgba(255, 212, 121, .08); }
.wager-hold strong { color: #ffd479; font-size: 15px; }
.wager-hold span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.wallet-side-info .wallet-form { margin: 8px 0 14px; }
.wallet-side-info .pay-list { margin-bottom: 4px; }
.amount-input { text-align: right; font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.wallet-side-info .field-error { margin: 0 0 10px; padding: 10px 12px; border: 1px solid rgba(255, 77, 79, .35); border-radius: 10px; background: rgba(255, 77, 79, .1); color: #ffb4b4; font-size: 14px; line-height: 1.4; }

.amount-box { display: inline-grid; max-width: 100%; }
.amount-box > * { grid-area: 1 / 1; min-width: 0; }
.amount-box > .amount-input { width: 0; min-width: 100%; }
.amount-sizer { visibility: hidden; white-space: pre; padding: 0 2px 0 0; font-size: 48px; font-weight: 800; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; pointer-events: none; }
@media (max-width: 560px) { .amount-sizer { font-size: 40px; } }

.amount-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 156, 156, .08); color: #ffb4b4; font-size: 14px; line-height: 1.4; text-align: center; }
.amount-hint[hidden] { display: none; }
.withdraw-busy { margin: 0 0 10px; padding: 10px 12px; border: 1px solid rgba(255, 212, 121, .35); border-radius: 10px; background: rgba(255, 212, 121, .08); color: #ffd479; font-size: 14px; line-height: 1.4; }

/* Окно «Отменить вывод»: та же карточка, что касса. Крестик и «Не отменять» закрывают, заявка остаётся. */
.ask { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .62); overflow: auto; }
.ask[hidden] { display: none; }
.ask-modal { box-sizing: border-box; width: min(420px, 100%); max-width: 100%; min-width: 0; padding: 18px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; background: #141618; }
.ask-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ask-head p { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.ask-head button { width: 36px; height: 36px; flex: 0 0 auto; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.ask-head button:hover { background: #22252a; color: var(--text); }
.ask-modal > p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.ask-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ask-actions .btn { flex: 1 1 140px; }
.ask-back { background: #22252a; color: var(--text); }
.ask-back:hover { background: #2a2d33; }
