/* TPTABS0918R1 — цветные вкладки-плитки раздела пополнения (надстройка над cashier0918). */
#tpCashier .tp-tabs.tp-tabs-rich{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;border:0;background:transparent;margin-bottom:14px}
#tpCashier .tp-tabs.tp-tabs-rich button{
  --a:#5b7cff;--b:#58dcb4;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  height:auto;min-height:94px;padding:11px 5px 10px;border-radius:18px;overflow:hidden;white-space:normal;
  color:#a9b6d2;border:1px solid rgba(112,143,199,.22);
  background:linear-gradient(160deg,color-mix(in srgb,var(--a) 14%,#0d1526),color-mix(in srgb,var(--b) 8%,#0b1220));
  transition:transform .14s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease
}
#tpCashier .tp-tabs.tp-tabs-rich button[data-tp-tab="rub"]{--a:#2ed48f;--b:#3f8cff}
#tpCashier .tp-tabs.tp-tabs-rich button[data-tp-tab="crypto"]{--a:#f7a23b;--b:#26c6a0}
#tpCashier .tp-tabs.tp-tabs-rich button[data-tp-tab="telegram"]{--a:#2aabee;--b:#9a6bff}
#tpCashier .tp-tabs.tp-tabs-rich button:active{transform:scale(.97)}
#tpCashier .tp-tabs.tp-tabs-rich button[aria-selected=true]{
  color:#fff;border-color:color-mix(in srgb,var(--a) 70%,transparent);
  background:linear-gradient(150deg,color-mix(in srgb,var(--a) 64%,#101a30),color-mix(in srgb,var(--b) 52%,#0f1830));
  box-shadow:0 10px 24px -12px var(--a),inset 0 1px rgba(255,255,255,.18)
}
.tp-tabs-rich .tp-tab-icons{display:flex;align-items:center;justify-content:center;gap:4px;min-height:26px;pointer-events:none}
.tp-tabs-rich .tp-tab-ic{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:7px;overflow:hidden;font-style:normal;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}
.tp-tabs-rich .tp-tab-ic[data-method="sberpay"]{width:38px}
.tp-tabs-rich button:not([aria-selected=true]) .tp-tab-ic{opacity:.82}
.tp-tabs-rich .tp-tab-ic>img,.tp-tabs-rich .tp-tab-ic>svg{width:100%;height:100%;object-fit:contain;display:block}
.tp-tabs-rich .tp-tab-name{max-width:100%;font-size:clamp(11.5px,3.15vw,14px);font-weight:800;letter-spacing:-.035em;line-height:1.1;white-space:nowrap;pointer-events:none}
.tp-tabs-rich .tp-tab-min{min-height:12px;font-size:11.5px;font-weight:650;line-height:1;opacity:.72;font-variant-numeric:tabular-nums;pointer-events:none}
.tp-tabs-rich button[aria-selected=true] .tp-tab-min{opacity:.95}
@supports not (background:color-mix(in srgb,red 10%,blue)){
  #tpCashier .tp-tabs.tp-tabs-rich button{background:#101a2e}
  #tpCashier .tp-tabs.tp-tabs-rich button[aria-selected=true]{background:linear-gradient(150deg,var(--a),var(--b))}
}
@media(max-width:360px){#tpCashier .tp-tabs.tp-tabs-rich button{min-height:86px}.tp-tabs-rich .tp-tab-ic{width:21px;height:21px}.tp-tabs-rich .tp-tab-ic[data-method="sberpay"]{width:33px}}

/* TPNET0918 — значок сети на плитках «Валюта и сеть»: TON / TRC20 (TRON) / BEP20 (BNB Chain). Разметка и картинки уже
   есть в слое кошелька (wallet-network-badge), они были скрыты стилями. */
#tpCashier#tpCashier .wallet-network-panel .wallet-network-card .tu-ic{position:relative!important;overflow:visible!important}
#tpCashier#tpCashier .wallet-network-panel .wallet-network-card .wallet-network-badge{
  display:grid!important;place-items:center;position:absolute;right:-6px;bottom:-6px;width:22px;height:22px;
  border-radius:50%;overflow:hidden;background:#0f1729;box-shadow:0 0 0 2.5px #1d2942,0 3px 8px rgba(0,0,0,.35)
}
#tpCashier#tpCashier .wallet-network-panel .wallet-network-card .wallet-network-badge img{width:100%!important;height:100%!important;display:block;object-fit:cover;border-radius:50%}
#tpCashier#tpCashier .wallet-network-panel .wallet-network-card[data-wallet-network="ton"] .wallet-network-badge{display:none!important}
#tpCashier#tpCashier .wallet-network-panel .wallet-network-card[data-wallet-network="usdt-ton"] small{color:#6fb8ff}
#tpCashier#tpCashier .wallet-network-panel .wallet-network-card[data-wallet-network="trc20"] small{color:#ff7a7a}
#tpCashier#tpCashier .wallet-network-panel .wallet-network-card[data-wallet-network="bep20"] small{color:#f3c34a}

/* TPBONUS0918 — блок «Бонус к пополнению»: одна зелёная гамма, ступени в один ряд, подписи не переносятся. */
#tpCashier #tuLadder.tu-ladder:not(:empty){
  padding:14px 14px 12px!important;border-radius:18px!important;border:1px solid rgba(70,214,160,.28)!important;
  background:linear-gradient(155deg,rgba(40,190,140,.16),rgba(16,26,46,.0) 62%),#111b2e!important;box-shadow:none!important
}
#tpCashier #tuLadder .tu-ladder-heading{display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px!important}
#tpCashier #tuLadder .tu-ladder-heading b{font-size:15px!important;font-weight:750!important;color:#eef3ff!important;letter-spacing:-.01em}
#tpCashier #tuLadder .tu-ladder-heading strong{
  padding:5px 11px!important;border-radius:999px!important;font-size:15px!important;font-weight:800!important;line-height:1!important;
  color:#062a1d!important;background:linear-gradient(135deg,#5ff0b6,#2fd191)!important;text-shadow:none!important;box-shadow:0 4px 14px -6px #38e0a0
}
#tpCashier #tuLadder .tu-ladder-steps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:0!important}
#tpCashier #tuLadder .tu-ladder-step{
  position:relative;display:flex!important;flex-direction:column-reverse!important;align-items:center!important;justify-content:center!important;gap:3px!important;
  min-width:0;min-height:58px;padding:8px 4px!important;border-radius:14px!important;
  border:1px solid rgba(120,150,200,.22)!important;background:rgba(9,15,28,.55)!important;box-shadow:none!important;color:#9fb0cf!important
}
#tpCashier #tuLadder .tu-ladder-step b{font-size:16px!important;font-weight:800!important;line-height:1!important;color:inherit!important;letter-spacing:-.02em;white-space:nowrap}
#tpCashier #tuLadder .tu-ladder-step span{font-size:11px!important;font-weight:650!important;line-height:1!important;color:inherit!important;opacity:.78;white-space:nowrap!important;writing-mode:horizontal-tb!important}
#tpCashier #tuLadder .tu-ladder-step.done{color:#57d9a5!important;border-color:rgba(70,214,160,.30)!important;background:rgba(40,190,140,.10)!important}
#tpCashier #tuLadder .tu-ladder-step.done::after{
  content:"";position:absolute;top:6px;right:7px;width:9px;height:5px;border-left:2px solid #57d9a5;border-bottom:2px solid #57d9a5;transform:rotate(-45deg)
}
#tpCashier #tuLadder .tu-ladder-step.current{
  color:#062a1d!important;border-color:transparent!important;background:linear-gradient(140deg,#66f2bb,#2fd191)!important;
  box-shadow:0 8px 20px -10px #38e0a0,inset 0 1px rgba(255,255,255,.35)!important
}
#tpCashier #tuLadder .tu-ladder-step.current span{opacity:.85}
#tpCashier #tuLadder>p{margin:10px 0 0!important;font-size:12.5px!important;line-height:1.35!important;color:#93a5c6!important}

