/* Recharge UI follows the final 20261104 PC/H5 prototypes. */
#aihxPointsMask {
  --ink: #222631;
  --muted: #7b7e88;
  --line: #e8e9ed;
  --accent: #e74672;
  --pale: #fff0f4;
  --green: #388575;
  position: fixed;
  inset: 0;
  z-index: 2147483002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--ink);
  background: #22263165;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: left;
  letter-spacing: normal;
  -webkit-text-size-adjust: 100%;
}

#aihxPointsMask,
#aihxPointsMask * { box-sizing: border-box; }
#aihxPointsMask [hidden],
#aihxPointsMask[hidden] { display: none !important; }
#aihxPointsMask :is(h2, p, dl, dt, dd) { margin: 0; }
#aihxPointsMask button {
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
#aihxPointsMask button:disabled { cursor: not-allowed; opacity: .4; }
#aihxPointsMask :is(button, a):focus-visible { outline: 3px solid #e7467270; outline-offset: 3px; }
#aihxPointsMask a { color: #a53454; text-decoration: none; }
#aihxPointsMask :is(b, strong) { font-weight: 700; }
#aihxPointsMask h2 { font-size: 25px; line-height: 1.45; font-weight: 620; letter-spacing: -.6px; padding-right: 14px; }
#aihxPointsMask .icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
#aihxPointsMask .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 550;
  line-height: 1.6;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}
#aihxPointsMask .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
#aihxPointsMask .full { width: 100%; }
#aihxPointsMask .textbtn { display: inline-block; padding: 4px 0; color: #a53454; font-size: 12px; line-height: 1.6; text-align: center; }
#aihxPointsMask .hint { font-size: 12px; color: var(--muted); margin-top: 8px; }

#aihxPointsMask .billing-dialog {
  position: relative;
  width: 600px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 34px 36px 20px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 25px 90px #20233435;
  outline: none;
  overscroll-behavior: contain;
}
#aihxPointsMask .bill-close {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #888;
  font-size: 25px;
  line-height: 1;
}
#aihxPointsMask .bill-close:hover { background: #f4f4f4; }
#aihxPointsMask .bill-eyebrow { display: block; margin-bottom: 8px; color: #a4576d; font-size: 11px; letter-spacing: 1px; }
#aihxPointsMask .bill-intro { color: #7b7075; font-size: 13px; line-height: 1.8; margin: 10px 0 22px; }
#aihxPointsMask .bill-intro b { color: #3a2930; }
#aihxPointsMask .bill-pack-screen { position: relative; isolation: isolate; }
#aihxPointsMask .bill-pack-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -36px;
  top: -34px;
  width: 260px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 80%, rgba(246, 123, 166, .2), transparent 58%), linear-gradient(150deg, rgba(255, 238, 245, .8), rgba(255, 255, 255, 0));
  filter: blur(1px);
  pointer-events: none;
}
#aihxPointsMask .bill-pack-hero { display: flex; align-items: center; gap: 15px; padding-right: 44px; margin-bottom: 24px; }
#aihxPointsMask .bill-pack-hero > div { min-width: 0; }
#aihxPointsMask .bill-token-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid #e9b96b;
  border-radius: 50%;
  color: #9f6517;
  background: linear-gradient(135deg, #fff6e8, #ffdda1);
  box-shadow: inset 0 0 0 5px #fff0d6, inset 0 0 0 6px #e8bd7a, 2px 4px 0 #dfb16a;
}
#aihxPointsMask .bill-token-mark .icon { width: 26px; height: 26px; stroke-width: 1.8; }
#aihxPointsMask .bill-pack-hero .bill-eyebrow { margin-bottom: 3px; color: #e74672; font-weight: 700; letter-spacing: .6px; }
#aihxPointsMask .bill-pack-hero h2 { padding: 0; font-size: 27px; line-height: 1.25; }
#aihxPointsMask .bill-resume-chip { display: inline-flex; margin-top: 7px; padding: 5px 11px; border-radius: 999px; background: #fff0f5; color: #bf4266; font-size: 10px; font-weight: 650; }
#aihxPointsMask .bill-pack-screen > .bill-intro { margin: 18px 0; color: #6f6b73; font-size: 13px; line-height: 1.65; }
#aihxPointsMask .bill-balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
#aihxPointsMask .bill-balance-grid > div { display: grid; place-items: center; min-width: 0; min-height: 70px; padding: 10px; border: 1px solid #eadde2; border-radius: 12px; background: rgba(255, 255, 255, .82); }
#aihxPointsMask .bill-balance-grid span { color: #77717a; font-size: 10px; }
#aihxPointsMask .bill-balance-grid b { margin-top: 3px; font-size: 20px; line-height: 1; }
#aihxPointsMask .bill-balance-grid b.accent { color: var(--accent); }
#aihxPointsMask .credit-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
#aihxPointsMask .credit-pack {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 86px;
  padding: 12px 7px;
  border: 1px solid #e2dce1;
  border-radius: 12px;
  background: rgba(255, 255, 255, .84);
  text-align: center;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
