:root {
  --bg1: #140016;
  --bg2: #0b000f;
  --bg3: #07000d;
  --pink: #ffd1dc;
  --magenta: #e1306c;
  --lilac: #b57bff;
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg1), var(--bg2), var(--bg3));
}

#app-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Fundo igual ao site (gradiente + blobs) */
#app-loader .lux-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#app-loader .lux-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg1), var(--bg2), var(--bg3));
}

#app-loader .blob {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  opacity: 0.08;
}

#app-loader .blob.pink {
  left: -140px;
  top: -160px;
  background: var(--pink);
}

#app-loader .blob.lilac {
  right: -160px;
  top: 40px;
  width: 340px;
  height: 340px;
  background: var(--lilac);
  opacity: 0.07;
}

#app-loader .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.035),
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0) 70%,
    rgba(0,0,0,0.12)
  );
  pointer-events: none;
}

/* Card glass central */
#app-loader .loader-card {
  position: relative;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 48px));
  margin: 0 24px;
  border-radius: 22px;
  padding: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
  text-align: center;
}

#app-loader .loader-logo {
  display: block;
  margin: 0 auto 14px auto;
  width: 160px;
  max-width: 70%;
  height: auto;
}

/* Pontinhos */
#app-loader .dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

#app-loader .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: fade 1.4s infinite ease-in-out;
}

#app-loader .dot:nth-child(2) { animation-delay: .2s; }
#app-loader .dot:nth-child(3) { animation-delay: .4s; }

@keyframes fade {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(-3px); }
}


#app-loader .dot:nth-child(2) { animation-delay: .15s; }
#app-loader .dot:nth-child(3) { animation-delay: .30s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .35; }
  50% { transform: scale(1.35); opacity: .85; }
}
