.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020c1b;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 234, 255, 0.3);
  border-top: 5px solid #00eaff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  color: #00eaff;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.8);
  letter-spacing: 1px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.loading-dots {
  display: inline-flex;
  margin-left: 5px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: #00eaff;
  border-radius: 50%;
  margin: 0 2px;
  animation: bounce 1.5s infinite ease-in-out;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}