/* ---- Notification Modal ---- */
.reg-notif-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 18, 43, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.reg-notif-modal-overlay[hidden] {
  display: none;
}

.reg-notif-modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.reg-notif-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: radial-gradient(120% 120% at 50% 50%, #2a364b 0%, #121e36 100%);
  border: 1px solid var(--alfa-grey-1);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: #f4f3ff;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.reg-notif-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(244, 243, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.reg-notif-modal-close:hover {
  color: #f4f3ff;
  background: rgba(244, 243, 255, 0.1);
}

.reg-notif-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.reg-notif-modal-header h2 {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.reg-notif-modal-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: rgba(244, 243, 255, 0.7);
  margin: 0;
}

.reg-notif-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reg-notif-modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reg-notif-modal-field label {
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-primary);
}

.reg-notif-modal-field input {
  border-radius: 12px;
  border: 2px solid var(--alfa-grey-2);
  background: radial-gradient(120% 120% at 50% 50%, #2a364b 0%, #121e36 100%);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

.reg-notif-modal-field input:focus {
  border-color: var(--neon-500, #16dffd);
  box-shadow: 0 0 8px rgba(22, 223, 253, 0.35);
}

.reg-notif-modal-field input:not(:placeholder-shown) {
  background: #121e36;
}

.reg-notif-modal-field input.is-invalid {
  border-color: #fed7d7;
  box-shadow: 0 0 8px rgba(254, 215, 215, 0.3);
}

.reg-notif-error {
  font-size: 11px;
  color: #fed7d7;
  min-height: 1.2em;
}

.reg-notif-modal-status {
  font-size: 13px;
  text-align: center;
  min-height: 1.4em;
  padding: 4px 0;
}

.reg-notif-modal-status.is-error {
  color: #fed7d7;
}

.reg-notif-modal-status.is-success {
  color: #68d391;
}

.reg-notif-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.reg-notif-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

.reg-notif-btn-primary {
  background: var(--neon-500, #16dffd);
  color: #0f1f38;
  border: 1px solid var(--neon-500, #16dffd);
}

.reg-notif-btn-primary:hover {
  background: transparent;
  color: var(--neon-500, #16dffd);
  box-shadow: 0 0 10px rgba(22, 223, 253, 0.4);
}

.reg-notif-btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.reg-notif-btn-secondary {
  background: transparent;
  color: rgba(244, 243, 255, 0.8);
  border: 1px solid var(--alfa-grey-2);
}

.reg-notif-btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ---- Success state ---- */
.reg-notif-modal-success {
  text-align: center;
  padding: 20px 0;
}

.reg-notif-modal-success[hidden] {
  display: none;
}

.reg-notif-success-icon {
  margin-bottom: 16px;
}

.reg-notif-success-title {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.reg-notif-success-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: rgba(244, 243, 255, 0.8);
  margin: 0 0 24px;
}

/* Spinner for loading state */
.reg-notif-modal-form.is-loading .reg-notif-btn-primary {
  pointer-events: none;
  opacity: 0.6;
}

.reg-notif-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(244, 243, 255, 0.2);
  border-top-color: var(--neon-500, #16dffd);
  border-radius: 50%;
  animation: reg-notif-spin 0.7s linear infinite;
  margin: 0 auto;
}

.reg-notif-modal-form.is-loading .reg-notif-spinner {
  display: inline-block;
}

@keyframes reg-notif-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .reg-notif-modal {
    padding: 24px 18px 22px;
    border-radius: 16px;
  }

  .reg-notif-modal-header h2 {
    font-size: 19px;
    line-height: 26px;
  }

  .reg-notif-modal-actions {
    flex-direction: column-reverse;
  }

  .reg-notif-btn {
    width: 100%;
  }
}