/* 充值弹窗 · 对齐设计稿（首页入口 / 积分不足） */
.pay-overlay {
  position: fixed; inset: 0; z-index: 12000;
  background: rgba(20, 18, 16, .55);
  backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.pay-overlay.show { display: flex; }
.pay-modal {
  background: #fffdf8;
  color: #1c1914;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 22px;
  width: min(470px, 100%);
  padding: 26px 28px;
  position: relative;
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 24px 64px rgba(20, 18, 16, .28);
  animation: pay-pop .22s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes pay-pop {
  from { transform: scale(.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
html.theme-dark .pay-modal,
html.studio-theme-dark .pay-modal,
body.theme-dark .pay-modal {
  background: #12110e;
  color: #f2f1ea;
  border-color: rgba(242, 227, 173, 0.28);
}
.pay-x {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: 1px solid rgba(28, 26, 23, 0.16);
  border-radius: 50%;
  background: #fff;
  color: #3a342c;
  font-size: 18px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(20, 18, 16, 0.12);
}
.pay-x:hover { background: #f4efe3; color: #14100a; }
.pay-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: .18em; color: #a8a29e; text-transform: uppercase;
}
.pay-title { font-size: 20px; font-weight: 700; margin-top: 4px; font-family: 'Fraunces', 'Noto Serif SC', serif; }
.pay-bal { font-size: 12px; color: #57534e; margin-top: 6px; }
html.theme-dark .pay-bal, html.studio-theme-dark .pay-bal { color: #57534e; }
.pay-bal b { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #d97706; font-size: 15px; }
.pay-warn {
  margin: 14px 0 4px; background: #fde8ec; border: 1px solid #e11d48; border-radius: 10px;
  padding: 10px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.6;
}
html.theme-dark .pay-warn, html.studio-theme-dark .pay-warn { background: #3a1c24; }
.pay-warn b { color: #e11d48; }
.pay-pkg-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pay-pkg {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid #dcd9d2; border-radius: 11px; padding: 12px 14px;
  cursor: pointer; width: 100%; background: transparent; color: inherit; text-align: left;
  font-family: inherit; transition: border-color .15s, background .15s;
}
html.theme-dark .pay-pkg, html.studio-theme-dark .pay-pkg { border-color: rgba(28, 26, 23, 0.14); background: #fff; color: #1c1914; }
.pay-pkg:hover, .pay-pkg.on { border-color: #c9a962; background: #fffdf4; }
html.theme-dark .pay-pkg:hover, html.theme-dark .pay-pkg.on,
html.studio-theme-dark .pay-pkg:hover, html.studio-theme-dark .pay-pkg.on { background: #fffdf4; }
.pay-pkg .p { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 17px; font-weight: 700; display: block; }
.pay-pkg .c { font-size: 11px; color: #57534e; }
.pay-pkg .c b { color: #07c160; }
.pay-pkg .r {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: #d97706;
  border: 1px solid #d97706; border-radius: 99px; padding: 4px 12px; font-weight: 600; white-space: nowrap;
}
.pay-pkg.on .r, .pay-pkg:hover .r { background: #d97706; color: #fff; }
.pay-rate {
  margin-top: 8px; font-size: 11px; color: #78716c;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.pay-rate b { color: #d97706; }
.pay-custom {
  margin-top: 12px; border: 1px dashed #dcd9d2; border-radius: 11px;
  padding: 12px 14px; transition: border-color .15s, background .15s;
}
html.theme-dark .pay-custom, html.studio-theme-dark .pay-custom {
  border-color: rgba(242, 227, 173, 0.22);
  background: #1a1814;
}
.pay-custom.on {
  border-style: solid; border-color: #c9a962; background: #fffdf4;
}
html.theme-dark .pay-custom.on, html.studio-theme-dark .pay-custom.on {
  background: #221e16;
}
.pay-custom-lab { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.pay-custom-row {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #e7e5e0; border-radius: 9px; padding: 0 12px;
}
html.theme-dark .pay-custom-row, html.studio-theme-dark .pay-custom-row {
  background: #14120e !important;
  border-color: rgba(242, 227, 173, 0.22) !important;
}
.pay-custom-prefix {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700; color: #d97706; font-size: 16px;
}
.pay-custom-input {
  flex: 1; border: 0; outline: 0; background: transparent; color: inherit;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 18px; font-weight: 700; padding: 10px 0; width: 100%;
}
.pay-custom-preview {
  margin-top: 8px; font-size: 12px; color: #57534e;
}
.pay-custom-preview b { color: #07c160; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.pay-pool {
  margin-top: 14px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid #e7e5e0; background: #faf8f3;
}
.pay-pool-lab { font-size: 12px; font-weight: 600; color: #57534e; margin-bottom: 8px; }
.pay-pool-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.pay-pool-seg button {
  border: 1px solid #e7e5e0; background: #fff; color: #57534e;
  border-radius: 999px; padding: 8px 10px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pay-pool-seg button.on {
  border-color: #c9a962; background: #fff8e8; color: #8a6d1f;
}
.pay-pool-seg button:disabled {
  opacity: .45; cursor: not-allowed;
}
.pay-pool-hint { margin-top: 8px; font-size: 11px; color: #a8a29e; line-height: 1.45; }
.pay-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pay-btn {
  width: 100%; padding: 11px 0; border-radius: 10px; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.pay-btn-primary { background: #e11d48; color: #fff; }
.pay-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.pay-btn-ghost { background: transparent; border: 1px solid #dcd9d2; color: #57534e; }
html.theme-dark .pay-btn-ghost, html.studio-theme-dark .pay-btn-ghost { border-color: #3a352f; color: #b7b0a9; }
.pay-foot { text-align: center; font-size: 11px; color: #a8a29e; margin-top: 14px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.pay-foot .wx { color: #07c160; font-weight: 600; }
.pay-amt { text-align: center; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 26px; font-weight: 700; margin-top: 8px; }
.pay-amt small { font-size: 12px; color: #a8a29e; }
.pay-hint { text-align: center; font-size: 12px; color: #a8a29e; line-height: 1.7; margin-top: 6px; }
.pay-qr-box {
  width: 190px; height: 190px; margin: 18px auto 12px;
  border: 1px solid #dcd9d2; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff;
}
.pay-qr-box img { width: 170px; height: 170px; image-rendering: pixelated; }
.pay-wx-badge { text-align: center; font-size: 12px; color: #07c160; font-weight: 600; }
.pay-status {
  text-align: center; font-size: 12px; color: #a8a29e; margin-top: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.pay-spin {
  display: inline-block; width: 10px; height: 10px; border: 2px solid #dcd9d2;
  border-top-color: #e11d48; border-radius: 50%; animation: pay-sp 1s linear infinite;
  vertical-align: -1px; margin-right: 6px;
}
@keyframes pay-sp { to { transform: rotate(360deg); } }

/* 首页积分卡充值入口 */
.wb-stat.credits {
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.wb-stat.credits:hover {
  border-color: #d97706;
  box-shadow: inset 0 0 0 1px #d97706;
}
.wb-stat.credits .rc-tag {
  position: absolute; top: 10px; right: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: .06em;
  border: 1px solid #d97706; color: #d97706;
  padding: 2px 8px; border-radius: 99px; font-weight: 600;
}
.wb-stat.credits:hover .rc-tag { background: #d97706; color: #fff; }
.wb-stat.credits .d b { color: #d97706; }
