.recharge-dialog { width: min(510px, calc(100vw - 28px)); max-height: min(740px, calc(100dvh - 28px)); margin: auto; overflow-y: auto; border-radius: 24px; }
.recharge-card { gap: 0; padding: 28px; }
.recharge-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.recharge-head .eyebrow { margin: 0 0 5px; }
.recharge-head h3 { margin: 0; font-size: 23px; }
.recharge-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--dialog-dim); color: var(--muted); font-size: 23px; line-height: 1; cursor: pointer; }
.recharge-close:hover { color: var(--ink); background: rgba(var(--veil-rgb), .1); }
.recharge-balance { margin: 8px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.recharge-card .subscription-offer { grid-template-columns: 1fr; gap: 12px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--dialog-dim); }
.recharge-card .subscription-offer strong { font-size: 14px; }
.recharge-card .subscription-offer small { line-height: 1.45; }
.recharge-card .subscription-offer button { width: 100%; min-height: 42px; }
.recharge-card .subscription-actions { display: grid; gap: 8px; }
.wb-upgrade { width: fit-content; padding: 0; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wb-upgrade:hover { color: var(--accent); }
.recharge-dialog[data-payment="pending"] .subscription-offer,
.recharge-dialog[data-payment="pending"] .recharge-topup { display: none; }
.recharge-topup { display: grid; gap: 13px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.recharge-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.recharge-section-title strong { font-size: 15px; }
.recharge-section-title span { color: var(--muted); font-size: 11px; text-align: right; }
.recharge-entry { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; }
.recharge-entry label { color: var(--ink); font-size: 13px; }
.recharge-amount-field { display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.recharge-amount-field:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.recharge-amount-field span { font-size: 19px; font-weight: 700; }
.recharge-card .recharge-amount-field input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0; font-size: 19px; font-weight: 650; }
.recharge-submit { width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: #07b75b; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.recharge-submit:hover { background: #079e50; }
.recharge-submit:disabled { opacity: .55; cursor: wait; }
.wechat-pay { margin-top: 20px; padding: 17px; border: 1px solid rgba(7, 183, 91, .22); border-radius: 18px; background: rgba(7, 183, 91, .045); text-align: center; }
.wechat-pay[hidden], .recharge-qr[hidden] { display: none; }
.wechat-pay-head { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; }
.wechat-pay-head strong, .wechat-pay-head small { display: block; }
.wechat-pay-head strong { font-size: 15px; }
.wechat-pay-head small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.wechat-pay-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #07b75b; color: white; font-weight: 800; }
.wechat-pay-code { width: fit-content; margin: 15px auto 9px; padding: 10px; border: 1px solid rgba(var(--veil-rgb), .08); border-radius: 14px; background: #fff; box-shadow: 0 6px 22px rgba(var(--shadow-rgb), .1); }
.wechat-pay-code .recharge-qr { display: block; width: min(210px, 55vw); height: auto; aspect-ratio: 1; padding: 0; border-radius: 0; background: #fff; }
.wechat-pay-code .recharge-qr[hidden] { display: none; }
.wechat-pay-amount { margin: 0; color: var(--ink); font-size: 19px; font-weight: 700; }
.wechat-pay-hint { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.wechat-pay-change { margin-top: 12px; padding: 4px 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.recharge-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.recharge-note:empty { display: none; }
.withdraw-orders { display: grid; gap: 7px; margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.withdraw-order { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--field); color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.withdraw-order[data-selected="true"] { border-color: #07b75b; outline: 1px solid #07b75b; }
#withdrawSubmit { margin-top: 13px; }
.withdraw-history { display: grid; gap: 5px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.withdraw-history:empty { display: none; }
.withdraw-history p { margin: 0; }
@media (max-width: 600px) {
  .recharge-dialog { max-height: calc(100dvh - 20px); border-radius: 18px; }
  .recharge-card { padding: 20px; }
  .recharge-section-title { display: grid; gap: 3px; }
  .recharge-section-title span { text-align: left; }
}
