.pricing-page {
  padding-bottom: 4rem;
  font-family: var(--extnd-font, Roboto, "Helvetica Neue", Arial, sans-serif);
}

.pricing-hero-spacer {
  height: 0;
}

/* Plan cards row */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem 1.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(83, 158, 207, 0.25);
}

.pricing-card.is-featured {
  border: 2px solid #539ecf;
  box-shadow: 0 8px 32px rgba(83, 158, 207, 0.3);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(80.72deg, #539ecf 14.38%, #4cb5ca 102.13%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.35rem;
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: #6c757d;
  min-height: 2.5rem;
  margin-bottom: 1rem;
}

.pricing-card__price {
  width: 105px;
  height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(45deg, #673ab7c2, #2196f3);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.pricing-card__amount {
  font-size: 1.75rem;
  font-weight: 700;
}

.pricing-card__period {
  font-size: 0.7rem;
  opacity: 0.95;
}

.pricing-card__cta {
  margin-top: auto;
  width: 100%;
  max-width: 200px;
}

.pricing-card__highlights {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  width: 100%;
  text-align: start;
  font-size: 0.8125rem;
  color: #495057;
}

.pricing-card__highlights li {
  position: relative;
  padding-inline-start: 1.35rem;
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.pricing-card__highlights li:last-child {
  margin-bottom: 0;
}

.pricing-card__highlights li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: #4777f5;
  font-weight: 700;
}

/* Homepage pricing strip */
.pricing-home {
  background: #f3f6ff;
}

.pricing-home-trial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: -0.5rem auto 1.75rem;
  padding: 0.5rem 1.25rem;
  max-width: fit-content;
  border-radius: 999px;
  background: linear-gradient(80.72deg, rgba(83, 158, 207, 0.12) 14.38%, rgba(76, 181, 202, 0.12) 102.13%);
  color: #4777f5;
  font-size: 0.9rem;
  font-weight: 700;
}

.pricing-home-footer {
  text-align: center;
  margin-top: 0.5rem;
}

.pricing-home-compare {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.pricing-home .pricing-cards {
  margin-bottom: 1.5rem;
}

.pricing-home .pricing-card__desc {
  min-height: auto;
  margin-bottom: 0.85rem;
}

.pricing-card .btn-outline-secondary {
  color: #4777f5;
  border-color: #4777f5;
  background: transparent;
}

.pricing-card .btn-outline-secondary:hover {
  color: #fff;
  background: #4777f5;
  border-color: #4777f5;
}

/* Comparison table */
.pricing-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.pricing-compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
}

.pricing-compare col.feature-col {
  width: 28%;
}

.pricing-compare th,
.pricing-compare td {
  padding: 0.85rem 1rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #eef1f4;
}

.pricing-compare thead th {
  background: linear-gradient(80.72deg, #539ecf 14.38%, #4cb5ca 102.13%);
  color: #fff;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}

.pricing-compare thead th.feature-col {
  text-align: start;
  background: #f8f9fb;
  color: #212529;
  font-weight: 600;
}

.pricing-compare thead th.is-featured {
  background: linear-gradient(45deg, #673ab7c2, #2196f3);
}

.pricing-compare .plan-head-name {
  display: block;
  font-size: 1rem;
}

.pricing-compare .plan-head-price {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.95;
  margin-top: 0.15rem;
}

.pricing-compare tbody tr.section-row td {
  background: #f0f4f8;
  font-weight: 700;
  color: #4777f5;
  text-align: start;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding-top: 1rem;
  padding-bottom: 0.65rem;
}

.pricing-compare tbody tr.feature-row th.feature-col {
  text-align: start;
  font-weight: 500;
  color: #343a40;
  background: #fafbfc;
}

.pricing-compare tbody tr.feature-row:hover td {
  background: #f5f9fc;
}

.pricing-compare .cell-check {
  color: #4777f5;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.pricing-compare .cell-dash {
  color: #ced4da;
  font-size: 1.1rem;
}

.pricing-compare .cell-limit {
  font-weight: 700;
  color: #212529;
}

.pricing-compare tfoot td {
  border-bottom: none;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  background: #fff;
}

.pricing-compare tfoot .feature-col {
  background: #fafbfc;
}

.pricing-note {
  text-align: center;
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-compare {
    min-width: 560px;
  }
}

[dir='rtl'] .pricing-compare thead th.feature-col,
[dir='rtl'] .pricing-compare tbody tr.section-row td,
[dir='rtl'] .pricing-compare tbody tr.feature-row th.feature-col {
  text-align: right;
}
