/* ==========================================================================
   PREMIUM ENTERPRISE BRAND PRELOADER (YENIBIRD)
   ========================================================================== */
#yenibird-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
}

#yenibird-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  pointer-events: none;
}

/* Subtle background luxury glow */
#yenibird-preloader::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 49, 153, 0.035) 0%, rgba(24, 98, 237, 0.01) 50%, transparent 70%);
  pointer-events: none;
}

/* Main Brand Container */
.yenibird-loader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo Stage with Shimmer/Light Sweep */
.yenibird-loader-logo-container {
  position: relative;
  padding: 8px 16px;
  display: inline-block;
  overflow: hidden;
}

.yenibird-loader-logo-container img {
  height: 48px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  animation: yenibirdLogoBreathe 2.4s ease-in-out infinite;
}

/* Elegant light sheen reflection sweeping across the logo */
.yenibird-loader-logo-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  animation: yenibirdSheen 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

/* Sleek Minimal Progress Line */
.yenibird-loader-track {
  width: 140px;
  height: 2.5px;
  background-color: #f1f5f9;
  border-radius: 4px;
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}

.yenibird-loader-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #0b2575 0%, #1e50dc 50%, #38bdf8 100%);
  border-radius: 4px;
  animation: yenibirdProgress 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Optional minimal status text */
.yenibird-loader-caption {
  margin-top: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94a3b8;
  animation: yenibirdFadeText 2.4s ease-in-out infinite;
}

/* Keyframes */
@keyframes yenibirdLogoBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.025);
    opacity: 1;
  }
}

@keyframes yenibirdSheen {
  0% {
    left: -120%;
  }
  50%, 100% {
    left: 160%;
  }
}

@keyframes yenibirdProgress {
  0% {
    left: -40%;
    width: 25%;
  }
  50% {
    left: 30%;
    width: 60%;
  }
  100% {
    left: 100%;
    width: 25%;
  }
}

@keyframes yenibirdFadeText {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
