/* =========================================================================
   Sayed AB | Pricing v267
   1. Categories become tabs - plans are never shown all at once.
   2. The plan tag (Most Popular / any custom text) sits ABOVE the card,
      has one fixed width, and scrolls inside itself when the text is long.
   3. Every card in a row lines up: name, description, price, features and
      button all start and finish on the same line.
   4. Admin-built comparison tables.
   ========================================================================= */

.plans-root {
  --sabpr-line: rgba(20, 77, 158, 0.14);
  --sabpr-ink: #0f3b7a;
  --sabpr-soft: #646f88;
  --sabpr-brand: var(--brand, #144d9e);
  --sabpr-badge-h: 44px;
}

/* ------------------------------------------------------------------- tabs */
.sabpr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 4px auto 26px;
  max-width: 980px;
}
.sabpr-tab {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--sabpr-line);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(20, 77, 158, 0.07);
  color: var(--sabpr-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 11px 18px;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
    transform 0.22s ease, box-shadow 0.22s ease;
}
.sabpr-tab:hover {
  border-color: rgba(20, 77, 158, 0.36);
  transform: translateY(-2px);
}
.sabpr-tab i {
  background: rgba(20, 77, 158, 0.09);
  border-radius: 999px;
  color: var(--sabpr-brand);
  font-size: 11.5px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  min-width: 22px;
  padding: 2px 7px;
  text-align: center;
  transition: background 0.22s ease, color 0.22s ease;
}
.sabpr-tab.is-on {
  background: linear-gradient(135deg, #0f3b7a, #1b65ba);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(20, 77, 158, 0.26);
  color: #fff;
}
.sabpr-tab.is-on i {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.sabpr-tab:focus-visible {
  outline: 3px solid rgba(20, 77, 158, 0.35);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------- panels */
.sabpr-panels {
  position: relative;
}
.sabpr-panel {
  display: none;
}
.sabpr-panel.is-on {
  display: block;
}
.sabpr-panel.is-on.sabpr-from-right {
  animation: sabpr-in-right 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.sabpr-panel.is-on.sabpr-from-left {
  animation: sabpr-in-left 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes sabpr-in-right {
  from {
    opacity: 0;
    transform: translateX(46px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes sabpr-in-left {
  from {
    opacity: 0;
    transform: translateX(-46px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.sabpr-panel .price-group {
  margin-bottom: 8px;
}
/* the tab already names the category, so the heading becomes a quiet caption */
.sabpr-panel .price-group > h3 {
  color: var(--sabpr-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
}
/* a category may hold 1, 2 or 3 plans — keep them centred instead of
   hugging the left edge of a fixed 3-column grid */
.sabpr-panel .price-grid {
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 360px));
  justify-content: center;
}

/* -------------------------------------------------- one cell = tag + card */
.sabpr-cell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}
.sabpr-tagged .sabpr-cell {
  --sabpr-slot: var(--sabpr-badge-h);
}
.sabpr-slot {
  align-items: end;
  display: flex;
  height: 0;
  justify-content: center;
  padding-bottom: 0;
}
.sabpr-tagged .sabpr-slot {
  height: var(--sabpr-badge-h);
  padding-bottom: 10px;
}

/* the tag itself: fixed width, text scrolls inside when it is too long */
.sabpr-badge {
  align-items: center;
  background: linear-gradient(135deg, #0d3a78 0%, #1761b8 100%);
  border: 1.5px solid #f9a20b;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(20, 77, 158, 0.24);
  color: #fff;
  display: inline-flex;
  gap: 7px;
  height: 34px;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  padding: 0 14px;
  width: 230px;
}
.sabpr-badge .badge-crown {
  color: #f9c04b;
  flex: 0 0 15px;
  height: 15px;
  width: 15px;
}
.sabpr-badge-vp {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.sabpr-badge-track {
  align-items: center;
  display: flex;
  justify-content: center;
  white-space: nowrap;
}
.sabpr-badge-txt {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}
/* long text: two copies move together, exactly like the announcement bar */
.sabpr-badge.is-scroll .sabpr-badge-track {
  animation: sabpr-marquee var(--sabpr-marq, 9s) linear infinite;
  justify-content: flex-start;
  width: max-content; /* v294 — seamless loop fix: track must be exactly 2 copies wide, warna -50% adhoora lagta hai aur text stuck ho kar restart hota hai */
  will-change: transform;
}
.sabpr-badge.is-scroll .sabpr-badge-txt {
  padding-right: 34px;
}
.sabpr-badge.is-scroll:hover .sabpr-badge-track {
  animation-play-state: paused;
}
@keyframes sabpr-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------- card alignment */
.sabpr-cell .price-card:not(.master-card),
.sabpr-cell .price-card:not(.master-card).popular,
.sabpr-cell .price-card:not(.master-card).on-sale,
.sabpr-cell .price-card:not(.master-card).popular.on-sale {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 26px 24px 24px !important;
}
/* the tag no longer lives inside the card, so nothing needs head-room */
.sabpr-cell .price-card:not(.master-card) .pop-tag,
.sabpr-cell .price-card:not(.master-card) .master-badge {
  display: none !important;
}
.sabpr-cell .price-card:not(.master-card) .pname {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 6px !important;
  min-height: var(--sabpr-h-name, auto);
  padding-right: 0 !important;
}
.sabpr-cell .price-card:not(.master-card).on-sale .pname {
  padding-right: 0 !important;
}
.sabpr-cell .price-card:not(.master-card) .psub {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px !important;
  min-height: var(--sabpr-h-sub, auto);
}
.sabpr-cell .price-card:not(.master-card) .price {
  align-items: center;
  border-bottom: 1px dashed var(--sabpr-line);
  gap: 4px;
  /* the reserved block is shared, so the big number stays optically level
     even when one card also carries a struck-out price and a saving note */
  justify-content: center;
  margin: 0 0 16px !important;
  min-height: var(--sabpr-h-price, auto);
  padding-bottom: 14px;
}
.sabpr-cell .price-card:not(.master-card) .price .price-main {
  align-items: baseline;
  justify-content: center;
}
.sabpr-cell .price-card:not(.master-card) .feature-list {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 9px;
  margin: 0 0 20px !important;
  text-align: left !important;
}
.sabpr-cell .price-card:not(.master-card) .feature-list li {
  margin: 0 !important;
}
.sabpr-cell .price-card:not(.master-card) .btn,
.sabpr-cell .price-card:not(.master-card) button[disabled] {
  margin-top: auto !important;
  width: 100%;
}
.sabpr-cell .price-card:not(.master-card) .unavailable-ribbon {
  left: 50%;
  max-width: calc(100% - 28px);
  right: auto;
  top: 10px;
  transform: translateX(-50%);
}

/* the single small discount badge, now with the card top all to itself */
.sabpr-cell .price-card:not(.master-card).on-sale .sale-ribbon {
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 5px 12px rgba(216, 31, 74, 0.22) !important;
  font-size: 11.5px !important;
  left: auto !important;
  min-height: 24px !important;
  padding: 3px 10px !important;
  right: 14px !important;
  top: 14px !important;
}

/* master (all-in-one) card keeps its own layout, just tidier spacing */
/* the Master Mentorship card keeps its original design untouched */
.sabpr-panel .master-wrap .price-card.master-card + .price-card.master-card {
  margin-top: 18px;
}

/* --------------------------------------------------------- comparison table */
/* v273 premium pass — royal-blue theme (#144d9e family), gradient title,
   sticky header, sticky first column on mobile, ★ recommended-column
   highlight (admin: column label ke start mein ★ lagayein), refined ticks. */
.compare-section {
  padding-top: 0;
}
.sabpr-cmp {
  background: #fff;
  border: 1px solid rgba(20, 77, 158, 0.14);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(13, 52, 112, 0.14), 0 4px 18px rgba(13, 52, 112, 0.08);
  margin: 0 auto 32px;
  max-width: 1080px;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  position: relative;
}
/* soft brand glow behind the card */
.sabpr-cmp::after {
  background: radial-gradient(440px 170px at 50% -40px, rgba(31, 99, 198, 0.16), transparent 70%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
/* v275: top gradient line removed per user feedback (looked odd above the card) */
.sabpr-cmp-head {
  margin-bottom: clamp(18px, 2.6vw, 26px);
  position: relative;
  text-align: center;
  z-index: 1;
}
.sabpr-cmp-head h3 {
  color: #0f3b7a;
  font-size: clamp(21px, 2.8vw, 29px);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sabpr-cmp-head h3 {
    background: linear-gradient(92deg, #0d3470 10%, #144d9e 55%, #1f63c6 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.sabpr-cmp-head p {
  color: #5d6b87;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 62ch;
}
.sabpr-cmp-scroll {
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(20, 77, 158, 0.1);
  border-radius: 20px;
  overflow: auto;
  position: relative;
  z-index: 1;
}
.sabpr-cmp-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  width: 100%;
}
.sabpr-cmp-table th,
.sabpr-cmp-table td {
  font-size: 14.5px;
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
}
/* ---- header: deep royal gradient bar, sticky on scroll ---- */
.sabpr-cmp-table thead th {
  background: linear-gradient(135deg, #0a2c66 0%, #144d9e 58%, #1f63c6 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  padding-block: 16px;
  position: sticky;
  top: 0;
  z-index: 3;
}
.sabpr-cmp-table thead th + th::before {
  background: rgba(255, 255, 255, 0.18);
  bottom: 22%;
  content: "";
  left: 0;
  position: absolute;
  top: 22%;
  width: 1px;
}
.sabpr-cmp-table thead th:first-child {
  border-radius: 19px 0 0 0;
  font-size: 12px;
  letter-spacing: 0.09em;
  opacity: 0.94;
  text-align: left;
  text-transform: uppercase;
}
.sabpr-cmp-table thead th:last-child {
  border-radius: 0 19px 0 0;
}
/* ---- ★ recommended column ---- */
.sabpr-cmp-table thead th.is-rec {
  background: linear-gradient(135deg, #c98a12 0%, #f9a20b 60%, #ffc53d 100%);
  color: #332503;
}
.sabpr-cmp-table thead th.is-rec::before {
  display: none;
}
.sabpr-cmp-star {
  background: rgba(51, 37, 3, 0.16);
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  margin-right: 7px;
  padding: 2px 8px;
  vertical-align: 2px;
}
.sabpr-cmp-table tbody td.is-rec {
  background: linear-gradient(180deg, rgba(249, 162, 11, 0.1), rgba(249, 162, 11, 0.045));
}
.sabpr-cmp-table tbody tr:hover td.is-rec {
  background: linear-gradient(180deg, rgba(249, 162, 11, 0.16), rgba(249, 162, 11, 0.07));
}
/* ---- body ---- */
.sabpr-cmp-table tbody th {
  color: #14243c;
  font-size: 14.5px;
  font-weight: 700;
  min-width: 196px;
  text-align: left;
}
.sabpr-cmp-table tbody th small {
  color: #5d6b87;
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 2px;
}
.sabpr-cmp-table tbody td,
.sabpr-cmp-table tbody th {
  border-bottom: 1px solid rgba(20, 77, 158, 0.09);
}
.sabpr-cmp-table tbody tr:nth-child(even) > * {
  background: #f6f9ff;
}
.sabpr-cmp-table tbody tr:hover > * {
  background: #e9f1ff;
}
.sabpr-cmp-table tbody tr:last-child > * {
  border-bottom: 0;
}
.sabpr-cmp-table tbody tr:last-child th:first-child {
  border-radius: 0 0 0 19px;
}
.sabpr-cmp-table tbody tr:last-child td:last-child {
  border-radius: 0 0 19px 0;
}
/* ---- the marks ---- */
.sabpr-cmp-yes,
.sabpr-cmp-no {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  transition: transform 0.18s ease;
  width: 30px;
}
.sabpr-cmp-table tbody tr:hover .sabpr-cmp-yes,
.sabpr-cmp-table tbody tr:hover .sabpr-cmp-no {
  transform: scale(1.08);
}
.sabpr-cmp-yes {
  background: linear-gradient(140deg, #1bb264, #0d8a4b);
  box-shadow: 0 6px 16px rgba(13, 138, 75, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}
.sabpr-cmp-no {
  background: rgba(214, 69, 69, 0.09);
  box-shadow: inset 0 0 0 1.6px rgba(214, 69, 69, 0.3);
  color: #cf4040;
}
.sabpr-cmp-yes svg,
.sabpr-cmp-no svg {
  height: 15px;
  width: 15px;
}
.sabpr-cmp-txt {
  color: #14243c;
  font-weight: 700;
}
.sabpr-cmp-dash {
  color: #aab4c6;
}
.sabpr-cmp-foot {
  border-top: 1px solid rgba(20, 77, 158, 0.08);
  color: #646f88;
  font-size: 13px;
  margin: 16px 2px 0;
  padding-top: 13px;
  position: relative;
  text-align: center;
  z-index: 1;
}
/* ---- mobile: sticky first column so labels stay visible ---- */
@media (max-width: 760px) {
  .sabpr-cmp {
    border-radius: 22px;
    padding: 18px 14px;
  }
  .sabpr-cmp-table th,
  .sabpr-cmp-table td {
    font-size: 13.5px;
    padding: 12px 10px;
  }
  .sabpr-cmp-table thead th:first-child,
  .sabpr-cmp-table tbody th {
    left: 0;
    position: sticky;
    z-index: 2;
  }
  .sabpr-cmp-table thead th:first-child {
    z-index: 4;
  }
  .sabpr-cmp-table tbody th {
    background: #fff;
    box-shadow: 1px 0 0 rgba(20, 77, 158, 0.12);
    min-width: 150px;
  }
  .sabpr-cmp-table tbody tr:nth-child(even) th {
    background: #f6f9ff;
  }
  .sabpr-cmp-table tbody tr:hover th {
    background: #e9f1ff;
  }
}


/* ---------------------------------------------------------------- responsive */
@media (max-width: 760px) {
  .plans-root {
    --sabpr-badge-h: 42px;
  }
  .sabpr-tabs {
    gap: 8px;
    margin-bottom: 22px;
  }
  .sabpr-tab {
    font-size: 13px;
    padding: 9px 14px;
  }
  .sabpr-cell .price-card:not(.master-card),
  .sabpr-cell .price-card:not(.master-card).popular,
  .sabpr-cell .price-card:not(.master-card).on-sale,
  .sabpr-cell .price-card:not(.master-card).popular.on-sale {
    padding: 22px 20px 20px !important;
  }
  .sabpr-badge {
    width: 205px;
  }
  .sabpr-cmp {
    padding: 18px 14px;
  }
  .sabpr-cmp-table th,
  .sabpr-cmp-table td {
    padding: 10px 11px;
  }
  /* on a phone the table scrolls sideways, so the line names stay pinned */
  .sabpr-cmp-table thead th:first-child,
  .sabpr-cmp-table tbody th[scope="row"] {
    left: 0;
    min-width: 148px;
    position: sticky;
    z-index: 2;
  }
  .sabpr-cmp-table tbody th[scope="row"] {
    background: #fff;
    box-shadow: 6px 0 12px -8px rgba(13, 52, 112, 0.28);
  }
  .sabpr-cmp-table tbody tr:nth-child(even) th[scope="row"] {
    background: #f6f9ff;
  }
  .sabpr-cmp-table td,
  .sabpr-cmp-table th {
    min-width: 116px;
  }
}
@media (max-width: 560px) {
  /* v277: no more horizontal slider strip — tabs wrap into neat centred
     rows on phones instead of a sideways-scrolling carousel. */
  .sabpr-tabs {
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
    overflow-x: visible;
    padding: 4px 0 8px;
  }
  .sabpr-tab {
    flex: 0 1 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sabpr-panel.is-on.sabpr-from-right,
  .sabpr-panel.is-on.sabpr-from-left {
    animation: none;
  }
  .sabpr-badge.is-scroll .sabpr-badge-track {
    animation: none;
    justify-content: center;
  }
  .sabpr-badge.is-scroll .sabpr-badge-txt + .sabpr-badge-txt {
    display: none;
  }
}

/* ==========================================================================
   v275 — user feedback pass (2026-09-21)
   1. Comparison card: odd top gradient line removed (see note above).
      Subtle premium upgrades only — ticks/crosses/text marks untouched.
   2. Normal plan cards (Basic etc.): premium price panel that fills the
      dead space around the number. Master Mentorship card untouched.
   ========================================================================== */

/* ---- comparison: small eyebrow pill above the title ---- */
.sabpr-cmp-head::before {
  background: rgba(20, 77, 158, 0.07);
  border: 1px solid rgba(20, 77, 158, 0.16);
  border-radius: 999px;
  color: #144d9e;
  content: "SIDE BY SIDE";
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
  padding: 6px 15px 6px 17px;
}
/* ---- comparison: delicate gold keyline under the deep-blue header ---- */
.sabpr-cmp-table thead th {
  box-shadow: inset 0 -2px 0 rgba(249, 162, 11, 0.45);
}
/* ---- comparison: refined edge — crisp outer hairline, soft inner light ---- */
.sabpr-cmp {
  border-color: rgba(20, 77, 158, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 70px rgba(13, 52, 112, 0.14),
    0 4px 18px rgba(13, 52, 112, 0.08);
}

/* ---- normal plan card: premium price panel (master card untouched) ---- */
.sabpr-cell .price-card:not(.master-card):not(.sab-horz) .price {
  background: linear-gradient(160deg, #f5f9ff 0%, #e9f1fd 100%);
  border: 1px solid rgba(20, 77, 158, 0.14);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 20px rgba(13, 52, 112, 0.08);
  margin: 0 0 18px !important;
  padding: 16px 12px 14px;
  position: relative;
}
/* thin gold underline inside the panel for a premium finish */
.sabpr-cell .price-card:not(.master-card):not(.sab-horz) .price::after {
  background: linear-gradient(90deg, transparent, rgba(249, 162, 11, 0.65), transparent);
  border-radius: 2px;
  bottom: 8px;
  content: "";
  height: 2px;
  left: 24px;
  position: absolute;
  right: 24px;
}
.sabpr-cell .price-card:not(.master-card):not(.sab-horz) .price .price-cur {
  font-size: 36px;
  letter-spacing: -0.02em;
}
@media (max-width: 760px) {
  .sabpr-cmp-head::before {
    font-size: 10px;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
  }
}

/* =========================================================================
   v280 — comparison table mobile refinement (2026-09-22)
   The table looked cramped/ugly on phones: the sticky label column ate
   150px of a 360px screen and text wrapped badly. This tightens the
   label column, shrinks type/padding on small screens, keeps the sticky
   label readable during horizontal scroll, and adds a soft scroll hint
   on the right edge. Desktop is untouched. Content/marks unchanged.
   ========================================================================= */
@media (max-width: 560px) {
  .sabpr-cmp { padding: 16px 10px; border-radius: 18px; }
  .sabpr-cmp-head h3 { font-size: 20px; }
  .sabpr-cmp-head p { font-size: 13.5px; }
  .sabpr-cmp-table th,
  .sabpr-cmp-table td { font-size: 12.5px; padding: 10px 8px; }
  .sabpr-cmp-table thead th { font-size: 12px; padding-block: 12px; }
  .sabpr-cmp-table thead th:first-child { font-size: 10.5px; }
  .sabpr-cmp-table tbody th { min-width: 118px; font-size: 12.5px; }
  .sabpr-cmp-table tbody th small { font-size: 11px; }
  .sabpr-cmp-yes, .sabpr-cmp-no { height: 26px; width: 26px; }
  .sabpr-cmp-yes svg, .sabpr-cmp-no svg { height: 13px; width: 13px; }
  /* scroll hint: soft fade on the right edge while scrollable */
  .sabpr-cmp-scroll::after {
    content: ""; position: sticky; right: 0; top: 0; bottom: 0;
    width: 26px; margin-left: -26px; flex: 0 0 auto; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(13,52,112,.08));
  }
}
