#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0f1a;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.ring { position: relative; width: 80px; height: 80px; }
.ring svg { width: 100%; height: 100%; animation: rotate 2s linear infinite; }
.ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.ring .arc {
  stroke: url(#grad); stroke-dasharray: 180 220;
  animation: dash 1.6s ease-in-out infinite;
}

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes dash {
  0%   { stroke-dashoffset: 0; }
  50%  { stroke-dashoffset: -120; }
  100% { stroke-dashoffset: -240; }
}

.dot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.dot::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: #00C896; box-shadow: 0 0 12px 4px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ transform:scale(1); opacity:1 } 50%{ transform:scale(1.4); opacity:.6 } }

.preloader-label {
  font-size: 1.35rem; font-weight: 700; letter-spacing: .22em;
  color: transparent;
  background: linear-gradient(90deg, #00C896, #a78bfa, #60a5fa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 2.4s linear infinite;
  white-space: nowrap;
  font-family: 'Unbounded', sans-serif;
}
.preloader-label2 { font-size: 1.0rem; letter-spacing: .10em; }
@keyframes shimmer { to { background-position: 200% center; } }

.bar-wrap { width: 160px; height: 3px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #00C896, #a78bfa);
  border-radius: 99px;
  animation: load 2.8s ease-in-out forwards;
}
@keyframes load { 0%{width:0%} 60%{width:85%} 80%{width:92%} 100%{width:100%} }