/* 会员中心「积分与充值」——在线充值区（淘宝式下单：选金额 → 选支付方式 → 去支付 → 二维码弹窗）
 * 只作用于 member-credits.js 渲染出来的节点，命名统一 mc- 前缀，避免影响其它页面。
 * 依赖 index.html 的深色主题变量，同时给了具体色值兜底（变量缺失也不会白屏）。
 */

/* ---------- 步骤标题 ---------- */
.mc-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #e7d6ca;
}
.mc-step-title b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 130, 66, .16);
  color: #ff8242;
  font-size: 11px;
  font-weight: 800;
}
.mc-step-title span {
  color: #9c8b80;
  font-weight: 500;
}

/* ---------- 金额卡片（可选中） ---------- */
.mc-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.mc-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  color: inherit;
  font: inherit;
  transition: border-color .16s, background .16s, transform .16s;
}
.mc-pack:hover:not(:disabled) { border-color: rgba(255, 130, 66, .45); }
.mc-pack.is-on {
  border-color: #ff8242;
  background: rgba(255, 130, 66, .10);
  box-shadow: 0 0 0 1px rgba(255, 130, 66, .35) inset;
}
.mc-pack:disabled { opacity: .4; cursor: not-allowed; }
.mc-pack-credits {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: #fff4ec;
}
.mc-pack-credits i {
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: #c9ada0;
  margin-left: 3px;
}
.mc-pack-price {
  font-size: 15px;
  font-weight: 800;
  color: #ff8242;
}
.mc-pack-name {
  font-size: 11.5px;
  color: #a08d82;
  line-height: 1.5;
}
.mc-pack-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 2px 7px;
  border-radius: 0 11px 0 10px;
  background: #ff8242;
  color: #2a1206;
  font-size: 10px;
  font-weight: 800;
}
.mc-pack-tick {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
}
.mc-pack.is-on .mc-pack-tick {
  background: #ff8242;
  border-color: #ff8242;
  color: #2a1206;
}

/* ---------- 支付方式（单选行） ---------- */
.mc-pays {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .mc-pays { grid-template-columns: 1fr; }
}
.mc-pay {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  color: #fff4ec;
  font: inherit;
  transition: border-color .16s, background .16s;
}
.mc-pay:hover { border-color: rgba(255, 255, 255, .22); }
.mc-pay.is-on {
  border-color: rgba(255, 130, 66, .85);
  background: rgba(255, 130, 66, .08);
}
.mc-pay-logo {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.mc-pay-logo.wechat { background: linear-gradient(145deg, #2bdc7c, #07c160); }
.mc-pay-logo.alipay { background: linear-gradient(145deg, #4d9dff, #1677ff); }
.mc-pay-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-pay-text b { font-size: 14px; font-weight: 700; }
.mc-pay-text small { font-size: 11px; color: #a08d82; line-height: 1.4; }
.mc-pay-radio {
  margin-left: auto;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-pay.is-on .mc-pay-radio { border-color: #ff8242; }
.mc-pay.is-on .mc-pay-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff8242;
}
.mc-pay.is-off { opacity: .45; cursor: not-allowed; }

/* ---------- 应付金额 + 去支付 ---------- */
.mc-paybar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, .12);
}
.mc-paybar-sum { display: flex; flex-direction: column; gap: 3px; }
.mc-paybar-sum small { font-size: 11.5px; color: #a08d82; }
.mc-paybar-sum strong {
  font-size: 24px;
  font-weight: 800;
  color: #ff8242;
  letter-spacing: -.5px;
}
.mc-paybar-sum strong em {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: #c9ada0;
  margin-left: 6px;
  letter-spacing: 0;
}
.mc-go {
  min-width: 168px;
  padding: 13px 26px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff9a5c, #ff6b2c);
  color: #2a1206;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 107, 44, .28);
  transition: transform .12s, box-shadow .12s, opacity .12s;
}
.mc-go:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 107, 44, .36); }
.mc-go:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- 二维码弹窗 ---------- */
.mc-qr { text-align: center; }
.mc-qr-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #c9ada0;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.mc-qr-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mc-qr-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #fff4ec;
}
.mc-qr-brand .mc-pay-logo { width: 26px; height: 26px; font-size: 14px; border-radius: 7px; }
.mc-qr-scan { margin-top: 14px; font-size: 13px; color: #c9ada0; }
.mc-qr-amount {
  margin: 6px 0 2px;
  font-size: 40px;
  font-weight: 800;
  color: #ff8242;
  letter-spacing: -1px;
  line-height: 1.15;
}
.mc-qr-amount small { font-size: 16px; font-weight: 700; margin-right: 2px; }
.mc-qr-frame {
  width: min(224px, 62vw);
  margin: 16px auto 14px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.mc-qr-frame img { display: block; width: 100%; height: auto; border-radius: 6px; }
.mc-qr-rows {
  margin: 0 auto;
  max-width: 340px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  text-align: left;
  font-size: 12px;
  color: #c9ada0;
}
.mc-qr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}
.mc-qr-row + .mc-qr-row { border-top: 1px solid rgba(255, 255, 255, .05); }
.mc-qr-row b {
  color: #fff4ec;
  font-weight: 700;
  font-size: 12.5px;
  word-break: break-all;
  text-align: right;
}
.mc-qr-copy {
  flex: none;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  color: #c9ada0;
  font-size: 11px;
  cursor: pointer;
}
.mc-qr-copy:hover { color: #ff8242; border-color: rgba(255, 130, 66, .5); }
.mc-qr-tip { margin-top: 12px; font-size: 11.5px; color: #a08d82; line-height: 1.7; }
.mc-qr-tip b { color: #ffb37f; }
.mc-qr-state {
  margin-top: 10px;
  min-height: 16px;
  font-size: 12px;
  color: #8de0b0;
}
.mc-qr-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}
.mc-qr-actions .btn { min-width: 112px; }
