/* =========================================================
   MAUR CRM - PAGE LOADER v3
   Exact logo match · Light bg · Real progress · No stuck
   ========================================================= */

#maur-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#maur-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Exact Logo ---------- */
/* ---------- Exact Logo (Adjacent) ---------- */
.loader-logo {
  position: relative;
  width: 140px;
  height: 120px;
  animation: maurBreathe 2.4s ease-in-out infinite;
}

.logo-seg {
  position: absolute;
  transform: rotate(45deg);
  border-radius: 0;
  box-shadow: none;
}

/* Gold — largest, left, lower */
.logo-seg.gold {
  width: 30px;
  height: 60px;
  background: #F5A623;
  left: 6px;
  top: 58px;
  z-index: 1;
}

/* Gray — medium, center, adjacent */
.logo-seg.gray {
  width: 26px;
  height: 54px;
  background: #9E9E9E;
  left: 44px;
  top: 40px;
  z-index: 2;
}

/* Red — smallest, right, higher */
.logo-seg.red {
  width: 22px;
  height: 46px;
  background: #ED1C24;
  left: 78px;
  top: 24px;
  z-index: 3;
}

@keyframes maurBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}



/* Gold — largest, left, slightly lower */
.logo-seg.gold {
  width: 30px;
  height: 60px;
  background: #F5A623;
  left: 16px;
  top: 50px;
  z-index: 1;
}

/* Gray — medium, center, overlaps both */
.logo-seg.gray {
  width: 26px;
  height: 54px;
  background: #9E9E9E;
  left: 42px;
  top: 40px;
  z-index: 3;
}

/* Red — smallest, right, slightly higher */
.logo-seg.red {
  width: 22px;
  height: 46px;
  background: #ED1C24;
  left: 64px;
  top: 32px;
  z-index: 2;
}

@keyframes maurBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ---------- Progress Bar ---------- */
.loader-bar {
  width: 180px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-top: 28px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: #84CC16;
  border-radius: 2px;
  transition: width 0.15s linear;
}

/* ---------- Text ---------- */
.loader-text {
  margin-top: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #999999;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.loader-percent {
  margin-top: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #84CC16;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .loader-logo {
    width: 112px;
    height: 96px;
  }
  .logo-seg.gold { width: 24px; height: 48px; left: 5px;  top: 46px; }
  .logo-seg.gray { width: 21px; height: 43px; left: 35px; top: 32px; }
  .logo-seg.red  { width: 18px; height: 37px; left: 62px; top: 19px; }
  .loader-bar { width: 150px; }
  .loader-text { font-size: 11px; }
}
