/* PUBLICBOOST · continuous, understated active state motion (2026-10-18).
   Applies only to real selected/active states; never animates inactive,
   suspended, failed or pending status badges. No width/position changes. */
@keyframes pbAccountActiveDotLoop {
  0%,100% {
    transform:scale(1);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 14%,transparent),
               0 0 5px color-mix(in srgb,var(--green) 27%,transparent);
  }
  50% {
    transform:scale(1.13);
    box-shadow:0 0 0 5px color-mix(in srgb,var(--green) 10%,transparent),
               0 0 11px color-mix(in srgb,var(--green) 43%,transparent);
  }
}
@keyframes pbAccountActiveHaloLoop {
  0%,100% {box-shadow:0 0 0 0 transparent;}
  50% {box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 11%,transparent);}
}
@keyframes pbNavActiveDotLoop {
  0%,100% {
    transform:scale(1);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent),
               0 0 6px color-mix(in srgb,var(--accent) 27%,transparent);
  }
  50% {
    transform:scale(1.1);
    box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 10%,transparent),
               0 0 11px color-mix(in srgb,var(--accent) 41%,transparent);
  }
}
@keyframes pbNavActiveBarLoop {
  0%,100% {opacity:.69;filter:brightness(1);}
  50% {opacity:1;filter:brightness(1.12);}
}
@keyframes pbActiveChoiceLoop {
  0%,100% {filter:brightness(1) drop-shadow(0 0 0 transparent);}
  50% {filter:brightness(1.035) drop-shadow(0 0 4px color-mix(in srgb,var(--accent) 22%,transparent));}
}

/* Exact green Active badge in User > Account, not Suspended. */
.account-dashboard-v2 .account-status-pill.is-active {
  animation:pbAccountActiveHaloLoop 3.2s ease-in-out infinite;
}
.account-dashboard-v2 .account-status-pill.is-active i {
  transform-origin:center;
  animation:pbAccountActiveDotLoop 3.2s ease-in-out infinite;
}

/* Nav dot and mobile indicator stay visible and breathe until selection changes. */
.desktop-nav .nav-link.active::after,
.admin-nav a.active::after {
  transform-origin:center;
  animation:pbNavActiveDotLoop 3.2s ease-in-out infinite;
}
.bottom-nav .nav-link.active::before,
.admin-mobile-nav a.active::before {
  animation:pbNavActiveBarLoop 3.2s ease-in-out infinite;
}

/* The actual selected choices, not decorative or disabled controls. */
:is(
  .platform-pill.active,
  .package-button.active,
  .category-button.active,
  .wallet-amount-button.active,
  .wallet-payment-method.active,
  .customer-support-choice.selected,
  .pb-orders-filter.is-active,
  .customer-favorite.active,
  .pb-avatar-filter-row button.is-active,
  .sq-filter.active,
  .admin-mobile-nav a.active
):not(:disabled) {
  animation:pbActiveChoiceLoop 3.5s ease-in-out infinite;
}

/* Success/status chips receive a gentle pulse only for truly active states. */
.user-status-chip.active::before {
  content:"";
  display:inline-block;
  width:6px;height:6px;
  flex:none;
  border-radius:50%;
  background:currentColor;
  margin-right:5px;
  animation:pbAccountActiveDotLoop 3.2s ease-in-out infinite;
}
/* Processing means working, not failure or suspended. */
.status.processing::before {
  animation:pbNavActiveDotLoop 3.4s ease-in-out infinite;
}

/* Honour accessibility preferences and the app's manual motion switch.
   Colors and selected states remain visible without any movement. */
@media (prefers-reduced-motion:reduce) {
  .account-dashboard-v2 .account-status-pill.is-active,
  .account-dashboard-v2 .account-status-pill.is-active i,
  .desktop-nav .nav-link.active::after,
  .admin-nav a.active::after,
  .bottom-nav .nav-link.active::before,
  .admin-mobile-nav a.active::before,
  .user-status-chip.active::before,
  .status.processing::before,
  :is(.platform-pill.active,.package-button.active,.category-button.active,
      .wallet-amount-button.active,.wallet-payment-method.active,
      .customer-support-choice.selected,.pb-orders-filter.is-active,
      .customer-favorite.active,.pb-avatar-filter-row button.is-active,
      .sq-filter.active,.admin-mobile-nav a.active):not(:disabled) {
    animation:none!important;
    filter:none;
    transform:none;
  }
}
:root[data-motion="off"] .account-dashboard-v2 .account-status-pill.is-active,
:root[data-motion="off"] .account-dashboard-v2 .account-status-pill.is-active i,
:root[data-motion="off"] .desktop-nav .nav-link.active::after,
:root[data-motion="off"] .bottom-nav .nav-link.active::before,
:root[data-motion="off"] :is(.platform-pill.active,.package-button.active,.category-button.active,.wallet-amount-button.active,.wallet-payment-method.active,.customer-support-choice.selected,.pb-orders-filter.is-active,.customer-favorite.active):not(:disabled) {
  animation:none!important;
}
