#cura-preloader {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* above the WhatsApp bubble (99999) and the admin bar */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  background: #1A2933;
  color: #FFFFFF;
  overflow: hidden;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.6, 0, 0.2, 1), visibility 0s linear 0.55s;
}

.cura-pl-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(115, 177, 221, 0.22) 0%, rgba(115, 177, 221, 0) 46%),
    radial-gradient(circle at 50% 120%, rgba(65, 99, 123, 0.5) 0%, rgba(65, 99, 123, 0) 55%);
  animation: cura-pl-breathe 3.2s ease-in-out infinite;
}

.cura-pl-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: min(210px, 52vw);
  aspect-ratio: 1;
}

.cura-pl-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(115, 177, 221, 0.16);
  border-top-color: #73B1DD;
  animation: cura-pl-spin 1.15s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.cura-pl-ring-b {
  inset: 13%;
  border-color: rgba(242, 142, 135, 0.14);
  border-bottom-color: #F28E87;
  animation-duration: 1.7s;
  animation-direction: reverse;
}

.cura-pl-logo {
  position: relative;
  width: 54%;
  height: auto;
  animation: cura-pl-pulse 1.9s ease-in-out infinite;
}

.cura-pl-wordmark {
  font: 700 44px/1 'Sofia Sans Semi Condensed', 'Sofia Sans', sans-serif;
  letter-spacing: 0.02em;
}

.cura-pl-bar {
  position: relative;
  width: min(180px, 46vw);
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.cura-pl-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, #73B1DD, #F28E87);
  animation: cura-pl-slide 1.25s ease-in-out infinite;
}

/* Leaving: fade + lift away */
html.cura-pl-leave #cura-preloader {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3%) scale(1.03);
  pointer-events: none;
}

html.cura-pl-leave .cura-pl-inner {
  transform: scale(0.92);
  transition: transform 0.45s ease;
}

@keyframes cura-pl-spin {
  to { transform: rotate(360deg); }
}

@keyframes cura-pl-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.07); opacity: 1; }
}

@keyframes cura-pl-breathe {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes cura-pl-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
  .cura-pl-ring,
  .cura-pl-logo,
  .cura-pl-glow,
  .cura-pl-bar i {
    animation: none;
  }
  .cura-pl-bar i {
    width: 100%;
  }
  #cura-preloader {
    transition-duration: 0.01ms;
  }
}
