.auth-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.auth-box {
  background: #fff;
  padding: 20px;
  width: 340px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-tabs {
  display: flex;
  justify-content: space-between;
}
.auth-tabs button {
  flex: 1;
  background: #eee;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-form input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.auth-form button {
  background: #3498db;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

/*.user-info-bar {*/
/*  position: fixed;*/
/*  bottom: 10px;*/
/*  left: 10px;*/
/*  background: rgba(255, 255, 255, 0.9);*/
/*  padding: 8px 12px;*/
/*  border-radius: 6px;*/
/*  font-size: 14px;*/
/*  box-shadow: 0 2px 6px rgba(0,0,0,0.2);*/
/*  z-index: 999;*/
/*}*/

.user-info-bar {
    position: fixed;
  top: 15px;
  right: 15px;

  display: inline-flex;   /* ⭐ 关键 */
  align-items: center;
  gap: 6px;

  max-height: max-content;
  max-width: max-content; /* 防止被拉伸 */

  white-space: nowrap;

  background: white;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9999;
}


#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;
}
