/************************************************************
    DESKTOP TABLE (GRID VERSION)
************************************************************/
.pricing-wrapper {
  width: 100%;
  margin: 20px auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -----------------------------
   DESKTOP TABLE USING CSS GRID
------------------------------ */
.pricing-table {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr); /* Feature column + 5 plan columns */
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

/* Rows act as container-only wrappers */
.row {
  display: contents;
}

/* Grid cells */
.cell {
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
}

/* Header row styling */
.header-row .cell {
  border-bottom: 2px solid #d1d5db;
}

/* Zebra striping based on row index */
.row:nth-of-type(even) .cell {
  background: #f9fafb;
}

/* -----------------------------
   FEATURE COLUMN / HEADERS
------------------------------ */
.feature-header {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
}
.feature-header {
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-header-label {
  font-size: 22px;
  font-weight: 700;
  padding-left: 10px;
}

.feature {
  text-align: left;
  font-weight: 600;
  color: #111827;
}

/* -----------------------------
   PLAN HEADERS
------------------------------ */
.plan-header {
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  text-align: center;
  padding-top: 18px;
  padding-bottom: 18px;
  position: relative;
}

.plan-header h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: #111827;
}

.plan-header .price {
  margin: 6px 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.plan-header .price span {
  font-size: 13px;
  color: #6b7280;
}

.plan-icon {
  font-size: 30px;
  margin-bottom: 6px;
  margin-top: 13px;
}

/* Popular Plan */
.plan-header.popular {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: white;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.plan-header.popular h3,
.plan-header.popular .price,
.plan-header.popular .price span {
  color: white;
}

.popular-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #f97316;
  color: #000;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.your-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #51aa3e;
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -----------------------------
   CHECK / X ICONS
------------------------------ */
.check {
  color: #22c55e;
  font-size: 18px;
  font-weight: 700;
}

.x {
  color: #ef4444;
  font-size: 18px;
  font-weight: 700;
}

/* -----------------------------
   FULL-WIDTH ROW (THE FIX)
------------------------------ */
.full-width-cell {
  grid-column: 1 / -1; /* Span all 6 columns */
  text-align: center;
  padding: 20px;
  background: #f3f4f6;
  font-size: 16px;
  font-weight: 600;
  white-space: normal;
}

/* -----------------------------
   BUTTONS
------------------------------ */
.plan-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #111827;
  color: #fff;
  transition: background 0.2s ease, transform 0.1s ease;
}

.plan-btn:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

.plan-btn.primary {
  background: #16a34a;
}

.plan-btn.primary:hover {
  background: #15803d;
}

.plan-btn.disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.plan-btn.contact {
  background: #2563eb;
}

.plan-btn.contact:hover {
  background: #1d4ed8;
}

/************************************************************
    MOBILE CARDS
************************************************************/
.pricing-cards {
  display: none;
  margin-top: 20px;
}

.plan-card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  position: relative;
}

.plan-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.plan-card .price {
  font-size: 22px;
  margin: 8px 0 12px;
  font-weight: 600;
  color: #111827;
}

.plan-card .price span {
  font-size: 13px;
  color: #6b7280;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
  font-size: 14px;
}

.feature-list li {
  margin-bottom: 6px;
}

/* Popular mobile card */
.popular-card {
  border: 2px solid #2563eb;
}

.popular-card .popular-badge {
  top: 10px;
  left: 16px;
  transform: none;
}

.plan-card .plan-btn {
  width: 100%;
}

/************************************************************
    RESPONSIVE SWITCH
************************************************************/
@media (max-width: 1100px) {
  .pricing-table {
    display: none;
  }

  .pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}
/* Buy Button Row */
.buy-row .buy-cell {
  padding: 20px 12px;
  border-top: 2px solid #e5e7eb;
  background: #f9fafb;
}

.buy-row .label-cell {
  background: #ffffff; /* keep features column clean */
}

/* Make buttons fill the cell width */
.plan-btn.full {
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}

/* Stronger highlight for Growth plan */
.buy-row .cell:nth-child(4) .plan-btn.primary {
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* Hover animation for all purchasable buttons */
.plan-btn.full:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
/* NEW MOBILE DESIGN */
.new-mobile-card {
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

/* Header */
.plan-header-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.plan-header-mobile .plan-icon {
  font-size: 34px;
}

.plan-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.plan-title .price {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

.plan-title .price span {
  font-size: 13px;
  color: #6b7280;
}

/* Highlights */
.highlight-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
}

.highlight-list li {
  font-size: 15px;
  margin-bottom: 6px;
  display: flex;
  gap: 6px;
  line-height: 1.4;
}

.highlight-list li::before {
  content: "•";
  color: #3b82f6;
  font-size: 20px;
  line-height: 1;
}

/* Feature collapse */
.feature-collapse {
  margin-bottom: 16px;
}

.toggle-features {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  background: #4769ac;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
}

.full-features {
  display: none;
  margin-top: 12px;
  padding-left: 0;
}

.full-features li {
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Toggle open state */
.feature-collapse.open .full-features {
  display: block;
}

/* Full width CTA */
.plan-btn.full-width {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 10px;
}
/* Mobile Feature Items */
.feature-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
}

.feature-item:last-child {
  border-bottom: none;
}

/* Feature text on the left */
.feature-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.35;
  color: #111827;
}

/* "More Details" smaller + subtle */
.feature-text .more-details {
  font-size: 13px;
  text-decoration: underline;
  margin-left: 4px;
  color: #2563eb;
  cursor: pointer;
}

/* Value / check / X on right side */
.feature-value {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
  font-size: 16px;
}

.feature-value.check {
  color: #22c55e;
}

.feature-value.x {
  color: #ef4444;
}

.checkout-container {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.checkout-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.checkout-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.plan-icon {
  font-size: 40px;
}

.plan-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.plan-price {
  margin: 2px 0 0;
  font-size: 16px;
  color: #4b5563;
}

.checkout-section {
  margin-bottom: 24px;
}

.section-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.included-credits {
  margin: 0;
  font-size: 15px;
  color: #374151;
}

.input-label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
  color: #374151;
}

.credit-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

#extra-credits {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
}

.per-pack {
  font-size: 14px;
  color: #6b7280;
}

.small-note {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

.checkout-summary {
  background: #f9fafb;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.summary-row, .summary-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
}

.summary-total {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-top: 10px;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.checkout-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.credits-preview {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
}
.credits-preview {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
}

.credits-total {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
button.change-btn[type="submit"] {
  display: block;
  margin: 20px auto 0 auto;
  padding: 10px 20px;
  background: #e5e7eb;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

button.change-btn[type="submit"]:hover {
  background: #d1d5db;
  border-color: #9ca3af;
}

button.change-btn[type="submit"]:active {
  background: #cbd5e1;
  transform: scale(0.97);
}



