/* UNIVERSAL CARD DESIGN (columns: see plans-layout.css) */
.ahr-membership-plans-col .ahr-card {
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.14), 0 8px 16px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Banner */
.ahr-membership-plans-col .ahr-card-banner img {
  width: 100%;
  display: block;
}

/* Body */
.ahr-membership-plans-col .ahr-card-body {
  padding: 18px 20px 22px;
}

/* Title + Tagline */
.ahr-membership-plans-col .ahr-card-title {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.ahr-membership-plans-col .ahr-card-tagline {
  margin: 3px 0 15px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: #6b7280;
}

/* Pricing — centered in both cards (all billing states) */
.ahr-membership-plans-col .ahr-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-bottom: 12px;
  text-align: center;
}

.ahr-membership-plans-col .ahr-card-price {
  font-size: 30px;
  font-weight: 700;
  color: #111827;
}

.ahr-membership-plans-col .ahr-card-price-meta {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.1;
  text-transform: lowercase;
}

.ahr-membership-plans-col .ahr-card-subcopy {
  margin: 0 0 12px;
  font-size: 15px;
  color: #4b5563;
}

/* Button */
.ahr-membership-plans-col .ahr-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  line-height: 1.1;
  text-align: center;
  border: none;
  background: #32a2e7;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  width: 100%;
}

/* =========================================================
   Current plan button (disabled vibe)
   ========================================================= */
.ahr-membership-plans-col .ahr-card-btn.is-current-plan {
  background: #c4e1ca !important;
  color: #546856 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.95;
}

.ahr-membership-plans-col .ahr-card-btn.is-current-plan:hover {
  background: #d1d5db !important;
  box-shadow: none !important;
  transform: none !important;
}


.ahr-membership-plans-col .ahr-card-btn.is-current-plan {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: 35px; /* make room for icon */
}

