/* Fullscreen overlay */
#page-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0f0f18, #050508 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Wrapper */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Animated Ring */
.ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid #00f0ff;
  animation: spin 0.9s linear infinite;
  box-shadow:
    0 0 15px #00f0ff,
    0 0 40px rgba(0, 240, 255, 0.4);
}

/* Spin Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading text */
.loading-text {
  font-family: Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: #b0faff;
  opacity: 0.8;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Text pulse */
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Hide state */
#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}