/* ============================================================
   08-loader.css — Loading overlay
   ============================================================ */

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 40%, #1b1230, #0d0b18 70%);
}

.loader-overlay.show { display: flex; animation: loaderIn 0.15s ease; }

.loader-overlay.fade-out { opacity: 0; transition: opacity 0.3s ease; }

@keyframes loaderIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loader-card {
  width: 100%;
  max-width: 420px;
  background: #f2f2f2;
  color: #14141f;
  border-radius: 28px;
  padding: 38px 26px 34px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.loader-spinner {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 5px solid rgba(0,0,0,0.05);
  border-top-color: #7b4fb0;
  border-right-color: #7b4fb0;
  border-bottom-color: #6a7be0;
  animation: loaderSpin 0.9s linear infinite;
}

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

.loader-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }

.loader-sub { font-size: 16px; color: #6b7280; line-height: 1.4; }

.loader-track {
  height: 8px;
  margin: 34px 12px 0;
  background: #fafafa;
  border-radius: 4px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #6ee7a8, #5bbcf5);
}

.loader-overlay.show .loader-fill { animation: loaderFill 1.1s ease-out forwards; }

@keyframes loaderFill {
  0% { width: 0; }
  60% { width: 70%; }
  100% { width: 100%; }
}