#aihxPointsMask .credit-pack:hover:not(:disabled) { transform: translateY(-2px); }
#aihxPointsMask .credit-pack.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 8px 20px rgba(231, 70, 114, .1); background: #fff6f9; }
#aihxPointsMask .credit-pack strong { font-size: 16px; line-height: 1.2; }
#aihxPointsMask .credit-pack > span { color: #6f6870; font-size: 10px; }
#aihxPointsMask .credit-pack > small { min-height: 13px; color: var(--accent); font-size: 9px; font-weight: 650; }
#aihxPointsMask .credit-pack > small.is-empty { visibility: hidden; }
#aihxPointsMask .bill-pack-cta { min-height: 48px; border-radius: 999px; background: linear-gradient(100deg, #ee4878, #b94fe0); box-shadow: 0 10px 24px rgba(205, 72, 159, .18); }
#aihxPointsMask .bill-pack-note { margin-top: 13px; color: #8d858c; font-size: 10px; text-align: center; }
#aihxPointsMask .bill-disclaimer { font-size: 10px; color: #aaa; text-align: center; margin-top: 20px; }
#aihxPointsMask .bill-summary { display: flex; justify-content: space-between; gap: 12px; background: #f7f8fa; border-radius: 8px; padding: 12px; font-size: 11px; margin-bottom: 20px; color: #777; }
#aihxPointsMask .bill-summary b { color: #444; }

#aihxPointsMask .bill-total { display: flex; flex-direction: column; align-items: center; margin: 14px 0 22px; }
#aihxPointsMask .bill-total > span { font-size: 12px; color: var(--muted); }
#aihxPointsMask .bill-total > strong { font-size: 48px; letter-spacing: -1.5px; font-weight: 600; line-height: 1.6; }
#aihxPointsMask .bill-total small { font-size: 24px; margin-right: 4px; }
#aihxPointsMask .bill-total em { font-style: normal; font-size: 28px; }
#aihxPointsMask .bill-usdt-due { margin-top: 8px; color: #16866d; font-size: 15px; text-align: center; overflow-wrap: anywhere; }
#aihxPointsMask .payment-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
#aihxPointsMask .payment-channels > button { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; }
#aihxPointsMask .payment-channels > button.selected { border-color: var(--accent); background: #fff9fb; }
#aihxPointsMask .channel-icon { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
#aihxPointsMask .channel-icon.wechat { background: #26975c; }
#aihxPointsMask .channel-icon.alipay { background: #2c87c8; }
#aihxPointsMask .channel-icon.usdt { background: #16866d; }
#aihxPointsMask .payment-channel-label { flex: 1; min-width: 0; text-align: center; white-space: nowrap; }
#aihxPointsMask .channel-check { flex: 0 0 14px; margin-left: 0; text-align: center; color: #b66a83; }
#aihxPointsMask .payment-placeholder { background: repeating-linear-gradient(135deg, #faf8f9, #faf8f9 10px, #fdfcfd 10px, #fdfcfd 20px); border: 1px dashed #ded6db; border-radius: 12px; display: flex; align-items: center; flex-direction: column; padding: 22px 14px; gap: 8px; text-align: center; }
#aihxPointsMask .payment-placeholder-icon { width: 44px; height: 44px; border: 1px solid #dfccd4; border-radius: 12px; display: grid; place-items: center; color: #ba7991; background: #fff; }
#aihxPointsMask .payment-placeholder > b { font-size: 13px; }
#aihxPointsMask .payment-placeholder :is(p, span) { font-size: 11px; color: var(--muted); }
#aihxPointsMask .bill-order-id { font-size: 10px; color: #999; text-align: center; margin: 10px 0 20px; overflow-wrap: anywhere; }
#aihxPointsMask .bill-payment-qr { display: grid; place-items: center; min-width: 180px; min-height: 180px; padding: 8px; border: 1px solid #eee8ec; border-radius: 12px; background: #fff; color: var(--muted); font-size: 11px; }
#aihxPointsMask .bill-payment-qr img { display: block; width: 180px; max-width: 100%; height: auto; object-fit: contain; }
#aihxPointsMask .bill-payment-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
#aihxPointsMask .bill-payment-actions { display: flex; gap: 10px; margin: 0 0 10px; }
#aihxPointsMask .bill-payment-actions > .btn { flex: 1; min-width: 0; white-space: normal; }
#aihxPointsMask .bill-payment-actions > .btn.primary { flex: 2; }
#aihxPointsMask .payment-placeholder .bill-order-summary { align-self: stretch; margin: 6px 0; background: #fff; }
#aihxPointsMask .payment-demo { padding: 14px; border-radius: 10px; background: #f5f6f8; margin-bottom: 10px; }
#aihxPointsMask .payment-demo > p { font-size: 11px; margin-bottom: 10px; color: #555; }
#aihxPointsMask .payment-demo > p > span { float: right; color: #999; }
#aihxPointsMask .payment-demo > div { display: flex; gap: 8px; }
#aihxPointsMask .payment-demo .btn { font-size: 12px; padding: 10px; flex: 1; }
#aihxPointsMask .payment-demo .btn.primary { flex: 2; }

