.pricing-page .top-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.92), rgba(37, 99, 235, 0.92));
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.38);
}

.pricing-main {
  margin-top: 28px;
  margin-bottom: 48px;
}

.pricing-hero {
  text-align: center;
  margin-bottom: 18px;
}

.pricing-hero h1 {
  margin: 0;
  font: 800 clamp(1.8rem, 3.2vw, 2.8rem)/1.14 "Manrope", "Segoe UI", sans-serif;
  color: #f2f7ff;
}

.pricing-hero p {
  margin: 12px auto 0;
  max-width: 760px;
  color: #bfd1ef;
  font-size: 1.02rem;
  line-height: 1.5;
}

.pricing-success-state {
  max-width: 760px;
  margin: 44px auto 18px;
  padding: 34px 30px 28px;
  border-radius: 22px;
  border: 1px solid rgba(109, 190, 255, 0.44);
  background:
    radial-gradient(560px 220px at 90% -20%, rgba(56, 189, 248, 0.26), transparent 70%),
    linear-gradient(150deg, rgba(6, 20, 54, 0.95), rgba(8, 35, 90, 0.93));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.pricing-success-state h1 {
  margin: 0;
  font: 800 clamp(1.9rem, 3.3vw, 3rem)/1.1 "Manrope", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #d9ffe8 0%, #9af7c8 52%, #c6ffdf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 18px rgba(128, 245, 188, 0.16);
}

.pricing-success-state p {
  margin: 16px auto 0;
  max-width: 620px;
  color: #d7e8ff;
  font-size: 1.12rem;
  line-height: 1.5;
}

.pricing-success-btn {
  margin-top: 22px;
  width: min(420px, 100%);
  min-height: 56px;
  font-size: 1.3rem;
}

.pricing-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.97fr) minmax(0, 1.03fr);
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  gap: 10px;
  align-items: end;
}

.plan-card {
  border-radius: 20px;
  border: 1px solid rgba(122, 166, 235, 0.32);
  padding: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  background: linear-gradient(150deg, rgba(6, 18, 45, 0.94), rgba(6, 26, 68, 0.92));
}

.plan-card-free {
  background: linear-gradient(150deg, rgba(5, 13, 32, 0.94), rgba(5, 20, 53, 0.92));
  margin-top: 0;
  max-width: none;
  justify-self: stretch;
  padding: 20px 20px 18px;
}

.plan-card-premium {
  position: relative;
  border-color: rgba(104, 182, 255, 0.45);
  background:
    radial-gradient(620px 240px at 95% -10%, rgba(56, 189, 248, 0.28), transparent 64%),
    linear-gradient(150deg, rgba(7, 24, 66, 0.95), rgba(8, 38, 96, 0.93));
  padding: 30px 26px 28px;
  max-width: none;
  justify-self: stretch;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
}

.premium-popular-badge {
  position: absolute;
  right: 14px;
  top: -12px;
  border-radius: 999px;
  border: 1px solid rgba(88, 164, 255, 0.52);
  background: linear-gradient(135deg, rgba(27, 79, 170, 0.96), rgba(17, 57, 128, 0.96));
  color: #eaf4ff;
  font: 700 0.84rem/1 "Manrope", "Segoe UI", sans-serif;
  padding: 8px 12px;
  box-shadow: 0 10px 24px rgba(10, 40, 92, 0.45);
}

.plan-head h2 {
  margin: 0;
  font: 800 2rem/1.1 "Manrope", "Segoe UI", sans-serif;
  color: #f5f9ff;
}

.premium-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.premium-title-row img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(104, 182, 255, 0.5));
}

.plan-price {
  margin: 14px 0 0;
  font: 800 2.2rem/1.04 "Manrope", "Segoe UI", sans-serif;
  color: #75ceff;
}

.plan-price small {
  font-size: 1.5rem;
  color: #d7e9ff;
}

.plan-desc {
  margin: 10px 0 0;
  color: #ccdef7;
  font-size: 1rem;
  line-height: 1.45;
}

.plan-features {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
  color: #e8f2ff;
  font-size: 0.99rem;
  line-height: 1.4;
}

.plan-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #66d1ff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(102, 209, 255, 0.45);
}

.plan-btn {
  margin-top: 20px;
  width: 100%;
  min-height: 48px;
  border-radius: 13px;
  border: 1px solid rgba(140, 188, 255, 0.42);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(32, 84, 201, 0.92));
  color: #f4f9ff;
  font: 800 1.25rem/1 "Manrope", "Segoe UI", sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.plan-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.36);
}

.plan-btn.is-premium {
  background: linear-gradient(135deg, #3f9eff, #2b79f2);
}

.plan-btn.is-current {
  cursor: default;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(25, 143, 96, 0.92), rgba(19, 118, 79, 0.92));
  border-color: rgba(111, 221, 183, 0.55);
}

.pricing-note {
  margin: 14px auto 0;
  max-width: 900px;
  text-align: center;
  color: #9fb4d5;
  font-size: 0.92rem;
}

.pricing-note-banner {
  margin-top: 0;
  margin-bottom: 4px;
  border-radius: 12px;
  border: 1px solid rgba(129, 171, 235, 0.34);
  background: rgba(10, 28, 66, 0.74);
  padding: 10px 12px;
}

.pricing-note-success {
  border-color: rgba(94, 214, 166, 0.5);
  color: #d7ffee;
}

.pricing-note-error {
  border-color: rgba(255, 129, 129, 0.5);
  color: #ffdfe1;
}

.pricing-note-info {
  border-color: rgba(142, 190, 255, 0.52);
  color: #ddecff;
}

@media (max-width: 980px) {
  .pricing-success-state {
    margin-top: 24px;
    padding: 24px 16px 18px;
    border-radius: 16px;
  }

  .pricing-success-state p {
    font-size: 1rem;
    margin-top: 12px;
  }

  .pricing-success-btn {
    min-height: 50px;
    font-size: 1.12rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .plan-card {
    padding: 20px;
  }

  .plan-card-free {
    margin-top: 0;
    max-width: none;
    justify-self: stretch;
  }

  .plan-card-premium {
    max-width: none;
    justify-self: stretch;
  }

  .premium-popular-badge {
    top: -10px;
    right: 10px;
  }
}
