/* =====================================================================
   TopUpPilot — Loading Screen only  (glassmorphism + animated bar)
   Upload to:  public/css/custom-ui.css
   (view_header.php ei file ta sobar sheshe load kore)

   Eta SUDHU preloader ke style kore — site er baki kono kichu bodlabe na.
   Loading bar tomar brand color (--brand, DB theke) use korbe.
   ===================================================================== */

/* --- Glass background (full screen) --- */
#preloader{
  position:fixed !important;inset:0 !important;z-index:99999 !important;
  display:flex;align-items:center;justify-content:center; /* NO !important: custom.js fadeOut ke hide korte dite hobe */
  background:radial-gradient(1000px 600px at 50% 28%, #EEF0FF 0%, #F7F8FB 55%, #ffffff 100%) !important;
  animation:plAutohide .5s ease 4s forwards; /* fallback: JS na cholleo 4s por nije hide hobe */
}
@keyframes plAutohide{ to{ opacity:0;visibility:hidden;pointer-events:none; } }

/* --- Frosted glass card --- */
#status{
  position:relative !important;width:auto !important;height:auto !important;
  top:auto !important;left:auto !important;margin:0 !important;background-image:none !important;
  background:rgba(255,255,255,.55) !important;
  backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);
  border:1px solid rgba(255,255,255,.75);border-radius:24px;
  box-shadow:0 30px 60px -30px rgba(15,23,42,.35), inset 0 1px 0 rgba(255,255,255,.6);
  padding:38px 46px;display:flex;flex-direction:column;align-items:center;gap:18px;
}

/* --- Equalizer signal (uporer 4 ta bar) --- */
.pl-signal{ display:flex;align-items:flex-end;gap:5px;height:32px; }
.pl-signal span{
  width:6px;height:10px;border-radius:6px;background:var(--brand,#2232BD);
  animation:plEq 1s ease-in-out infinite;
}
.pl-signal span:nth-child(2){ animation-delay:.15s; }
.pl-signal span:nth-child(3){ animation-delay:.30s; }
.pl-signal span:nth-child(4){ animation-delay:.45s; }
@keyframes plEq{ 0%,100%{ height:10px;opacity:.45 } 50%{ height:30px;opacity:1 } }

/* --- Logo + domain text --- */
.pl-logo{ max-width:190px;height:auto;display:block; }
.pl-host{ color:#64748B;font-weight:600;font-size:14px;letter-spacing:.02em;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif; }

/* --- Animated loading bar --- */
.pl-bar{
  width:230px;max-width:62vw;height:6px;border-radius:999px;overflow:hidden;position:relative;
  background:rgba(15,23,42,.08);
}
.pl-bar i{
  position:absolute;top:0;height:100%;width:42%;border-radius:999px;left:-42%;
  background:var(--brand,#2232BD);animation:plBar 1.25s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes plBar{ 0%{ left:-42% } 60%{ left:70% } 100%{ left:110% } }
