/* ==============================================================================
   JB SOLUTION TRAVELING S.A. - Executive Dark Transition & Loading Screen
   Luxury Dark Backdrop, Glowing Dual-Ring Spinner & Seamless Fading Engine
   ============================================================================== */

/* 1. Fullscreen Dark Luxury Transition Overlay */
#executivePageLoader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, #0c2647 0%, #061426 65%, #020812 100%);
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  pointer-events: all;
  backdrop-filter: blur(10px);
}

#executivePageLoader.loader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2. Luxury Spinner Container & Glowing Ambient Ring */
.executive-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: loaderFloat 3s ease-in-out infinite;
}

.executive-spinner-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer Spinning Glow Ring */
.executive-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: #00B4D8;
  border-right-color: #FF2A85;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.4), inset 0 0 15px rgba(255, 42, 133, 0.2);
  animation: spinLuxury 0.95s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

/* Center Brand Icon / Airplane Pulse */
.executive-spinner-core {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.18) 0%, rgba(255, 42, 133, 0.18) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.15rem;
  box-shadow: 0 0 16px rgba(0, 180, 216, 0.35);
  animation: corePulse 1.8s ease-in-out infinite;
}

.executive-spinner-core i {
  color: #00B4D8;
  filter: drop-shadow(0 0 6px rgba(0, 180, 216, 0.8));
  transform: rotate(-35deg);
}

/* 3. Luxury Typography Under Loader */
.executive-loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.executive-loader-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #FFFFFF;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFFFFF 0%, #E0F2FE 50%, #FF70AD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.executive-loader-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 4. Ultra-Luxury Top Progress Bar */
#executiveTopBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, #00B4D8 0%, #FF2A85 50%, #00B4D8 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 14px rgba(0, 180, 216, 0.9), 0 0 6px rgba(255, 42, 133, 0.9);
  z-index: 999999999;
  pointer-events: none;
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  animation: shimmerProgress 1.8s linear infinite;
}

#executiveTopBar.active {
  opacity: 1;
}

#executiveTopBar.done {
  width: 100% !important;
  opacity: 0;
  transition: width 0.2s ease-out, opacity 0.3s ease-out 0.15s;
}

/* 5. Page Reveal & Fade Animations (Pure Opacity - Preserves position:fixed on body) */
body {
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-revealing {
  animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-leaving {
  opacity: 0.25 !important;
}

@keyframes pageFadeIn {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}

@keyframes spinLuxury {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 22px rgba(255, 42, 133, 0.5); }
}

@keyframes loaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes shimmerProgress {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
