/* ST1 «⭐ Звёзды» (2026-10-31): card in window 1 «Пополнение» + its own step window. DG1 tokens, red + gold, dark/light,
   phone <=820 / PC >=821, Telegram Mini App. Scoped to .st-* only (no :has, no [class*=]).
   Unlayered on purpose, every rule prefixed by .st-modal / .dm1-cards: the site has unlayered generic button / h2 / label /
   input rules that beat any @layer rule. */
.st-modal{--st-bg:var(--wg-ui-bg,#100f14);--st-card:var(--wg-ui-card,#21171f);--st-alt:var(--wg-ui-card-alt,#291923);--st-line:var(--wg-ui-line,#603546);
  --st-ink:var(--wg-ui-ink,#faf3f6);--st-mu:var(--wg-ui-muted,#cdbcc4);--st-red:var(--wg-ui-red,#ed174d);--st-gold:var(--wg-ui-gold,#f4d27e);--st-ok:#3ddc84}
html[data-theme=light] .st-modal,html[data-scheme=light] .st-modal{--st-bg:#f7f1f4;--st-card:#fffafd;--st-alt:#f6ebf0;--st-line:#d7b8c6;--st-ink:#301a26;--st-mu:#765b6a;--st-gold:#a8741a}
.st-modal{position:fixed;inset:0;z-index:2147482000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(8,6,9,.72);
  font-family:var(--wg-font-ui,Arimo,system-ui,sans-serif);color:var(--st-ink)}
.st-modal[hidden]{display:none}
.st-modal .st-box{width:min(560px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:var(--st-bg);border:1px solid var(--st-line);border-radius:18px;
  box-shadow:0 24px 60px rgba(0,0,0,.45);padding:16px 18px 18px;overscroll-behavior:contain}
.st-modal .st-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.st-modal .st-head h2{flex:1;margin:0;font-size:20px;font-weight:800;letter-spacing:.2px}
.st-modal .st-back,.st-modal .st-x{min-width:42px;height:42px;border-radius:12px;border:1px solid var(--st-line);background:var(--st-card);color:var(--st-ink);font:inherit;
  font-size:15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 12px}
.st-modal .st-x{font-size:22px;padding:0}
.st-modal .st-banner{position:relative;overflow:hidden;border-radius:18px;padding:16px 84px 14px 16px;margin-bottom:14px;color:#fff6e3;
  background:radial-gradient(120% 140% at 100% 0,rgba(244,210,126,.38),transparent 55%),linear-gradient(135deg,#8e0f2f 0%,#ed174d 55%,#b8122f 100%);
  border:1px solid rgba(244,210,126,.55)}
.st-modal .st-banner::after{content:"";position:absolute;right:-18px;top:-22px;width:120px;height:120px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,228,150,.55),rgba(255,228,150,0) 70%);pointer-events:none}
.st-modal .st-banner b{display:block;font-size:19px;font-weight:800;line-height:1.2}
.st-modal .st-banner small{display:block;margin-top:4px;font-size:13px;opacity:.92}
.st-modal .st-rate{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:5px 10px;border-radius:11px;background:rgba(16,8,12,.35);
  border:1px solid rgba(244,210,126,.5);font-size:13px;font-weight:700;color:#ffe7a8;font-variant-numeric:tabular-nums}
.st-modal .st-star{position:absolute;right:14px;bottom:8px;font-size:46px;line-height:1;filter:drop-shadow(0 4px 10px rgba(80,0,20,.5));transform:rotate(-8deg)}
.st-modal .st-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.st-modal .st-pack{position:relative;min-height:74px;border-radius:15px;border:1px solid var(--st-line);background:var(--st-card);color:var(--st-ink);font:inherit;
  cursor:pointer;padding:8px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center}
.st-modal .st-pack b{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
.st-modal .st-pack .st-get{font-size:10px;color:var(--st-mu);line-height:1.1}
.st-modal .st-pack span{font-size:12px;color:var(--st-gold);font-weight:700;font-variant-numeric:tabular-nums}
.st-modal .st-pack em{position:absolute;top:-7px;right:6px;font-style:normal;font-size:10px;font-weight:800;padding:1px 6px;border-radius:8px;background:var(--st-gold);color:#3a1a00}
.st-modal .st-pack.is-on{border-color:var(--st-red);box-shadow:0 0 0 2px var(--st-red) inset;background:var(--st-alt)}
.st-modal .st-pack:disabled{opacity:.45;cursor:not-allowed}
.st-modal .st-custom{display:flex;gap:8px;align-items:center;margin-bottom:12px}
.st-modal .st-custom label{flex:none;font-size:14px;color:var(--st-mu)}
.st-modal .st-custom input{flex:1;min-width:0;height:44px;border-radius:12px;border:1px solid var(--st-line);background:var(--st-card);color:var(--st-ink);
  font:inherit;font-size:16px;padding:0 12px;font-variant-numeric:tabular-nums}
.st-modal .st-custom input:focus{outline:2px solid var(--st-red);outline-offset:1px}
.st-modal .st-bonus{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:15px;border:1px solid var(--st-line);background:var(--st-card);margin-bottom:12px;cursor:pointer}
.st-modal .st-bonus input{appearance:auto;-webkit-appearance:checkbox;position:static;opacity:1;width:22px;height:22px;accent-color:var(--st-red);flex:none;margin:1px 0 0}
.st-modal .st-bonus b{display:block;font-size:14px}.st-modal .st-bonus small{display:block;color:var(--st-mu);font-size:12.5px;margin-top:2px}
.st-modal .st-sum{border-radius:18px;border:1px solid var(--st-line);background:var(--st-alt);padding:12px 14px;margin-bottom:12px}
.st-modal .st-row{display:flex;justify-content:space-between;gap:10px;font-size:14px;padding:3px 0;font-variant-numeric:tabular-nums}
.st-modal .st-row span{color:var(--st-mu)}.st-modal .st-row b{color:var(--st-ink)}
.st-modal .st-row.st-total b{font-size:20px;color:var(--st-gold)}
.st-modal .st-fee{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12.5px;color:var(--st-mu)}
.st-modal .st-fee i{font-style:normal;color:var(--st-ok);font-weight:800}
.st-modal .st-go{width:100%;min-height:50px;border:0;border-radius:14px;background:var(--st-red);color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer;
  box-shadow:0 8px 22px rgba(237,23,77,.35)}
.st-modal .st-go:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.st-modal .st-go.st-go2{margin-top:8px;background:transparent;color:var(--st-ink);border:1px solid var(--st-line);box-shadow:none}
.st-modal .st-plan{padding:8px 10px;border-radius:12px;border:1px dashed var(--st-gold);color:var(--st-ink)}
.st-modal .st-note{margin:10px 2px 0;font-size:12px;color:var(--st-mu);line-height:1.45}
.st-modal .st-msg{min-height:18px;margin:8px 2px 0;font-size:13px;color:var(--st-mu)}
.st-modal .st-msg.is-err{color:#ff6b86}.st-modal .st-msg.is-ok{color:var(--st-ok)}
.st-modal .st-wait{text-align:center;padding:18px 6px}
.st-modal .st-wait b{display:block;font-size:18px;margin:8px 0 4px}
.st-modal .st-spin{width:38px;height:38px;margin:0 auto;border-radius:50%;border:3px solid var(--st-line);border-top-color:var(--st-gold);animation:st-spin 1s linear infinite}
.st-modal .st-done{font-size:48px}
@keyframes st-spin{to{transform:rotate(360deg)}}
/* card in window 1 */
.dm1-cards .st-card{position:relative;isolation:isolate}
/* the card keeps its dark red-gold look in BOTH themes like the other method cards; the site's light-theme card rules are more
   specific and some use !important, so these few colours are !important too (only inside this card) */
html .dm1-body .dp-funding-choice.st-card{color:#faf3f6!important;border-color:rgba(244,210,126,.5)!important;
  background:radial-gradient(90% 120% at 100% 0,rgba(244,210,126,.22),transparent 60%),linear-gradient(135deg,#4a0f22 0%,#2a1219 55%,#3a2810 100%)!important}
html .dm1-body .dp-funding-choice.st-card .dp-funding-title b{color:#faf3f6!important}
html .dm1-body .dp-funding-choice.st-card small{color:#e6d3c0!important}
.dm1-cards .st-card .st-kick{display:block;font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--wg-ui-gold,#f4d27e);margin-bottom:4px}
.dm1-cards .st-card .st-ico{margin-right:12px;flex:none;width:56px;height:56px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;font-size:32px;line-height:1;
  background:radial-gradient(circle at 30% 25%,#ffe9a6,#f4d27e 45%,#c58b1c);box-shadow:inset 0 -3px 6px rgba(120,60,0,.35),0 4px 12px rgba(237,23,77,.25)}
.dm1-cards .st-card .st-badge{position:absolute;top:-8px;right:12px;font-style:normal;font-size:11px;font-weight:800;padding:2px 8px;border-radius:9px;
  background:linear-gradient(90deg,#ed174d,#f4d27e);color:#fff}
@media (max-width:820px){
  .st-modal{padding:0;align-items:flex-end}
  .st-modal .st-box{width:100%;max-height:94dvh;border-radius:18px 18px 0 0;padding:14px 14px calc(16px + env(safe-area-inset-bottom,0px))}
  .st-modal .st-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .st-modal .st-head h2{font-size:18px}
}
@media (max-width:359px){.st-modal .st-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){.st-modal .st-spin{animation:none}}
