:root {
  --primary-dark: #132563;
  --accent-orange: #ff7b00;
  --text-main: #0a2540;
  --text-light: #f8f9fa;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


h1 {
  color: var(--text-main);
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 10px;
}

.underline {
  width: 80px;
  height: 4px;
  background-color: var(--accent-orange);
  margin: 0 auto 20px auto;
  border-radius: 2px;
}

p.subtitle {
  color: #444;
  font-size: 18px;
  margin-top: 10px;
}

/* Card Section */
.card {
  width: 100%;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.for-buyer-section {
  background-color: var(--primary-dark) !important;
  color: white !important;
  border-radius: 20px !important;
}

.badge {
  position: absolute;
  top: -15px;
  right: 0;
  background: linear-gradient(90deg, #ff8c00, #ff6a00);
  padding: 8px 20px !important;
  border-radius: 15px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: 32px;
  margin: 0 0 20px 0;
}

/* .description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 800px;
} */

/* Tags/Pills Container */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.for-buyer>.pricing-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 30px;
  flex: 1;
  display: flex;
  max-width: 400px;
  flex-direction: column;
  position: relative;
}

.addon-service>.pricing-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-title {
  color: #132563;
  font-size: 22px;
  margin: 0 0 10px 0;
}

.card-subtitle {
  color: #777;
  font-size: 15px;
  margin-bottom: 25px;
}

/* Price Styling */
.price-container {
  margin-bottom: 30px;
}

.price-main {
  display: flex;
  align-items: baseline;
}

.currency {
  font-size: 28px;
  font-weight: 900;
  color: #132563;
}

.price-value {
  font-size: 40px;
  font-weight: 900;
  color: #132563;
  margin-right: 5px;
}

.month-label {
  font-size: 32px;
  font-weight: 900;
  color: #132563;
  line-height: 1;
}

.price-detail {
  display: block;
  color: #888;
  font-size: 13px;
  margin-top: 5px;
}

/* Features List */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  min-height: 250px;
}

.features-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 18px;
  font-size: 15px;
  color: #444;
  line-height: 1.4;
}

/* SVG Checkmark */
.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background-color: #e8f5e9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234caf50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 6px;
}

/* Buttons */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary {
  background-color: #ff7b00;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background-color: #e66f00;
}

.btn-secondary {
  background-color: transparent;
  color: #132563;
  border: 1px solid #cce0e3;
  padding: 14px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #f0f7f8;
}

/* CSS Styles for the section */
.referral-program-section {
  background-color: #f9f9f9;
  /* Light background for the section */
  padding: 20px 10px;
  font-family: Arial, sans-serif;
}

.referral-card-wrapper {
  background-color: var(--primary-dark);
  color: white;
  margin: 0 auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.description-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
  opacity: 0.9;
}

