/* ===================== Page loading overlay ===================== */
#vn-page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg, #0b0f19);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#vn-page-loader.vn-loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.vn-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.vn-loader-inner img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  animation: vn-loader-pulse 1.1s ease-in-out infinite;
}
.vn-loader-ring {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold, #d4af37);
  animation: vn-loader-spin 0.8s linear infinite;
}
@keyframes vn-loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes vn-loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.94); opacity: 0.75; }
}

/* Fade the page content in smoothly once the loader clears */
body.vn-content-fade-in {
  animation: vn-content-fade 0.4s ease;
}
@keyframes vn-content-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
