/* 充值弹窗 — 全新 nq-recharge，不依赖旧 recharge-dialog */
.nq-recharge-dialog.el-dialog {
  width: 560px !important;
  max-width: 94vw;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16) !important;
}

.nq-recharge-dialog .el-dialog__header,
.nq-recharge-dialog .el-dialog__footer {
  display: none;
}

.nq-recharge-dialog .el-dialog__body {
  padding: 0 !important;
}

.nq-recharge {
  --nq-r-accent: #165dff;
  --nq-r-accent-soft: #4d7dff;
  --nq-r-bg: #f7f9ff;
  font-size: 14px;
  color: #1f2329;
  background: #fff;
}

/* 顶栏 */
.nq-recharge__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 18px;
  background: linear-gradient(135deg, #165dff 0%, #4d7dff 55%, #6b9fff 100%);
  color: #fff;
}

.nq-recharge__header-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.nq-recharge__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.nq-recharge__icon svg {
  width: 22px;
  height: 22px;
}

.nq-recharge__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.nq-recharge__subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.88;
}

.nq-recharge__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nq-recharge__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* 金额区 */
.nq-recharge__hero {
  padding: 22px 22px 16px;
  background: var(--nq-r-bg);
  border-bottom: 1px solid #eef0f4;
}

.nq-recharge__label {
  display: block;
  font-size: 12px;
  color: #909399;
  margin-bottom: 10px;
}

.nq-recharge__amount-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e8ecf4;
  transition: border-color 0.2s;
}

.nq-recharge__amount-box:focus-within {
  border-color: var(--nq-r-accent);
}

.nq-recharge__currency {
  font-size: 22px;
  font-weight: 700;
  color: #262626;
  flex-shrink: 0;
}

.nq-recharge__amount-box .el-input-number {
  flex: 1;
  width: 100%;
}

.nq-recharge__amount-box .el-input__inner {
  border: 0 !important;
  background: transparent !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #262626 !important;
  padding: 0 !important;
  text-align: left !important;
}

.nq-recharge__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.nq-recharge__preset {
  min-width: 72px;
  padding: 8px 14px;
  border: 1px solid #e4e7ed;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #606266;
  cursor: pointer;
  transition: all 0.15s;
}

.nq-recharge__preset:hover {
  border-color: var(--nq-r-accent);
  color: var(--nq-r-accent);
}

.nq-recharge__preset.is-active {
  border-color: var(--nq-r-accent);
  background: rgba(22, 93, 255, 0.08);
  color: var(--nq-r-accent);
  font-weight: 600;
}

/* 赠送提示 */
.nq-recharge__gift {
  margin: 0 22px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #fff7e6 0%, #fff 100%);
  border: 1px solid #ffe7ba;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.nq-recharge__gift-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fa8c16;
  color: #fff;
  font-size: 14px;
}

.nq-recharge__gift-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.65;
  color: #ad6800;
}

.nq-recharge__gift-text p {
  margin: 0 0 4px;
}

.nq-recharge__gift-text p:last-child {
  margin-bottom: 0;
}

/* 活动区 */
.nq-recharge__promo {
  padding: 16px 22px 8px;
}

.nq-recharge__promo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.nq-recharge__promo-bar {
  width: 4px;
  height: 16px;
  background: var(--nq-r-accent);
}

.nq-recharge__promo-title {
  font-size: 14px;
  font-weight: 600;
  color: #262626;
}

.nq-recharge__promo-help {
  margin-left: auto;
  color: #8c8c8c;
  cursor: help;
}

.nq-recharge__campaign {
  margin-bottom: 16px;
}

.nq-recharge__campaign-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
}

.nq-recharge__campaign-time {
  font-size: 11px;
  font-weight: 400;
  color: #909399;
  padding: 2px 8px;
  background: #f5f7fa;
}

.nq-recharge__tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 520px) {
  .nq-recharge__tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nq-recharge__tier {
  position: relative;
  padding: 14px 10px 12px;
  border: 1px solid #eef0f4;
  background: #fafbfc;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  overflow: hidden;
}

.nq-recharge__tier:hover {
  border-color: #b3ccff;
  background: #f0f5ff;
}

.nq-recharge__tier.is-active {
  border-color: var(--nq-r-accent);
  background: rgba(22, 93, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--nq-r-accent);
}

.nq-recharge__tier-amt {
  font-size: 20px;
  font-weight: 700;
  color: #262626;
  line-height: 1.2;
  margin-bottom: 6px;
}

.nq-recharge__tier-amt small {
  font-size: 12px;
  font-weight: 500;
}

.nq-recharge__tier.is-active .nq-recharge__tier-amt {
  color: var(--nq-r-accent);
}

.nq-recharge__tier-bonus {
  font-size: 11px;
  line-height: 1.45;
  color: #909399;
}

.nq-recharge__tier.is-active .nq-recharge__tier-bonus {
  color: #597ef7;
}

.nq-recharge__tier-check {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-bottom: 22px solid var(--nq-r-accent);
  border-left: 22px solid transparent;
  opacity: 0;
}

.nq-recharge__tier.is-active .nq-recharge__tier-check {
  opacity: 1;
}

.nq-recharge__tier-check i {
  position: absolute;
  right: 2px;
  bottom: -20px;
  color: #fff;
  font-size: 10px;
}

/* 须知 */
.nq-recharge__notice {
  margin: 8px 22px 0;
  padding: 12px 14px;
  background: #f5f7fa;
  font-size: 12px;
  line-height: 1.65;
  color: #909399;
}

.nq-recharge__notice a {
  color: var(--nq-r-accent);
}

/* 底栏 */
.nq-recharge__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  margin-top: 16px;
  border-top: 1px solid #eef0f4;
  background: #fff;
}

.nq-recharge__sum-label {
  display: block;
  font-size: 12px;
  color: #909399;
  margin-bottom: 2px;
}

.nq-recharge__sum-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--nq-r-accent);
  font-variant-numeric: tabular-nums;
}

.nq-recharge__sum-val small {
  font-size: 14px;
  font-weight: 600;
}

.nq-recharge__submit {
  min-width: 140px;
  height: 44px !important;
  padding: 0 28px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  background: var(--nq-r-accent) !important;
  border-color: var(--nq-r-accent) !important;
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.35);
}

.nq-recharge__submit:hover {
  background: #0e52e6 !important;
  border-color: #0e52e6 !important;
}
