/**
 * QieYun Modals v3.62.7 — 弹窗修复 + Toast 顶层 + 充值 v3
 */
.qy-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 100000 !important;
  padding: 16px !important;
  background: rgba(6, 11, 24, 0.78) !important;
  backdrop-filter: blur(10px) !important;
}

/* 深色主题弹窗 */
html[data-theme="slate"] .qy-modal-overlay .qy-modal,
html[data-theme="purple"] .qy-modal-overlay .qy-modal,
html[data-theme="cyan"] .qy-modal-overlay .qy-modal,
html[data-theme="dark"] .qy-modal-overlay .qy-modal,
html:not([data-theme="light"]) .qy-modal-overlay .qy-modal,
html:not([data-theme="light"]) .qy-recharge-overlay .qy-recharge-modal-v2,
html:not([data-theme="light"]) .qy-recharge-overlay .qy-recharge-modal-v3 {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(45, 212, 191, 0.07), transparent 58%),
    linear-gradient(168deg, #14161c 0%, #0f1117 48%, #0a0a0a 100%) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    inset 0 -16px 32px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
}
html[data-theme="slate"] .qy-gift-overlay .qy-gift-modal-v2,
html[data-theme="purple"] .qy-gift-overlay .qy-gift-modal-v2,
html[data-theme="cyan"] .qy-gift-overlay .qy-gift-modal-v2,
html[data-theme="dark"] .qy-gift-overlay .qy-gift-modal-v2,
html:not([data-theme="light"]) .qy-gift-overlay .qy-gift-modal-v2 {
  background: linear-gradient(165deg, #0f172a 0%, #0a1020 100%) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(34, 211, 238, 0.22) !important;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55) !important;
}

/* 浅色主题弹窗 */
html[data-theme="light"] .qy-modal-overlay .qy-modal,
html[data-theme="light"] .qy-recharge-overlay .qy-recharge-modal-v2,
html[data-theme="light"] .qy-gift-overlay .qy-gift-modal-v2 {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #0f172a !important;
  border: 1px solid rgba(14, 165, 233, 0.2) !important;
}

html[data-theme="slate"] .qy-recharge-modal-v2 h2,
html[data-theme="slate"] .qy-recharge-modal-v2 h3,
html[data-theme="slate"] .qy-gift-modal-v2 h2,
html:not([data-theme="light"]) .qy-recharge-modal-v2 h2,
html:not([data-theme="light"]) .qy-recharge-modal-v2 h3,
html:not([data-theme="light"]) .qy-gift-modal-v2 h2 {
  color: #f1f5f9 !important;
}

html[data-theme="light"] .qy-recharge-modal-v2 h2,
html[data-theme="light"] .qy-recharge-modal-v2 h3,
html[data-theme="light"] .qy-gift-modal-v2 h2 {
  color: #0f172a !important;
}

html:not([data-theme="light"]) .qy-recharge-modal-v2 .qy-recharge-header p,
html:not([data-theme="light"]) .qy-recharge-modal-v2 .qy-recharge-field-label,
html:not([data-theme="light"]) .qy-recharge-modal-v2 .qy-recharge-balance-label,
html:not([data-theme="light"]) .qy-recharge-modal-v2 .qy-recharge-trust,
html:not([data-theme="light"]) .qy-recharge-modal-v2 .qy-recharge-summary,
html:not([data-theme="light"]) .qy-gift-modal-v2 .qy-recharge-header p {
  color: #94a3b8 !important;
}

html[data-theme="light"] .qy-recharge-modal-v2 .qy-recharge-header p,
html[data-theme="light"] .qy-recharge-modal-v2 .qy-recharge-field-label,
html[data-theme="light"] .qy-recharge-modal-v2 .qy-recharge-balance-label,
html[data-theme="light"] .qy-recharge-modal-v2 .qy-recharge-trust,
html[data-theme="light"] .qy-gift-modal-v2 .qy-recharge-header p {
  color: #64748b !important;
}

html:not([data-theme="light"]) .qy-recharge-modal-v2 .qy-recharge-balance-value,
html:not([data-theme="light"]) .qy-recharge-modal-v2 .qy-recharge-summary strong {
  color: #22d3ee !important;
}

/* 金额预设 */
.qy-recharge-presets {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin-bottom: 18px !important;
}

.qy-recharge-preset {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 56px !important;
  padding: 12px 8px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: inherit !important;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s !important;
}

html:not([data-theme="light"]) .qy-recharge-preset {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #f1f5f9 !important;
}

html[data-theme="light"] .qy-recharge-preset {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

html:not([data-theme="light"]) .qy-recharge-preset.active {
  border-color: rgba(34, 211, 238, 0.55) !important;
  background: rgba(34, 211, 238, 0.12) !important;
  color: #22d3ee !important;
}

html[data-theme="light"] .qy-recharge-preset.active {
  border-color: #0ea5e9 !important;
  background: rgba(14, 165, 233, 0.1) !important;
  color: #0369a1 !important;
}

.qy-recharge-preset-amt {
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* 输入框 */
.qy-recharge-custom-wrap,
.qy-gift-input-wrap {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  overflow: hidden !important;
  margin-bottom: 14px !important;
}

html:not([data-theme="light"]) .qy-recharge-custom-wrap,
html:not([data-theme="light"]) .qy-gift-input-wrap {
  background: rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="light"] .qy-recharge-custom-wrap,
html[data-theme="light"] .qy-gift-input-wrap {
  background: #fff !important;
}

.qy-recharge-custom-input,
.qy-gift-input {
  flex: 1 !important;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
}

html:not([data-theme="light"]) .qy-recharge-custom-input,
html:not([data-theme="light"]) .qy-gift-input {
  color: #f1f5f9 !important;
}

html[data-theme="light"] .qy-recharge-custom-input,
html[data-theme="light"] .qy-gift-input {
  color: #0f172a !important;
}

html:not([data-theme="light"]) .qy-recharge-custom-prefix {
  color: #94a3b8 !important;
  border-right: 1px solid rgba(148, 163, 184, 0.15) !important;
  padding: 0 14px !important;
  font-weight: 700 !important;
}

/* 弹窗按钮 */
.qy-modal-overlay .qy-btn,
.qy-recharge-overlay .qy-btn,
.qy-gift-overlay .qy-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: inherit !important;
  border-radius: 12px !important;
  min-height: 44px !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

html:not([data-theme="light"]) .qy-modal-overlay .qy-btn.ghost,
html:not([data-theme="light"]) .qy-recharge-overlay .qy-btn.ghost,
html:not([data-theme="light"]) .qy-gift-overlay .qy-btn.ghost {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #e2e8f0 !important;
}

html[data-theme="light"] .qy-modal-overlay .qy-btn.ghost,
html[data-theme="light"] .qy-recharge-overlay .qy-btn.ghost,
html[data-theme="light"] .qy-gift-overlay .qy-btn.ghost {
  background: #fff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.qy-modal-overlay .qy-btn.gradient,
.qy-recharge-overlay .qy-btn.gradient,
.qy-gift-overlay .qy-btn.gradient {
  border: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%) !important;
}

.qy-recharge-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 12 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: rgba(226, 232, 240, 0.9) !important;
  font-size: 24px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
}

.qy-recharge-close:hover {
  background: rgba(248, 113, 113, 0.22) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #fecaca !important;
  transform: scale(1.06) !important;
  box-shadow: 0 6px 20px rgba(248, 113, 113, 0.22) !important;
}

.qy-recharge-close:active {
  transform: scale(0.96) !important;
}

html[data-theme="light"] .qy-recharge-close {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #64748b !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .qy-recharge-close:hover {
  background: #fff !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #ef4444 !important;
}

.qy-recharge-footer {
  display: flex !important;
  gap: 10px !important;
  padding-top: 4px !important;
}

.qy-gift-modal-v2,
.qy-recharge-modal-v2 {
  position: relative !important;
  width: 100% !important;
  max-width: 460px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.qy-recharge-modal-v3 {
  max-width: 540px !important;
  overflow: hidden !important;
  border-radius: 24px !important;
}

.qy-recharge-v3-submit {
  background: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 45%, #14b8a6 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow:
    0 10px 32px rgba(45, 212, 191, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

.qy-recharge-v3-submit:hover:not(:disabled) {
  filter: brightness(1.08) !important;
  box-shadow:
    0 14px 40px rgba(45, 212, 191, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset !important;
  transform: translateY(-1px) !important;
}
.qy-recharge-modal-v3 svg,
.qy-recharge-step-amount svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.qy-recharge-v3-pay-icon img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
}

.qy-recharge-v3-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

.qy-recharge-v3-card {
  min-height: 78px !important;
  border-radius: 16px !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-card {
  background: rgba(0, 0, 0, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.28) !important;
  color: #f8fafc !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(45, 212, 191, 0.32) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(45, 212, 191, 0.08) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-card.active {
  border-color: rgba(45, 212, 191, 0.55) !important;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.16) 0%, rgba(99, 102, 241, 0.08) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.22),
    0 12px 36px rgba(45, 212, 191, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 520px) {
  .qy-recharge-v3-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.qy-gift-step,
.qy-recharge-step {
  padding: 28px 24px 24px !important;
}

.qy-gift-preview {
  margin-bottom: 16px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: rgba(34, 211, 238, 0.08) !important;
  border: 1px solid rgba(34, 211, 238, 0.2) !important;
}

@media (max-width: 768px) {
  .qy-recharge-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .qy-recharge-overlay,
  .qy-gift-overlay:not(.qy-gift-overlay--premium) {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .qy-recharge-modal-v3,
  .qy-recharge-modal-v2 {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(92dvh, 100%) !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .qy-recharge-v3-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .qy-recharge-v3-actions {
    flex-direction: row !important;
    gap: 10px !important;
  }

  .qy-recharge-v3-reset {
    flex: 0 0 auto !important;
    min-width: 84px !important;
  }

  .qy-recharge-v3-submit {
    flex: 1 1 auto !important;
  }

  .qy-recharge-footer,
  .qy-gift-overlay .qy-recharge-footer {
    flex-direction: column !important;
  }
  .qy-recharge-footer .qy-btn,
  .qy-gift-overlay .qy-recharge-footer .qy-btn {
    width: 100% !important;
    min-height: 48px !important;
  }
}

/* ===== Premium QR Pay v3.64.36 — 纯黑高端支付确认 ===== */

.qy-pay-qr-premium,
.fw-pay-qr-modal-v7.qy-modal {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: min(92dvh, 100%) !important;
  overflow: hidden !important;
  max-width: 420px !important;
  width: 100% !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(45, 212, 191, 0.08), transparent 58%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(99, 102, 241, 0.06), transparent 50%),
    linear-gradient(168deg, #14161c 0%, #11151f 45%, #0a0a0a 100%) !important;
  box-shadow:
    0 40px 88px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    inset 0 -18px 36px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
  color: #f8fafc !important;
}

html[data-theme="light"] .qy-pay-qr-premium,
html[data-theme="light"] .fw-pay-qr-modal-v7.qy-modal {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(14, 165, 233, 0.12), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: rgba(14, 165, 233, 0.22) !important;
  color: #0f172a !important;
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.14) !important;
}

.qy-pay-qr-premium__aurora,
.qy-pay-qr-premium__aurora-b {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(48px);
}

.qy-pay-qr-premium__aurora {
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 180px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, transparent 70%);
  animation: qyPayAurora 6s ease-in-out infinite;
}

.qy-pay-qr-premium__aurora-b {
  bottom: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
  animation: qyPayAurora 8s ease-in-out infinite reverse;
}

@keyframes qyPayAurora {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.85; transform: translateX(-50%) scale(1.06); }
}

.qy-pay-qr-premium__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(226, 232, 240, 0.9);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.qy-pay-qr-premium__close:hover {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(248, 113, 113, 0.22);
}

.qy-pay-qr-premium__close:active {
  transform: scale(0.96);
}

.qy-pay-qr-premium__close:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.65);
  outline-offset: 2px;
}

html[data-theme="light"] .qy-pay-qr-premium__close {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.12);
  color: #64748b;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .qy-pay-qr-premium__close:hover {
  background: #fff;
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.qy-pay-qr-premium__header {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}

.qy-pay-qr-premium__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.qy-pay-qr-premium__brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 55%, #14b8a6 100%);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.32);
  overflow: hidden;
}

.qy-pay-qr-premium__brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qy-pay-qr-premium__brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] .qy-pay-qr-premium__brand-text strong {
  color: #0f172a;
}

.qy-pay-qr-premium__brand-text span {
  display: block;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.72);
  margin-top: 2px;
}

