.atlas-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f23;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
html.atlas-loader-pending .atlas-loader-overlay,
.atlas-loader-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.atlas-loader-overlay .loading-container {
  position: relative;
  width: min(300px, 76vw);
  height: min(300px, 76vw);
}
.atlas-loader-overlay .spinner {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-top-color: #00ff88;
  border-radius: 50%;
  animation: atlas-loader-spin 1s linear infinite;
}
.atlas-loader-overlay .spinner:nth-of-type(2) {
  inset: 10%;
  border-top-color: #ff6b6b;
  animation-duration: 1.5s;
  animation-direction: reverse;
}
.atlas-loader-overlay .spinner:nth-of-type(3) {
  inset: 20%;
  border-top-color: #4ecdc4;
  animation-duration: 2s;
}
.atlas-loader-overlay .center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00ff88, #4ecdc4);
  transform: translate(-50%, -50%);
  animation: atlas-loader-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(0,255,136,.5);
}
.atlas-loader-overlay .dots,
.atlas-loader-overlay .particles {
  position: absolute;
  inset: 0;
}
.atlas-loader-overlay .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: atlas-loader-float 3s ease-in-out infinite;
}
.atlas-loader-overlay .dot:nth-child(2) { top:20%; right:20%; animation-delay:.5s; }
.atlas-loader-overlay .dot:nth-child(3) { bottom:20%; left:20%; animation-delay:1s; }
.atlas-loader-overlay .dot:nth-child(4) { bottom:20%; right:20%; animation-delay:1.5s; }
.atlas-loader-overlay .dot:nth-child(1) { top:20%; left:20%; }
.atlas-loader-overlay .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #00ff88;
  animation: atlas-loader-particle 4s ease-in-out infinite;
}
.atlas-loader-overlay .particle:nth-child(1) { top:10%; left:30%; }
.atlas-loader-overlay .particle:nth-child(2) { top:30%; right:10%; animation-delay:1s; }
.atlas-loader-overlay .particle:nth-child(3) { bottom:30%; left:10%; animation-delay:2s; }
.atlas-loader-overlay .particle:nth-child(4) { bottom:10%; right:30%; animation-delay:3s; }
.atlas-loader-overlay .glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,136,.1), transparent 70%);
  animation: atlas-loader-glow 2s ease-in-out infinite;
}
.atlas-loader-overlay .atlas-loader-label,
.atlas-loader-overlay .atlas-loader-subtitle {
  position: absolute;
  left: 50%;
  width: 280px;
  max-width: 90vw;
  text-align: center;
  font-family: Tahoma, sans-serif;
  transform: translateX(-50%);
}
.atlas-loader-overlay .atlas-loader-label {
  top: calc(100% + 24px);
  color: #f7fafb;
  font-weight: 700;
  font-size: 15px;
}
.atlas-loader-overlay .atlas-loader-subtitle {
  top: calc(100% + 54px);
  color: #aebec9;
  font-size: 12px;
}
@keyframes atlas-loader-spin { to { transform: rotate(360deg); } }
@keyframes atlas-loader-pulse {
  0%,100% { opacity:.65; transform:translate(-50%,-50%) scale(1); }
  50% { opacity:1; transform:translate(-50%,-50%) scale(1.1); }
}
@keyframes atlas-loader-float {
  0%,100% { transform:translateY(0); opacity:.7; }
  50% { transform:translateY(-20px); opacity:1; }
}
@keyframes atlas-loader-particle {
  0%,100% { transform:translateY(0) scale(1); opacity:.5; }
  50% { transform:translateY(-30px) scale(1.5); opacity:1; }
}
@keyframes atlas-loader-glow {
  0%,100% { opacity:.3; transform:scale(1); }
  50% { opacity:.6; transform:scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-loader-overlay * { animation-duration:3s !important; }
}
