.shell-credit-purchase{color:#2563eb!important;background:#eff6ff!important;border:1px solid #bfdbfe!important;white-space:nowrap}
/* Keep purchase + balance together; preserve every existing account action. */
#site-header #nav-right:has(>[data-site-credit-purchase]){display:grid;grid-template-columns:max-content max-content repeat(3,max-content);gap:8px;align-items:center;justify-content:end;max-width:100%;flex-shrink:0}
@media(max-width:560px){#site-header #nav-right:has(>[data-site-credit-purchase]){width:100%;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;box-sizing:border-box}#site-header #nav-right>[data-site-credit-purchase]{grid-column:1/3;justify-self:start}#site-header #nav-right:has(>[data-site-credit-purchase])>.shell-balance{grid-column:3/-1;justify-self:end}#site-header #nav-right:has(>[data-site-credit-purchase])>[data-site-checkin]{grid-column:1/3}#site-header #nav-right:has(>[data-site-credit-purchase])>[data-site-vip]{grid-column:3/5}#site-header #nav-right:has(>[data-site-credit-purchase])>[data-site-logout]{grid-column:5/7}}
.credit-purchase-overlay[hidden],.credit-purchase-overlay [hidden]{display:none!important}
.credit-purchase-overlay{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,35,65,.52);backdrop-filter:blur(4px);overflow:auto}
.credit-purchase-dialog{box-sizing:border-box;width:min(680px,100%);max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;padding:28px;border:1px solid #dbeafe;border-radius:22px;background:#fff;color:#1e293b;box-shadow:0 24px 90px #0f23414d;font-family:inherit;line-height:1.65}
.credit-purchase-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.credit-purchase-dialog h2{margin:5px 0 8px;font-size:21px;line-height:1.35;color:#0f2747}
.credit-purchase-close{flex:none;width:36px;height:36px;border:0;border-radius:50%;background:#eff6ff;color:#1d4ed8;font-size:26px;cursor:pointer;line-height:1}
.credit-purchase-dialog p{margin:8px 0;font-size:13px}
#credit-purchase-intro{color:#64748b}
.credit-purchase-discount{padding:10px 13px;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-weight:600}
.credit-purchase-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.credit-purchase-plan{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:16px 12px;border:1px solid #dbeafe;border-radius:13px;background:#fff;color:#1e293b;text-align:left;font-family:inherit;cursor:pointer;transition:border-color .15s,background .15s}
.credit-purchase-plan[aria-pressed=true]{border:2px solid #2563eb;padding:15px 11px;background:#eff6ff}
.credit-purchase-plan strong{font-size:19px;color:#123c78}
.credit-purchase-plan span{font-size:12px;overflow-wrap:anywhere}
.credit-purchase-plan .credit-purchase-price{font-size:25px;font-weight:750;color:#2563eb}
.credit-purchase-plan del{font-size:12px;color:#94a3b8}
.credit-purchase-form{margin-top:18px}
.credit-purchase-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.credit-purchase-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;margin-bottom:12px}
.credit-purchase-form input,.credit-purchase-form textarea{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#1e293b;font:inherit;font-size:14px;resize:vertical}
.credit-purchase-form input[readonly]{background:#f8fafc;color:#64748b}
.credit-purchase-form small,.credit-purchase-payment-hint{color:#64748b;font-size:11px;font-weight:400}
.credit-purchase-form button{font-family:inherit;cursor:pointer}
.credit-purchase-form button:disabled{cursor:wait;opacity:.65}
.credit-purchase-status{min-height:1.6em;overflow-wrap:anywhere;color:#1e40af}
.credit-purchase-status.is-error{color:#b91c1c}
.credit-purchase-result{padding:14px;margin:12px 0;background:#f0f7ff;border:1px solid #bfdbfe;border-radius:12px;overflow-wrap:anywhere}
.credit-purchase-result h3{font-size:14px;margin:0 0 7px;color:#1e40af}
.credit-purchase-submit{width:100%;padding:12px 16px;border:0;border-radius:10px;background:#2563eb;color:#fff;font-size:14px;font-weight:700}
.credit-purchase-secondary{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;margin-top:12px}
.credit-purchase-secondary button{padding:4px;background:none;border:0;color:#2563eb;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.credit-purchase-dialog :focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
@media(max-width:540px){.credit-purchase-overlay{padding:12px}.credit-purchase-dialog{max-height:calc(100dvh - 24px);padding:20px 16px;border-radius:17px}.credit-purchase-dialog h2{font-size:21px}.credit-purchase-fields{grid-template-columns:1fr;gap:0}.credit-purchase-plans{gap:7px}.credit-purchase-plan{padding:13px 8px}.credit-purchase-plan[aria-pressed=true]{padding:12px 7px}.credit-purchase-plan strong{font-size:16px}.credit-purchase-plan .credit-purchase-price{font-size:22px}}
