/* ========================================
   LOADING SCREEN
======================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-a), var(--bg-b));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.loading-logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(61,224,255,0.2), inset 0 -4px 8px rgba(0,0,0,0.25);
  animation: floatLogo 3s ease-in-out infinite;
  margin-bottom: 24px;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.loading-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 32px 0;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(61,224,255,0.3);
}

.loading-spinner {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.spinner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blu);
  box-shadow: 0 0 12px var(--accent-blu);
  animation: bounce 1.4s ease-in-out infinite;
}

.spinner-dot:nth-child(1) {
  animation-delay: 0s;
}

.spinner-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.spinner-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% { 
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% { 
    transform: scale(1.2);
    opacity: 1;
  }
}

.loading-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  opacity: 0.8;
}

/* Animated stars background */
.loading-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.loading-stars::before,
.loading-stars::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  box-shadow: 
    100px 200px 0 rgba(255,255,255,0.6),
    300px 400px 0 rgba(255,255,255,0.5),
    500px 100px 0 rgba(255,255,255,0.7),
    700px 300px 0 rgba(255,255,255,0.4),
    900px 500px 0 rgba(255,255,255,0.6),
    200px 600px 0 rgba(255,255,255,0.5),
    400px 50px 0 rgba(255,255,255,0.7),
    600px 450px 0 rgba(255,255,255,0.4),
    800px 150px 0 rgba(255,255,255,0.6),
    150px 350px 0 rgba(255,255,255,0.5),
    350px 550px 0 rgba(255,255,255,0.6),
    550px 250px 0 rgba(255,255,255,0.7),
    750px 50px 0 rgba(255,255,255,0.4),
    250px 450px 0 rgba(255,255,255,0.6),
    450px 150px 0 rgba(255,255,255,0.5),
    650px 350px 0 rgba(255,255,255,0.7),
    850px 550px 0 rgba(255,255,255,0.4);
  animation: twinkle 3s ease-in-out infinite;
}

.loading-stars::after {
  animation-delay: 1.5s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}