.buy-section {
  padding: 46px 24px 64px;
}

.billing-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px auto 28px;
}

.billing-tab {
  min-width: 96px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}

.billing-tab.active {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.buy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
}

.buy-plan {
  position: relative;
  min-width: 0;
}

.buy-plan.selected-plan {
  border-color: rgba(16, 185, 129, 0.72);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 0 0 6px 6px;
  background: #10b981;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.plan-cycle-label {
  color: #94a3b8;
  font-size: 13px;
}

.plan-discount {
  min-height: 20px;
  margin: 4px 0 10px;
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 700;
}

.plan-description {
  min-height: 52px;
  color: #cbd5e1;
}

.feature-pills {
  display: flex;
  min-height: 84px;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 18px;
}

.feature-pill {
  padding: 4px 9px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  font-size: 12px;
}

@media (max-width: 900px) {
  .buy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .buy-section {
    padding: 34px 14px 48px;
  }

  .billing-tabs {
    width: 100%;
  }

  .billing-tab {
    min-width: 0;
    flex: 1;
  }

  .buy-grid {
    grid-template-columns: 1fr;
  }

  .plan-description,
  .feature-pills {
    min-height: 0;
  }
}
