/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* ================= BLOQUEIO TOTAL ================= */
html.loading,
html.loading body {
  overflow: hidden;
  height: 100%;
}

html.loading body > *:not(#preloader) {
  visibility: hidden;
}

/* ================= PRELOADER ================= */
/* FUNDO */
#preloader{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  justify-content:center;
  align-items:center;
  background:
    radial-gradient(circle at bottom right,
      rgba(255,255,255,.6) 0%,
      rgba(255,255,255,.3) 20%,
      rgba(255,255,255,.1) 40%,
      transparent 65%
    ),
    linear-gradient(135deg,#0A2193,#1f3fd1,#4f6fff);
}
/* ================= LOADER ================= */
.loader-container {
  text-align: center;
}

.loader-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

/* ================= CÍRCULO LED ================= */
.loader-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 12px solid rgba(255, 255, 255, 0.25);
  border-top: 12px solid #ffffff;
  animation: spin 1.3s linear infinite, ledPulse 1.6s ease-in-out infinite;
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.9),
    0 0 30px rgba(255, 255, 255, 0.6),
    inset 0 0 18px rgba(255, 255, 255, 0.4);
}

/* ================= LOGO ================= */
.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

/* ================= PORCENTAGEM ================= */
/* ================= PORCENTAGEM DIGITAL LED (ARCO INFERIOR) ================= */
.loader-percent {
  position: absolute;
  left: 50%;
  bottom: 8px; /* controla a altura no arco */
  transform: translateX(-50%);
  
  font-family: 'Orbitron', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3px;
  
  color: #ffffff;
  text-align: center;

  text-shadow:
    0 0 6px rgba(255,255,255,.8),
    0 0 12px rgba(255,255,255,.9),
    0 0 22px rgba(180,220,255,1);

  animation: ledDigitalBlink 1.6s ease-in-out infinite;
}

/* ================= ANIMAÇÕES ================= */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ledPulse {
  0% {
    box-shadow:
      0 0 10px rgba(255, 255, 255, 0.7),
      0 0 20px rgba(255, 255, 255, 0.5),
      inset 0 0 12px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 0 24px rgba(255, 255, 255, 1),
      0 0 45px rgba(255, 255, 255, 0.9),
      inset 0 0 24px rgba(255, 255, 255, 0.6);
  }
  100% {
    box-shadow:
      0 0 10px rgba(255, 255, 255, 0.7),
      0 0 20px rgba(255, 255, 255, 0.5),
      inset 0 0 12px rgba(255, 255, 255, 0.3);
  }
}