.qy-pay-qr-premium__badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.32);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.12);
}

.qy-pay-qr-premium__body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 24px 22px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qy-pay-qr-premium__amount-label {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
  margin-bottom: 8px;
}

.qy-pay-qr-premium__amount {
  display: block;
  width: 100%;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #5eead4 35%, #2dd4bf 70%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(45, 212, 191, 0.25));
  margin-bottom: 8px;
}

.qy-pay-qr-premium__channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.88);
  margin: 0 auto 22px;
}

.qy-pay-qr-premium__channel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

.qy-pay-qr-premium__qr-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 16px;
}

.qy-pay-qr-premium__qr-ring {
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.45), rgba(168, 85, 247, 0.4)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: qyPayRingPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes qyPayRingPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.qy-pay-qr-premium__qr-frame {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 48px rgba(45, 212, 191, 0.1);
}

.qy-pay-qr-premium__qr-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 260px;
  max-height: 260px;
  border-radius: 8px;
}

.qy-pay-qr-premium__scan-tip {
  font-size: 14px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.82);
  margin: 0 auto 16px;
  line-height: 1.55;
  max-width: 320px;
  text-align: center;
}

.qy-pay-qr-mobile-jump {
  display: flex;
  justify-content: center;
  margin: 0 auto 16px;
  width: 100%;
  max-width: 320px;
}

