/* Subscription page — loaded after the site header so cards stay visible */
body.sub-page {
  background: #f1f5f9 !important;
  color: #1f2937 !important;
}

/* Beat site-beauty.css (html body:not(.dashboard-page) { padding-top: 72px })
   The real nav is taller than 72px, so cards were sliding under it. */
html body.sub-page:not(.dashboard-page) {
  --csl-nav-h: 118px;
  padding-top: 118px !important;
}

body.sub-page .sub-section {
  padding-top: 20px !important;
  padding-bottom: 24px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  max-width: 1280px !important;
  width: 100% !important;
}

/* Clive 13" laptop: keep Basic / Plus / Pro in one row. auto-fit+260px was wrapping 2+1. */
body.sub-page .sub-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
  justify-content: stretch !important;
}

body.sub-page .sub-card {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

body.sub-page .sub-card-body {
  padding: 12px 10px 12px !important;
}

body.sub-page .sub-card-header-bar {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem) !important;
}

body.sub-page .sub-card-price {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem) !important;
}

body.sub-page .sub-card-features li {
  font-size: 0.82rem !important;
}

body.sub-page .sub-plans-hub {
  max-width: none !important;
  padding: 14px 8px 16px !important;
  overflow: visible !important;
}

@media (max-width: 639px) {
  body.sub-page .sub-grid {
    grid-template-columns: 1fr !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    gap: 16px !important;
  }

  body.sub-page .sub-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.sub-page .sub-card-body {
    padding: 16px 14px 14px !important;
  }

  body.sub-page .sub-card-header-bar {
    font-size: 1.45rem !important;
  }

  body.sub-page .sub-card-price {
    font-size: 2rem !important;
  }
}

body.sub-page .sub-plans-hub {
  overflow: visible !important;
  margin-top: 8px;
}

body.sub-page .sub-billing-toggle-wrap {
  margin-bottom: 20px;
  padding-top: 8px;
}

body.sub-page .sub-card-header-bar {
  display: block !important;
  min-height: 52px;
  padding: 14px 12px !important;
}

body.sub-page .sub-card-header-bar.silver {
  background: #3d4f96 !important;
  color: #fff !important;
}
body.sub-page .sub-card-header-bar.gold {
  background: linear-gradient(135deg, #172a74, #21a9af) !important;
  color: #fff !important;
}
body.sub-page .sub-card-header-bar.platinum {
  background: #172a74 !important;
  color: #fff !important;
}
body.sub-page .sub-card-header-bar.provider {
  background: #facc15 !important;
  color: #111827 !important;
}

body.sub-page .sub-plans-hub,
body.sub-page .sub-card,
body.sub-page .sub-card-body,
body.sub-page .section-card {
  background: #fff !important;
  color: #1f2937 !important;
  opacity: 1 !important;
}

body.sub-page .sub-card {
  animation: none !important;
  transform: none !important;
}

body.sub-page .sub-card-header-bar {
  color: #fff !important;
}
body.sub-page .sub-card-header-bar.free {
  color: #111827 !important;
}

body.sub-page .sub-card-tagline,
body.sub-page .sub-card-features li,
body.sub-page .sub-cancel-policy,
body.sub-page .sub-payment-hint {
  color: #4b5563 !important;
}

body.sub-page .sub-card-price {
  color: #0f172a !important;
}

body.sub-page .form-control,
body.sub-page .sub-plan-coupon {
  color: #1f2937 !important;
  background: #fff !important;
  border: 1.5px solid #d1d5db !important;
}

body.sub-page .form-control::placeholder,
body.sub-page .sub-plan-coupon::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

body.sub-page .sub-plans-hub-inner {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
}

body.sub-page .sub-checkout {
  display: none;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

body.sub-page .sub-card.sub-checkout-open .sub-checkout {
  display: block;
}

body.sub-page .sub-card.sub-checkout-open .sub-plan-select {
  display: none;
}

body.sub-page .sub-card .billing-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body.sub-page .sub-apply-coupon {
  flex: 0 0 auto;
  width: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  background: #e5e7eb !important;
  color: #111827 !important;
}

body.sub-page .sub-checkout-coupon {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

body.sub-page .sub-checkout-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #374151 !important;
  margin-bottom: 6px;
}

body.sub-page .sub-coupon-status {
  font-size: 0.8rem;
  margin: 0 0 10px;
}

body.sub-page .sub-billing-pill label {
  color: #374151 !important;
}
body.sub-page .sub-billing-pill input:checked + label {
  color: #172a74 !important;
  background: #fff;
}

body.sub-page .paypal-wrap {
  min-height: 48px;
  margin-top: 8px;
}
