.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-overlay.fade-out {
  animation: fadeOut 0.6s ease-out forwards;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.splash-logo {
  margin-bottom: 30px;
  animation: logoEntrance 1s ease-out;
}

@keyframes logoEntrance {
  from {
    transform: scale(0.5) rotate(-10deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.splash-icon {
  font-size: 80px;
  margin-bottom: 10px;
  animation: bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.splash-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  animation: slideDown 0.8s ease-out;
}

.splash-subtitle {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0.95;
  text-align: center;
  animation: slideDown 1s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.loading-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.loading-progress {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
}

.splash-decoration {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.decoration-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.decoration-2 {
  width: 150px;
  height: 150px;
  bottom: 15%;
  right: 10%;
  animation-delay: 2s;
}

.decoration-3 {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 5%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

@media (max-width: 768px) {
  .splash-title {
    font-size: 24px;
    padding: 0 20px;
  }

  .splash-subtitle {
    font-size: 14px;
    padding: 0 20px;
  }

  .decoration-1, .decoration-2, .decoration-3 {
    display: none;
  }
}