:root {
  --md-radius: 18px;
  --md-radius-sm: 12px;
  --md-primary: var(--royal-600);
  --md-primary-dark: var(--royal-700);
  --md-primary-light: var(--royal-50);
  --md-on-primary: #fff;
  --md-surface: var(--surface);
  --md-bg: var(--surface-2);
  --md-text: var(--ink);
  --md-muted: var(--muted);
  --md-border: var(--border);
  --md-success: var(--success);
  --md-elev-1: var(--sh-sm);
  --md-elev-2: var(--sh-md);
  --md-elev-3: var(--sh-lg);
  --md-amber: #f59e0b;
}

.pricing-page {
  --container: 1320px;
}
@media (min-width: 1400px) {
  .pricing-page { --container: 1350px; }
}

.pricing-hero {
  position: relative;
  text-align: center;
  padding: 72px 20px 9px;
  background:
    radial-gradient(900px 380px at 50% -120px, rgba(37, 99, 235, .14), transparent 70%),
    linear-gradient(180deg, var(--md-bg), #fff 70%);
  overflow: hidden;
}

.pricing-hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--md-primary);
  background: var(--md-primary-light);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pricing-hero h1 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--md-text);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.pricing-hero h1 .hl {
  color: #0a7a52;
  -webkit-text-fill-color: #0a7a52;
}

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 22px auto 0;
  padding: 0;
  max-width: 680px;
}
.trust-strip li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--md-text);
}
.trust-strip li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--md-success, #16a34a);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-hero p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--md-muted);
}

.tabs {
  display: inline-flex;
  padding: 6px;
  margin: 30px auto 0;
  background: #fff;
  border: 1px solid var(--md-border);
  border-radius: 999px;
  box-shadow: var(--md-elev-1);
}

.tabs button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--md-muted);
  padding: 11px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
}

.tabs button.active {
  color: var(--md-on-primary);
  background: linear-gradient(120deg, var(--md-primary), var(--md-primary-dark));
  box-shadow: 0 8px 22px rgba(29, 78, 216, .35);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 26px auto 0;
  flex-wrap: wrap;
}

.toggle-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--md-muted);
  transition: color .25s ease, font-weight .25s ease;
}
.toggle-label.active {
  color: var(--md-text);
  font-weight: 800;
}

.switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 32px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  background: #cdd6ea;
  border-radius: 999px;
  transition: .3s;
}
.switch .thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: .3s;
}
.switch input:checked + .track { background: var(--md-primary); }
.switch input:checked + .track + .thumb { transform: translateX(26px); }

.save-badge {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, var(--md-success), #15803d);
  border: 0;
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .3);
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: var(--container);
  margin: 46px auto 0;
  padding: 0 20px;
}

/* ----- Plan card ----- */
.plan-card {
  position: relative;
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  padding: 26px 22px 24px;
  box-shadow: var(--md-elev-1);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.plan-card:hover { transform: translateY(-8px); box-shadow: var(--md-elev-2); }
.plan-card.featured {
  border: 2px solid var(--md-primary);
  box-shadow: 0 26px 60px rgba(29, 78, 216, .18);
}
.plan-card.featured::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--md-radius);
  padding: 2px;
  background: linear-gradient(135deg, var(--md-primary), #7c3aed);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .55;
}

.ribbon {
  position: absolute;
  top: 16px;
  right: -36px;
  transform: rotate(45deg);
  background: linear-gradient(120deg, var(--md-primary), #7c3aed);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 44px;
}

.plan-card .tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--md-primary);
}
.plan-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin: 5px 0 3px;
  color: var(--md-text);
}
.plan-card .tagline {
  font-size: 12.5px;
  color: var(--md-muted);
  min-height: 34px;
  margin: 0 0 12px;
  line-height: 1.45;
}

.price-box { margin: 4px 0 2px; }
.price-main { display: flex; align-items: baseline; gap: 3px; }
.currency-sign {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--md-text);
}
.price-main .amount {
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--md-text);
  transition: transform .2s ease;
}
.amount.flash { animation: priceFlash .32s ease; }
@keyframes priceFlash {
  0% { transform: scale(1); }
  45% { transform: scale(1.1); color: var(--md-primary); }
  100% { transform: scale(1); }
}
.price-main .per { font-size: 13px; color: var(--md-muted); font-weight: 600; }

