/* Modal Base */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  transition: opacity 0.3s ease;
}
.modal.hidden { display: none; }

/* Backdrop */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

/* Modal Content */
.modal-content {
  position: relative;
  background: #0A0A0F;
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 400px;
  width: 90%;
  color: white;
  animation: fadeIn 0.3s ease forwards;
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.gold-text { color: #FFD700;  background:  none; border: none;}
.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Form */
.modal-form .form-group {
  margin-bottom: 15px;
}
.modal-form label { display: block; margin-bottom: 5px; color: rgba(255,255,255,0.8); }
.modal-form input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: white;
  transition: border 0.3s ease;
}
.modal-form input:focus { border-color: #FFD700; outline: none; }

/* Submit */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(to right, #FFD700, #FFA500);
  color: black;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}
.submit-btn:hover { background: linear-gradient(to right, #FFE55C, #FFD700); }

/* Toggle text */
.toggle-text { font-size: 0.938rem; color: rgba(255,255,255,0.6); margin-bottom: 15px; }
.toggle-text .gold-text { cursor: pointer; transition: color 0.3s ease; }
.toggle-text .gold-text:hover { color: #FFE55C; }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 15px 0;
}
.divider span {
  padding: 0 10px;
  background: #0A0A0F;
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
}
.divider::before {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* Age Text */
.age-text { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-align: center; }

/* Button to open modal */
.login-btn {
  padding: 12px 20px;
  background: linear-gradient(to right, #FFD700, #FFA500);
  border-radius: 12px;
  border: none;
  color: black;
  cursor: pointer;
  font-weight: 600;
}
.login-btn:hover { background: linear-gradient(to right, #FFE55C, #FFD700); }

/* Animations */
@keyframes fadeIn { from {opacity:0; transform: translateY(-20px);} to {opacity:1; transform: translateY(0);} }
