/* ── Branded Loading Screen ──────────────────────────────── */
.index-loading-screen {
  position: fixed;
  inset: 0;
  background: #004d24;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.index-loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* eco pattern overlay */
.index-loading-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/eco-pattern.png');
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: 0.07;
}

/* subtle radial glow */
.index-loading-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(0,168,81,.18) 0%, transparent 70%);
}

.index-loading-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* logo */
.index-loading-logo {
  width: 200px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
  animation: ilPulse 2s ease infinite;
}

@keyframes ilPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .82; transform: scale(.97); }
}

/* progress bar */
.index-loading-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 3px;
  overflow: hidden;
}

.index-loading-bar::after {
  content: '';
  display: block;
  width: 55%;
  height: 100%;
  background: #4dc98a;
  border-radius: 3px;
  animation: ilSlide 1.3s ease infinite;
}

@keyframes ilSlide {
  0%   { margin-left: -55%; }
  100% { margin-left: 110%; }
}

/* spinner (keep for compatibility) */
.index-loading-spinner {
  display: none;
}

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

/* text */
.index-loading-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
