:root { --pay-bg: #fff; --pay-muted: #8a8a8c; --pay-bonus: #a3514b; }
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; background: var(--pay-bg); }
body { color: #252829; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.pay-is-loading { overflow: hidden; touch-action: none; }
button { font: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pay-loading { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; color: #4b4654; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); cursor: wait; pointer-events: auto; touch-action: none; user-select: none; }
.pay-loading-content { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; min-width: 150px; padding: 20px 24px; border: 1px solid rgba(230, 226, 235, .9); border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 30px rgba(43, 34, 57, .1); font-size: 12px; line-height: 17px; }
.pay-loading-spinner { width: 28px; height: 28px; border: 3px solid #e5dff0; border-top-color: #8661b7; border-radius: 50%; animation: pay-spin .78s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-app.is-loading, .pay-app[inert] { pointer-events: none; user-select: none; }
.pay-app { width: min(100%, 392px); min-height: 100vh; margin: 0 auto; padding: max(4px, env(safe-area-inset-top)) 8px max(24px, env(safe-area-inset-bottom)); }
.pay-card { position: relative; padding: 16px 14px; border: 1px solid #ececec; border-radius: 24px; background: #fff; box-shadow: 0 3px 22px rgba(32, 29, 43, .08); }
.pay-back { position: absolute; top: 12px; left: 10px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 50%; color: #727276; background: transparent; }
.pay-back svg { width: 19px; height: 19px; }
.pay-back:hover { background: #f6f6f7; }
.pay-title { margin: 0 26px 14px; font-size: 17px; font-weight: 650; line-height: 22px; text-align: center; overflow-wrap: anywhere; }
.pay-balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; margin: 0 0 16px; color: #4f4f50; font-size: 12px; line-height: 16px; }
.pay-balance-item { display: inline-flex; align-items: center; gap: 4px; }
.pay-balance-item::before, .pay-coin-icon { content: ""; display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border: 1px solid #ffe9a2; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe16c, #f9cb36 72%); box-shadow: 0 0 4px rgba(242, 195, 49, .22); }
.pay-balance-item::before { width: 7px; height: 7px; }
.pay-balance-item.bonus::before { border-color: #ebaaa0; background: #bb6258; box-shadow: none; }
.pay-balance-item strong { font-size: inherit; font-weight: 500; font-variant-numeric: tabular-nums; }
.pay-balance-item > span { font-weight: 600; }
.pay-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-package { position: relative; width: 100%; min-width: 0; min-height: 144px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 31px 8px 23px; border: 1px solid #eeeeef; border-radius: 16px; color: #252d2d; background: #fff; box-shadow: 0 1px 4px rgba(30, 28, 40, .045), inset 0 0 0 1px rgba(245, 245, 246, .45); text-align: center; transition: border-color .15s ease, box-shadow .15s ease; }
.pay-package:hover { border-color: #d6cedf; box-shadow: 0 2px 9px rgba(55, 33, 76, .09); }
.pay-package:focus-visible, .pay-back:focus-visible { outline: 2px solid #9262cc; outline-offset: 3px; }
.pay-package-bonus { min-height: 16px; max-width: 100%; color: var(--pay-bonus); font-size: 13px; font-weight: 650; line-height: 16px; overflow-wrap: anywhere; }
.pay-package-coins { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; line-height: 30px; }
.pay-package-coins strong { min-width: 0; font-size: 24px; font-weight: 750; overflow-wrap: anywhere; }
.pay-package-price { margin-top: 2px; color: #66686b; font-size: 15px; font-weight: 600; line-height: 19px; }
.pay-badge { position: absolute; top: -1px; left: -1px; max-width: calc(100% - 12px); min-width: 46px; padding: 4px 11px; border-radius: 15px 0 9px 0; color: #fff; background: linear-gradient(115deg, #ffb11e, #ee684e); font-size: 11px; font-weight: 800; line-height: 14px; overflow-wrap: anywhere; }
.pay-badge.is-bonus { background: linear-gradient(115deg, #d036a5, #a52bb4); }
.pay-package-vip { gap: 0; padding: 18px 7px; border-color: #2d2643; color: #fff; background: linear-gradient(130deg, #211e32, #34294f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025); }
.pay-package-vip:hover { border-color: #9276ac; }
.pay-vip-label { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: #f6d397; font-size: 12px; font-weight: 750; line-height: 16px; }
.pay-vip-label img { width: 13px; height: 12px; object-fit: contain; filter: grayscale(1) sepia(1) saturate(3); }
.pay-vip-price { max-width: 100%; line-height: 26px; }
.pay-vip-price strong { font-size: 23px; font-weight: 750; letter-spacing: -.5px; }
.pay-vip-price small { font-size: 11px; font-weight: 550; color: #d1cada; white-space: nowrap; }
.pay-vip-daily, .pay-vip-access, .pay-vip-renewal { max-width: 100%; color: #d0c8dd; font-size: 10px; font-weight: 400; line-height: 15px; }
.pay-vip-daily { margin-top: 5px; }
.pay-vip-renewal { color: #b5a9c8; font-size: 9px; }
.pay-package:disabled { cursor: progress; opacity: .65; }
.pay-empty { grid-column: 1 / -1; margin: 0; padding: 40px 10px; color: #777; font-size: 13px; line-height: 1.6; text-align: center; }
.pay-notes { padding: 17px 15px 0; color: #929094; }
.pay-subtitle, .pay-membership-terms, .pay-tips p { margin: 0 0 9px; font-size: 10px; line-height: 1.6; }
.pay-subtitle:empty { display: none; }
.pay-tips h2 { margin: 0 0 6px; color: #7f7b85; font-size: 11px; font-weight: 600; }
.pay-toast { position: fixed; z-index: 300; right: 50%; bottom: max(25px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 40px); padding: 10px 14px; border-radius: 9px; color: #fff; background: rgba(23, 23, 30, .9); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(50%, 8px); transition: opacity .18s ease, transform .18s ease; }
.pay-toast.visible { opacity: 1; transform: translate(50%, 0); }
@media (max-width: 360px) { .pay-card { padding-inline: 11px; } .pay-packages { gap: 8px; } .pay-package { min-height: 140px; padding-inline: 6px; } .pay-package-coins strong { font-size: 22px; } .pay-package-vip { padding-inline: 5px; } .pay-vip-price strong { font-size: 21px; } .pay-vip-price small { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .pay-package, .pay-toast { transition: none; } .pay-loading-spinner { animation-duration: 1.6s; } }
