/* ShopifySys brand loader, shared with landing visual language */
.brand-loader-portal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.brand-loader-portal.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.brand-loader {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  width: min(90vw, 22rem);
}
.brand-loader__backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(680px 420px at 50% 45%, rgba(0, 128, 96, 0.28), transparent 60%),
    rgba(8, 28, 24, 0.55);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  z-index: -1;
}
.brand-loader__stage {
  position: relative;
  width: 9.5rem;
  height: 9.5rem;
  display: grid;
  place-items: center;
}
.brand-loader__ring {
  position: absolute;
  inset: -0.35rem;
  width: calc(100% + 0.7rem);
  height: calc(100% + 0.7rem);
  transform: rotate(-90deg);
  z-index: 3;
  pointer-events: none;
}
.brand-loader__ring-track,
.brand-loader__ring-fill {
  fill: none;
  stroke-width: 3.2;
}
.brand-loader__ring-track { stroke: rgba(255, 255, 255, 0.14); }
.brand-loader__ring-fill {
  stroke: #95bf47;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.12s linear;
  filter: drop-shadow(0 0 6px rgba(149, 191, 71, 0.55));
}
.brand-loader__pct {
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  transform: translateX(-50%);
  z-index: 4;
  min-width: 2.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 46, 37, 0.88);
  border: 1px solid rgba(149, 191, 71, 0.45);
  color: #e8f5ef;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.brand-loader__status {
  margin: -0.35rem 0 0;
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(232, 245, 239, 0.78);
  text-align: center;
}
.brand-loader__core {
  position: relative;
  z-index: 2;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 1.15rem;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #004c3f 0%, #002e25 100%);
  box-shadow:
    0 0 0 1px rgba(149, 191, 71, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(149, 191, 71, 0.22);
  animation: brand-loader-pulse 1.8s ease-in-out infinite;
}
.brand-loader__mark {
  width: 2.6rem;
  height: 2.85rem;
  display: block;
  object-fit: contain;
}
.brand-loader__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(149, 191, 71, 0.28);
  animation-name: brand-orbit;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.brand-loader__orbit--outer {
  inset: 0;
  animation-duration: 3.4s;
}
.brand-loader__orbit--mid {
  inset: 0.85rem;
  border-color: rgba(0, 128, 96, 0.45);
  animation-duration: 2.4s;
  animation-direction: reverse;
}
.brand-loader__orbit--inner {
  inset: 1.7rem;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.22);
  animation-duration: 1.7s;
}
.brand-loader__planet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.65rem;
  height: 0.65rem;
  margin: -0.325rem 0 0 -0.325rem;
  border-radius: 50%;
  background: #95bf47;
  box-shadow: 0 0 0 3px rgba(149, 191, 71, 0.22), 0 0 16px rgba(149, 191, 71, 0.65);
}
.brand-loader__orbit--mid .brand-loader__planet {
  background: #008060;
  box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.25), 0 0 14px rgba(0, 128, 96, 0.55);
}
.brand-loader__planet--trail {
  top: auto;
  bottom: 12%;
  left: 8%;
  width: 0.4rem;
  height: 0.4rem;
  margin: 0;
  opacity: 0.7;
  background: #e8f5ef;
  box-shadow: none;
}
.brand-loader__caption {
  margin: 0;
  position: relative;
  z-index: 1;
  font-family: var(--display, Manrope, system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #f3faf6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
@keyframes brand-orbit {
  to { transform: rotate(360deg); }
}
@keyframes brand-loader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-loader__orbit,
  .brand-loader__core,
  .brand-loader__ring-fill { animation: none; transition: none; }
}