.price-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin: 2px 0 0;
}
.price-meta .orig {
  text-decoration: line-through;
  color: var(--md-muted);
  font-size: 13px;
  font-weight: 600;
}
.price-meta .save {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, var(--md-success), #15803d);
  padding: 3px 9px;
  border-radius: 999px;
}
.price-note {
  font-size: 11.5px;
  color: var(--md-muted);
  min-height: 16px;
  margin: 4px 0 0;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.trial-badge { display: inline-block; padding: 3px 9px; border-radius: 20px; background: #dcfce7; color: #166534; font-size: 11px; font-weight: 700; }
.manual-badge { display: inline-block; padding: 3px 9px; border-radius: 20px; background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 700; }

.feat {
  list-style: none;
  margin: 14px 0 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--md-border);
  display: grid;
  gap: 9px;
  flex: 1;
}
.feat li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--md-text);
  line-height: 1.4;
}
.feat .ico {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--md-success);
}

.addon-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--md-muted);
  cursor: pointer;
}
.addon-opt input { width: 15px; height: 15px; }

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-buy:active { transform: scale(.98); }
.btn-buy.primary {
  color: var(--md-on-primary);
  background: linear-gradient(120deg, var(--md-primary), var(--md-primary-dark));
  box-shadow: 0 12px 26px rgba(29, 78, 216, .32);
}
.btn-buy.primary:hover { box-shadow: 0 16px 34px rgba(29, 78, 216, .42); }
.btn-buy.ghost {
  color: var(--md-primary);
  background: #fff;
  border-color: var(--md-primary);
}
.btn-buy.ghost:hover { background: var(--md-primary-light); }

/* ----- Other card groups (how / compare) ----- */
.md-card {
  position: relative;
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  padding: 26px 22px 24px;
  box-shadow: var(--md-elev-1);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.md-card:hover { transform: translateY(-8px); box-shadow: var(--md-elev-2); }
.md-card .tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--md-primary);
}
.md-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin: 5px 0 3px;
  color: var(--md-text);
}
.md-card .tagline {
  font-size: 12.5px;
  color: var(--md-muted);
  min-height: 34px;
  margin: 0 0 12px;
  line-height: 1.45;
}
.price-box .amount {
  font-family: 'Manrope', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--md-text);
}
.price-box .per { font-size: 13px; color: var(--md-muted); font-weight: 600; }
.price-note { font-size: 11.5px; color: var(--md-muted); min-height: 16px; margin-bottom: 16px; }
.md-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--md-border);
  display: grid;
  gap: 9px;
  flex: 1;
}
.md-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--md-text);
  line-height: 1.4;
}
.md-features .ico {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--md-success);
}
.md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.md-btn:active { transform: scale(.98); }
.md-btn.primary {
  color: var(--md-on-primary);
  background: linear-gradient(120deg, var(--md-primary), var(--md-primary-dark));
  box-shadow: 0 12px 26px rgba(29, 78, 216, .32);
}
.md-btn.primary:hover { box-shadow: 0 16px 34px rgba(29, 78, 216, .42); }
.md-btn.outlined {
  color: var(--md-primary);
  background: #fff;
  border-color: var(--md-primary);
}
.md-btn.outlined:hover { background: var(--md-primary-light); }
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .55);
  animation: md-ripple .6s linear;
  pointer-events: none;
}
.md-btn.outlined .ripple { background: rgba(29, 78, 216, .18); }
@keyframes md-ripple { to { transform: scale(4); opacity: 0; } }

.partner-cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.partner-cta .md-btn { width: 100%; }

.compare-section { max-width: var(--container); margin: 0 auto; padding: 9px 20px; }
.how-section { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.how-section h2 { text-align: center; font-family: 'Manrope', sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--md-text); margin: 0 0 8px; }
.how-section .sub { text-align: center; color: var(--md-muted); margin: 0 0 30px; max-width: 720px; margin-left: auto; margin-right: auto; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-card { text-align: left; }
.how-card h3 { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; color: var(--md-text); margin: 0 0 14px; }
.how-card .md-features li { align-items: flex-start; }
@media (max-width: 1000px) { .how-grid { grid-template-columns: 1fr; } }

.compare-section h2, .faq-section h2, .testi-section h2 {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--md-text);
  margin: 0 0 8px;
}
.compare-section .sub, .faq-section .sub, .testi-section .sub {
  text-align: center;
  color: var(--md-muted);
  margin: 0 0 30px;
}

