/* ==========================================================================
   UI :: Loader / preloader  — branded Mobily spinner
   Replaces the default tea-cup SVG. Presentational only.
   ========================================================================== */

/* NOTE: do NOT put !important on `display` here — jQuery's .fadeOut()
   hides the preloader by setting inline `display:none`, and !important
   would block it (the loader would stay on top of the page). */
.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.mobily-loader {
  position: relative;
  width: 66px;
  height: 66px;
}
/* two counter-rotating arcs in the brand colors */
.mobily-loader::before,
.mobily-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid transparent;
}
.mobily-loader::before {
  border-top-color: #0a4d9e;
  border-right-color: #0a4d9e;
  animation: mobilySpin 1s linear infinite;
}
.mobily-loader::after {
  inset: 9px;
  border-bottom-color: #00b8e6;
  border-left-color: #00b8e6;
  animation: mobilySpin 1.4s linear infinite reverse;
}
/* soft pulsing dot in the centre */
.mobily-loader span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #00b8e6;
  animation: mobilyPulse 1s ease-in-out infinite;
}

@keyframes mobilySpin {
  to { transform: rotate(360deg); }
}
@keyframes mobilyPulse {
  0%, 100% { transform: scale(.6); opacity: .5; }
  50%      { transform: scale(1); opacity: 1; }
}
