/* Master Mentorship — lifetime billing theme (from archived standalone lifetime card) */

/* Yearly/lifetime toggle — purple sliding pill when Lifetime is selected */
.ahr-membership-plans-col[data-ahr-plan-col="master"]:has(.ahr-billing-lifetime)
  .ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"]
  .ahr-toggle-input:checked
  ~ .ahr-toggle-segmented
  .ahr-toggle-indicator {
  background: #8678e4;
  box-shadow:
    1px 2px 3px rgba(118, 104, 212, 0.5),
    -1px -1px 2px rgba(255, 255, 255, 0.45);
}

/* One-time label — green pill, vertically centered with price */
.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-price-row {
  align-items: center;
}

.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-price-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #ffffff;
  background: #16a34aa2;
  border-radius: 6px;
  padding: 3px 6px;
  line-height: 1.2;
  align-self: center;
}

/* Purple ring flush on card edge — outline/box-shadow, not border (keeps 320px content width) */
.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime {
  border: none;
  outline: none;
  box-shadow:
    0 0 0 2px #7b72ba,
    0 18px 30px rgba(0, 0, 0, 0.14),
    0 8px 16px rgba(0, 0, 0, 0.09);
}

/* CTA — purple lifetime button + infinity icon (left of label) */
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-btn-lifetime-icon {
  display: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-image: url("/wp-content/uploads/2026/06/infinity.svg");
  mask-image: url("/wp-content/uploads/2026/06/infinity.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-btn:not(.is-current-plan) {
  gap: 8px;
  background: #8678e4;
}

.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-btn:not(.is-current-plan) .ahr-card-btn-lifetime-icon {
  display: block;
}

.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-btn:not(.is-current-plan):hover {
  background: #7568d4;
}

/* Request coupon link — visible on desktop and mobile when lifetime billing is active */
.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-lifetime-discount-link {
  color: #32a2e7;
  text-decoration: underline;
}

.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-lifetime-discount-link:hover {
  color: #228ad0;
}

/* Benefit icons — purple tint */
.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-benefit-icon {
  filter: brightness(0) saturate(100%) invert(46%) sepia(46%) saturate(2000%) hue-rotate(220deg) brightness(94%) contrast(95%);
}

.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-benefit-text,
.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-benefits-title,
.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-desc {
  color: #374151;
}

.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-benefits-list > .ahr-card-benefit,
.ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-extras-inner > .ahr-card-benefit {
  border-bottom-color: rgba(123, 114, 186, 0.22);
}

/* =========================================================
   TEST — Phone/mobile only: darker, more vibrant lifetime purple
   Breakpoint matches stacked card layout (plans-layout.css).
   Tune hex values here; remove block after sign-off.
   ========================================================= */
@media (max-width: 720px) {
  /* Toggle sliding pill — Lifetime selected */
  .ahr-membership-plans-col[data-ahr-plan-col="master"]:has(.ahr-billing-lifetime)
    .ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"]
    .ahr-toggle-input:checked
    ~ .ahr-toggle-segmented
    .ahr-toggle-indicator {
    background: #786ae4;
    box-shadow:
      1px 2px 4px rgba(74, 58, 196, 0.62),
      -1px -1px 2px rgba(255, 255, 255, 0.35);
  }

  /* Card outer ring */
  .ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime {
    box-shadow:
      0 0 0 2px #7064ce,
      0 18px 30px rgba(62, 48, 168, 0.18),
      0 8px 16px rgba(62, 48, 168, 0.12);
  }

  /* CTA button */
  .ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-btn:not(.is-current-plan) {
    background: #786ae4;
  }

  .ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-btn:not(.is-current-plan):hover {
    background: #786ae4;
  }

  /* Benefit row dividers + icon tint — slightly richer on small screens */
  .ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-benefits-list > .ahr-card-benefit,
  .ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-extras-inner > .ahr-card-benefit {
    border-bottom-color: rgba(82, 68, 196, 0.32);
  }

  .ahr-membership-plans-col .ahr-card-master-mentorship.ahr-billing-lifetime .ahr-card-benefit-icon {
    filter: brightness(0) saturate(100%) invert(32%) sepia(68%) saturate(2800%) hue-rotate(228deg) brightness(88%) contrast(98%);
  }
}
