/* 账户充值独立页 — 与主站深色弹窗风格一致 */

.recharge-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.recharge-page__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.recharge-page__balance {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.recharge-page__balance strong {
  color: var(--text);
  font-weight: 700;
}

.recharge-page__section-label {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* 渠道：微信 / 支付宝 / 余额支付 / 现金券 */
.recharge-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

@media (min-width: 520px) {
  .recharge-channels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.recharge-channel {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.recharge-channel:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.recharge-channel.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.recharge-channel__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* 品牌色图标：未选中时略压暗，仍保持可辨认 */
.recharge-channel:not(.is-active) .recharge-channel__icon--brand {
  opacity: 0.78;
  filter: brightness(0.92);
}

.recharge-channel.is-active .recharge-channel__icon--brand {
  opacity: 1;
  filter: none;
}

.recharge-channel--wechat.is-active {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.recharge-channel--alipay.is-active {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.14);
  color: #bfdbfe;
}

.recharge-channel--balance-pay.is-active {
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(202, 138, 4, 0.14);
  color: #fef08a;
}

.recharge-channel--coupon.is-active {
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.1);
  color: #fef08a;
}

/* 在线支付时的规格 + 额度（现金券渠道整段隐藏） */
.recharge-preset-block[hidden] {
  display: none !important;
}

/* Token充值 / 图文次数 / 余额充值 */
.recharge-spec-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 5px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 6px;
  margin-bottom: 16px;
  max-width: 100%;
}

.recharge-spec-toggle button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  margin: 0;
  padding: 8px 12px;
  border-radius: 18px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.recharge-spec-toggle button.is-active {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* 额度 / 次数 点选 */
.recharge-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.recharge-option {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.recharge-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.recharge-option.is-active {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.18);
}

.recharge-option--stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 5.25rem;
  padding: 11px 12px;
  text-align: center;
}

.recharge-option__price {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.15;
}

.recharge-option__tokens {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-muted);
  max-width: 6.5rem;
}

.recharge-option.is-active .recharge-option__tokens {
  color: rgba(255, 255, 255, 0.88);
}

/* Token 自定义金额 */
.recharge-custom-wrap {
  margin: -6px 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.recharge-custom-wrap[hidden] {
  display: none !important;
}

.recharge-custom-wrap__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.recharge-custom-wrap__input {
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}

.recharge-custom-wrap__input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
}

/* 底部：二维码 / 现金券 / 余额支付说明 */
.recharge-pay-panel {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
  margin-bottom: 20px;
}

.recharge-pay-panel[hidden] {
  display: none !important;
}

.recharge-pay-panel__hint {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.recharge-union-summary {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 600;
}

.recharge-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.recharge-qr-box {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.recharge-qr-box canvas,
.recharge-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.recharge-coupon-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recharge-coupon-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.recharge-coupon-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}

.recharge-coupon-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.recharge-coupon-field input:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.45);
}

.recharge-submit {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  padding: 16px 20px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  color: #0f172a;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  transition: transform 0.15s ease, filter 0.2s ease;
}

.recharge-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.recharge-submit:active {
  transform: translateY(0);
}

.recharge-guest-banner {
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.25);
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #fecaca;
}

.recharge-guest-banner a {
  color: #fde68a;
  font-weight: 600;
}
