/* =========================
   INTRO LOADER (NEUTRAL)
========================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.04), transparent 50%),
    var(--bg);
  display: grid;
  place-items: center;

  pointer-events: auto;

  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  width: min(520px, 90vw);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 70px rgba(0,0,0,0.6);
}

.loader__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.loader__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loader__logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.10));
  opacity: 0.95;
}

.loader__status {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(230,237,243,0.75);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.loader__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.loader__barFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.25)
  );
  border-radius: 999px;
  animation: loadFill 1.15s ease forwards;
}

@keyframes loadFill {
  0% { width: 0%; }
  65% { width: 78%; }
  100% { width: 100%; }
}

.loader__hint {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(230,237,243,0.60);
  line-height: 1.5;
}

.loader__hint b {
  color: var(--text);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .loader__barFill {
    animation: none;
    width: 100%;
  }
}

/* =========================
   FINAL BUTTON OVERRIDE
   (loader.css is loaded last)
========================= */

.btn,
.btn--primary,
.btn--ghost {
  box-shadow: none !important;
  background-image: none !important;
}

.btn--primary {
  background: #0F172A !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

.btn--primary:hover {
  background: #172033 !important;
}

.btn--ghost {
  background: transparent !important;
  color: #E6EDF3 !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.06) !important;
}