.br-loader {
  --br-loader-accent: #8b2fc9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  width: 100%;
  box-sizing: border-box;
  animation: br-loader-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.br-loader--full {
  position: fixed;
  inset: 0;
  z-index: 99999;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(50% 40% at 50% 45%, rgba(139, 47, 201, 0.32), transparent 68%),
    radial-gradient(80% 60% at 50% 100%, rgba(139, 47, 201, 0.18), transparent 55%),
    linear-gradient(175deg, #140a28 0%, #0b0614 55%, #07040f 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.br-loader--full.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.br-loader__stage {
  --br-loader-size: 56px;
  position: relative;
  width: calc(var(--br-loader-size) + 2.75rem);
  height: calc(var(--br-loader-size) + 2.75rem);
  display: grid;
  place-items: center;
}

.br-loader__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
}

.br-loader__orbit--a {
  border-top-color: rgba(210, 131, 255, 0.9);
  border-right-color: rgba(139, 47, 201, 0.25);
  animation: br-loader-spin 1.35s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.br-loader__orbit--b {
  inset: 0.35rem;
  border-bottom-color: rgba(210, 131, 255, 0.65);
  border-left-color: rgba(139, 47, 201, 0.15);
  opacity: 0.7;
  animation: br-loader-spin 2.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite reverse;
}

.br-loader__pulse {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 47, 201, 0.28) 0%, transparent 72%);
  filter: blur(2px);
  animation: br-loader-breathe 2.4s ease-in-out infinite;
  pointer-events: none;
}

.br-loader__mark {
  position: relative;
  z-index: 1;
  width: var(--br-loader-size);
  height: var(--br-loader-size);
  display: grid;
  place-items: center;
  border-radius: 1.15rem;
  background: #0b0614;
  box-shadow:
    0 0 0 1px rgba(139, 47, 201, 0.22),
    0 14px 36px -16px rgba(139, 47, 201, 0.55);
  overflow: hidden;
  animation: br-loader-mark 2.4s ease-in-out infinite;
}

.br-loader__mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.br-loader__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.br-loader__brand {
  margin: 0;
  font-family: "Aeonik-Medium", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.br-loader__brand span {
  color: var(--br-loader-accent);
}

.br-loader__label {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.01em;
  animation: br-loader-label 1.8s ease-in-out infinite;
}

@keyframes br-loader-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes br-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes br-loader-breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes br-loader-mark {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes br-loader-label {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .br-loader,
  .br-loader__orbit--a,
  .br-loader__orbit--b,
  .br-loader__pulse,
  .br-loader__mark,
  .br-loader__label {
    animation: none !important;
  }

  .br-loader {
    opacity: 1;
  }

  .br-loader__orbit--a,
  .br-loader__orbit--b {
    border-color: rgba(139, 47, 201, 0.35);
  }
}

/* Disable legacy Preloader Plus plugin overlay if still active */
.preloader-plus {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
