/* 100cr — Business loading screen */

html.is-loading {
  overflow: hidden;
}

/* Loader is a full-screen overlay only — never hide page content underneath */

#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 45%, #f1f5f9 100%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  padding: 2rem;
  max-width: 360px;
  width: 100%;
}

.loader-logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
}

.loader-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  background: rgba(37, 99, 235, 0.12);
  animation: loader-pulse 2s ease-in-out infinite;
}

.loader-logo {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
  object-fit: contain;
}

.loader-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.loader-tagline {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 2rem;
  line-height: 1.5;
}

.loader-bar-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 9999px;
  animation: loader-progress 2.2s ease-in-out forwards;
}

.loader-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: loader-text 2.2s steps(4) forwards;
}

.loader-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.loader-features span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

.loader-features span::before {
  content: '✓ ';
  color: #2563eb;
  font-weight: 700;
}

@keyframes loader-progress {
  0% { width: 0%; }
  40% { width: 55%; }
  75% { width: 85%; }
  100% { width: 100%; }
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes loader-text {
  0% { content: ''; }
  25% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-bar-fill { animation-duration: 0.5s; }
  .loader-logo-wrap::before { animation: none; }
}
