#app-splash,
#app-splash *,
#app-splash *::before,
#app-splash *::after,
.ns,
.ns *,
.ns *::before,
.ns *::after {
  box-sizing: border-box;
}

#app-splash,
.ns {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0b1220;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  z-index: 9999;
}

#app-splash {
  gap: 20px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#app-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a2540, #0f1d35);
  border: 1.5px solid rgba(107, 123, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #6b7bff;
  letter-spacing: -1px;
  box-shadow: 0 0 40px rgba(107, 123, 255, 0.15);
  animation: splashPop 0.5s cubic-bezier(.175, .885, .32, 1.275) both;
}

.splash-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e2e8f0;
  animation: splashFade 0.5s 0.15s ease both;
}

.splash-name span {
  color: #6b7bff;
}

.splash-tagline {
  font-size: 13px;
  color: #475569;
  animation: splashFade 0.5s 0.25s ease both;
}

.splash-bar {
  width: 160px;
  height: 3px;
  border-radius: 99px;
  background: rgba(107, 123, 255, 0.15);
  overflow: hidden;
  animation: splashFade 0.5s 0.3s ease both;
}

.splash-bar-inner {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #6b7bff, #a78bfa);
  animation: splashLoad 1.4s ease-in-out infinite;
}

.ns {
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.7;
}

.ns strong {
  display: block;
  color: #e2e8f0;
  font-size: 20px;
  margin-bottom: 8px;
}

@keyframes splashPop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes splashFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splashLoad {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}
