#initial-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 9999;
  background: var(--loader-bg, #f8fafc);
  transition: opacity 0.5s;
  overflow: hidden;
}
[data-theme="dark"] #initial-loader {
  --loader-bg: #1b1c22;
}
#initial-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-ring {
  width: 48px;
  height: 48px;
  border: 3.5px solid rgba(79, 70, 229, 0.2);
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
[data-theme="dark"] .loader-ring {
  border: 3.5px solid rgba(129, 140, 248, 0.15);
  border-top-color: #818cf8;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loader-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #475569;
  animation: pulse 1.4s ease-in-out infinite;
  line-height: 1.4;
  padding-bottom: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}
[data-theme="dark"] .loader-text {
  color: #a1a1aa;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
