/* Round 13: keep every purchased plan's identity ring visible in its current state. */
.pricing-page .price-card.current-plan-card[data-plan-card] {
  --current-ring-a: #38527f;
  --current-ring-b: #6b8ab8;
  --current-ring-shadow: rgba(56, 82, 127, 0.24);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 24px 66px var(--current-ring-shadow) !important;
}

.pricing-page .price-card.current-plan-card[data-plan-card="personal"] {
  --current-ring-a: #2563eb;
  --current-ring-b: #7c3aed;
  --current-ring-shadow: rgba(37, 99, 235, 0.24);
}

.pricing-page .price-card.current-plan-card[data-plan-card="firm"] {
  --current-ring-a: #0f9f6e;
  --current-ring-b: #2563eb;
  --current-ring-shadow: rgba(15, 159, 110, 0.24);
}

.pricing-page .price-card.current-plan-card[data-plan-card="team"] {
  --current-ring-a: #8b5cf6;
  --current-ring-b: #2563eb;
  --current-ring-shadow: rgba(124, 58, 237, 0.25);
}

.pricing-page .price-card.current-plan-card[data-plan-card="plus"] {
  --current-ring-a: #d59a08;
  --current-ring-b: #7c3aed;
  --current-ring-shadow: rgba(213, 154, 8, 0.27);
}

.pricing-page .price-card.current-plan-card[data-plan-card]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 2px solid var(--current-ring-a);
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--current-ring-b) 72%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--current-ring-a) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--current-ring-b) 28%, transparent);
  animation: pricing-current-ring-pulse 2.8s ease-in-out infinite;
}

.pricing-page .price-card.current-plan-card[data-plan-card] .current-plan-marker {
  position: relative;
  z-index: 5;
}

@keyframes pricing-current-ring-pulse {
  0%, 100% { opacity: 0.72; filter: saturate(1); }
  50% { opacity: 1; filter: saturate(1.35) brightness(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-page .price-card.current-plan-card[data-plan-card]::after { animation: none; opacity: 1; }
}
