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

/* --- اصلاح شده: همیشه وسط، چه loader باشه چه دایره‌ها --- */
.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: 15px;
}
/* ---------------------------------------------- */

.loading-center .loading-circle {
  width: 20px;
  height: 20px;
  position: absolute;
  border-radius: 50%;
  background-color: currentColor;
  left: 15%;
  transform-origin: 50%;
  animation: loading-circle 0.5s alternate infinite ease;
}

@keyframes loading-circle {
  0% {
    top: 60px;
    height: 5px;
    border-radius: 50px 50px 25px 25px;
    transform: scaleX(1.7);
  }
  40% {
    height: 20px;
    border-radius: 50%;
    transform: scaleX(1);
  }
  100% {
    top: 0%;
  }
}

.loading-center .loading-circle:nth-child(2) {
  left: 45%;
  animation-delay: 0.2s;
}
.loading-center .loading-circle:nth-child(3) {
  left: auto;
  right: 15%;
  animation-delay: 0.3s;
}

.loading-center .loading-shadow {
  width: 20px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 62px;
  transform-origin: 50%;
  z-index: -1;
  left: 15%;
  filter: blur(1px);
  animation: loading-shadow 0.5s alternate infinite ease;
}

@keyframes loading-shadow {
  0% {
    transform: scaleX(1.5);
  }
  40% {
    transform: scaleX(1);
    opacity: 0.7;
  }
  100% {
    transform: scaleX(0.2);
    opacity: 0.4;
  }
}

.loading-center .loading-shadow:nth-child(4) {
  left: 45%;
  animation-delay: 0.2s;
}
.loading-center .loading-shadow:nth-child(5) {
  left: auto;
  right: 15%;
  animation-delay: 0.3s;
}

/* متن زیر لودر – حالا فلکس آن را وسط نگه می‌دارد */
.loading-center span {
  font-size: 20px;
  color: currentColor;
}

/* لوگو در صورت استفاده */
.loading-center img {
  width: 100px;
  height: auto;
}

/* --- لودر جدید --- */
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #fff #fff transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after,
.loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #ff3d00 #ff3d00;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}
.loader::before {
  width: 32px;
  height: 32px;
  border-color: #fff #fff transparent transparent;
  animation: rotation 1.5s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
