/*  Membership Page Wrapper  */
.membership-page {
  position: relative;
  padding-top: 170px;
  background-color: var(--smoke);
}

/*  HERO BANNER  */
.member-hero {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    #1a3a5c 60%,
    #0a2a40 100%
  );
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  margin-bottom: -60px;
}

.member-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 80% 40%,
      rgba(0, 200, 154, 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 60% at 10% 80%,
      rgba(0, 200, 154, 0.1) 0%,
      transparent 60%
    );
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 154, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 154, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 154, 0.15);
  border: 1px solid rgba(0, 200, 154, 0.35);
  border-radius: 50px;
  padding: 6px 18px;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.hero-badge i {
  font-size: 10px;
}

.member-hero h1 {
  font-family: var(--title-font);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.member-hero h1 span {
  background: linear-gradient(90deg, var(--primary-color), #00e8b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.member-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-stat-row {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: left;
}

.hero-stat .num {
  font-family: var(--title-font);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.hero-stat .lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-card-float {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  position: relative;
}

.hero-card-float .price-tag {
  font-family: var(--title-font);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-card-float .price-tag sup {
  font-size: 24px;
  vertical-align: super;
  color: var(--primary-color);
}

.hero-card-float .price-period {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  margin-bottom: 24px;
}

.hero-quick-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-quick-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-quick-features li i {
  color: var(--primary-color);
  font-size: 13px;
  flex-shrink: 0;
}

/*  CTA BUTTONS  */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 15px;
  background: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 200, 154, 0.35);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 200, 154, 0.4);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-outline-custom:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.section-title-grad {
  font-family: var(--title-font);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  background: linear-gradient(
    to right,
    var(--secondary-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

.section-title-grad::before,
.section-title-grad::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: var(--primary-color);
}

.section-title-grad::before {
  right: calc(100% + 20px);
}
.section-title-grad::after {
  left: calc(100% + 20px);
}

@media (max-width: 768px) {
  .section-title-grad::before,
  .section-title-grad::after {
    display: none;
  }
}

/*  EARNINGS SECTION  */
.earnings-section {
  background: var(--white);
  border-radius: 20px;
  padding: 56px 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.earnings-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.earnings-section::after {
  content: "💰";
  position: absolute;
  right: 40px;
  top: 40px;
  font-size: 80px;
  opacity: 0.06;
}

.earn-metric {
  text-align: center;
  padding: 24px;
  background: var(--smoke);
  border-radius: 16px;
  border: 1px solid var(--secondary-extra-light);
  transition: all 0.3s var(--ease);
}

.earn-metric:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.earn-metric .val {
  font-family: var(--title-font);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 6px;
}

.earn-metric .desc {
  font-size: 13px;
  color: var(--text-light);
}

/*  FEATURES GRID  */
.feature-box {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  height: 100%;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 200, 154, 0.12);
  transform: translateY(-4px);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  background: var(--primary-light);
  color: var(--primary-color);
  transition: all 0.3s var(--ease);
}

.feature-box:hover .feature-icon-wrap {
  background: var(--primary-color);
  color: var(--white);
}

.feature-box h5 {
  font-family: var(--title-font);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

/*  FAQ  */
.faq-item {
  background: var(--white);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  transition: border-color 0.3s;
}

.faq-item.open {
  border-color: rgba(0, 200, 154, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s;
  gap: 16px;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-question i {
  color: var(--primary-color);
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s var(--ease),
    padding 0.3s;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

/*  CTA BANNER  */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary-color), #1a3a5c);
  border-radius: 24px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 50% 70% at 20% 50%,
      rgba(0, 200, 154, 0.18) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 60% at 80% 50%,
      rgba(0, 200, 154, 0.12) 0%,
      transparent 65%
    );
}

.cta-banner h2 {
  font-family: var(--title-font);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-banner h2 span {
  background: linear-gradient(90deg, var(--primary-color), #00e8b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .btn-group-custom {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/*  TRUST BAR  */
.trust-bar {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-item i {
  color: var(--primary-color);
  font-size: 18px;
}

/*  REVEAL ANIMATION  */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.3s;
}
.reveal-d4 {
  transition-delay: 0.4s;
}

/*  RESPONSIVE  */
@media (max-width: 991px) {
  .earnings-section {
    padding: 40px 28px;
  }
  .cta-banner {
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  .membership-page {
    padding-top: 130px;
  }
  .member-hero {
    padding: 60px 0 80px;
    margin-bottom: -40px;
  }
  .hero-stat-row {
    gap: 24px;
  }
  .hero-card-float {
    margin-top: 40px;
  }
  .earnings-section {
    padding: 32px 20px;
  }
  .earnings-section::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .member-hero h1 {
    font-size: 32px;
  }
  .member-hero p {
    font-size: 15px;
  }
  .hero-stat .num {
    font-size: 22px;
  }
  .hero-card-float .price-tag {
    font-size: 40px;
  }
  .cta-banner {
    border-radius: 16px;
  }
  .trust-bar {
    gap: 18px;
    padding: 20px;
  }
}

/*  COMPARISON TABLE  */
.compare-table {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.compare-table th {
  font-family: var(--title-font);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 20px;
  background: var(--secondary-color);
  color: var(--white);
}

.compare-table th.highlight {
  background: var(--primary-color);
}

.compare-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td.highlight-col {
  background: rgba(0, 200, 154, 0.05);
  font-weight: 500;
}

.compare-table td.feature-name {
  font-weight: 500;
  color: var(--text-primary);
}

.compare-table i.fa-check {
  color: var(--primary-color);
  font-size: 15px;
}
.compare-table i.fa-xmark {
  color: #d1d5db;
  font-size: 15px;
}

.compare-table tr:hover td {
  background: #fafcff;
}
.compare-table tr:hover td.highlight-col {
  background: rgba(0, 200, 154, 0.08);
}

/*  Scrollable table on small/medium — no visible scrollbar  */
.compare-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}
.compare-table::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Opera */
}

.compare-table table {
  min-width: 560px; /* prevents squishing before scroll kicks in */
}

/*  PLAN SELECTOR CARDS  */
.plan-sel-card {
  background: var(--white);
  border: 2px solid var(--secondary-extra-light);
  border-radius: 20px;
  padding: 32px 28px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  height: 100%;
  position: relative;
  user-select: none;
}

.plan-sel-card:hover {
  border-color: rgba(0, 200, 154, 0.4);
  box-shadow: 0 8px 30px rgba(0, 200, 154, 0.1);
  transform: translateY(-3px);
}

.plan-sel-card.active {
  border-color: var(--primary-color);
  box-shadow: 0 8px 40px rgba(0, 200, 154, 0.18);
}

.plan-sel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.plan-sel-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--secondary-extra-light);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s;
}

.plan-sel-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--primary-color);
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}

.plan-sel-radio.active {
  border-color: var(--primary-color);
}

.plan-sel-radio.active::after {
  transform: scale(1);
}

.plan-sel-name {
  font-family: var(--title-font);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-sel-sub {
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Billing toggle */
.billing-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.billing-btn {
  padding: 9px 20px;
  border-radius: 50px;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1.5px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
}

.billing-btn.active {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 200, 154, 0.35);
}

.billing-btn:not(.active):hover {
  background: var(--primary-light);
}

/* Features inside selector card */
.plan-sel-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-sel-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  text-align: left;
}

.plan-sel-features li i {
  color: var(--primary-color);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Price Summary Bar */
.price-summary-bar {
  margin-top: 20px;
  background: var(--white);
  border: 1.5px solid var(--secondary-extra-light);
  border-radius: 16px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.price-summary-left {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.price-summary-amount {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 700;
  font-family: var(--title-font);
}

.price-discount {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--body-font);
}

.price-summary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  background: var(--primary-color);
  color: var(--white);
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 18px rgba(0, 200, 154, 0.35);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.price-summary-btn:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 200, 154, 0.4);
}

@media (max-width: 576px) {
  .plan-sel-card {
    padding: 24px 18px;
  }
  .plan-sel-name {
    font-size: 22px;
  }
  .price-summary-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .price-summary-btn {
    width: 100%;
    justify-content: center;
  }
  .billing-btn {
    font-size: 11px;
    padding: 8px 14px;
  }
}
