#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 40% 40%, #0d1b3e 0%, #07101f 50%, #050810 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.7s ease;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-shapes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: system-ui, sans-serif;
  color: white;
}

.loader-monogram {
  font-size: clamp(52px, 12vw, 80px);
  font-weight: 700;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #5b8fff, #9b5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.loader-name {
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.92);
}

.loader-subtitle {
  font-size: clamp(10px, 1.5vw, 12px);
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
}

.loader-bar {
  position: relative;
  width: 260px;
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.loader-bar-fill {
  width: 100px;
  height: 100%;
  background: linear-gradient( 90deg, transparent, #4f8cff, #9b5cff, transparent);
  transform: translate3d(-160px,0,0);
  animation: shimmer 1.5s linear infinite;
  will-change: transform;
}

@keyframes shimmer {
  from {
        transform: translate3d(-160px,0,0);
    }

    to {
        transform: translate3d(320px,0,0);
    }
}

.loader-text {
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
  margin-top: 6px;
}

.loader-bubble {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
  pointer-events: none;
}

.b1 {
  width: 12px;
  height: 12px;
  background: rgba(120, 160, 255, 0.5);
  top: calc(50% + 30px);
  left: calc(55% + 50px);
  animation: bubble-float 4s ease-in-out infinite;
}

.b2 {
  width: 8px;
  height: 8px;
  background: rgba(140, 100, 255, 0.4);
  top: calc(50% + 60px);
  left: calc(30% - 50px);
  animation: bubble-float 5.5s ease-in-out infinite;
  animation-delay: -1.5s;
}

.b3 {
  width: 10px;
  height: 10px;
  background: rgba(80, 140, 255, 0.45);
  top: calc(50% - 80px);
  left: calc(80% - 50px);
  animation: bubble-float 5s ease-in-out infinite;
  animation-delay: -2.5s;
}

.b4 {
  width: 8px;
  height: 8px;
  background: rgba(100, 120, 255, 0.4);
  top: calc(50% + 80px);
  left: calc(68% - 30px);
  animation: bubble-float 6s ease-in-out infinite;
  animation-delay: -0.8s;
}

@keyframes bubble-float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.3;
  }

  50% {
    transform: translate3d(0, -56px, 0);
    opacity: 0.8;
  }
}
