*{box-sizing:border-box}
body{margin:0;min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:32px 20px;background:radial-gradient(ellipse at 50% 15%,#eae2ff 0,transparent 60%),#f8f6fc;color:#302842;font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
main{width:min(100%,460px);text-align:center}
.brand{display:inline-flex;align-items:center;gap:9px;margin-bottom:28px;font-size:22px;font-weight:800;letter-spacing:-.7px;color:#392957;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#7752d3;color:#fff;font-size:25px;letter-spacing:0}
.payment-card{padding:38px 32px 28px;background:#fff;border:1px solid #e9e1f4;border-radius:28px;box-shadow:0 18px 70px #4c2e8110}
.status-icon{position:relative;display:grid;place-items:center;width:82px;height:82px;margin:0 auto 24px;border-radius:50%;background:#f4efff;color:#7752d3}
.status-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.spinner{position:absolute;inset:-3px;border:3px solid #eee7fa;border-top-color:#7752d3;border-radius:50%;animation:spin 1.1s linear infinite}
.eyebrow{margin:0 0 10px;color:#7752d3;font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase}
h1{max-width:340px;margin:0 auto 14px;font-size:25px;line-height:1.3;letter-spacing:-.7px;font-weight:750}
#paymentMessage{margin:0 auto;color:#81768e;font-size:14px;line-height:1.8;max-width:320px}
.loading-bar{height:4px;max-width:180px;margin:27px auto 30px;border-radius:10px;background:#f0eaf9;overflow:hidden}
.loading-bar span{display:block;width:45%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b79be9,#7752d3);animation:loading 1.6s ease-in-out infinite}
.security-note{padding:22px 10px 0;border-top:1px solid #f0eaf6}
.provider-badge{display:inline-block;padding:4px 11px;border:1px solid #d9e9e1;border-radius:7px;background:#f3faf6;color:#347259;font-size:11px;font-weight:800;letter-spacing:1px}
#paymentSecurity{margin:11px auto 0;max-width:300px;color:#8a8195;font-size:12px;line-height:1.8}
#paymentBack{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;margin:18px auto;padding:8px 18px;border:1px solid #e9e1f4;border-radius:10px;background:#f4efff;color:#6540bc;font-size:14px;font-weight:700;text-decoration:none}
#paymentBack:hover{text-decoration:underline}a:focus-visible{outline:3px solid #ad93e0;outline-offset:5px;border-radius:5px}
noscript{display:block;margin-top:20px;color:#b84b61;font-size:13px}
body.failed .spinner,body.failed .loading-bar{display:none}body.failed .status-icon{color:#b84b61;background:#fff2f4}body.failed h1{font-size:23px}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes loading{0%{transform:translateX(-105%)}100%{transform:translateX(330%)}}
@media(max-width:420px){body{padding:18px 14px}.payment-card{padding:24px 18px 20px;border-radius:22px}.brand{font-size:20px;margin-bottom:16px}h1{font-size:22px}.status-icon{width:56px;height:56px;margin-bottom:16px}.status-icon svg{width:27px;height:27px}.security-note{padding:14px 4px 0}#paymentSecurity{line-height:1.55}}
@media(prefers-reduced-motion:reduce){.spinner,.loading-bar span{animation:none}.loading-bar span{width:65%;margin:auto}}
