/* Unified Loader Styles */
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  background: #000;
}

@keyframes loaderDotPulse {
  0%,
  80%,
  100% {
    transform: scale(0.55);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Loader overlay container */
.loader-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.loader-container.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 96px;
  min-height: 24px;
}

.loader-spinner .loader-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
  animation: loaderDotPulse 0.8s ease-in-out infinite;
}

.loader-spinner .loader-dot:nth-child(2) {
  animation-delay: 0.12s;
}

.loader-spinner .loader-dot:nth-child(3) {
  animation-delay: 0.24s;
}

.loader-spinner .loader-dot:nth-child(4) {
  animation-delay: 0.36s;
}

.loader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 60px));
  color: #fff;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
}
