.sp-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.sp-loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.sp-loading-content {
  text-align: center;
}

.sp-loading-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  animation: pulse 2s infinite ease-in-out;
}

.sp-loading-text {
  font-size: 18px;
  font-family: Arial, sans-serif;
  color: #333;
  letter-spacing: 1px;
}

/* FIX: Reserve space for 3 dots so text doesn’t shift */
#sp-dots {
  display: inline-block;
  width: 1.5em; /* space enough for 3 dots */
  text-align: left;
}


.loading-image {
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    box-shadow: 0 0 20px rgba(106, 17, 203, 0.7);
    margin: 0 auto;
    animation: pulse 2s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 40px;
}


.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.4) 0%, rgba(37, 117, 252, 0.2) 40%, transparent 70%);
    animation: glow 2s infinite alternate ease-in-out;
    z-index: -1;
}


@keyframes pulse {
    0% {
        transform: scale(0.9);
        /* box-shadow: 0 0 10px rgba(106, 17, 203, 0.7); */
    }
    50% {
        transform: scale(1.1);
        /* box-shadow: 0 0 30px rgba(106, 17, 203, 0.9), 0 0 40px rgba(37, 117, 252, 0.6); */
    }
    100% {
        transform: scale(0.9);
        /* box-shadow: 0 0 10px rgba(106, 17, 203, 0.7); */
    }
}

@keyframes glow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}