.info-blocks-container {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-block {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  /* Translucent background */
  padding: 20px;
  border-radius: 8px;
}

.block-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.info-list {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
}

.info-list li {
  margin-bottom: 8px;
}

.action-buttons-group {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.primary-orange-btn {
  background-color: #ff7f00;
  /* Bright orange */
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.secondary-white-btn {
  background-color: white;
  color: #333;
  border: 1px solid #ccc;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.disclaimer-text {
  font-size: 13px;
  color: #b0bec5;
  margin: 0;
}

.sellers-pricing-section {
  padding: 40px 20px;
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* Header Styling */
.sellers-header-card {
  background-color: var(--primary-dark);
  color: white;
  padding: 40px;
  border-radius: 20px;
  margin: 0 auto 30px auto;
}

.sellers-main-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.sellers-description {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.5;
}

.sellers-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seller-tag {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
}

/* Grid Styling */
.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
  flex-wrap: wrap;
}


.fast-track-border {
  border: 2px solid #ff7b00;
}

.highlighted-card {
  background-color: #fffdfa;
}

.badge-wrapper {
  position: absolute;
  top: 5px;
  right: 5px;
}

.plan-name {
  color: var(--text-main);
  font-size: 22px;
  margin-bottom: 8px;
}

.plan-target {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.price-block {
  margin-bottom: 25px;
}

.price-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

.price-subtext {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 5px;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.feature-checklist li {
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #444;
  position: relative;
  line-height: 1.4;
}

/* Custom Checkmarks */
.feature-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  background: #e9f7ef;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}


.btn-outline {
  background: white;
  color: var(--text-main);
  border: 1px solid #dcdcdc;
  padding: 12px 15px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.referral-external-section {
  padding: 20px;
  margin: 10px;
  border-radius: 20px;
  border: 1px solid #ececec;
}

.referral-container {
  margin: 0 auto;
  color: var(--text-main);
  padding: 40px;
  border-radius: 15px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.referral-main-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-main);
}

.referral-intro {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #444;
}

.referral-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 35px;
}

.referral-details-grid li {
  color: #444;
}

.details-column {
  background-color: rgba(255, 255, 255, 0.08);
  /* Transparent box effect */
  padding: 25px;
  border-radius: 12px;
}

.column-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.95;
}

/* Dot bullet points as seen in image */
.details-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
}

.referral-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.btn-white {
  background-color: #ffffff;
  color: var(--text-main);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #444;
}

.footer-disclaimer {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 10px;
  color: #444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .referral-details-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }
}


/* Header Card Styling */
.builders-header-card {
  background-color: var(--primary-dark);
  color: white;
  padding: 40px;
  border-radius: 20px;
  margin: 0 auto 30px auto;
}

.builders-main-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.builders-description {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.5;
}

.builders-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-tag {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
}

.for-seller>.pricing-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.for-builder>.pricing-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.highlighted-builder-card {
  border: 2px solid #ff7b00;
  /* Orange border for 'Most Popular' */
  background-color: #fffdfa;
}


/* .card-badge {
    background: #ff7b00;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
} */

.plan-name {
  color: #132563;
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: bold;
}

.plan-target {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.price-block {
  margin-bottom: 25px;
}

.price-val {
  font-size: 36px;
  font-weight: 800;
  color: #132563;
  display: block;
}

.price-subtext {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 5px;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.feature-checklist li {
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #444;
  position: relative;
  line-height: 1.4;
}

/* Green Checkmarks */
.feature-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  background: #e9f7ef;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Button Group Styling */
.btn-group {
  display: flex;
  gap: 10px;
  /* flex-direction: column; */
}

.btn-orange {
  background: var(--accent-orange);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline {
  background: white;
  color: #132563;
  border: 1px solid #dcdcdc;
  padding: 12px 15px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
}

/* Horizontal layout for buttons on larger cards if needed */
@media (min-width: 992px) {
  .btn-group {
    flex-direction: row;
  }
}

.referral-container {
  border-radius: 20px !important;
  padding: 40px !important;
  border: 1px solid #e0e0e0;
}

.pro-marketing-section {
  margin: 10px !important;
  border-radius: 20px !important;
  padding: 40px !important;
  border: 1px solid #e0e0e0;
}


.pro-main-title {
  color: #132563;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.pro-description {
  color: #666;
  font-size: 16px;
  margin-bottom: 25px;
}

.pro-content-grid {
  display: flex;
  gap: 25px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.pro-info-box, .details-column {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 30px;
  flex: 1;
  min-width: 320px;
}

.box-title {
  color: #132563;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.pro-feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.pro-feature-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  font-size: 15px;
  color: #444;
}

/* Bullet points matching the image style */
.pro-feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #333;
  font-weight: bold;
}

.pro-action-group {
  display: flex;
  gap: 15px;
}

.pro-note {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin-top: 20px;
}

.pro-action-group .btn-outline {
  background: white;
  color: #132563;
  border: 1px solid #dcdcdc;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}


/* Add-On Promotions Section */
.addons-section {
  width: 100%;
  margin: 10px;
  padding: 20px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  border: 1px solid #ececec;
  border-radius: 20px;
}

.addons-container {
  width: 100%;
  padding: 20px;
}

.addon-main-title {
  color: #132563;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.addon-subtitle {
  color: #666;
  font-size: 15px;
  margin-bottom: 30px;
}

.addon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.addon-item {
  background-color: #132563;
  /* Matching your dark teal */
  color: white;
  padding: 18px 25px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease;
}

.addon-item:hover {
  transform: translateX(5px);
}

.addon-name {
  font-weight: bold;
  font-size: 16px;
}

.addon-price {
  font-weight: bold;
  font-size: 16px;
}

.addon-footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.addon-btns {
  display: flex;
  gap: 15px;
}

.addon-btns .btn-outline {
  background-color: white;
  color: #132563;
  border: 1px solid #dcdcdc;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.disclaimer-text {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .addon-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .addon-price {
    font-size: 14px;
    opacity: 0.9;
  }
}


/* Partners Section Layout */
.partners-section {
  padding: 20px;
}

.partners-header-card {
  background-color: #132563;
  color: white;
  padding: 40px;
  border-radius: 20px;
  margin: 0 auto 40px auto;
}

.partners-main-title {
  font-size: 32px;
  margin-bottom: 15px;
}

.partners-description {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 25px;
  max-width: 900px;
}

.partners-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.partner-tag {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
}

/* Pricing Grid Refinements */
.highlighted-card {
  border: 2px solid #ff7b00 !important;
  transform: scale(1.02);
  z-index: 2;
}

.card-badge {
  background-color: #ff7b00;
  color: white;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}


.lead-pricing-section {
  margin: 10px;
  display: flex;
  justify-content: center;
  border: 1px solid #ececec;
  border-radius: 20px;
}

.lead-pricing-container {
  width: 100%;
  padding: 40px;
}

.lead-main-title {
  color: #132563;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.lead-subtitle {
  color: #666;
  font-size: 15px;
  margin-bottom: 30px;
}

.lead-grid {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.lead-box {
  flex: 1;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  padding: 30px;
  min-width: 320px;
}

.box-header {
  color: #132563;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
  font-size: 15px;
  color: #444;
}

/* Bullet points matching the image */
.pricing-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #333;
  font-weight: bold;
}

.lead-footer-note {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin-top: 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .lead-grid {
    flex-direction: column;
  }
}


/* Premium Placement Rate Card Specific Styles */
.premium-rate-card-section {
  width: 100%;
  margin: 10px;
  display: flex;
  justify-content: center;
  border: 1px solid #ececec;
  border-radius: 20px;
}

.rate-card-container {
  width: 100%;
  padding: 20px;
}

.rate-card-title {
  color: #132563;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.rate-card-subtitle {
  color: #666;
  font-size: 15px;
  margin-bottom: 30px;
}

.rate-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 35px;
}

.rate-item {
  background-color: #132563;
  /* Signature Dark Teal */
  color: white;
  padding: 18px 25px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.placement-name {
  font-weight: bold;
  font-size: 16px;
}

.placement-price {
  font-weight: bold;
  font-size: 16px;
}

.rate-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rate-action-btns {
  display: flex;
  gap: 15px;
}


.rate-action-btns .btn-outline {
  background-color: white;
  color: #132563;
  border: 1px solid #dcdcdc;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.rate-disclaimer {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

/* Responsive fix for smaller screens */
@media (max-width: 650px) {
  .rate-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .rate-action-btns {
    flex-direction: column;
  }
}

/* =============================================
   RESPONSIVE LAYOUT — Full Mobile & Desktop
   ============================================= */

/* --- Global: fix horizontal overflow from section margins ---
   These elements use width:100% + margin:10px which overflows
   their Bootstrap column. Zero out left/right margins globally. */
.addons-section,
.lead-pricing-section,
.premium-rate-card-section,
.referral-external-section {
  margin-left: 0;
  margin-right: 0;
}

.pro-marketing-section {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* --- Global: ensure badge (absolute) is contained in buyer header --- */
.for-buyer-section {
  position: relative;
}

/* --- Always allow card rows to wrap --- */
.for-buyer,
.for-seller,
.for-builder,
.addon-service {
  flex-wrap: wrap;
}

/* --- Desktop (≥ 992px): constrain buyer cards, keep highlighted scale --- */
@media (min-width: 992px) {
  .for-buyer > .pricing-card {
    max-width: 420px;
  }

  .highlighted-card {
    transform: scale(1.02);
    z-index: 2;
  }
}

/* --- Tablet (768px – 991px): 2-column cards, reduced padding --- */
@media (max-width: 991px) and (min-width: 768px) {

  .for-seller > .pricing-card,
  .for-builder > .pricing-card,
  .addon-service > .pricing-card,
  .for-buyer > .pricing-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .highlighted-card {
    transform: none;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  /* Reduce Bootstrap py-5/pb-5/pt-5 (3rem = 48px) on tablet */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .pb-5 {
    padding-bottom: 2rem !important;
  }

  .pt-5 {
    padding-top: 2rem !important;
  }

  .pro-content-grid {
    flex-direction: column;
  }

  .pro-info-box,
  .details-column {
    min-width: 0;
    width: 100%;
  }
}

/* --- Mobile (< 768px): single-column stacked layout --- */
@media (max-width: 767px) {

  /* Base spacing */
  body {
    padding: 16px 10px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Reduce Bootstrap py-5/pb-5/pt-5 (3rem = 48px) on mobile */
  .py-5 {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .pb-5 {
    padding-bottom: 1.25rem !important;
  }

  .pt-5 {
    padding-top: 1.25rem !important;
  }

  /* Typography scale-down */
  h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .main-title,
  .referral-main-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .pro-main-title,
  .sellers-main-title,
  .builders-main-title,
  .partners-main-title,
  .addon-main-title,
  .lead-main-title,
  .rate-card-title {
    font-size: 18px;
  }

  p.subtitle {
    font-size: 15px;
  }

  /* Price numbers */
  .price-value {
    font-size: 32px;
  }

  .month-label {
    font-size: 24px;
  }

  .price-val {
    font-size: 28px;
  }

  /* --- Header cards padding --- */
  .card,
  .for-buyer-section {
    padding: 20px 16px !important;
  }

  .sellers-header-card,
  .builders-header-card,
  .partners-header-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .referral-card-wrapper {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .referral-container {
    padding: 20px 16px !important;
  }

  .pro-marketing-section {
    padding: 20px 16px !important;
    margin: 0 !important;
    border-radius: 14px !important;
  }

  .addons-section {
    margin: 0;
    padding: 16px 12px;
    border-radius: 14px;
  }

  .addons-container {
    padding: 10px 0;
  }

  .referral-external-section {
    margin: 0;
    padding: 16px;
    border-radius: 14px;
  }

  .lead-pricing-section {
    margin: 0;
    border-radius: 14px;
  }

  .lead-pricing-container {
    padding: 20px 16px;
  }

  .premium-rate-card-section {
    margin: 0;
    border-radius: 14px;
  }

  .rate-card-container {
    padding: 20px 16px;
  }

  /* --- Card rows: stack vertically --- */
  .for-buyer,
  .for-seller,
  .for-builder,
  .addon-service {
    flex-direction: column;
    gap: 14px !important;
  }

  .for-buyer > .pricing-card,
  .for-seller > .pricing-card,
  .for-builder > .pricing-card,
  .addon-service > .pricing-card {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 20px 16px;
  }

  .highlighted-card {
    transform: none;
    order: -1; /* bring "Best Value" card first on mobile */
  }

  /* --- Info blocks (How to Earn / Important Notes) --- */
  .info-blocks-container {
    flex-direction: column;
    gap: 14px;
  }

  /* --- Referral grid: single column --- */
  .referral-details-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* --- Pro marketing grid --- */
  .pro-content-grid {
    flex-direction: column;
    gap: 14px;
  }

  .pro-info-box,
  .details-column {
    min-width: 0;
    width: 100%;
    padding: 20px 16px;
    border-radius: 14px;
  }

  /* --- Lead grid --- */
  .lead-grid {
    flex-direction: column;
    gap: 14px;
  }

  .lead-box {
    min-width: 0;
    width: 100%;
    padding: 20px 16px;
    border-radius: 12px;
  }

  /* --- Addon & Rate items: stack label / price --- */
  .addon-item,
  .rate-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
  }

  .addon-name,
  .placement-name {
    font-size: 14px;
  }

  .addon-price,
  .placement-price {
    font-size: 13px;
    opacity: 0.85;
  }

  /* --- All button groups: stack & full-width --- */
  .button-group,
  .action-buttons-group,
  .btn-group,
  .addon-btns,
  .rate-action-btns,
  .pro-action-group,
  .referral-footer-actions .btn-group {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-orange,
  .btn-white,
  .btn-outline,
  .primary-orange-btn,
  .secondary-white-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  /* --- Features list: remove fixed min-height on mobile --- */
  .features-list {
    min-height: unset;
  }

  /* --- Badge (absolutely positioned): reflow into document on mobile --- */
  .badge {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }
}