/* ================================
   NEXTSTEP LOADING SCREEN
   ================================ */

#nextstep-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#nextstep-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 120px;
  height: auto;
  animation: loaderPulse 1.2s ease-in-out infinite;
  filter: brightness(0) invert(1);
}

.loader-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: loaderFadeIn 0.6s ease 0.2s both;
}

.loader-bar-track {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  animation: loaderFadeIn 0.6s ease 0.3s both;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: white;
  border-radius: 10px;
  animation: loaderBar 1s ease 0.3s forwards;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1);    opacity: 1;    }
  50%       { transform: scale(1.06); opacity: 0.85; }
}

@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes loaderBar {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}