:root{--blue:#155eef;--navy:#10264a;--muted:#687b99;--line:#dce7f6;--bg:#f2f6fc;--green:#19a56b}
*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{margin:0;padding:0}
body{min-height:100vh;color:var(--navy);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:
  radial-gradient(520px 320px at -8% -10%,#c9ddff 0,transparent 70%),
  radial-gradient(480px 360px at 110% 110%,#d4e6ff 0,transparent 68%),
  radial-gradient(ellipse at 50% 0%,#e7f0ff 0,transparent 42%),
  var(--bg)}
button,a,input{font:inherit;color:inherit}
button{cursor:pointer;border:0}
a{text-decoration:none}
input,button,a{-webkit-tap-highlight-color:transparent}
input:focus,input:focus-visible,button:focus,button:focus-visible{outline:none;box-shadow:none}
.page{width:min(100% - 28px,760px);margin:28px auto 24px}
.stub{width:min(440px,calc(100% - 32px));margin:18vh auto;text-align:center}
.stub h1{letter-spacing:-.6px}
.stub p{color:var(--muted)}
.brand-mark{width:28px;height:34px;object-fit:contain}
.panel{background:#fff;border:1px solid #e0e9f6;border-radius:25px;box-shadow:0 22px 65px #234b8010;overflow:hidden}
.status{padding:24px 27px 0}
.status-row{display:flex;align-items:center;gap:11px;color:#536783;font-weight:700}
.dot{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px #e8f7f0}
.timer{margin-left:auto;color:var(--blue);font-weight:850;font-variant-numeric:tabular-nums;background:#eff5ff;padding:8px 13px;border-radius:30px}
.progress{height:7px;margin-top:16px;border-radius:9px;background:#e7eef9;overflow:hidden}
.progress span{display:block;height:100%;width:100%;border-radius:9px;background:linear-gradient(90deg,var(--blue),#69aaff)}
.order{margin:19px 22px 0;padding:22px 24px;border-radius:20px;background:linear-gradient(115deg,#f5f8ff,#eaf2ff);border:1px solid #e1ebfa;display:grid;grid-template-columns:1fr auto;gap:8px 14px;align-items:center}
.label{font-size:14px;color:var(--muted);font-weight:600}
.orderid{font-size:13px;color:#71829d;font-weight:700;text-align:right}
.order-compact{align-items:center}
.order-main .orderid{display:block;margin-top:4px;text-align:left;color:var(--navy);font-size:18px;font-weight:850;letter-spacing:-.3px}
.amount{font-size:clamp(32px,5vw,40px);font-weight:900;letter-spacing:-1.4px}
.details{justify-self:end;background:#fff;color:var(--blue);border:1px solid #e1eafb;padding:9px 14px;border-radius:11px;font-weight:750}
.facts{margin:0 22px;padding:4px 8px 8px}
.facts div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-top:1px solid var(--line)}
.facts dt{color:var(--muted)}
.facts dd{margin:0;font-weight:750}
.content{margin:18px 22px 22px;padding:26px;background:#fff;border:1px solid #e8eef8;border-radius:22px;text-align:center}
.primary,.secondary,.more,.nspk,.bot{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:15px 22px;border-radius:14px;font-weight:800}
.primary{color:#fff;background:linear-gradient(105deg,#1258e8,#3988ff);box-shadow:0 10px 22px #155eef30}
.secondary,.more{color:#1558d6;background:#edf4ff}
.wide{width:100%}
.actions{display:flex;flex-direction:column;gap:12px}
.sbp{width:22px;height:26px;object-fit:contain;background:transparent}
.sbp-btn{width:22px;height:26px}
.footer{display:flex;justify-content:center;align-items:center;gap:18px;color:#71829c;font-size:13px;padding:6px 8px 22px}
.footer span{display:flex;gap:8px;align-items:center}
.footer i{width:1px;height:18px;background:#d2deef}
.footer .sbp{width:16px;height:19px}
.qr-frame{position:relative;width:min(100%,280px);margin:8px auto 0;padding:14px;border:1px solid #dce8fb;border-radius:20px;background:#fff;box-shadow:0 12px 30px #1b62d51a;background-image:linear-gradient(#9ebcf2,#9ebcf2),linear-gradient(#9ebcf2,#9ebcf2),linear-gradient(#9ebcf2,#9ebcf2),linear-gradient(#9ebcf2,#9ebcf2),linear-gradient(#9ebcf2,#9ebcf2),linear-gradient(#9ebcf2,#9ebcf2),linear-gradient(#9ebcf2,#9ebcf2),linear-gradient(#9ebcf2,#9ebcf2);background-repeat:no-repeat;background-size:18px 3px,3px 18px,18px 3px,3px 18px,18px 3px,3px 18px,18px 3px,3px 18px;background-position:left 8px top 8px,left 8px top 8px,right 8px top 8px,right 8px top 8px,left 8px bottom 8px,left 8px bottom 8px,right 8px bottom 8px,right 8px bottom 8px}
.qr-img{display:block;width:100%;height:auto}
.qr-logo{position:absolute;left:50%;top:50%;width:46px;height:46px;transform:translate(-50%,-50%);display:grid;place-items:center;background:#fff;border-radius:12px;box-shadow:0 0 0 5px #fff}
.qr-logo .sbp{width:20px;height:24px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0 0;padding:0;list-style:none;text-align:left}
.steps li{display:flex;align-items:center;gap:9px;color:#61738f;font-size:13px;line-height:1.35}
.steps b{flex:0 0 29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;color:var(--blue);font-size:13px}
.sheet{position:fixed;inset:0;z-index:20;background:rgba(16,38,74,.45);display:flex;align-items:flex-end;justify-content:center}
.sheet-card{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
.sheet-head{display:flex;align-items:center;justify-content:space-between}
.sheet-head h2{margin:0;font-size:24px;letter-spacing:-.5px}
.x{width:36px;height:36px;border-radius:11px;background:#edf4ff;color:var(--blue);font-size:22px}
.search{display:flex;align-items:center;gap:8px;margin-top:14px;padding:0 14px;min-height:50px;border-radius:14px;background:#f5f8fd;border:1px solid #e1e9f5}
.search input{width:100%;border:0;background:transparent;font-size:16px;padding:12px 0;-webkit-appearance:none;appearance:none}
.grid{margin-top:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.bank{min-height:108px;border:1px solid #e7edf7;border-radius:17px;background:#f7f9fd;padding:12px 6px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#263b5c;font-weight:750;font-size:13px;text-align:center}
.bank.extra{display:none}
.grid.show-all .bank.extra,.grid.searching .bank.extra{display:flex}
.logo,.initials{width:43px;height:43px;border-radius:13px;background:#fff;object-fit:contain;box-shadow:0 4px 12px #203c6810}
.initials{display:grid;place-items:center;color:var(--blue);font-weight:800}
.bank-name{line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.empty{grid-column:1 / -1;text-align:center;color:var(--muted)}
.more{width:100%;margin-top:12px}
.sheet-note{color:#7a8ba5;font-size:13px;text-align:center;margin:16px 0 0}
.nspk{width:100%;margin-top:10px;color:#7a8ba5;background:transparent;font-size:13px;letter-spacing:.03em}
.wait{position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 20px;background:var(--bg)}
.check-mark{position:relative;width:96px;height:96px;display:grid;place-items:center}
.check-mark .sbp{width:38px;height:46px}
.check-arc{position:absolute;inset:0;border-radius:50%;border:4px solid transparent;border-top-color:#f0b429;border-right-color:var(--blue);animation:spin .85s linear infinite}
.wait h2{margin:18px 0 8px;letter-spacing:-.6px}
.wait p{margin:0;max-width:280px;color:var(--muted)}
.sum-chip{margin-top:16px;padding:8px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--muted);font-size:14px}
.sum-chip b{color:var(--navy)}
.check-steps{list-style:none;width:min(380px,100%);margin:18px 0 0;padding:0;text-align:left}
.check-steps li{display:flex;align-items:center;gap:10px;margin-top:8px;padding:13px 14px;border-radius:14px;background:#fff;border:1px solid var(--line);color:var(--muted)}
.check-steps li::before{content:"";width:18px;height:18px;border-radius:50%;border:2px solid #d5e1f0;flex:none}
.check-steps li.done{color:var(--navy)}
.check-steps li.done::before{border:0;background:var(--green)}
.check-steps li.act{color:var(--navy)}
.check-steps li.act::before{border-color:transparent;border-top-color:#f0b429;border-right-color:var(--blue);animation:spin .8s linear infinite}
.bot{display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(420px,100%);margin:18px auto 0;min-height:54px;border-radius:14px;background:linear-gradient(105deg,#1258e8,#3988ff);color:#fff;font-weight:800}
.bot small{font-size:12px;font-weight:650;opacity:.85}
.is-desktop .page{width:min(100% - 48px,640px);margin-top:56px}
.is-desktop .panel{box-shadow:0 30px 80px #155eef22,0 2px 0 #fff inset}
.is-desktop .content{padding:34px 28px 26px}
.is-desktop .qr-frame{width:min(100%,320px)}
.is-desktop .phone-only{display:none !important}
.is-phone .desktop-only{display:none !important}
@media(max-width:600px){
  .page{width:min(100% - 20px,520px);margin:16px auto}
  .status{padding:18px 16px 0}
  .order{margin:14px 12px 0;padding:18px}
  .content{margin:14px 12px;padding:18px 14px}
  .steps{grid-template-columns:1fr}
  .facts{margin:0 12px}
}
@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.check-arc,.check-steps li.act::before{animation:none}}
