.loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999999;
}
.loader {
  z-index: 99999999;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44.8px;
  height: 44.8px;
  color: var(--first-color);
  position: relative;
  background: radial-gradient(11.2px, rgba(174, 107, 255, 0.5)  94%, #0000);
}

.loader:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(10.08px at bottom right, var(--first-color) 94%, currentColor)
      top left,
    radial-gradient(10.08px at bottom left, var(--first-color)  94%, currentColor) top right,
    radial-gradient(10.08px at top right, var(--first-color)  94%, currentColor) bottom left,
    radial-gradient(10.08px at top left, var(--first-color)  94%, currentColor) bottom right;
  background-size: 22.4px 22.4px;
  background-repeat: no-repeat;
  animation: loader 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}

@keyframes loader {
  33% {
    inset: -11.2px;
    transform: rotate(0deg);
  }

  66% {
    inset: -11.2px;
    transform: rotate(90deg);
  }

  100% {
    inset: 0;
    transform: rotate(90deg);
  }
}