/* TPGUIDE0918 — гайд «СБП через Stars»: скриншоты шагов крупнее (слой cashier0918 зажал их в 220 px). */
#tpProviderOverlay#tpProviderOverlay .tu-sbp-shot{height:clamp(260px,45vh,390px)!important}
@media(max-height:700px){#tpProviderOverlay#tpProviderOverlay .tu-sbp-shot{height:clamp(220px,40vh,300px)!important}}

/* TPGIFT0918 — окно «Внести подарком»: без второго подарка и второго заголовка (шапку с подарком уже рисует слой вкладок). */
.sheet-card.tu-gift-redesign.tp-provider .tu-gift-hero{display:block!important;padding:0!important;margin:2px 0 10px!important;border:0!important;background:none!important;box-shadow:none!important}
.sheet-card.tu-gift-redesign.tp-provider .tu-gift-hero>img,
.sheet-card.tu-gift-redesign.tp-provider .tu-gift-hero b{display:none!important}
.sheet-card.tu-gift-redesign.tp-provider .tu-gift-hero p{margin:0!important;font-size:15px!important;line-height:1.45!important;color:#c6d1e8!important;text-align:left!important}
.sheet-card.tu-gift-redesign.tp-provider .tu-gift-after{text-align:left!important;margin:0 0 14px!important;padding:0!important;font-size:14px!important;line-height:1.45!important;color:#93a5c6!important}
.sheet-card.tu-gift-redesign.tp-provider button.tu-gift-to[disabled] small{display:none!important}

/* TPHOW0918 — на экране суммы убран раскрывающийся блок «Как оплатить» (слово владельца). */
:is(#tpCashierOverlay,#tpProviderOverlay) .sx-panel details{display:none!important}

/* TPCLOSE0918 — плавное закрытие шторки пополнения. */
.tp-overlay.tp-closing{opacity:0!important;pointer-events:none!important;transition:opacity .2s ease!important}
.tp-overlay.tp-closing :is(.sheet-card,.sx-panel){animation:none!important;transform:translateY(36px)!important;transition:transform .21s cubic-bezier(.4,0,1,1)!important}
@media(prefers-reduced-motion:reduce){.tp-overlay.tp-closing,.tp-overlay.tp-closing :is(.sheet-card,.sx-panel){transition:none!important}}

/* TPSWIPE0918 — листание инструкций свайпом (SberPay, СБП через Stars). На телефоне палец попадал на картинку шага:
   iOS начинал «перетаскивание/предпросмотр картинки» с вибро-откликом вместо прокрутки. Картинки шагов больше не
   перехватывают касание — жест достаётся самой ленте. QR не трогаем: его можно зажать и сохранить. */
.tu-sp-pages,.tu-sp-page{touch-action:pan-x pan-y!important}
.tu-sp-page .tu-sp-shot:not(.is-qr) img,.tu-sbp-shot img{
  pointer-events:none!important;-webkit-user-drag:none!important;-webkit-touch-callout:none!important;user-select:none!important;-webkit-user-select:none!important
}

/* TPSBERPAY0918 — экран оплаты SberPay (штатный, как на проде), только компактнее: окно по высоте содержимого,
   QR и скриншоты шагов меньше, заголовок с суммой собраны по центру. */
.sheet.tu-sberpay.pay .sheet-card.tu-redesign{height:auto!important;max-height:min(680px,100dvh - 24px)!important}
.sheet.tu-sberpay.pay .tu-sp-pages{flex:0 0 auto!important;height:clamp(330px,50vh,410px)!important}
.sheet.tu-sberpay.pay .tu-sp-page{justify-content:center!important;gap:10px!important}
.sheet.tu-sberpay.pay .tu-sp-shot{flex:0 1 auto!important;max-height:clamp(200px,32vh,270px)!important}
.sheet.tu-sberpay.pay .tu-sp-shot img{max-height:clamp(200px,32vh,270px)!important}
.sheet.tu-sberpay.pay .tu-sp-shot.is-qr{flex:0 0 auto!important;width:min(58vw,224px)!important;height:auto!important;max-height:none!important;aspect-ratio:1/1;padding:9px!important;border-radius:18px!important;box-shadow:0 12px 30px -14px rgba(0,0,0,.75)}
.sheet.tu-sberpay.pay .tu-sp-shot.is-qr img{max-height:none!important}
.sheet.tu-sberpay.pay .tu-sp-h{justify-content:center;text-align:center}
.sheet.tu-sberpay.pay .tu-sp-p{text-align:center}
.sheet.tu-sberpay.pay .tu-sp-save{margin-top:4px!important;min-height:48px}
.sheet.tu-sberpay.pay .tu-sp-wait{margin-top:8px!important}

/* TPORDERID0918 — технический номер заявки (baksup-sx-…, baksup-qr-…) на итоговых экранах игроку не показываем
   (слово владельца: «а зачем это писать людям»). В базе и у поддержки он остаётся. */
.sx-order-id{display:none!important}

/* TOPUPFIX0922FR1 — место под бонус зарезервировано во всех трёх плитках. */
#tpCashier .tp-tabs.tp-tabs-rich button{position:relative;min-height:104px;padding-top:25px}
#tpCashier .tp-tabs.tp-tabs-rich .tp-tab-bonus{position:absolute;top:6px;right:6px;padding:3px 6px;border-radius:999px;font:800 10.5px/1.1 'Golos Text',sans-serif;letter-spacing:0;color:#062a1d;background:linear-gradient(135deg,#5ff0b6,#2fd191);pointer-events:none;white-space:nowrap}
#tpCashier #tuLadder[data-fixed-bonus]{cursor:default;pointer-events:none}
#tpCashier #tuLadder[data-fixed-bonus] .tu-ladder-heading{margin:0!important}
#tpCashier #tuLadder[data-fixed-bonus]::after{display:none!important}
#tpCashier #tuLadder[data-fixed-bonus] .tu-ladder-heading{padding-right:0!important}
@media(max-width:360px){#tpCashier .tp-tabs.tp-tabs-rich button{min-height:98px}.tp-tabs-rich .tp-tab-name{font-size:11px}}