.md-table-wrap { overflow-x: auto; border-radius: var(--md-radius); box-shadow: var(--md-elev-1); border: 1px solid var(--md-border); }
.md-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 720px; }
.md-table th, .md-table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--md-border); }
.md-table thead th {
  position: sticky; top: 0;
  background: var(--md-primary-light);
  font-weight: 700;
  color: var(--md-text);
  font-size: 15px;
}
.md-table tbody th { text-align: left; font-weight: 600; color: var(--md-text); background: #fbfdff; }
.md-table tbody tr:hover { background: var(--md-bg); }
.yes { color: var(--md-success); font-weight: 800; }
.no { color: #c0c8da; }

.faq-section { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--md-elev-1);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--md-text);
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q .chev { transition: transform .3s ease; color: var(--md-primary); font-weight: 800; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { margin: 0; padding: 0 22px 20px; color: var(--md-muted); line-height: 1.65; }

.testi-section { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: #fff;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  padding: 26px 24px;
  box-shadow: var(--md-elev-1);
}
.testi-card .stars { color: var(--md-amber); letter-spacing: 2px; margin-bottom: 10px; }
.testi-card p { color: var(--md-text); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.testi-card .who { display: flex; align-items: center; gap: 12px; }
.testi-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(120deg, var(--md-primary), #7c3aed); color: #fff; display: grid; place-items: center; font-weight: 800; }
.testi-card .who b { display: block; color: var(--md-text); font-size: 14px; }
.testi-card .who span { font-size: 12.5px; color: var(--md-muted); }

.cta-band { max-width: var(--container); margin: 0 auto; padding: 9px 20px; }
.cta-inner {
  background: linear-gradient(120deg, var(--md-primary), var(--md-primary-dark));
  border-radius: 26px;
  padding: 52px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--md-elev-3);
}
.cta-inner h2 { font-family: 'Manrope', sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0 0 10px; }
.cta-inner p { color: rgba(255, 255, 255, .85); margin: 0 0 26px; }
.cta-inner .md-btn.outlined { width: auto; color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.cta-inner .md-btn.outlined:hover { background: rgba(255, 255, 255, .16); }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 21, 48, .55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.md-dialog {
  background: #fff;
  border-radius: 22px;
  max-width: 440px;
  width: 100%;
  padding: 34px 30px 30px;
  box-shadow: var(--md-elev-3);
  position: relative;
  text-align: center;
  animation: md-pop .3s ease;
}
@keyframes md-pop { from { transform: translateY(20px) scale(.96); opacity: 0; } }
.md-dialog .close {
  position: absolute; top: 14px; right: 16px;
  border: 0; background: var(--md-bg); border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer; color: var(--md-muted); font-size: 18px;
}
.md-dialog .gift { font-size: 40px; }
.md-dialog h3 { font-family: 'Manrope', sans-serif; font-size: 24px; margin: 8px 0 6px; color: var(--md-text); }
.md-dialog p { color: var(--md-muted); margin: 0 0 20px; font-size: 14.5px; }
.md-input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--md-border);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.md-input:focus { outline: none; border-color: var(--md-primary); box-shadow: 0 0 0 4px var(--md-primary-light); }
.md-dialog .code {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--md-primary-light);
  border: 1px dashed var(--md-primary);
  font-weight: 800;
  color: var(--md-primary-dark);
  letter-spacing: .04em;
}
.md-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--md-text);
  color: #fff;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--md-elev-3);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 1000;
}
.md-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1000px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; }
  .tabs button { padding: 10px 18px; }
  .cta-inner { padding: 40px 22px; }
  .pricing-hero { padding-top: 40px; }
  .trust-strip { gap: 8px 16px; }
  .trust-strip li { font-size: 13px; }
}
@media (max-width: 360px) {
  .plan-card { padding: 22px 18px 20px; }
  .price-main .amount { font-size: 27px; }
  .trust-strip li { font-size: 12px; padding-left: 22px; }
}

/* ----- Partner benefits (For Partners tab) ----- */
.partner-benefits .benefit-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--md-muted);
  margin: 0;
}
.partner-benefits .benefit-card h3 { font-size: 17px; }
.benefits-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.benefits-cta .md-btn { width: auto; min-width: 230px; }
.partner-register-cta {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 0 20px;
  text-align: center;
}
.partner-register-cta h3 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--md-text);
  margin: 0 0 8px;
}
.partner-register-cta p {
  color: var(--md-muted);
  margin: 0 0 22px;
}
@media (max-width: 560px) {
  .benefits-cta .md-btn { width: 100%; min-width: 0; }
  .partner-register-cta { text-align: left; }
  .partner-register-cta .benefits-cta { justify-content: flex-start; }
}
