a {
  text-decoration: none;
}

:root {
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --surface-muted: #fbfcfe;
  --text-main: #101828;
  --text-muted: #667085;
  --border: #e4e7ec;
  --accent: #de2a55;
  --accent-dark: #b31f43;
  --accent-soft: #fff1f5;
  --shadow: 0 18px 36px rgba(16, 24, 40, 0.12);
  --btn-radius: 12px;
  --btn-height: 44px;
  --btn-pad-x: 18px;
  --btn-font-size: 14px;
  --btn-font-weight: 700;
}

#header {
  border-top: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}

#hero.pricing-hero {
  padding: 94px 0 92px;
  background:
    radial-gradient(1200px 560px at 10% -12%, rgba(222, 42, 85, 0.18) 0%, rgba(222, 42, 85, 0) 58%),
    linear-gradient(180deg, #fafbff 0%, var(--bg-soft) 100%);
}

.pricing-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.pricing-intro {
  text-align: center;
  margin-bottom: 28px;
}

.pricing-intro h2 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.06;
}

.pricing-intro p {
  margin: 0 auto;
  color: var(--text-muted);
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
}

.pricing-topbar {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 14px;
}

.trial-code-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  justify-content: center;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.trial-code-btn {
  white-space: nowrap;
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  padding: 0 var(--btn-pad-x);
}

.pricing-concept {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
}

.pricing-concept-header {
  text-align: center;
  margin-bottom: 16px;
}

.pricing-concept-header h3 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.7px;
}

.pricing-concept-header p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.pricing-concept-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.pricing-concept-tab {
  border: 0;
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: 0.2px;
  line-height: 1;
  min-height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  transition: all 0.2s ease;
}

.pricing-concept-tab:hover {
  color: var(--text-main);
  background: #f0f2f6;
}

.pricing-concept-tab.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(222, 42, 85, 0.26);
}

.pricing-view {
  display: none;
}

.pricing-view.active {
  display: block;
}

.pricing-view[data-pricing-view="individual"] {
  margin: 0;
  padding: 0;
}

.pricing-view[data-pricing-view="bundles"],
.pricing-view[data-pricing-view="custom"] {
  margin: 0;
  padding: 15px 0 0;
}

.pricing-card-grid {
  display: grid;
  gap: 22px;
}

.pricing-card-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.concept-plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.concept-plan-card:hover {
  transform: translateY(-4px);
  border-color: #d5d9e1;
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.14);
}

.concept-plan-card.popular {
  border: 2px solid var(--accent);
}

.concept-plan-card.compact .concept-plan-body {
  padding: 22px;
}

.concept-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 12px;
}

.concept-plan-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
}

.concept-plan-body h4 {
  margin: 0;
  color: var(--text-main);
  font-size: 22px;
  font-weight: 700;
}

.professional-variant-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.professional-variant-btn {
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  min-height: 36px;
  padding: 0 12px;
  transition: all 0.2s ease;
}

.professional-variant-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.professional-variant-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.professional-variant-btn:disabled {
  background: #f2f4f7;
  border-color: #d0d5dd;
  color: #98a2b3;
  cursor: not-allowed;
}

.concept-plan-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 12px;
  color: var(--text-main);
}

.concept-plan-price .currency {
  font-size: 26px;
  font-weight: 600;
  color: #667085;
  line-height: 1;
}

.concept-plan-price .amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.1px;
  line-height: 0.96;
}

.concept-plan-price .interval {
  font-size: 18px;
  font-weight: 600;
  color: #667085;
  line-height: 1.2;
}

.concept-plan-price.compact .amount {
  font-size: 34px;
}

.concept-feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.concept-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.concept-feature-list li i {
  color: var(--accent);
  margin-top: 2px;
}

.concept-plan-cta {
  margin-top: auto;
  padding-top: 18px;
}

.concept-plan-cta form {
  width: 100%;
}

.concept-select-btn {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: var(--btn-radius);
  background: #f9fafb;
  color: #1d2939;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1;
  min-height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  transition: all 0.2s ease;
}

.concept-select-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff8fa;
}

.concept-select-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(222, 42, 85, 0.24);
}

.concept-select-btn.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.concept-select-btn:disabled {
  background: #f2f4f7;
  border-color: #d0d5dd;
  color: #98a2b3;
  cursor: not-allowed;
  box-shadow: none;
}

