/* FitHala classic loader — original appearance with optimized rendering. */
.fh-site-loader[hidden] {
  display: none !important;
}

.fh-site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint style;
  color: #f4faf6;
  background:
    radial-gradient(circle at 50% 38%, rgba(183, 255, 60, 0.105), transparent 26%),
    radial-gradient(circle at 18% 20%, rgba(73, 230, 166, 0.055), transparent 25%),
    linear-gradient(160deg, #07100d 0%, #030806 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.fh-site-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 38px 38px;
}

.fh-site-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fh-site-loader.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.fh-loader-lock,
html.fh-loader-lock body {
  overflow: hidden;
}

.fh-loader-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 310px);
  padding: 24px 24px 22px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(17, 30, 25, 0.98), rgba(7, 14, 11, 0.99));
  box-shadow:
    0 28px 75px rgba(0, 0, 0, 0.46),
    inset 0 1px rgba(255, 255, 255, 0.055);
  transform: translate3d(0, 7px, 0) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.fh-site-loader.is-visible .fh-loader-panel {
  transform: translate3d(0, 0, 0) scale(1);
}

.fh-loader-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f3faf5;
  font-family: "Space Grotesk", "Vazirmatn", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.fh-loader-brand b {
  color: #b7ff3c;
}

.fh-loader-logo {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #07100d;
  border-radius: 10px;
  background: #b7ff3c;
  box-shadow: 0 8px 22px rgba(183, 255, 60, 0.17);
}

.fh-loader-logo svg {
  width: 19px;
  height: 19px;
}

.fh-loader-activity {
  position: relative;
  height: 142px;
  display: grid;
  place-items: start center;
  padding-top: 17px;
  margin: 5px 0 0;
}

.fh-loader-ring {
  position: relative;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 255, 60, 0.13);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 255, 60, 0.075), transparent 64%);
  box-shadow:
    inset 0 0 22px rgba(183, 255, 60, 0.035),
    0 0 30px rgba(183, 255, 60, 0.025);
}

.fh-loader-ring::before,
.fh-loader-ring::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  will-change: transform;
}

.fh-loader-ring::before {
  inset: -5px;
  border: 2px solid transparent;
  border-top-color: #b7ff3c;
  border-right-color: rgba(183, 255, 60, 0.22);
  animation: fhLoaderSpin 1.35s linear infinite;
  animation-play-state: paused;
}

.fh-loader-ring::after {
  inset: 10px;
  border: 1px dashed rgba(85, 231, 166, 0.16);
  animation: fhLoaderSpin 6s linear infinite reverse;
  animation-play-state: paused;
}

.fh-loader-ring-dot {
  position: absolute;
  z-index: 3;
  top: -7px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #b7ff3c;
  box-shadow: 0 0 12px rgba(183, 255, 60, 0.92);
  animation: fhLoaderDot 1.35s linear infinite;
  animation-play-state: paused;
  transform-origin: 3.5px 54px;
  will-change: transform;
}

.fh-loader-sport-icon {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #dfffa9;
  border: 1px solid rgba(183, 255, 60, 0.12);
  border-radius: 16px;
  background: rgba(183, 255, 60, 0.06);
  animation: fhLoaderLift 1.2s ease-in-out infinite;
  animation-play-state: paused;
  will-change: transform;
}

.fh-loader-sport-icon svg {
  width: 32px;
  height: 32px;
}

.fh-loader-heartbeat {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: min(100%, 210px);
  height: 34px;
  overflow: visible;
  transform: translate3d(-50%, 0, 0);
}

.fh-loader-heartbeat path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fh-loader-heartbeat-base {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 2;
}

.fh-loader-heartbeat-glow,
.fh-loader-heartbeat-live {
  stroke-dasharray: 34 176;
  animation: fhLoaderHeartbeat 1.45s linear infinite;
  animation-play-state: paused;
}

.fh-loader-heartbeat-glow {
  stroke: rgba(183, 255, 60, 0.17);
  stroke-width: 6;
}

.fh-loader-heartbeat-live {
  stroke: #b7ff3c;
  stroke-width: 2.2;
}

.fh-loader-title {
  display: block;
  margin-top: 3px;
  color: #eff7f1;
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.7;
}

.fh-loader-subtitle {
  display: block;
  margin-top: 3px;
  color: #748078;
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.65rem;
  line-height: 1.7;
}

.fh-loader-progress {
  width: min(100%, 198px);
  height: 3px;
  display: block;
  margin: 16px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
}

.fh-loader-progress i {
  width: 34%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #b7ff3c, #55e7a6, transparent);
  animation: fhLoaderProgress 1.25s ease-in-out infinite;
  animation-play-state: paused;
  will-change: transform;
}

.fh-site-loader.is-visible .fh-loader-ring::before,
.fh-site-loader.is-visible .fh-loader-ring::after,
.fh-site-loader.is-visible .fh-loader-ring-dot,
.fh-site-loader.is-visible .fh-loader-sport-icon,
.fh-site-loader.is-visible .fh-loader-heartbeat-glow,
.fh-site-loader.is-visible .fh-loader-heartbeat-live,
.fh-site-loader.is-visible .fh-loader-progress i {
  animation-play-state: running;
}

@keyframes fhLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes fhLoaderDot {
  to { transform: rotate(360deg); }
}

@keyframes fhLoaderLift {
  0%, 100% { transform: translate3d(0, 2px, 0); }
  50% { transform: translate3d(0, -3px, 0); }
}

@keyframes fhLoaderHeartbeat {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -210; }
}

@keyframes fhLoaderProgress {
  from { transform: translate3d(-145%, 0, 0); }
  to { transform: translate3d(390%, 0, 0); }
}

@media (max-width: 480px) {
  .fh-site-loader {
    padding: 14px;
  }

  .fh-loader-panel {
    width: min(100%, 286px);
    padding: 22px 19px 20px;
    border-radius: 23px;
  }

  .fh-loader-activity {
    height: 134px;
    padding-top: 14px;
  }

  .fh-loader-ring {
    width: 88px;
    height: 88px;
  }

  .fh-loader-ring-dot {
    transform-origin: 3.5px 51px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fh-site-loader,
  .fh-loader-panel {
    transition-duration: 0.01ms !important;
  }

  .fh-site-loader *,
  .fh-site-loader *::before,
  .fh-site-loader *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .fh-loader-progress i {
    width: 100%;
    transform: none;
  }
}
