.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

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

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 2;
}

.loader__svg {
  width: 72px;
  height: 72px;
}

.loader__ring {
  fill: none;
  stroke: var(--moss);
  stroke-width: 3;
  opacity: 0.4;
}

.loader__path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw-check 1.2s var(--ease-out) forwards 0.3s;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.loader__progress-wrap {
  width: 180px;
  height: 2px;
  background: var(--moss);
  border-radius: 2px;
  overflow: hidden;
}

.loader__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
  border-radius: 2px;
  transition: width 0.15s linear;
}

.loader__percent {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.loader__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
