#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-content {
  text-align: center;
  max-width: 400px;
  padding: 24px;
}
.preloader-logo {
  margin-bottom: 32px;
}
.preloader-logo img {
  height: 48px;
}
.preloader-logo span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 8px;
}
.preloader-title {
  color: #f1f5f9;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.1em;
}
.preloader-step {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.preloader-step.active {
  opacity: 1;
  color: #e2e8f0;
}
.preloader-step .check {
  width: 20px;
  height: 20px;
  border: 2px solid #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.preloader-step.active .check {
  border-color: #14b8a6;
  background: rgba(20, 184, 166, 0.15);
}
.preloader-step.done .check {
  border-color: #14b8a6;
  background: #14b8a6;
  color: #fff;
}
.preloader-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}
.preloader-bar {
  margin-top: 32px;
  height: 3px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
  border-radius: 4px;
  transition: width 0.5s ease;
}
