/* 会员充值页（apps/payment）。复用 user-center 风格 token。 */

/* ── 当前会员卡片 ─────────────────────────────────────── */
.bl-status-card {
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px;
  padding: 14px 16px; margin-bottom: 18px;
  background: var(--bg-2, #f8fafc);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
}
.bl-status-row { display: contents; }
.bl-status-label { color: var(--text-3); font-size: 13px; align-self: center; }
.bl-status-value { color: var(--text-1); font-size: 14px; align-self: center;
                   font-variant-numeric: tabular-nums; }
.bl-days-left { color: var(--text-3); font-size: 12.5px; margin-left: 4px; }

.bl-plan-badge {
  display: inline-flex; align-items: center; padding: 2px 10px;
  border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .5px;
}
.bl-plan-free { background: color-mix(in srgb, var(--text-3, #94a3b8) 18%, transparent);
                color: var(--text-2, #475569); }
.bl-plan-pro  { background: color-mix(in srgb, var(--brand, #2563eb) 18%, transparent);
                color: var(--brand, #1d4ed8); }
.bl-plan-expired {
  background: color-mix(in srgb, #ef4444 14%, transparent);
  color: #b91c1c;
}

/* ── 提示条 ──────────────────────────────────────────── */
.bl-tip {
  margin-bottom: 16px; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; line-height: 1.55;
}
.bl-tip-warn {
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 32%, transparent);
  color: #92400e;
}
.bl-tip-info {
  background: color-mix(in srgb, var(--brand, #2563eb) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand, #2563eb) 28%, transparent);
  color: var(--brand, #1d4ed8);
}
.bl-tip-expired {
  background: color-mix(in srgb, #ef4444 10%, transparent);
  border: 1px solid color-mix(in srgb, #ef4444 28%, transparent);
  color: #991b1b;
}
.bl-tip-expired strong { color: #b91c1c; }

/* ── 支付方式 ────────────────────────────────────────── */
.bl-payment-methods { margin-bottom: 18px; }
.bl-payment-method-label {
  margin-bottom: 8px; color: var(--text-2, #475569); font-size: 13px; font-weight: 600;
}
.bl-payment-method-list { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-payment-method {
  min-width: 108px; padding: 9px 16px;
  border: 1px solid var(--border, #e5e7eb); border-radius: 8px;
  background: var(--bg-1, #fff); color: var(--text-1, #0f172a);
  cursor: pointer; font: inherit; font-size: 13px;
}
.bl-payment-method.is-selected {
  border-color: var(--brand, #2563eb);
  background: color-mix(in srgb, var(--brand, #2563eb) 8%, transparent);
  color: var(--brand, #1d4ed8); font-weight: 600;
}
.bl-payment-methods-modal { margin: 14px 0 4px; }
.bl-payment-methods-modal .bl-payment-method-list { justify-content: center; }

/* ── 套餐卡片 ────────────────────────────────────────── */
.bl-plans {
  display: grid; gap: 14px; margin-bottom: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.bl-plan-card {
  position: relative; display: flex; flex-direction: column;
  align-items: stretch; gap: 8px; padding: 18px 16px;
  background: var(--bg-1, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; cursor: pointer;
  text-align: left; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bl-plan-card:hover:not(:disabled) {
  border-color: var(--brand, #2563eb);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .12);
  transform: translateY(-1px);
}
.bl-plan-card:disabled {
  cursor: not-allowed; opacity: .55;
}
.bl-plan-tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 2px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
}
.bl-plan-tag-pro { background: color-mix(in srgb, var(--brand, #2563eb) 18%, transparent);
                   color: var(--brand, #1d4ed8); }
.bl-plan-duration { font-size: 13.5px; color: var(--text-2, #475569); }

.bl-plan-card-discount { border-color: var(--brand, #2563eb); }
.bl-plan-selected {
  border-color: var(--brand, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #2563eb) 12%, transparent);
}
.bl-plan-discount-badge {
  position: absolute; top: -1px; right: -1px;
  background: var(--brand, #2563eb); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 0 12px 0 8px; letter-spacing: .2px;
}

.bl-plan-price-block {
  display: flex; flex-direction: column; gap: 4px;
  margin: 2px 0 4px;
}
.bl-plan-price {
  font-size: 22px; font-weight: 700; line-height: 1.2;
  color: var(--text-1, #0f172a);
  font-variant-numeric: tabular-nums;
}
.bl-plan-total {
  font-size: 12.5px; color: var(--text-2, #475569);
  font-variant-numeric: tabular-nums;
}
.bl-plan-original {
  margin-left: 6px;
  color: var(--text-3, #94a3b8);
  text-decoration: line-through;
}
.bl-plan-pay-note {
  font-size: 12px; color: var(--text-3, #94a3b8);
}
.bl-plan-cta {
  margin-top: auto; padding-top: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--brand, #2563eb);
}

/* ── 支付二维码 modal ───────────────────────────────── */
.bl-modal { position: fixed; inset: 0; z-index: 9999;
            display: flex; align-items: center; justify-content: center; }
.bl-modal[hidden] { display: none; }
.bl-modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.bl-modal-card {
  position: relative; width: min(440px, calc(100% - 32px));
  background: var(--bg-1, #fff); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .28);
  padding: 22px 24px;
}
.bl-modal-x {
  position: absolute; top: 10px; right: 12px;
  width: 28px; height: 28px; border: 0; background: transparent;
  color: var(--text-3); font-size: 22px; line-height: 1;
  cursor: pointer; border-radius: 6px;
}
.bl-modal-x:hover { background: var(--bg-2, #f1f5f9); color: var(--text-1); }
.bl-modal-title { margin: 0 0 4px; font-size: 16px; color: var(--text-1); }
.bl-modal-sub { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }

.bl-qr-box {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px;
  padding: 14px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px;
  background: var(--bg-2, #f8fafc);
}
.bl-qr {
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 8px;
  padding: 6px;
}
.bl-qr img, .bl-qr canvas { width: 188px !important; height: 188px !important; }
.bl-qr-loading {
  font-size: 12.5px; color: var(--text-3); text-align: center;
  padding: 12px;
}
.bl-qr-meta { display: flex; flex-direction: column; gap: 6px; }
.bl-qr-amount {
  font-size: 24px; font-weight: 700; color: #ef4444;
  font-variant-numeric: tabular-nums;
}
.bl-qr-no {
  font-size: 12.5px; color: var(--text-3);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  word-break: break-all;
}
.bl-qr-countdown { font-size: 12.5px; color: var(--text-2); }
.bl-qr-status {
  margin-top: 8px; padding: 6px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--brand, #2563eb) 12%, transparent);
  color: var(--brand, #1d4ed8);
  align-self: flex-start;
}
.bl-qr-status.success {
  background: color-mix(in srgb, #10b981 16%, transparent);
  color: #047857;
}
.bl-qr-status.error {
  background: color-mix(in srgb, #ef4444 14%, transparent);
  color: #b91c1c;
}

.bl-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 520px) {
  .bl-qr-box { grid-template-columns: 1fr; }
  .bl-qr { width: 100%; max-width: 240px; height: 240px; margin: 0 auto; }
  .bl-qr img, .bl-qr canvas { width: 220px !important; height: 220px !important; }
}

.bl-empty {
  text-align: center; padding: 32px 12px;
  border: 1px dashed var(--border, #e5e7eb); border-radius: 10px;
  color: var(--text-3);
}
.bl-empty-title { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.bl-empty-desc { font-size: 12.5px; }
