/* ========================================
   NGU Systems - Loading Screen
   ======================================== */
#ngu-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: #f5f7fa;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#ngu-loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#ngu-loading-screen .logo-img {
  width: 260px;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.9);
  animation: ngu-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
  filter: drop-shadow(0 2px 12px rgba(24, 205, 121, 0.15));
}
#ngu-loading-screen .logo-img.shimmer {
  animation: ngu-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards,
             ngu-shimmer-glow 1.8s ease-in-out 0.6s infinite;
}
#ngu-loading-screen .loader-dots {
  display: flex;
  gap: 8px;
  opacity: 0;
  animation: ngu-fade-in 0.4s ease 0.3s forwards;
}
#ngu-loading-screen .loader-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18cd79;
  animation: ngu-dot-pulse 0.9s ease-in-out infinite;
}
#ngu-loading-screen .loader-dots span:nth-child(2) { animation-delay: 0.15s; }
#ngu-loading-screen .loader-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes ngu-fade-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes ngu-shimmer-glow {
  0%, 100% { filter: drop-shadow(0 2px 12px rgba(24, 205, 121, 0.15)); }
  50% { filter: drop-shadow(0 4px 24px rgba(24, 205, 121, 0.35)) drop-shadow(0 0 8px rgba(14, 165, 233, 0.15)); }
}
@keyframes ngu-dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ========================================
   NGU Promo Popup - Slider Modal
   ======================================== */

/* Overlay */
.ngu-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  animation: ngu-overlay-in 0.25s ease forwards;
  -webkit-overflow-scrolling: touch;
}
@keyframes ngu-overlay-in {
  to { opacity: 1; }
}
.ngu-popup-overlay.closing {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Scroll lock */
body.ngu-popup-open {
  overflow: hidden;
  touch-action: none;
}

/* Card */
.ngu-popup-card {
  background: #fff;
  border-radius: 20px;
  max-width: 380px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.18);
  animation: ngu-popup-slide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: translateY(20px);
  opacity: 0;
  display: flex;
  flex-direction: column;
}
@keyframes ngu-popup-slide {
  to { transform: translateY(0); opacity: 1; }
}

/* Close button - 44px tap target */
.ngu-popup-close {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.ngu-popup-close:hover { background: rgba(0, 0, 0, 0.55); }

/* Slider container */
.ngu-popup-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  flex-shrink: 0;
}
.ngu-popup-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.ngu-popup-track.dragging {
  transition: none;
}
.ngu-popup-slide {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
}
.ngu-popup-slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.ngu-popup-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* Dots */
.ngu-popup-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.ngu-popup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.ngu-popup-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* Body / CTA */
.ngu-popup-body {
  padding: 14px 20px 18px;
  text-align: center;
  font-family: "Cairo", sans-serif;
  flex-shrink: 0;
}
.ngu-popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ngu-popup-cta:hover { background: #1ebe5d; transform: scale(1.02); }
.ngu-popup-cta:active { transform: scale(0.98); }
.ngu-popup-cta i { font-size: 1.2rem; }

.ngu-popup-micro {
  margin-top: 8px;
  font-size: 0.6875rem;
  color: #999;
  font-weight: 500;
}
