/* Shared pricing treatment. Scoped to pricing sections, never generic cards. */
body.dashboard-page #billing .billing-plan-grid,
body.landing-modern #pricing .price-row {
  gap: 20px;
  justify-items: center;
}

body.dashboard-page #billing .billing-plan-card,
body.landing-modern #pricing .price-row article {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 340px;
  min-height: 365px;
  padding: 26px;
  border: 1px solid #3a3d45;
  border-radius: 20px;
  background: #202329;
  box-shadow: 0 12px 28px #0003;
  color: #fff;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
body.dashboard-page #billing .billing-plan-card:hover,
body.landing-modern #pricing .price-row article:hover,
body.landing-modern #pricing .price-row article.price-featured:hover {
  transform: translateY(-5px);
  border-color: #7b718a;
  box-shadow: 0 16px 34px #0005;
}
body.dashboard-page #billing .billing-plan-card.featured,
body.landing-modern #pricing .price-row article.price-featured {
  background: #282530;
  border-color: #9c83be;
  box-shadow: 0 12px 28px #0004;
}
body.dashboard-page #billing .plan-popular,
body.landing-modern #pricing .price-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  right: auto;
  padding: 4px 9px;
  border: 1px solid #675878;
  border-radius: 999px;
  background: #37303f;
  box-shadow: none;
  color: #e9e9e9;
  font-size: 10px;
  transform: none;
}

body.dashboard-page #billing .plan-card-top { min-height: 42px; }
body.dashboard-page #billing .billing-plan-card.featured .plan-card-top { padding-left: 85px; }
body.dashboard-page #billing .plan-gem { display: none; }
body.dashboard-page #billing .plan-card-top small,
body.landing-modern #pricing .price-row article > small { color: #b8b8b8; font-size: 12px; }
body.dashboard-page #billing .plan-card-top h3 { color: #fff; font-size: 17px; }
body.dashboard-page #billing .plan-credit { order: 2; margin: 12px 0 4px; color: #ddd; }
body.dashboard-page #billing .plan-credit strong { font-size: 20px; font-weight: 500; }
body.dashboard-page #billing .plan-credit span { font-size: 12px; color: #aaa; }
body.dashboard-page #billing .plan-price {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 26px;
  padding: 0;
  border: 0;
}
body.dashboard-page #billing .plan-price strong,
body.landing-modern #pricing .price-card-amount strong {
  color: #fff;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
body.dashboard-page #billing .plan-price span,
body.landing-modern #pricing .price-card-amount i { color: #fff; font-size: 14px; font-weight: 400; font-style: normal; }
body.dashboard-page #billing .plan-price small { width: 100%; margin: 0; color: #999; font-size: 11px; }

body.dashboard-page #billing .plan-purchase,
body.landing-modern #pricing .price-row article > a {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin: 24px 0 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #f7f5fa;
  font: 700 13px Vazirmatn, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
body.dashboard-page #billing .plan-purchase { padding: 0; }
body.dashboard-page #billing .plan-purchase > .plan-purchase-button {
  display: flex!important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%!important;
  min-width: 0!important;
  max-width: none!important;
  min-height: 46px!important;
  padding: 10px 16px!important;
  border: 1px solid #eeeaf4!important;
  border-radius: 999px;
  background: #eeeaf4!important;
  box-shadow: none!important;
  color: #1b1b20!important;
  font: 700 12px Vazirmatn,sans-serif!important;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
}
body.dashboard-page #billing .plan-purchase > .plan-purchase-button > span,
body.dashboard-page #billing .plan-purchase > .plan-purchase-button > i { display: inline!important; font-size: inherit; }
body.dashboard-page #billing .plan-purchase > .plan-purchase-button:hover:not(:disabled) {
  background: transparent!important;
  color: #fff!important;
}
body.landing-modern #pricing .price-row article.price-featured > a { border: 1px solid #eeeaf4; background: #eeeaf4; color: #1b1b20; }
body.landing-modern #pricing .price-row article > a:hover,
body.landing-modern #pricing .price-row article.price-featured > a:hover {
  background: transparent;
  color: #fff;
  filter: none;
}
body.dashboard-page #billing .plan-purchase > .plan-purchase-button:focus-visible,
body.landing-modern #pricing .price-row article > a:focus-visible { outline: 2px solid #baa4e7; outline-offset: 3px; }
body.dashboard-page #billing .plan-purchase > .plan-purchase-button:disabled { opacity: .65; cursor: wait; }
body.dashboard-page #billing .plan-purchase > .plan-purchase-button i,
body.landing-modern #pricing .price-row article > a span { font-style: normal; }
body.landing-modern #pricing .price-row article > a { border: 1px solid #eeeaf4; background: #eeeaf4; color: #1b1b20; }
body.landing-modern #pricing .price-row article > a { margin: 24px 0 0 !important; }

body.dashboard-page #billing .billing-plan-card ul,
body.landing-modern #pricing .price-row .price-features {
  order: 4;
  display: grid;
  align-content: start;
  gap: 12px;
  width: 100%;
  min-height: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: #e4e4e4;
  font-size: 12px;
  line-height: 1.7;
}
body.dashboard-page #billing .billing-plan-card li,
body.landing-modern #pricing .price-row .price-features li { display: flex; align-items: flex-start; gap: 12px; }
body.dashboard-page #billing .billing-plan-card li span { flex: none; margin: 0; color: #fff; }
body.landing-modern #pricing .price-row .price-features li::before { content: '✓'; flex: none; color: #fff; }

body.landing-modern #pricing .price-row article > small { order: 0; }
body.landing-modern #pricing .price-card-amount { order: 1; margin: 25px 0 0; padding: 0; border: 0; background: none; }
body.landing-modern #pricing .price-row article.price-featured .price-card-amount { padding: 0; border: 0; background: none; }
body.landing-modern #pricing .price-card-amount strong { white-space: normal; }
body.landing-modern #pricing .price-row article > strong { order: 2; margin: 8px 0 0; color: #ddd; font-size: 20px; font-weight: 500; }
body.landing-modern #pricing .price-row article > strong i { font-size: 13px; font-weight: 400; font-style: normal; }
body.landing-modern #pricing .price-row article > p { order: 2; height: auto; min-height: 0; margin: 6px 0 0; color: #aaa; font-size: 12px; }
body.landing-modern #pricing .price-row article:not(:has(.price-card-amount)) > strong { margin-top: 32px; font-size: 38px; font-weight: 300; }

@media (max-width: 760px) {
  body.dashboard-page #billing .billing-plan-grid,
  body.landing-modern #pricing .price-row { grid-template-columns: minmax(0, 1fr); }
  body.dashboard-page #billing .billing-plan-card,
  body.landing-modern #pricing .price-row article { max-width: 420px; min-height: 0; }
}
