#initial-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.25), transparent 40%),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #111827 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

#initial-loader::before,
#initial-loader::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.4;
  transform: translate(-50%, -50%);
}

#initial-loader::before {
  top: 25%;
  left: 20%;
  background: #4338ca;
}

#initial-loader::after {
  top: 75%;
  left: 80%;
  background: #06b6d4;
}

#initial-loader.is-visible {
  display: flex;
}

#initial-loader.hide-permanently {
  display: none !important;
}

.loader-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(59, 130, 246, 0.05) 60%);
  filter: blur(20px);
  animation: orbPulse 8s ease-in-out infinite;
}

.loader-content {
  position: relative;
  text-align: center;
  color: #f8fafc;
  padding: 2.75rem 3rem;
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(192, 219, 255, 0.15);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(18px);
  width: min(420px, 90vw);
  z-index: 1;
}

.loader-logo-pill {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.05), rgba(248, 250, 252, 0.15));
  border: 1px solid rgba(248, 250, 252, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.loader-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 20px;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.45));
}

.loader-content h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.loader-tagline {
  margin: 0.75rem 0 1.5rem;
  font-size: 1rem;
  color: #cbd5f5;
}

.loader-progress {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.loader-progress-bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #38bdf8, #c084fc, #38bdf8);
  background-size: 200% 100%;
  animation: progressSweep 2.8s ease-in-out infinite;
}

.loader-subtext {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.75);
  letter-spacing: 0.01em;
}

@keyframes progressSweep {
  0% {
    transform: translateX(-100%);
    background-position: 0 0;
  }
  50% {
    transform: translateX(0%);
    background-position: 100% 0;
  }
  100% {
    transform: translateX(100%);
    background-position: 200% 0;
  }
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}
