#recharge-modal .modal-content {
  width: 420px;
  padding: 20px;
}

.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-btn {
  padding: 6px 12px;
  cursor: pointer;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #fff;
}

.amount-btn.active {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

#custom-amount {
  width: 100px;
  padding: 6px;
}


#recharge-modal.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
}

#recharge-modal .modal-content {
  background: #fff;
  padding: 25px;
  width: 380px;
  border-radius: 10px;
  margin: 8% auto;
  animation: popup 0.26s ease;
}

@keyframes popup {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/*
支付成功的样式
*/

/* 遮罩层 */
.pay-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 弹窗主体 */
.pay-success-modal {
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  animation: popup 0.35s ease-out;
}

/* 成功图标 */
.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #52c41a;
  color: #fff;
  font-size: 42px;
  line-height: 72px;
  font-weight: bold;
}

/* 超时图标 */
.timeout-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #c41a1a;
  color: #fff;
  font-size: 42px;
  line-height: 72px;
  font-weight: bold;
}

/* 标题 */
.pay-success-modal h2 {
  margin: 8px 0;
  font-size: 22px;
  color: #333;
}

/* 描述 */
.pay-success-modal p {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
}

/* 弹出动画 */
@keyframes popup {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
