.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.auth-modal-overlay[hidden] { display: none !important; }
.auth-modal {
  display: flex;
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  position: relative;
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  border: none;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.auth-modal-left {
  flex: 0 0 42%;
  background: linear-gradient(165deg, #E91E63 0%, #ad1457 55%, #880e4f 100%);
  color: #fff;
  padding: 32px 24px;
  display: none;
}
@media (min-width: 720px) {
  .auth-modal-left { display: flex; flex-direction: column; }
}
.auth-modal-logo { max-height: 40px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.auth-modal-offer { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 24px; }
.auth-modal-perks { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.auth-perk {
  background: rgba(0,0,0,.15);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}
.auth-perk span { color: #ffd54f; font-size: 16px; }
.auth-modal-right {
  flex: 1;
  padding: 28px 24px 24px;
  overflow-y: auto;
  min-width: 0;
  position: relative;
}

/* Panel visibility — fix blank login tab */
#signupPanel[hidden],
#loginPanel[hidden],
.auth-step[hidden] {
  display: none !important;
}
#signupPanel:not([hidden]),
#loginPanel:not([hidden]) {
  display: block !important;
  width: 100%;
}
#loginPanel:not([hidden]) {
  min-height: 200px;
}
#loginPanel .form-group {
  margin-bottom: 12px;
}
#loginPanel .auth-input {
  display: block;
  width: 100%;
}
.auth-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  border-radius: 8px;
}
.auth-tab.active { color: #E91E63; background: rgba(233,30,99,.08); }
.auth-modal-right h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; color: #1a1218; }
.auth-sub { font-size: 14px; color: #666; margin-bottom: 20px; }
.auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 12px;
}
.auth-email-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.auth-email-wrap .auth-input { border: none; margin: 0; padding: 12px 0; }
.auth-btn-primary {
  width: 100%;
  padding: 14px;
  background: #1a1218;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.auth-btn-primary:hover { background: #E91E63; }
.auth-link-btn { background: none; border: none; color: #E91E63; font-weight: 600; cursor: pointer; }
.auth-resend { font-size: 13px; color: #888; text-align: center; margin-top: 12px; }
.auth-legal { font-size: 11px; color: #999; margin-top: 16px; text-align: center; }
.auth-legal a { color: #E91E63; }
.auth-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #4CAF50;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.auth-login-modes { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-mode-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.auth-mode-btn.active { border-color: #E91E63; color: #E91E63; background: rgba(233,30,99,.06); }
.modal-otp-inputs, .modal-login-otp {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.modal-otp-inputs .otp-input, .modal-login-otp .otp-input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid #ddd;
  border-radius: 10px;
}
