/* GANATRA RESEARCH — Universal Page Loader / Option 02: Rotating Double Ring */
.gr-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020302;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility .45s ease;
}

.gr-page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gr-page-loader__content {
  position: relative;
  z-index: 2;
  width: min(86vw, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gr-page-loader__logo-wrap {
  position: relative;
  width: clamp(132px, 18vw, 178px);
  height: clamp(132px, 18vw, 178px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* Clean double-ring system: no old progress bar, no old halo, no third ring. */
.gr-loader-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  box-sizing: border-box;
}

.gr-loader-ring--outer {
  inset: -15px;
  border: 2px solid transparent;
  border-top-color: #ffd75a;
  border-right-color: rgba(236, 186, 50, .92);
  border-bottom-color: rgba(0, 166, 110, .72);
  border-left-color: rgba(0, 166, 110, .34);
  box-shadow:
    0 0 10px rgba(255, 205, 70, .58),
    0 0 24px rgba(255, 190, 45, .20);
  animation: grLoaderRotate 2.2s linear infinite;
}

.gr-loader-ring--inner {
  inset: -7px;
  border: 1px solid transparent;
  border-top-color: rgba(0, 194, 126, .95);
  border-right-color: rgba(255, 218, 104, .95);
  border-bottom-color: rgba(236, 186, 50, .65);
  border-left-color: rgba(0, 194, 126, .38);
  box-shadow: inset 0 0 8px rgba(255, 207, 72, .14), 0 0 9px rgba(0, 178, 116, .18);
  animation: grLoaderRotateReverse 1.7s linear infinite;
}

.gr-page-loader__logo {
  position: relative;
  z-index: 3;
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 13px rgba(239, 190, 54, .22));
  animation: grLoaderLogo 2.2s ease-in-out infinite;
}

.gr-page-loader__logo-wrap::after {
  content: "";
  position: absolute;
  inset: 25%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 158, 103, .13), rgba(0, 0, 0, 0) 70%);
  filter: blur(9px);
  pointer-events: none;
}

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

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

@keyframes grLoaderLogo {
  0%, 100% { transform: scale(.985); }
  50% { transform: scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  .gr-loader-ring--outer,
  .gr-loader-ring--inner,
  .gr-page-loader__logo {
    animation: none;
  }
}
