/* ==========================================================================
   ELM-O-SANAT CINEMATIC ROYAL UNVEIL LOADER
   Architectural Gold Wordmark & Geometric Crest (Zero LOGO_ORG.png duplication)
   ========================================================================== */

#luxury-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #08172f 0%, #030812 58%, #010408 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.85s var(--ease-maybach), visibility 0.85s var(--ease-maybach);
  overflow: hidden;
  user-select: none;
  cursor: pointer;
}

#luxury-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

.loader-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 520px;
  padding: 24px;
}

.loader-crest-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-halo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(227, 193, 110, 0.32);
  animation: haloSpin 22s linear infinite;
}

.loader-halo::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-100);
  box-shadow: 0 0 10px var(--gold-300);
}

@keyframes haloSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loader-crest-svg {
  width: 78px;
  height: 78px;
  color: var(--gold-200);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.85));
  animation: crestUnveil 1.3s var(--ease-maybach) forwards;
}

@keyframes crestUnveil {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}

.loader-wordmark-img {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 22px rgba(212, 166, 68, 0.35));
  opacity: 0;
  animation: textFadeIn 0.9s var(--ease-maybach) 0.25s forwards;
}

.loader-brand-slogan {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--gold-200);
  letter-spacing: 0.6px;
  opacity: 0;
  animation: textFadeIn 0.9s var(--ease-maybach) 0.4s forwards;
}

@keyframes textFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader-hairline-wrap {
  width: 150px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.loader-hairline-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  animation: fillLine 1.9s var(--ease-maybach) forwards;
}

@keyframes fillLine {
  to { width: 100%; }
}