.qy-pay-qr-alipay-btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 14px;
  box-shadow:
    0 12px 28px rgba(45, 212, 191, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
  .qy-pay-qr-mobile-jump {
    max-width: 100%;
    padding: 0 4px;
  }

  .qy-pay-qr-alipay-btn {
    min-height: 50px;
    font-size: 16px;
  }
}

.qy-pay-qr-premium__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.78);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin: 0 auto 16px;
}

.qy-pay-qr-premium__status.is-live {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(45, 212, 191, 0.12);
}

.qy-pay-qr-premium__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.qy-pay-qr-premium__status.is-live .qy-pay-qr-premium__status-dot {
  background: #2dd4bf;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.85);
  animation: qyPayStatusPulse 1.2s ease-in-out infinite;
}

@keyframes qyPayStatusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.qy-pay-qr-premium__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.62);
}

.qy-pay-qr-premium__trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qy-pay-qr-premium__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 22px 22px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.qy-pay-qr-premium__actions .qy-btn {
  flex: 1 1 auto;
  min-width: 140px;
  min-height: 48px !important;
  border-radius: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
}

.qy-pay-qr-premium__actions .qy-btn.ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.qy-pay-qr-premium__actions .qy-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.qy-pay-qr-premium__actions .qy-btn.gradient {
  background: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 45%, #14b8a6 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow:
    0 10px 32px rgba(45, 212, 191, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

.qy-pay-qr-premium__actions .qy-btn.gradient:hover {
  filter: brightness(1.08) !important;
  box-shadow:
    0 14px 40px rgba(45, 212, 191, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset !important;
  transform: translateY(-1px);
}

html[data-theme="light"] .qy-pay-qr-premium__actions .qy-btn.ghost {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

.qy-recharge-modal-v2.qy-recharge-modal--qr {
  max-width: 420px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.qy-recharge-modal-v2.qy-recharge-modal--qr .qy-recharge-glow,
.qy-recharge-modal-v2.qy-recharge-modal--qr .qy-recharge-close {
  display: none;
}

.qy-recharge-step--qr {
  padding: 0 !important;
}

.fw-pay-qr-overlay,
.qy-modal-overlay.fw-pay-qr-overlay {
  z-index: 100001 !important;
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .fw-pay-qr-overlay,
  .qy-modal-overlay.fw-pay-qr-overlay,
  .fw-pay-qr-overlay.qy-pay-qr-overlay--center,
  .qy-modal-overlay.fw-pay-qr-overlay.qy-pay-qr-overlay--center {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    height: 100% !important;
    max-height: 100dvh !important;
  }

  .qy-pay-qr-premium,
  .fw-pay-qr-modal-v7.qy-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(94dvh, 100%) !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
  }

  .qy-pay-qr-premium__body {
    padding: 16px 14px 12px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .qy-pay-qr-premium__qr-frame img,
  .qy-pay-qr-canvas-host img,
  .qy-pay-qr-canvas-host canvas {
    width: auto !important;
    height: auto !important;
    max-width: min(260px, 68vmin) !important;
    max-height: min(260px, 68vmin) !important;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .qy-pay-qr-frame--canvas,
  .qy-pay-qr-canvas-host {
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
  }

  .qy-pay-qr-premium__qr-frame {
    padding: 10px !important;
    max-width: min(280px, 72vmin) !important;
    width: fit-content !important;
    margin: 0 auto;
  }

  .qy-pay-qr-premium__qr-wrap {
    max-width: 100%;
  }

  .qy-pay-qr-premium__amount {
    font-size: 32px !important;
  }

  .qy-recharge-close,
  .qy-pay-qr-premium__close {
    top: max(14px, env(safe-area-inset-top, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    font-size: 26px;
  }

  .qy-pay-qr-premium__actions {
    flex-direction: column;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .qy-pay-qr-premium__actions .qy-btn {
    width: 100% !important;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .fw-pay-qr-overlay,
  .qy-modal-overlay.fw-pay-qr-overlay {
    align-items: center !important;
    padding: 8px !important;
  }

  .qy-pay-qr-premium,
  .fw-pay-qr-modal-v7.qy-modal {
    max-height: min(96dvh, 100%) !important;
    border-radius: 16px !important;
    margin: 8px auto !important;
    width: min(100%, 520px) !important;
  }

  .qy-pay-qr-premium__qr-frame img,
  .qy-pay-qr-canvas-host img,
  .qy-pay-qr-canvas-host canvas {
    max-width: min(220px, 56vmin) !important;
    max-height: min(220px, 56vmin) !important;
  }

  .qy-pay-qr-premium__amount {
    font-size: 28px !important;
    margin-bottom: 4px !important;
  }

  .qy-pay-qr-premium__channel {
    margin-bottom: 10px !important;
  }
}

/* ===== Toast 全局顶层 — 高于所有 modal / 底部导航 ===== */
.qy-toast-box {
  position: fixed !important;
  top: max(16px, env(safe-area-inset-top, 0px)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  pointer-events: none !important;
  max-width: min(92vw, 480px) !important;
  width: max-content !important;
}

.qy-toast {
  pointer-events: auto !important;
  min-width: 200px !important;
  max-width: min(92vw, 480px) !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  word-break: break-word !important;
  opacity: 0 !important;
  transform: translateY(-12px) !important;
  transition: opacity 0.28s ease, transform 0.28s ease !important;
  backdrop-filter: blur(12px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.2) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
}

.qy-toast.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.qy-toast.hide {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  pointer-events: none !important;
}

.qy-toast-info,
.qy-toast:not(.qy-toast-success):not(.qy-toast-error):not(.qy-toast-warning) {
  background: rgba(22, 27, 38, 0.96) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
}

.qy-toast-success {
  background: rgba(16, 185, 129, 0.94) !important;
  color: #fff !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
}

.qy-toast-error {
  background: rgba(239, 68, 68, 0.94) !important;
  color: #fff !important;
  border: 1px solid rgba(248, 113, 113, 0.35) !important;
}

.qy-toast-warning {
  background: rgba(245, 158, 11, 0.96) !important;
  color: #1c1917 !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

html[data-theme="light"] .qy-toast-info,
html[data-theme="light"] .qy-toast:not(.qy-toast-success):not(.qy-toast-error):not(.qy-toast-warning) {
  background: rgba(255, 255, 255, 0.98) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15) !important;
}

/* ===== Gift Card Premium v3.64.34 — 全息发光礼盒 ===== */

.qy-gift-overlay--premium {
  position: fixed !important;
  inset: 0 !important;
  min-height: 100dvh !important;
  min-height: 100svh !important;
  padding:
    max(20px, env(safe-area-inset-top, 0px))
    16px
    max(20px, env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168, 85, 247, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(45, 212, 191, 0.1), transparent 50%),
    rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
}

.qy-gift-premium-shell {
  position: relative;
  width: min(100%, 380px);
  margin: auto;
  flex-shrink: 0;
  transform: translateY(calc(-36px + var(--qy-gift-center-nudge, 0px)));
}

.qy-gift-modal-premium {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 28px 32px;
  max-height: calc(100dvh - max(40px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 24px;
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(ellipse 120% 70% at 0% 50%, rgba(45, 212, 191, 0.12), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 20%, rgba(168, 85, 247, 0.1), transparent 50%),
    linear-gradient(168deg, rgba(28, 28, 32, 0.92) 0%, rgba(12, 12, 14, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    -24px 0 60px rgba(45, 212, 191, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #f1f5f9;
}

.qy-gift-premium-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.qy-gift-premium-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.qy-gift-premium-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

.qy-gift-premium-glow--left {
  left: -40px;
  top: 30%;
  width: 120px;
  height: 160px;
  background: rgba(45, 212, 191, 0.22);
  opacity: 0.85;
}

.qy-gift-premium-glow--right {
  right: -30px;
  top: 10%;
  width: 90px;
  height: 90px;
  background: rgba(192, 132, 252, 0.18);
  opacity: 0.7;
}

.qy-gift-premium-illus {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -72px;
  margin-bottom: 4px;
  height: 140px;
  z-index: 2;
}

.qy-gift-premium-illus-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 120px;
  transform: translate(-50%, -42%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(192, 132, 252, 0.45) 0%, rgba(168, 85, 247, 0.15) 45%, transparent 70%);
  filter: blur(12px);
  animation: qyGiftHaloPulse 3s ease-in-out infinite;
}

.qy-gift-premium-svg {
  position: relative;
  width: 168px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(168, 85, 247, 0.45));
  animation: qyGiftFloat 4s ease-in-out infinite;
}

@keyframes qyGiftHaloPulse {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -42%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -42%) scale(1.08); }
}

@keyframes qyGiftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.qy-gift-premium-body {
  position: relative;
  z-index: 1;
  text-align: center;
}

.qy-gift-premium-title {
  margin: 0 0 6px;
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 0 32px rgba(192, 132, 252, 0.35), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.qy-gift-premium-eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.qy-gift-premium-input-wrap {
  margin-bottom: 14px;
}

.qy-gift-premium-input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.qy-gift-premium-input::placeholder {
  color: rgba(226, 232, 240, 0.72);
  font-weight: 500;
}

.qy-gift-premium-input:focus {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.qy-gift-premium-preview {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  text-align: left;
}

.qy-gift-premium-preview-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #99f6e4;
}

.qy-gift-premium-preview-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(241, 245, 249, 0.92);
}

.qy-gift-premium-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.qy-gift-premium-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 15px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s, background 0.2s;
}

.qy-gift-premium-btn--check {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.qy-gift-premium-btn--check:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.qy-gift-premium-btn--redeem {
  border: none;
  background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 40%, #14b8a6 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  box-shadow:
    0 8px 28px rgba(45, 212, 191, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.qy-gift-premium-btn--redeem:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 12px 36px rgba(45, 212, 191, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.qy-gift-premium-btn:active:not(:disabled) {
  transform: translateY(0);
}

.qy-gift-premium-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.qy-gift-premium-fade-enter-active,
.qy-gift-premium-fade-leave-active {
  transition: opacity 0.28s ease;
}

.qy-gift-premium-fade-enter-active .qy-gift-premium-shell,
.qy-gift-premium-fade-leave-active .qy-gift-premium-shell {
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.28s ease;
}

.qy-gift-premium-fade-enter-from,
.qy-gift-premium-fade-leave-to {
  opacity: 0;
}

.qy-gift-premium-fade-enter-from .qy-gift-premium-shell,
.qy-gift-premium-fade-leave-to .qy-gift-premium-shell {
  transform: translateY(calc(-12px + var(--qy-gift-center-nudge, 0px))) scale(0.96);
  opacity: 0;
}

@media (max-width: 768px) {
  .qy-gift-overlay--premium {
    padding:
      max(16px, env(safe-area-inset-top, 0px))
      16px
      max(16px, env(safe-area-inset-bottom, 0px)) !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .qy-gift-premium-shell {
    width: min(100%, 360px);
    transform: translateY(calc(-32px + var(--qy-gift-center-nudge, 0px)));
  }

  .qy-gift-modal-premium {
    padding: 0 22px 28px;
    border-radius: 22px;
    max-height: calc(100dvh - max(32px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
  }

  .qy-gift-premium-illus {
    margin-top: -64px;
    height: 128px;
  }

  .qy-gift-premium-svg {
    width: 148px;
  }

  .qy-gift-premium-title {
    letter-spacing: 0.06em;
  }

  .qy-gift-premium-actions {
    flex-direction: row;
    gap: 10px;
  }

  .qy-gift-premium-btn {
    min-height: 48px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .qy-recharge-overlay,
  .qy-gift-overlay:not(.qy-gift-overlay--premium) {
    padding: 0 !important;
    align-items: flex-end !important;
  }
}

/* ===== Recharge Premium Dark v3.64.35 ===== */

html:not([data-theme="light"]) .qy-recharge-overlay {
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(16px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
}

html:not([data-theme="light"]) .qy-recharge-modal-v3 .qy-recharge-glow {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 68%) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-head h2 {
  color: #ffffff !important;
  text-shadow: 0 0 24px rgba(45, 212, 191, 0.12) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-balance {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.35) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -8px 20px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-balance__label {
  color: rgba(226, 232, 240, 0.72) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-balance__value {
  color: #ffffff !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-balance__side.is-after .qy-recharge-v3-balance__value {
  color: #5eead4 !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-balance__arrow {
  background: rgba(45, 212, 191, 0.1) !important;
  border-color: rgba(45, 212, 191, 0.28) !important;
  color: #5eead4 !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-selected {
  color: rgba(226, 232, 240, 0.78) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-selected strong {
  color: #5eead4 !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-field-label {
  color: rgba(226, 232, 240, 0.72) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-input {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-input:focus-within {
  border-color: rgba(45, 212, 191, 0.4) !important;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(45, 212, 191, 0.1) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-input__icon {
  color: rgba(226, 232, 240, 0.65) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-input__field {
  color: #ffffff !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-input__field::placeholder {
  color: rgba(148, 163, 184, 0.65) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-pay-tag {
  color: rgba(226, 232, 240, 0.75) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-reset {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  color: #e2e8f0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-reset:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(45, 212, 191, 0.35) !important;
  color: #ffffff !important;
}

html:not([data-theme="light"]) .qy-recharge-v3-card__amt {
  color: #ffffff !important;
}

/* ── 订阅导入弹窗：链接输入框 / 一键导入（深色·浅色双主题） ── */
html:not([data-theme="light"]) .qy-subscribe-modal {
  --qy-sub-input-bg: rgba(15, 23, 42, 0.72);
  --qy-sub-input-text: #e2e8f0;
}

html[data-theme="light"] .qy-subscribe-modal {
  --qy-sub-input-bg: #f1f5f9;
  --qy-sub-input-text: #0f172a;
}

.qy-subscribe-modal .sub-field > label,
.qy-subscribe-modal .sub-modal-title h2 {
  color: inherit !important;
}

html:not([data-theme="light"]) .qy-subscribe-modal .sub-field > label {
  color: #94a3b8 !important;
}

html[data-theme="light"] .qy-subscribe-modal .sub-field > label {
  color: #64748b !important;
}

.qy-subscribe-modal .sub-link-row input.sub-url-input,
.qy-subscribe-modal .sub-link-row input {
  flex: 1 1 200px !important;
  min-width: 0 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  word-break: break-all !important;
  background: var(--qy-sub-input-bg, #f1f5f9) !important;
  color: var(--qy-sub-input-text, #0f172a) !important;
  -webkit-text-fill-color: var(--qy-sub-input-text, #0f172a) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  opacity: 1 !important;
}

html:not([data-theme="light"]) .qy-subscribe-modal .sub-link-row input.sub-url-input,
html:not([data-theme="light"]) .qy-subscribe-modal .sub-link-row input {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

.qy-subscribe-modal .sub-link-row input::placeholder {
  color: rgba(148, 163, 184, 0.85) !important;
  -webkit-text-fill-color: rgba(148, 163, 184, 0.85) !important;
  opacity: 1 !important;
}

.qy-subscribe-modal .copy-btn:disabled,
.qy-subscribe-modal .import-client-btn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.qy-subscribe-modal a.import-client-btn {
  text-decoration: none !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

html:not([data-theme="light"]) .qy-subscribe-modal .sub-security-hint {
  color: #94a3b8 !important;
  background: rgba(99, 102, 241, 0.12) !important;
}

html:not([data-theme="light"]) .qy-subscribe-modal .sub-security-loading {
  color: #a5b4fc !important;
}

html:not([data-theme="light"]) .qy-subscribe-modal .qr-wrap {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html:not([data-theme="light"]) .qy-subscribe-modal .qr-tip {
  color: #94a3b8 !important;
}
