/* Page transition loader (bird mascot) — extracted from brand animation spec */

.vnx-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}

.vnx-loader-overlay.vnx-loader-overlay--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.vnx-loader-overlay:not(.vnx-loader-overlay--hidden) {
  pointer-events: auto;
  animation: vnxFadeIn 0.25s ease;
}

.vnx-loader {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vnx-bird {
  width: 160px;
  position: relative;
  z-index: 3;
  user-select: none;
  pointer-events: none;
  animation: vnxFloat 2s ease-in-out infinite;
}

.vnx-spinner {
  position: absolute;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 4px solid rgba(0, 0, 0, 0.08);
  border-top-color: #2b7fff;
  animation: vnxSpin 1s linear infinite;
  z-index: 5;
}

.vnx-shadow {
  position: absolute;
  bottom: 38px;
  width: 95px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  filter: blur(8px);
  z-index: 1;
  animation: vnxShadow 2s ease-in-out infinite;
}

.vnx-loading-text {
  position: absolute;
  margin-top: 15px;
  bottom: -8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #4b5563;
  animation: vnxTextPulse 2s ease-in-out infinite;
}

@keyframes vnxFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes vnxShadow {
  0% {
    transform: scale(1);
    opacity: 0.18;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.18;
  }
}

@keyframes vnxSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes vnxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes vnxTextPulse {
  0% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.65;
  }
}
