
#cruxLoader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #02080a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, transform .6s ease;
}
#cruxLoader.loader-hide {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}


.loader-logo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}
.loader-logo {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
}
.loader-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.loader-ring-track {
  fill: none;
  stroke: rgba(56,189,248,.1);
  stroke-width: 3;
}
.loader-ring-fill {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: ringDraw 1.4s cubic-bezier(.4,0,.2,1) forwards,
             ringPulse 2s ease-in-out 1.4s infinite;
  filter: drop-shadow(0 0 6px rgba(56,189,248,.6));
}
@keyframes ringDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes ringPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}


.loader-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: .1em;
  color: #f0f4f1;
  animation: fadeSlideUp .5s ease .4s both;
}
.loader-brand em {
  color: #38bdf8;
  font-style: normal;
  text-shadow: 0 0 30px rgba(56,189,248,.6);
}


.loader-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(56,189,248,.6);
  animation: fadeSlideUp .5s ease .6s both;
}


.loader-bar-wrap {
  width: 160px;
  height: 2px;
  background: rgba(56,189,248,.12);
  border-radius: 1px;
  overflow: hidden;
  animation: fadeSlideUp .5s ease .7s both;
}
.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 1px;
  animation: barFill 1.2s cubic-bezier(.4,0,.2,1) .2s forwards;
  box-shadow: 0 0 8px rgba(56,189,248,.5);
}
@keyframes barFill {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
