/* -- BUTTON LOADER (Inline) -- */
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.btn-ghost .btn-spinner,
.btn-outline .btn-spinner,
.btn-secondary .btn-spinner {
  border-color: rgba(0,0,0,0.1);
  border-top-color: var(--blue, #1a6bb5);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* -- SITE LOADER (FULL SCREEN OVERLAY) -- */
.site-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.3);    
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.site-loader-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* SVG Animation */
.loader-svg {
  width: 100px;
  height: 100px;
  animation: svg-rotate 2s linear infinite;
  transform-origin: center center;
}

/* Background Circle */
.loader-path-bg {
  stroke: var(--sky, #5A7BC2);
  stroke-opacity: 0.3;
  stroke-linecap: round;
}

/* Foreground Circle */
.loader-path-fg {
  stroke: var(--navy, #1C3A76);
  stroke-linecap: round;
  animation: svg-dash 1.5s ease-in-out infinite;
}

/* Dynamic Text Styling */
.loader-text {
  margin-top: 20px;
  color: var(--navy, #1C3A76);
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease;
}

/* Keyframes for the continuous rotation */
@keyframes svg-rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* Keyframes for the expanding/contracting stroke */
@keyframes svg-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}