/* 🌟 Unified Preloader Meta-Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #470202, #020d24) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 99999;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

.preloader-content {
  text-align: center;
  animation: preloaderFadeIn 1s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#preloader .logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 40px;
}

#preloader .logo-container img {
  width: 350px;
  max-width: 85%;
  height: auto;
  animation: preloaderBounce 1.5s infinite ease-in-out;
}

#preloader .loading-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: sans-serif;
}

#preloader .dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

#preloader .dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ff6347;
  border-radius: 50%;
  animation: preloaderBlink 1.4s infinite both;
}

#preloader .progress-bar {
  width: 300px;
  max-width: 80%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  margin-top: 20px;
  overflow: hidden;
}

#preloader .progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff6347, #ff4500);
  border-radius: 10px;
  animation: preloaderProgress 2.5s forwards;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Animations */
@keyframes preloaderBlink {

  0%,
  80%,
  100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}

@keyframes preloaderProgress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

@keyframes preloaderBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes preloaderFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  #preloader .logo-container img {
    width: 250px;
  }

  #preloader .loading-text {
    font-size: 1.2rem;
  }
}