.concept-select-btn.is-submitting,
.trial-code-btn.is-submitting {
  opacity: 0.8;
  cursor: wait;
}

.mixed-bundle-wrap {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.mixed-bundle-wrap h4,
.individual-section-head h4,
.custom-select-group h4,
.custom-builder-summary h4 {
  margin: 0;
  color: var(--text-main);
  font-size: 24px;
  font-weight: 700;
}

.individual-section {
  margin-bottom: 28px;
}

.individual-tabs-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}

.individual-tab-btn {
  border: 1px solid #d0d5dd;
  border-radius: var(--btn-radius);
  background: #ffffff;
  color: #475467;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: 0.2px;
  line-height: 1;
  min-height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  transition: all 0.2s ease;
}

.individual-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.individual-tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(222, 42, 85, 0.24);
}

.individual-panel {
  display: none;
}

.individual-panel.active {
  display: block;
}

.individual-empty-state {
  border: 1px dashed #d0d5dd;
  border-radius: 14px;
  background: #fcfcfd;
  color: #667085;
  font-size: 14px;
  text-align: center;
  padding: 18px;
}

.individual-section:last-child {
  margin-bottom: 0;
}

.individual-section-head {
  text-align: center;
  margin-bottom: 16px;
}

.individual-section-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.custom-builder-form {
  display: block;
}

.custom-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.custom-builder-config {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-muted);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.custom-select-group {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
}

.custom-select-group h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.custom-select-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.custom-select-card {
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #ffffff;
  color: #344054;
  text-align: left;
  padding: 10px;
  transition: all 0.2s ease;
}

.custom-select-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.custom-select-card small {
  display: block;
  color: #667085;
  font-size: 11px;
  margin-top: 4px;
}

.custom-select-card:hover {
  border-color: #b6bdc8;
  background: #f9fafb;
}

.custom-select-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.custom-select-card.is-disabled,
.custom-select-card:disabled {
  border-color: #d7dfe8;
  color: #8ea0b2;
  background: #f4f6f8;
  cursor: not-allowed;
}

.custom-builder-summary {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  padding: 16px;
  position: sticky;
  top: 92px;
}

.custom-builder-summary h4 {
  font-size: 21px;
  margin-bottom: 10px;
}

.custom-summary-list {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-summary-list .empty {
  margin: auto;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.summary-row span {
  color: #344054;
  font-size: 13px;
  line-height: 1.35;
}

.summary-row strong {
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
}

.custom-summary-total {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-summary-total span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.custom-summary-total strong {
  color: var(--text-main);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.custom-builder-summary .concept-select-btn {
  margin-top: 12px;
}

.pricing-faq-block {
  margin: 24px auto 0;
  max-width: 920px;
}

.pricing-faq-block h3 {
  margin: 0 0 16px;
  text-align: center;
  color: #111827;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.7px;
}

.pricing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.pricing-faq-question {
  width: 100%;
  border: 0;
  background: var(--surface);
  color: var(--text-main);
  text-align: left;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pricing-faq-question i {
  color: #667085;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.pricing-faq-item.open .pricing-faq-question i {
  transform: rotate(180deg);
}

.pricing-faq-answer {
  display: none;
  padding: 0 18px 16px;
}

.pricing-faq-item.open .pricing-faq-answer {
  display: block;
}

.pricing-faq-answer p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
}

@media screen and (max-width: 1200px) {
  .pricing-card-grid.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1100px) {
  .custom-builder-layout {
    grid-template-columns: 1fr;
  }

  .custom-builder-summary {
    position: static;
  }
}

@media screen and (max-width: 991px) {
  #hero.pricing-hero {
    padding: 72px 0;
  }

  .pricing-intro p {
    font-size: 16px;
  }

  .pricing-card-grid.two-col,
  .pricing-card-grid.three-col,
  .custom-select-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .pricing-concept {
    padding: 14px;
    border-radius: 18px;
  }

  .trial-code-form {
    grid-template-columns: 1fr;
  }

  .trial-code-btn {
    width: 100%;
  }

  .concept-plan-body {
    padding: 20px;
  }

  .concept-plan-price .amount {
    font-size: 36px;
  }

  .pricing-faq-question {
    font-size: 15px;
    padding: 14px;
  }

  .pricing-faq-answer {
    padding: 0 14px 14px;
  }
}
