/* 余额与充值 */
.wallet-chip {
  border: 1px solid rgba(160, 130, 70, .45);
  background: rgba(212, 175, 55, .12);
  color: #d8c08a;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.wallet-chip:hover { background: rgba(212, 175, 55, .22); }
.wallet-chip.low { border-color: rgba(220, 90, 90, .6); color: #ff9a9a; }

.wallet-toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(28, 28, 28, .96);
  border: 1px solid #3a3a3a;
  color: #eee;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9999;
  max-width: 80vw;
}
.wallet-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.wallet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
}
.wallet-backdrop[hidden] { display: none; }
.wallet-modal {
  width: 360px;
  max-width: 94vw;
  max-height: 88vh;
  overflow: auto;
  background: #1c1c1e;
  border: 1px solid #34343a;
  border-radius: 16px;
  color: #eee;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65);
  font-size: 13px;
}
.wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #2b2b31;
  font-size: 14px;
}
.wallet-close {
  border: 0;
  background: transparent;
  color: #9a9aa2;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.wallet-close:hover { color: #fff; }
.wallet-body { padding: 16px; }
.wallet-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: #232327;
  border: 1px solid #33333a;
  border-radius: 12px;
  padding: 12px 14px;
}
.wallet-balance span { color: #9a9aa2; font-size: 12px; }
.wallet-balance strong { font-size: 24px; color: #f3d98a; }
.wallet-note { color: #9a9aa2; font-size: 12px; line-height: 1.6; margin: 10px 0; }
.wallet-qr {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  width: 220px;
  margin: 0 auto;
}
.wallet-qr img { display: block; width: 100%; border-radius: 8px; }
.wallet-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.wallet-package {
  flex: 1 1 30%;
  border: 1px solid #3b3b42;
  background: #232327;
  color: #ddd;
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 12px;
  cursor: pointer;
}
.wallet-package:hover { border-color: #7c6a3c; }
.wallet-package.active { border-color: #d4af37; background: rgba(212, 175, 55, .18); color: #f3d98a; }
.wallet-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9a9aa2;
  font-size: 12px;
  margin: 6px 0 12px;
}
.wallet-custom input {
  flex: 1;
  background: #232327;
  border: 1px solid #3b3b42;
  border-radius: 8px;
  color: #eee;
  padding: 7px 9px;
  font-size: 13px;
  font-family: inherit;
}
.wallet-submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: #d4af37;
  color: #1a1508;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.wallet-submit:disabled { opacity: .55; cursor: default; }
.wallet-history { margin-top: 14px; border-top: 1px solid #2b2b31; padding-top: 10px; }
.wallet-history-title { color: #9a9aa2; font-size: 12px; margin-bottom: 6px; }
.wallet-history ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wallet-history li { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #c8c8ce; }
.wallet-status { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #2b2b31; color: #b9b9c2; }
.wallet-status.approved { background: rgba(120, 200, 120, .16); color: #8fd08f; }
.wallet-status.pending { background: rgba(230, 190, 90, .16); color: #e6be5a; }
.wallet-status.rejected { background: rgba(220, 100, 100, .16); color: #e08a8a; }
