#loader {
  position: fixed;
  inset: 0;
  background: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-circle {
  width: 180px;
  height: 180px;
  border: 6px solid #ddd;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: spin 1.2s linear infinite;
}

.img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: counter-spin 1.2s linear infinite;
}

.img-wrap img {
  width: 90px;
  height: auto;
  animation: pulse 1.4s ease-in-out infinite;
  display: block;
}

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

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
