/* Algeria Job Summit – registration success modal */
.ajs-reg-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ajs-reg-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.ajs-reg-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: min(90vh, 560px);
  overflow-y: auto;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 25px 80px rgba(13, 62, 140, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ajs-reg-modal.is-open .ajs-reg-modal__dialog {
  transform: translateY(0) scale(1);
}

.ajs-reg-modal__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(13, 82, 196, 0.22) 0%,
    transparent 70%
  );
  pointer-events: none;
  border-radius: 50%;
}

.ajs-reg-modal__body {
  position: relative;
  padding: 36px 28px 28px;
  text-align: center;
}

.ajs-reg-modal__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d52c4, #1a3a6b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 12px 32px rgba(13, 82, 196, 0.35);
  animation: ajs-reg-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes ajs-reg-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ajs-reg-modal__title {
  font-family: var(--font-heading, "Poppins", sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.25;
}

.ajs-reg-modal__subtitle {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 20px;
}

.ajs-reg-modal__code {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: #0d52c4;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ajs-reg-modal__code-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 600;
}

.ajs-reg-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ajs-reg-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.ajs-reg-modal__btn:hover {
  transform: translateY(-1px);
}

.ajs-reg-modal__btn--primary {
  background: linear-gradient(135deg, #0d52c4, #21409a);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 82, 196, 0.35);
}

.ajs-reg-modal__btn--ghost {
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.ajs-reg-modal__btn--ghost:hover {
  background: #f8fafc;
  color: #334155;
}

.ajs-reg-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.ajs-reg-modal__close:hover {
  background: rgba(13, 82, 196, 0.12);
  color: #0d52c4;
}
