/* RAALC — Welcome back / We're here to help */

.welcome-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 17, 41, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.welcome-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.welcome-popup-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(165deg, #002147 0%, #001229 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-align: center;
  animation: welcome-popup-in 0.5s ease-out;
}

@keyframes welcome-popup-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

[dir="rtl"] .welcome-popup-close {
  right: auto;
  left: 0.75rem;
}

.welcome-popup-close:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #D4AF37;
}

.welcome-popup-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.welcome-popup-brand .brand {
  color: #D4AF37;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.welcome-popup-brand .divider {
  width: 1px;
  height: 1.25rem;
  background: #D4AF37;
  opacity: 0.7;
}

.welcome-popup-brand .sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.welcome-popup-icon {
  font-size: 2rem;
  margin: 0.25rem 0 0.75rem;
  line-height: 1;
}

.welcome-popup-headline {
  color: #D4AF37;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.welcome-popup-section {
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

.welcome-popup-section.ar {
  direction: rtl;
  text-align: right;
  font-family: "Tajawal", "Cairo", system-ui, sans-serif;
}

.welcome-popup-section.en {
  direction: ltr;
  text-align: left;
  font-family: "Inter", system-ui, sans-serif;
}

.welcome-popup-section p {
  color: #e8eef5;
  font-size: clamp(0.82rem, 2.5vw, 0.9rem);
  line-height: 1.75;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.welcome-popup-section p strong {
  color: #fff;
  font-weight: 600;
}

.welcome-popup-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  color: #D4AF37;
  font-size: 0.45rem;
}

.welcome-popup-separator .line {
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(to right, transparent, #D4AF37, transparent);
}

.welcome-popup-tagline {
  color: #D4AF37;
  font-size: clamp(0.7rem, 2.2vw, 0.78rem);
  opacity: 0.9;
  margin: 0.75rem 0 1.25rem;
  letter-spacing: 0.02em;
}

.welcome-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.welcome-popup-cta {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #D4AF37 0%, #b8942e 100%);
  color: #001229;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.welcome-popup-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.welcome-popup-cta-line + .welcome-popup-cta-line {
  display: block;
  font-size: 0.82em;
  margin-top: 0.15em;
  font-weight: 600;
}

.welcome-popup-dismiss {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.welcome-popup-dismiss:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
}

.welcome-popup-dismiss:focus,
.welcome-popup-cta:focus,
.welcome-popup-close:focus {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}