.ahr-membership-plans-col .ahr-card-btn.is-current-plan::after {
  content: "";
  position: absolute;
  right: 13px;
  width: 22px;
  height: 22px;

  background-image: url("/wp-content/uploads/2025/11/check-symbol-4794.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}



.ahr-membership-plans-col .ahr-card-btn:hover {
  background: #228ad0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Footnote under button */
.ahr-membership-plans-col .ahr-card-footnote {
  margin: 0 0 14px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

/* Description */
.ahr-membership-plans-col .ahr-card-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

/* Benefits */
.ahr-membership-plans-col .ahr-card-benefits-title {
  margin: 0 0 15px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #6b7280;
}

.ahr-membership-plans-col .ahr-card-benefits-list {
  list-style: none;
  padding: 0 10px;
  margin: 0;
  display: grid;
  gap: 14px;
}

/* Patreon-style fade: last benefit text fades out in collapsed state only */
.ahr-membership-plans-col .ahr-card-collapsed .ahr-card-benefits-list {
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.ahr-membership-plans-col .ahr-card-expanded .ahr-card-benefits-list {
  -webkit-mask-image: none;
  mask-image: none;
}

.ahr-membership-plans-col .ahr-card-benefit {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 8px;
}

.ahr-membership-plans-col .ahr-card-benefit-icon {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  margin-top: 1px;
}

.ahr-membership-plans-col .ahr-card-benefit-text {
  font-size: 12.5px;
  line-height: 1.3;
  color: #374151;
}

/* OLD SHOW MORE WRAPPER (still used as container for extra text) */
.ahr-membership-plans-col .ahr-card-more {
  margin-top: 8px;
}

/* content itself is always block; visibility controlled by .ahr-card-extra */
.ahr-membership-plans-col .ahr-card-more-content {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.55;
}

/* MOBILE */
@media (max-width: 480px) {
  .ahr-membership-plans-col .ahr-card-body {
    padding: 16px 16px 20px;
  }
}

/* ------------------------------- */
/* PRICING TOGGLE — same pill style as CPT archive lock/unlocked filter */
/* ------------------------------- */

.ahr-membership-toggle {
  text-align: center;
}

/* Hidden checkbox drives state; buttons set it via plans-billing.js */
.ahr-membership-toggle .ahr-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ahr-toggle-segmented {
  --ahr-mp-toggle-pad-y: 5px;
  --ahr-mp-toggle-pad-x: 9px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0 auto;
  padding: var(--ahr-mp-toggle-pad-y) var(--ahr-mp-toggle-pad-x);
  border: none;
  border-radius: 999px;
  background: #eeeeee;
  box-shadow: none;
  box-sizing: border-box;
  isolation: isolate;
}

.ahr-toggle-indicator {
  position: absolute;
  top: var(--ahr-mp-toggle-pad-y);
  bottom: var(--ahr-mp-toggle-pad-y);
  left: var(--ahr-mp-toggle-pad-x);
  width: calc((100% - (2 * var(--ahr-mp-toggle-pad-x))) / 2);
  border-radius: 999px;
  background: #64748b;
  box-shadow:
    1px 2px 3px rgba(93, 93, 93, 0.5),
    -1px -1px 2px rgba(255, 255, 255, 0.45);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
  z-index: 0;
  pointer-events: none;
}

.ahr-toggle-input:checked ~ .ahr-toggle-segmented .ahr-toggle-indicator {
  transform: translateX(100%);
}

.ahr-toggle-seg {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 7.5rem;
  margin: 0;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #64748b;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

.ahr-toggle-seg:hover,
.ahr-toggle-seg:focus,
.ahr-toggle-seg:active {
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b;
}

.ahr-toggle-seg:focus-visible {
  outline: 2px solid #64748b;
  outline-offset: 2px;
}

/* Smaller “(Save 16%)” next to Yearly */
.ahr-toggle-yearly-save {
  display: inline;
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-left: 0.15em;
}

/* Pipe removed visually (markup kept for a11y fallback); no gap wasted */
.ahr-toggle-pipe {
  display: none !important;
}

/* Lifetime — infinity icon (left of label) */
.ahr-toggle-lifetime-icon {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  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-toggle-seg-lifetime {
  gap: 6px;
}

/* Active segment — white label on sliding pill (monthly-yearly) */
.ahr-membership-toggle[data-ahr-billing-flavor="monthly-yearly"] .ahr-toggle-input:not(:checked) ~ .ahr-toggle-segmented .ahr-toggle-seg-monthly,
.ahr-membership-toggle[data-ahr-billing-flavor="monthly-yearly"] .ahr-toggle-input:not(:checked) ~ .ahr-toggle-segmented .ahr-toggle-seg-monthly:hover,
.ahr-membership-toggle[data-ahr-billing-flavor="monthly-yearly"] .ahr-toggle-input:not(:checked) ~ .ahr-toggle-segmented .ahr-toggle-seg-monthly:focus,
.ahr-membership-toggle[data-ahr-billing-flavor="monthly-yearly"] .ahr-toggle-input:not(:checked) ~ .ahr-toggle-segmented .ahr-toggle-seg-monthly:active {
  color: #ffffff;
}

.ahr-membership-toggle[data-ahr-billing-flavor="monthly-yearly"] .ahr-toggle-input:checked ~ .ahr-toggle-segmented .ahr-toggle-seg-yearly,
.ahr-membership-toggle[data-ahr-billing-flavor="monthly-yearly"] .ahr-toggle-input:checked ~ .ahr-toggle-segmented .ahr-toggle-seg-yearly:hover,
.ahr-membership-toggle[data-ahr-billing-flavor="monthly-yearly"] .ahr-toggle-input:checked ~ .ahr-toggle-segmented .ahr-toggle-seg-yearly:focus,
.ahr-membership-toggle[data-ahr-billing-flavor="monthly-yearly"] .ahr-toggle-input:checked ~ .ahr-toggle-segmented .ahr-toggle-seg-yearly:active {
  color: #ffffff;
}

/* Active segment — yearly-lifetime */
.ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"] .ahr-toggle-input:not(:checked) ~ .ahr-toggle-segmented .ahr-toggle-seg-yearly,
.ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"] .ahr-toggle-input:not(:checked) ~ .ahr-toggle-segmented .ahr-toggle-seg-yearly:hover,
.ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"] .ahr-toggle-input:not(:checked) ~ .ahr-toggle-segmented .ahr-toggle-seg-yearly:focus,
.ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"] .ahr-toggle-input:not(:checked) ~ .ahr-toggle-segmented .ahr-toggle-seg-yearly:active {
  color: #ffffff;
}

.ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"] .ahr-toggle-input:checked ~ .ahr-toggle-segmented .ahr-toggle-seg-lifetime,
.ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"] .ahr-toggle-input:checked ~ .ahr-toggle-segmented .ahr-toggle-seg-lifetime:hover,
.ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"] .ahr-toggle-input:checked ~ .ahr-toggle-segmented .ahr-toggle-seg-lifetime:focus,
.ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"] .ahr-toggle-input:checked ~ .ahr-toggle-segmented .ahr-toggle-seg-lifetime:active {
  color: #ffffff;
}

/* Inactive lifetime — dim infinity icon like archive lock icons */
.ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"] .ahr-toggle-input:not(:checked) ~ .ahr-toggle-segmented .ahr-toggle-seg-lifetime .ahr-toggle-lifetime-icon {
  opacity: 0.42;
}

.ahr-membership-toggle[data-ahr-billing-flavor="yearly-lifetime"] .ahr-toggle-input:checked ~ .ahr-toggle-segmented .ahr-toggle-seg-lifetime .ahr-toggle-lifetime-icon {
  opacity: 1;
}

@media (max-width: 480px) {
  .ahr-toggle-seg {
    min-width: 6.25rem;
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* slashed yearly price */
.ahr-membership-plans-col .ahr-card-price-strike {
  font-size: 20px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 4px;
  display: none;
}

/* ------------------------------- */
/* PATREON-STYLE COLLAPSE / FADE  */
/* ------------------------------- */

/* Extras wrapper: one animating block for smooth open/close */
.ahr-membership-plans-col .ahr-card-extras-wrap {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ahr-membership-plans-col .ahr-card-collapsed .ahr-card-extras-wrap {
  max-height: 0;
}

.ahr-membership-plans-col .ahr-card-expanded .ahr-card-extras-wrap {
  max-height: 2000px;
}

.ahr-membership-plans-col .ahr-card-extras-inner {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

/* Fade: smooth opacity + height transition (decorative only — must not steal clicks from Show more) */
.ahr-membership-plans-col .ahr-card-fade {
  height: 40px;
  margin-top: -18px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Patreon-style: last benefit text fades out above Show more (collapsed only) */
.ahr-membership-plans-col .ahr-card-collapsed .ahr-card-fade {
  opacity: 1;
  height: 56px;
  margin-top: -40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 35%, #ffffff 100%);
}

.ahr-membership-plans-col .ahr-card-expanded .ahr-card-fade {
  opacity: 0;
  height: 0;
  margin-top: 0;
  pointer-events: none;
}

/* Show more / Show less — padding enlarges hit area; margins offset so layout matches old design */
.ahr-membership-plans-col .ahr-card-showmore {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #32a2e7;
  cursor: pointer;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin: 0 auto -2px;
  transition: margin 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* extra breathing room when expanded */
.ahr-membership-plans-col .ahr-card-expanded .ahr-card-showmore {
  margin-top: 18px;
}

/* tighter spacing between last benefit and Show more button (collapsed state only) */
.ahr-membership-plans-col .ahr-card-collapsed .ahr-card-showmore {
  margin-top: -35px;
}

/* Remove ugly BuddyBoss focus outline from Show More buttons */
.ahr-membership-plans-col .ahr-card-showmore:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* TEMP (2026-06-03): Observational + Master Mentorship — full benefit lists by default.
   Show more button, fade, and collapse animations hidden in design only (HTML/JS unchanged). */
.ahr-membership-plans-col .ahr-card-observational .ahr-card-showmore,
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-showmore,
.ahr-membership-plans-col .ahr-card-observational .ahr-card-fade,
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-fade {
  display: none;
}

.ahr-membership-plans-col .ahr-card-observational .ahr-card-extras-wrap,
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-extras-wrap {
  max-height: none;
  transition: none;
}

.ahr-membership-plans-col .ahr-card-observational .ahr-card-benefits-list,
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-benefits-list {
  -webkit-mask-image: none;
  mask-image: none;
}

/* Observational + Master Mentorship: 14px between rows, divider centered in that gap */
.ahr-membership-plans-col .ahr-card-observational .ahr-card-benefits-list,
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-benefits-list {
  --ahr-benefit-row-gap: 30px;
  gap: 0;
}

.ahr-membership-plans-col .ahr-card-observational .ahr-card-extras-inner,
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-extras-inner {
  gap: 0;
  padding-top: 0;
  margin: 0;
}

.ahr-membership-plans-col .ahr-card-observational .ahr-card-benefits-list > .ahr-card-benefit,
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-benefits-list > .ahr-card-benefit,
.ahr-membership-plans-col .ahr-card-observational .ahr-card-extras-inner > .ahr-card-benefit,
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-extras-inner > .ahr-card-benefit {
  box-sizing: border-box;
  margin: 0;
  padding-top: calc(var(--ahr-benefit-row-gap) / 2);
  padding-bottom: calc(var(--ahr-benefit-row-gap) / 2);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  align-items: flex-start;
}

.ahr-membership-plans-col .ahr-card-observational .ahr-card-benefits-list > .ahr-card-benefit:first-child,
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-benefits-list > .ahr-card-benefit:first-child {
  padding-top: 0;
}

.ahr-membership-plans-col .ahr-card-observational .ahr-card-extras-inner > .ahr-card-benefit:last-child,
.ahr-membership-plans-col .ahr-card-master-mentorship .ahr-card-extras-inner > .ahr-card-benefit:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

