/* =========================
   SAFE LOGO PRELOADER (DNNGo compatible)
   ساختار اصلی page-loaders حفظ شده
========================= */

.page-loaders {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  height: 100vh;
  width: 100vw;
  background-color: var(--accent-color);
}

.loading-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

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

  width: auto;
  height: auto;
  gap: 14px;
}

/* نسخه لوگودار */
.loading-center--logo {
  gap: 16px;
}

.logo-loader-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 24px rgba(0, 0, 0, 0.28);
  animation: logoPulse 1.8s ease-in-out infinite;
}

.logo-loader-wrap img {
  width: 62px;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.96;
}

/* هاله ملایم */
.logo-loader-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 48%,
    transparent 72%
  );
  z-index: -1;
  animation: glowPulse 2.2s ease-in-out infinite;
}

/* رینگ چرخان */
.logo-loader-ring {
  position: absolute;
  width: 235px;
  height: 235px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.logo-loader-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.95);
  border-right-color: rgba(255, 255, 255, 0.25);
  animation: ringSpin 1.1s linear infinite;
}

.logo-loader-ring::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  animation: ringSpinReverse 2.6s linear infinite;
}

/* متن */
.loading-center span {
  font-size: 15px;
  color: currentColor;
  opacity: 0.9;
  letter-spacing: 0.2px;
}

/* انیمیشن‌ها */
@keyframes ringSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* موبایل */
@media (max-width: 576px) {
  .logo-loader-wrap {
    width: 68px;
    height: 68px;
  }

  .logo-loader-ring {
    width: 160px;
    height: 160px;
  }

  .loading-center span {
    font-size: 13px;
  }

  .logo-loader-wrap img {
    width: 38px;
  }
}
