/* ═══════════════════════════════════════════════════════════
   Limooi · 弹窗深色修正
   ───────────────────────────────────────────────────────────
   原站 studio.css 用 !important 定义了整套浅色弹窗主题
   （充值 / 账户 / 兑换码 / 分站推广），此处以更高特异性覆盖。
   ═══════════════════════════════════════════════════════════ */

/* ══════════ 一、充值主卡片 ══════════ */

html body dialog.settings-card,
html body dialog.recharge-dialog,
html body .settings-card.recharge-card,
html body .settings-card.recharge-code-card,
html body dialog.settings-card .recharge-card {
  background: linear-gradient(180deg, #17140f 0%, #100e0d 100%) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  color: #f4f3f1 !important;
  box-shadow: 0 40px 100px rgba(0,0,0,.8),
              0 0 0 1px rgba(201,255,93,.06) !important;
}

html body dialog.settings-card .dialog-head h3,
html body dialog.settings-card h3,
html body .recharge-card h3 {
  color: #f4f3f1 !important;
}

html body dialog.settings-card .dialog-head p,
html body dialog.settings-card .dialog-head p,
html body .recharge-card p {
  color: #a8a29e !important;
}

/* ══════════ 二、余额条 ══════════ */

html body dialog.settings-card .balance-hero,
html body .settings-card .balance-hero,
html body dialog.settings-card .account-summary,
html body .settings-card .account-summary {
  background: rgba(201,255,93,.07) !important;
  border: 1px solid rgba(201,255,93,.22) !important;
  color: #f4f3f1 !important;
  border-radius: 12px !important;
}

html body dialog.settings-card .balance-hero span,
html body .settings-card .balance-hero span {
  color: #a8a29e !important;
}

html body dialog.settings-card .balance-hero strong,
html body .settings-card .balance-hero strong {
  color: #c9ff5d !important;
}

html body dialog.settings-card .balance-hero i,
html body .settings-card .balance-hero i {
  color: #c9ff5d !important;
  font-style: normal !important;
}

html body dialog.settings-card .balance-hero small,
html body .settings-card .balance-hero small {
  color: #a8a29e !important;
}

/* ══════════ 三、积分档位按钮 ══════════ */

html body dialog.settings-card .recharge-option,
html body .settings-card .recharge-option,
html body .recharge-options .recharge-option {
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #f4f3f1 !important;
  border-radius: 12px !important;
  transition: all .18s cubic-bezier(.2,.7,.4,1) !important;
}

html body dialog.settings-card .recharge-option:hover,
html body .settings-card .recharge-option:hover {
  background: rgba(201,255,93,.09) !important;
  border-color: rgba(201,255,93,.38) !important;
  transform: translateY(-2px) !important;
}

html body dialog.settings-card .recharge-option.selected,
html body .settings-card .recharge-option.selected,
html body .recharge-options .recharge-option.selected {
  background: linear-gradient(
    110deg,
    rgba(201,255,93,.16),
    rgba(234,255,176,.26),
    rgba(201,255,93,.16)
  ) !important;
  background-size: 220% 100% !important;
  animation: lm-flow-x 6s linear infinite !important;
  border-color: rgba(201,255,93,.65) !important;
  color: #eaffb0 !important;
  box-shadow: 0 0 0 3px rgba(201,255,93,.12),
              0 12px 30px -12px rgba(201,255,93,.35) !important;
}

html body dialog.settings-card .recharge-option small,
html body .settings-card .recharge-option small {
  color: #a8a29e !important;
}

html body dialog.settings-card .recharge-option.selected small,
html body .settings-card .recharge-option.selected small {
  color: #d9ffa8 !important;
}

html body dialog.settings-card .recharge-option em,
html body .settings-card .recharge-option em {
  background: rgba(201,255,93,.9) !important;
  color: #0a0908 !important;
  border-radius: 99px !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

/* ══════════ 四、自定义积分输入 ══════════ */

html body dialog.settings-card .custom-recharge-field span,
html body .settings-card .custom-recharge-field span {
  color: #a8a29e !important;
}

html body dialog.settings-card .recharge-custom input,
html body .settings-card .recharge-custom input,
html body dialog.settings-card #customRechargeAmount,
html body .settings-card #customRechargeAmount,
html body .custom-recharge-field input {
  background: rgba(0,0,0,.45) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  color: #f4f3f1 !important;
  border-radius: 11px !important;
}

html body .custom-recharge-field input:focus {
  border-color: rgba(201,255,93,.55) !important;
  box-shadow: 0 0 0 3px rgba(201,255,93,.1) !important;
}

html body .custom-recharge-field input::placeholder {
  color: #57534e !important;
}

/* ══════════ 五、费用明细格子 ══════════ */

html body dialog.settings-card .recharge-summary,
html body .settings-card .recharge-summary {
  background: transparent !important;
}

html body dialog.settings-card .recharge-summary > div,
html body .settings-card .recharge-summary > div {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 12px !important;
  color: #a8a29e !important;
}

html body dialog.settings-card .recharge-summary > div > span,
html body .settings-card .recharge-summary > div > span {
  color: #6b6560 !important;
  font-size: 11.5px !important;
}

html body dialog.settings-card .recharge-summary strong,
html body .settings-card .recharge-summary strong {
  color: #f4f3f1 !important;
  font-weight: 700 !important;
}

/* 赠送积分：绿色 */
html body .settings-card .recharge-summary-bonus strong,
html body .recharge-summary-bonus strong {
  color: #4ade80 !important;
}

/* 实际到账：荧光绿 */
html body .settings-card .recharge-summary-total strong,
html body .recharge-summary-total strong {
  color: #c9ff5d !important;
}

/* 支付金额：亮白 */
html body .settings-card .recharge-summary-money,
html body .recharge-summary-money {
  color: #eaffb0 !important;
  font-weight: 800 !important;
}

/* ══════════ 六、提示条 ══════════ */

html body dialog.settings-card .recharge-note,
html body .settings-card .recharge-note,
html body dialog.settings-card .demo-tip,
html body .settings-card .demo-tip {
  background: rgba(201,255,93,.06) !important;
  border: 1px solid rgba(201,255,93,.18) !important;
  color: #a8a29e !important;
  border-radius: 10px !important;
}

html body dialog.settings-card .recharge-note b,
html body .settings-card .recharge-note b {
  color: #c9ff5d !important;
}

/* ══════════ 七、支付按钮组 ══════════ */

html body dialog.settings-card .recharge-payment-actions .primary-btn,
html body .settings-card .recharge-payment-actions .primary-btn,
html body .confirm-recharge-btn {
  background-image: linear-gradient(
    100deg, #8fd63a 0%, #c9ff5d 22%, #eaffb0 42%,
    #c9ff5d 62%, #8fd63a 82%, #c9ff5d 100%
  ) !important;
  background-size: 220% 100% !important;
  animation: lm-flow-x 4.5s linear infinite !important;
  color: #08120a !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
}

html body dialog.settings-card .recharge-payment-actions .secondary-btn,
html body dialog.settings-card .recharge-card .secondary-btn,
html body .settings-card .secondary-btn {
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  color: #a8a29e !important;
  border-radius: 12px !important;
}

html body dialog.settings-card .recharge-payment-actions .secondary-btn:hover,
html body .settings-card .secondary-btn:hover {
  background: rgba(255,255,255,.09) !important;
  color: #f4f3f1 !important;
}

/* ══════════ 八、微信支付面板 ══════════ */

html body .wechat-pay-panel {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  color: #f4f3f1 !important;
  border-radius: 14px !important;
}

html body .wechat-pay-panel.is-paid {
  background: rgba(74,222,128,.08) !important;
  border-color: rgba(74,222,128,.35) !important;
}

html body .wechat-pay-panel img {
  background: #fff !important;
  border-radius: 10px !important;
}

/* ══════════ 九、兑换码输入 ══════════ */

html body .recharge-code-card .redeem-code-field input,
html body .redeem-code-field input {
  background: rgba(0,0,0,.45) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  color: #f4f3f1 !important;
  border-radius: 12px !important;
}

html body .redeem-code-field input::placeholder {
  color: #57534e !important;
}

/* ══════════ 十、分站推广块（原白底粉字）══════════ */

html body .domain-gateway-note,
html body dialog.settings-card .domain-gateway-note,
html body .settings-card .domain-gateway-note {
  background: linear-gradient(
    110deg,
    rgba(201,255,93,.07),
    rgba(139,124,255,.09),
    rgba(201,255,93,.07)
  ) !important;
  background-size: 220% 100% !important;
  animation: lm-flow-x 8s linear infinite !important;
  border: 1px solid rgba(201,255,93,.26) !important;
  color: #d9ffa8 !important;
  border-radius: 12px !important;
}

html body .domain-gateway-note b,
html body .domain-gateway-note strong,
html body .domain-gateway-note a {
  color: #c9ff5d !important;
}

html body .domain-gateway-note span,
html body .domain-gateway-note p {
  color: #a8a29e !important;
}

/* 其他可能的推广块 */
html body .station-promo,
html body .brand-promo,
html body .recharge-promo-card {
  background: rgba(201,255,93,.06) !important;
  border: 1px solid rgba(201,255,93,.22) !important;
  color: #d9ffa8 !important;
  border-radius: 12px !important;
}
html body .station-promo a,
html body .brand-promo a,
html body .recharge-promo-card a {
  color: #c9ff5d !important;
}

/* ══════════ 十一、折叠区（积分怎么使用）══════════ */

html body dialog.settings-card details,
html body .settings-card details {
  border-top: 1px solid rgba(255,255,255,.08) !important;
}

html body dialog.settings-card summary,
html body .settings-card summary {
  color: #a8a29e !important;
}

html body dialog.settings-card summary:hover,
html body .settings-card summary:hover {
  color: #c9ff5d !important;
}

/* ══════════ 十二、底部说明与关闭按钮 ══════════ */

html body dialog.settings-card .recharge-dialog-foot,
html body .settings-card .dialog-foot {
  color: #6b6560 !important;
  border-top: 1px solid rgba(255,255,255,.07) !important;
}

html body dialog.settings-card .close-btn,
html body .settings-card .close-btn {
  background: transparent !important;
  border: 0 !important;
  color: #6b6560 !important;
  border-radius: 9px !important;
}

html body dialog.settings-card .close-btn:hover,
html body .settings-card .close-btn:hover {
  background: rgba(255,255,255,.07) !important;
  color: #f4f3f1 !important;
}

/* ══════════ 十三、各类细项 ══════════ */

html body .recharge-detail-grid > div {
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #f4f3f1 !important;
  border-radius: 10px !important;
}

html body .recharge-summary,
html body .recharge-note,
html body .recharge-detail-grid,
html body .balance-hero,
html body .custom-recharge-field,
html body .wechat-recharge-head h4 {
  color: #f4f3f1 !important;
}

html body .wechat-recharge-head h4,
html body .wechat-recharge-head p {
  color: #f4f3f1 !important;
}

html body .wechat-recharge-head p {
  color: #a8a29e !important;
}

html body #rechargeCampaignBadge {
  background: rgba(201,255,93,.14) !important;
  border: 1px solid rgba(201,255,93,.32) !important;
  color: #c9ff5d !important;
  border-radius: 99px !important;
}

/* ══════════ 十四、账户资料弹窗 ══════════ */

html body .account-summary,
html body .account-field,
html body .account-grid > div,
html body .profile-summary {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  color: #f4f3f1 !important;
}

html body .account-field span,
html body .account-field label {
  color: #6b6560 !important;
}

/* 会员卡（原站淡黄底）*/
html body .member-card,
html body .membership-card,
html body .vip-card {
  background: linear-gradient(
    135deg,
    rgba(201,255,93,.09),
    rgba(139,124,255,.08)
  ) !important;
  border: 1px solid rgba(201,255,93,.26) !important;
  color: #f4f3f1 !important;
  border-radius: 14px !important;
}

html body .member-card *,
html body .membership-card * {
  color: inherit !important;
}

html body .member-card b,
html body .membership-card b {
  color: #c9ffd8 !important;
}

/* ══════════ 十五、代理中心卡片 ══════════ */

html body .agent-card,
html body .invite-card {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  color: #f4f3f1 !important;
}

/* ══════════ 十六、通用：白底深字修正 ══════════ */

html body dialog.settings-card [style*="background:#fff"],
html body dialog.settings-card [style*="background: #fff"],
html body dialog.settings-card [style*="background:white"],
html body .settings-card [style*="background:#fff"],
html body .settings-card [style*="background: #fff"] {
  background: rgba(255,255,255,.05) !important;
  color: #f4f3f1 !important;
}

/* 输入类白色背景 */
html body dialog.settings-card input[type="text"],
html body dialog.settings-card input[type="number"],
html body dialog.settings-card input[type="email"],
html body dialog.settings-card input[type="password"],
html body dialog.settings-card textarea,
html body dialog.settings-card select {
  background: rgba(0,0,0,.45) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  color: #f4f3f1 !important;
}

/* ══════════ 十七、无障碍 ══════════ */

@media (prefers-reduced-motion: reduce) {
  html body .settings-card .recharge-option.selected,
  html body .domain-gateway-note,
  html body .confirm-recharge-btn,
  html body dialog.settings-card .recharge-payment-actions .primary-btn {
    animation: none !important;
    background-image: none !important;
    background-color: rgba(201,255,93,.18) !important;
  }
}
