/* 9Pay 商户自助后台 — 在 admin.css / payadmin.css 基础上补充 */
.hero-balance {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 22px 26px;
  margin-bottom: 16px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(520px 240px at 92% -45%, rgba(231, 183, 92, .38), transparent 70%),
    linear-gradient(120deg, #0f2140 0%, #1b3f70 52%, #2c66b8 100%);
  box-shadow: 0 16px 34px rgba(16, 42, 82, .28);
}
.hero-balance .hb-main { min-width: 220px; }
.hero-balance .hb-eyebrow { font-size: 9.5px; letter-spacing: 2px; color: rgba(255, 228, 168, .78); font-weight: 700; }
.hero-balance .hb-num { margin-top: 6px; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.hero-balance .hb-num span { color: #fff; }
.hero-balance .hb-num small { margin-left: 6px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .62); letter-spacing: 0; }
.hero-balance .hb-sub { margin-top: 8px; font-size: 11.5px; color: rgba(255, 255, 255, .74); }
.hero-balance .hb-rates { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.hero-balance .hb-rates span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 10.5px; color: rgba(255, 255, 255, .8); }
.hero-balance .hb-rates b { color: #ffe0a0; font-weight: 700; }
.hero-balance .hb-side { margin-left: auto; display: grid; grid-template-columns: repeat(3, minmax(92px, auto)); gap: 22px; text-align: right; }
.hero-balance .hb-side span { display: block; font-size: 10px; color: rgba(255, 255, 255, .6); }
.hero-balance .hb-side b { display: block; margin-top: 3px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-balance .hb-side em { display: block; margin-top: 2px; font-style: normal; font-size: 9.5px; color: rgba(255, 255, 255, .55); }

.secret-row code { min-height: 16px; }

/* 转账成功回执 */
.receipt-wrap { display: flex; justify-content: center; padding: 12px 0 28px; }
.receipt-card {
  width: 100%;
  max-width: 560px;
  padding: 32px 30px 26px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(16, 42, 82, .08);
  box-shadow: 0 18px 44px rgba(16, 42, 82, .12);
  text-align: center;
}
.receipt-badge {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #2c66b8, #0f2140 78%);
  box-shadow: 0 10px 22px rgba(16, 42, 82, .28), inset 0 0 0 1px rgba(231, 183, 92, .45);
}
.receipt-badge .ic { width: 30px; height: 30px; color: #f2c96b; stroke-width: 2.4; }
.receipt-card h2 { margin: 0; font-size: 19px; font-weight: 800; color: #16233c; letter-spacing: .5px; }
.receipt-amount {
  margin-top: 10px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  color: #0f2140;
  font-variant-numeric: tabular-nums;
}
.receipt-amount small { margin-left: 7px; font-size: 13px; font-weight: 700; color: #8a97ab; letter-spacing: 0; }
.receipt-to { margin-top: 8px; font-size: 12px; color: #64748b; }
.receipt-list {
  margin: 22px 0 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(16, 42, 82, .16);
  text-align: left;
}
.receipt-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.receipt-actions .btn { min-width: 112px; }

/* 商户充值 */
.topup-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.topup-quick button {
  min-width: 0;
  padding: 7px 2px;
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 82, .14);
  background: #fff;
  color: #34465f;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.topup-quick button:hover { border-color: #2c66b8; color: #2c66b8; background: #f4f9ff; }

/* 收款信息弹窗（深色） */
.modal.topup-modal {
  width: min(420px, 100%);
  padding: 0;
  border: 1px solid rgba(231, 183, 92, .26);
  border-radius: 22px;
  background:
    radial-gradient(420px 240px at 88% -12%, rgba(231, 183, 92, .18), transparent 66%),
    radial-gradient(320px 220px at -10% 108%, rgba(44, 102, 184, .22), transparent 70%),
    linear-gradient(168deg, #111d33 0%, #0b1526 56%, #070e1b 100%);
  color: #e8eef9;
  box-shadow: 0 34px 90px rgba(3, 8, 18, .62);
}
.topup-modal::-webkit-scrollbar { width: 6px; }
.topup-modal::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 999px; }
.topup-modal::-webkit-scrollbar-track { background: transparent; }
.topup-modal .tm-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 22px 0; }
.topup-modal .tm-head h2 { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.topup-modal .tm-head p {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, .44);
}
.topup-modal .tm-close {
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .62);
  cursor: pointer;
  flex: 0 0 auto;
}
.topup-modal .tm-close:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.topup-modal .tm-close .ic { width: 15px; height: 15px; }
.topup-modal .badge { padding: 2px 7px; font-size: 9.5px; }
.topup-modal .tm-body { padding: 18px 22px 2px; }
.topup-modal .tm-amount {
  padding: 14px 12px 12px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(231, 183, 92, .24);
  background: linear-gradient(160deg, rgba(231, 183, 92, .16), rgba(231, 183, 92, .04));
}
.topup-modal .tm-amount > span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: rgba(255, 224, 166, .68); }
.topup-modal .tm-amount b {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffe0a0;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 22px rgba(231, 183, 92, .28);
}
.topup-modal .tm-amount b small { margin-left: 7px; font-size: 12px; font-weight: 700; letter-spacing: .6px; color: rgba(255, 255, 255, .52); }
.topup-modal .tm-amount em { display: block; margin-top: 7px; font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .55); }
.topup-modal .tm-rows { margin-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.topup-modal .tm-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 12px; }
.topup-modal .tm-row > span { color: rgba(255, 255, 255, .42); flex: 0 0 auto; }
.topup-modal .tm-row > b { min-width: 0; font-weight: 600; text-align: right; word-break: break-all; color: #eef3fc; }
.topup-modal .tm-row > b.gold { font-weight: 700; color: #f0c878; }
.topup-modal .tm-qr { display: flex; justify-content: center; margin-top: 16px; }
.topup-modal .topup-qr-img {
  width: 184px;
  height: 184px;
  object-fit: contain;
  padding: 9px;
  border-radius: 16px;
  background: #fff;
  border: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .48), 0 0 0 6px rgba(255, 255, 255, .04);
}
.topup-modal .topup-qr-empty {
  width: 184px;
  height: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
  text-align: center;
}
.topup-modal .topup-qr-empty .ic { width: 26px; height: 26px; color: rgba(255, 224, 160, .6); }
.topup-modal .topup-qr-empty b { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .72); }
.topup-modal .tm-addr { margin-top: 18px; }
.topup-modal .tm-addr-label { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: rgba(255, 224, 166, .62); }
.topup-modal .tm-addr-val {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
}
.topup-modal .tm-addr-val span {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .84);
  word-break: break-all;
}
.topup-modal .tm-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(231, 183, 92, .34);
  background: rgba(231, 183, 92, .14);
  color: #f2cf87;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.topup-modal .tm-copy:hover { background: rgba(231, 183, 92, .24); }
.topup-modal .tm-copy .ic { width: 12px; height: 12px; }
.topup-modal .tm-warn {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid rgba(240, 170, 60, .28);
  background: rgba(240, 170, 60, .12);
  color: #f0c078;
  font-size: 11px;
  line-height: 1.65;
}
.topup-modal .tm-warn .ic { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; stroke-width: 2.2; }
.topup-modal .tm-foot { display: flex; justify-content: center; gap: 10px; padding: 20px 22px 22px; }
.topup-modal .tm-btn { height: 38px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.topup-modal .tm-btn.ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .78); }
.topup-modal .tm-btn.ghost:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.topup-modal .tm-btn.danger { background: rgba(233, 88, 74, .14); border-color: rgba(233, 88, 74, .32); color: #ff9a8f; }
.topup-modal .tm-btn.danger:hover { background: rgba(233, 88, 74, .24); }

@media (max-width: 900px) {
  .receipt-card { padding: 26px 20px 22px; }
  .receipt-amount { font-size: 32px; }
  .hero-balance { padding: 18px 18px; }
  .hero-balance .hb-num { font-size: 32px; }
  .hero-balance .hb-side { margin-left: 0; width: 100%; grid-template-columns: repeat(3, 1fr); text-align: left; gap: 12px; }
  .topup-modal .tm-amount b { font-size: 30px; }
  .topup-modal .topup-qr-img, .topup-modal .topup-qr-empty { width: 164px; height: 164px; }
}