#aihxPointsMask :is(.bill-success, .bill-warning) { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; font-size: 30px; margin: 8px 0 22px; }
#aihxPointsMask .bill-success { background: #eaf5f0; color: var(--green); }
#aihxPointsMask .bill-warning { background: #fff0e3; color: #b77a39; }
#aihxPointsMask .bill-receipt { padding: 24px; background: #f7f9f8; border: 1px solid #e8eeeb; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 20px 0; text-align: center; }
#aihxPointsMask .bill-receipt > span { font-size: 12px; color: #888; }
#aihxPointsMask .bill-receipt > strong { font-size: 48px; line-height: 1.3; }
#aihxPointsMask .bill-receipt > small { font-size: 10px; color: #999; overflow-wrap: anywhere; }
#aihxPointsMask .billing-dialog > .textbtn { margin-top: 14px; }
#aihxPointsMask .bill-order-summary { margin: 22px 0; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
#aihxPointsMask .bill-order-summary > div { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; padding: 6px 0; }
#aihxPointsMask .bill-order-summary dt { color: #888; font-weight: 400; }
#aihxPointsMask .bill-order-summary dd { min-width: 0; text-align: right; overflow-wrap: anywhere; }
#aihxPointsMask .bill-login-avatar { border-radius: 50%; background: var(--pale); color: #b75774; width: 70px; height: 70px; margin: 26px auto 10px; display: grid; place-items: center; font-size: 26px; }
#aihxPointsMask .bill-account { text-align: center; margin-bottom: 28px; color: #888; font-size: 13px; }
#aihxPointsMask .bill-error { margin: 12px 0 16px; padding: 10px 12px; border: 1px solid #f1ccd6; border-radius: 9px; background: #fff4f7; color: #af3151; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#aihxPointsMask .bill-busy,
#aihxPointsMask [role="status"] { color: var(--muted); font-size: 12px; line-height: 1.8; }
#aihxPointsMask [aria-busy="true"] { cursor: progress; }

/* Keep the prototype's final wrapping and CTA overrides after base styles. */
#aihxPointsMask .billing-dialog .bill-pack-note { position: static; margin: 14px 0 18px; line-height: 1.6; overflow-wrap: break-word; }
#aihxPointsMask .billing-dialog > .btn.full,
#aihxPointsMask .billing-dialog .bill-pack-cta { min-height: 44px; height: auto; padding-block: 12px; line-height: 1.4; white-space: normal; }
#aihxPointsMask .bill-summary { flex-wrap: wrap; row-gap: 8px; }
#aihxPointsMask .bill-summary > * { min-width: 0; overflow-wrap: break-word; }

