/* loading.css */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  font-family: 'Poppins', Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.loading-container {
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 0 20px;
}

.loading-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.loading-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #ffa500 0%, #000 100%);
}

.logo {
  width: 120px;
  margin-bottom: 25px;
  filter: drop-shadow(0 4px 8px rgba(255, 165, 0, 0.2));
}

.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

.spinner-container {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 25px;
}

.spinner {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 165, 0, 0.2);
  border-top: 4px solid #ffa500;
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  position: absolute;
  top: 0;
  left: 0;
}

.spinner-inner {
  width: 70%;
  height: 70%;
  border: 3px solid transparent;
  border-bottom: 3px solid #000;
  border-radius: 50%;
  animation: spinReverse 1.5s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  position: absolute;
  top: 15%;
  left: 15%;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  margin: 20px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffa500, #000);
  border-radius: 3px;
  animation: progress 2s ease-in-out forwards;
}

.loading-text {
  margin: 15px 0;
  color: #333;
  font-weight: 600;
  font-size: 1.1em;
  letter-spacing: 0.5px;
}

.loading-dots {
  margin-top: 10px;
}

.loading-dots span {
  opacity: 0;
  color: #ffa500;
  font-weight: bold;
  animation: dot 1.5s infinite ease-in-out;
  font-size: 2em;
  line-height: 0;
}

.loading-dots span:nth-child(1) { animation-delay: 0.2s; }
.loading-dots span:nth-child(2) { animation-delay: 0.4s; }
.loading-dots span:nth-child(3) { animation-delay: 0.6s; }

.brand-message {
  margin-top: 30px;
  color: #666;
  font-size: 0.9em;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes dot {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}