:root {
  --primary-color: #e63946;
  --dark-color: #0f2027;
  --text-color: #ffffff;
  --secondary-text: #94a3b8;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.loading-container {
  text-align: center;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-logo {
  margin-bottom: 30px;
}

.loading-logo img {
  height: clamp(40px, 8vw, 60px);
  width: auto;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

.loading-text {
  font-size: 1.1rem;
  color: var(--secondary-text);
  font-weight: 500;
  letter-spacing: 1px;
}

.loading-progress {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 25px auto 0;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  background: var(--primary-color);
  width: 0%;
  animation: loading-fill 2s infinite ease-in-out;
}

@keyframes loading-fill {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 0%; }
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}

.loading-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: dot-pulse 1.5s infinite ease-in-out;
  opacity: 0.6;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
}