/* ============================================================
   PAGE LOADER
============================================================ */

#ks-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#ks-loader.ks-loader-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Top progress bar */
.ks-loader-bar-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(26, 82, 204, 0.12);
}

.ks-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1a52cc, #00d4ff);
  border-radius: 0 4px 4px 0;
  animation: ks-bar-fill 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@keyframes ks-bar-fill {
  0%   { width: 0%; }
  30%  { width: 45%; }
  70%  { width: 78%; }
  90%  { width: 92%; }
  100% { width: 100%; }
}

/* Logo */
.ks-loader-logo {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0d1547;
  letter-spacing: -0.5px;
  font-family: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
  opacity: 1;
  visibility: visible;
}

.ks-loader-logo span {
  color: #1a52cc;
}

.ks-loader-logo small {
  font-size: 1rem;
  font-weight: 600;
  color: #00d4ff;
}

/* Tagline */
.ks-loader-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 8px;
  letter-spacing: 0.5px;
  font-family: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
  opacity: 1;
  visibility: visible;
}

/* Dots below tagline */
.ks-loader-dots {
  display: flex;
  gap: 6px;
  margin-top: 28px;
  opacity: 1;
  visibility: visible;
}

.ks-loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a52cc;
  animation: ks-dot-bounce 1.2s ease infinite;
}

.ks-loader-dots span:nth-child(2) { animation-delay: 0.2s; background: #4d7fff; }
.ks-loader-dots span:nth-child(3) { animation-delay: 0.4s; background: #00d4ff; }

@keyframes ks-dot-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40%           { transform: scale(1.2); opacity: 1; }
}