@media (max-width: 991.98px) {
  #aihxPointsMask { --ink: #252630; --muted: #747987; --accent: #e83f73; --pale: #fff0f5; align-items: flex-end; padding: 0; -webkit-font-smoothing: antialiased; }
  #aihxPointsMask .billing-dialog { width: 100%; max-width: 430px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); padding: 26px 17px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  #aihxPointsMask h2,
  #aihxPointsMask .bill-pack-hero h2 { color: #252630; font-size: 21px; font-weight: 730; line-height: 1.32; letter-spacing: -.45px; }
  #aihxPointsMask .bill-pack-hero h2 { line-height: 1.3; }
  #aihxPointsMask .bill-intro { font-size: 12px; }
  #aihxPointsMask .bill-pack-hero { gap: 10px; }
  #aihxPointsMask .bill-token-mark { width: 44px; height: 44px; flex-basis: 44px; }
  #aihxPointsMask .bill-balance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #aihxPointsMask .bill-balance-grid > div { min-height: 70px; min-width: 0; padding: 10px 6px; }
  #aihxPointsMask .bill-balance-grid span { font-size: 10px; overflow-wrap: anywhere; }
  #aihxPointsMask .bill-balance-grid b { font-size: 23px; }
  #aihxPointsMask .credit-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 24px 0; }
  #aihxPointsMask .credit-pack { align-items: stretch; justify-content: flex-start; gap: 10px; min-height: 112px; padding: 12px 8px; border-radius: 11px; text-align: left; }
  #aihxPointsMask .credit-pack strong { font-size: 25px; line-height: 1.3; letter-spacing: -1px; }
  #aihxPointsMask .credit-pack > span { color: #6f6368; font-size: 12px; }
  #aihxPointsMask .credit-pack > small { min-height: auto; color: #9f6679; font-size: 9px; font-weight: 400; }
  #aihxPointsMask .credit-pack > small.is-empty { visibility: visible; }
  #aihxPointsMask .credit-pack.selected { background: #fff7fa; box-shadow: inset 0 0 0 1px var(--accent); }
  #aihxPointsMask .credit-pack.selected::after { content: "✓ 已选择"; position: absolute; top: 9px; right: 9px; color: var(--accent); font-size: 9px; font-weight: 700; }
  #aihxPointsMask .credit-pack > span:first-child { padding-right: 48px; }
  #aihxPointsMask .bill-total > strong { font-size: 40px; }
  #aihxPointsMask .payment-channels { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #aihxPointsMask .payment-channels > button { padding: 10px; font-size: 12px; gap: 7px; }
  #aihxPointsMask .payment-placeholder { padding: 16px 10px; }
  #aihxPointsMask .payment-demo { padding: 12px; }
  #aihxPointsMask .payment-demo .btn { font-size: 11px; padding: 10px 6px; }
  #aihxPointsMask .bill-summary { flex-direction: column; gap: 6px; }
  #aihxPointsMask .btn { min-height: 44px; padding: 10px 15px; border-color: #e9e7ec; border-radius: 12px; color: #484c58; font-size: 12px; font-weight: 700; }
  #aihxPointsMask .btn.primary,
  #aihxPointsMask .btn.primary.bill-pack-cta { border-color: #e83f73; border-radius: 12px; background: #e83f73; color: #fff; box-shadow: 0 7px 16px rgba(232, 63, 115, .16); }
  #aihxPointsMask .btn.primary:disabled { box-shadow: none; }
  #aihxPointsMask .billing-dialog > .btn.full,
  #aihxPointsMask .billing-dialog .bill-pack-cta { padding-block: 12px; line-height: 1.4; }
  #aihxPointsMask :is(.btn, .textbtn) { -webkit-tap-highlight-color: transparent; }
  #aihxPointsMask :is(.btn, .textbtn):active:not(:disabled) { transform: scale(.975); }
}
