/* =========================================
   Dastak 90807 — Option A: Pulse & Glow Loader
   ========================================= */
#dastak-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(238, 246, 241, 0.96); /* ویب سائٹ کا ہلکا منٹ بیک گراؤنڈ */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#dastak-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.dastak-loader-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* پلس اور گلو دائرے (Concentric Ripples) */
.dastak-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(11, 79, 40, 0.28); /* گہرا سبز */
  background: radial-gradient(circle, rgba(229, 169, 26, 0.08) 0%, rgba(11, 79, 40, 0.03) 70%, transparent 100%);
  transform: scale(0.65);
  opacity: 0;
  animation: dastakRipple 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: transform, opacity;
}

.dastak-pulse-ring:nth-child(2) {
  border-color: rgba(229, 169, 26, 0.42); /* سنہرا پیلا */
  animation-delay: 0.7s;
}

.dastak-pulse-ring:nth-child(3) {
  border-color: rgba(11, 79, 40, 0.18);
  animation-delay: 1.4s;
}

/* آفیشل لوگو کی نرم نبض (Logo Pulse) */
.dastak-loader-logo {
  position: relative;
  z-index: 2;
  width: 175px;
  height: auto;
  object-fit: contain;
  animation: dastakLogoBreath 1.8s ease-in-out infinite;
  will-change: transform;
}

@keyframes dastakRipple {
  0% {
    transform: scale(0.65);
    opacity: 0;
  }
  25% {
    opacity: 0.85;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

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

/* موبائل اسکرین کے لیے متوازن سائز */
@media (max-width: 600px) {
  .dastak-loader-wrap {
    width: 190px;
    height: 190px;
  }
  .dastak-loader-logo {
    width: 140px;
  }
}

/* Accessibility: کم حرکت پسند کرنے والے صارفین کے لیے */
@media (prefers-reduced-motion: reduce) {
  .dastak-pulse-ring,
  .dastak-loader-logo {
    animation: none;
  }
  .dastak-pulse-ring:first-child {
    opacity: 0.4;
    transform: scale(0.95);
  }
}
/* Keep the visual optional and stop animation while hidden. */
#dastak-loader{pointer-events:none}
#dastak-loader.is-active{pointer-events:none}
#dastak-loader:not(.is-active) .dastak-pulse-ring,#dastak-loader:not(.is-active) .dastak-loader-logo{animation-play-state:paused}
.dastak-loader-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
