body.buy-dark-page {
  min-height: 100vh;
  color: #14245a;
  background:
    radial-gradient(circle at 50% 5%, rgba(255, 255, 255, 0.94), transparent 24%),
    radial-gradient(circle at 8% 48%, rgba(121, 141, 248, 0.3), transparent 33%),
    radial-gradient(circle at 95% 78%, rgba(112, 128, 239, 0.3), transparent 34%),
    #cdd5ff !important;
}

body.buy-dark-page::before,
body.buy-dark-page::after {
  display: none;
}

.plan-page {
  width: min(100% - 24px, 500px);
  margin: 0 auto;
  padding: 18px 0 122px;
}

.plan-stage {
  position: relative;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 58px;
  background:
    radial-gradient(circle at 50% -8%, rgba(75, 95, 195, 0.44), transparent 31%),
    radial-gradient(circle at 6% 37%, rgba(46, 67, 167, 0.36), transparent 30%),
    linear-gradient(160deg, #14245d 0%, #07133c 63%, #030c2a 100%);
  box-shadow:
    inset 0 0 0 2px rgba(122, 143, 235, 0.38),
    0 25px 50px rgba(45, 61, 143, 0.35);
}

.plan-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.04));
}

.plan-topbar {
  position: relative;
  z-index: 1;
  min-height: 180px;
  padding: 30px 30px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.plan-topbar::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -1px;
  left: -30px;
  height: 62px;
  border-radius: 0 0 48% 48% / 0 0 100% 100%;
  border-bottom: 2px solid rgba(126, 143, 239, 0.35);
  background: radial-gradient(ellipse at 50% 0, rgba(73, 90, 192, 0.28), transparent 63%);
}

.plan-top-action,
.plan-header-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #f9fbff;
  border: 1px solid rgba(145, 161, 255, 0.42);
  background: linear-gradient(145deg, #304586, #111e52);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.22),
    0 8px 16px rgba(0, 0, 0, 0.35);
}

.plan-top-action {
  font-size: 22px;
  text-decoration: none;
}

.plan-top-action:hover {
  color: #fff;
  transform: translateY(-2px);
}

.plan-header-mark {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translateX(-50%);
  font-size: 40px;
  border-color: rgba(137, 153, 255, 0.52);
  background: radial-gradient(circle at 34% 25%, #3e529d, #15265f 67%, #0c1645);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    0 14px 24px rgba(0, 0, 0, 0.42);
}

.plan-heading {
  position: relative;
  z-index: 1;
  padding: 0 24px 35px;
  color: #fff;
  text-align: center;
}

.plan-heading h1 {
  margin: 0;
  font-size: clamp(29px, 7vw, 39px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 4px rgba(0, 0, 0, 0.27);
}

.plan-heading p {
  margin: 10px 0 0;
  color: #b8c4ff;
  font-size: clamp(15px, 4vw, 19px);
  font-weight: 500;
}

.plan-sheet {
  position: relative;
  z-index: 2;
  padding: 30px 17px 28px;
  border-radius: 48px 48px 42px 42px;
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 255, 255, 0.96), transparent 25%),
    linear-gradient(145deg, #fdfdff, #edf0ff 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.95),
    0 -4px 18px rgba(4, 15, 54, 0.15);
}

.plan-card {
  position: relative;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 14px 16px;
  min-height: 178px;
  margin-bottom: 16px;
  padding: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  background:
    radial-gradient(circle at 94% 8%, rgba(119, 137, 250, 0.16), transparent 25%),
    linear-gradient(135deg, #fbfcff, #e6eafd);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    0 9px 18px rgba(61, 77, 160, 0.18);
}

.plan-card-growth {
  border-color: #5a7bff;
  background:
    radial-gradient(circle at 90% 10%, rgba(62, 99, 255, 0.25), transparent 29%),
    linear-gradient(135deg, #f3f5ff, #dce3ff);
  box-shadow:
    inset 0 1px 1px #fff,
    0 0 0 2px rgba(86, 119, 255, 0.13),
    0 12px 22px rgba(56, 88, 201, 0.24);
}

.plan-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85, 106, 205, 0.18), transparent);
}

.plan-icon {
  grid-row: 1 / span 2;
  width: 112px;
  height: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  color: #3d67ed;
  background: linear-gradient(145deg, #f9fbff, #e4e9ff);
  box-shadow:
    inset 0 1px 1px #fff,
    0 8px 13px rgba(62, 78, 158, 0.17);
  font-size: 47px;
}

.plan-card-starter .plan-icon { color: #56a552; }
.plan-card-premium .plan-icon { color: #8873f2; }

.plan-copy {
  min-width: 0;
}

.plan-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 9px;
}

.plan-name-row h2 {
  margin: 0;
  color: #10245c;
  font-size: clamp(22px, 5.5vw, 29px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.plan-popular {
  padding: 5px 9px;
  border-radius: 99px;
  color: #fff;
  background: linear-gradient(100deg, #3d6cff, #2153e9);
  box-shadow: 0 4px 8px rgba(43, 82, 224, 0.26);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-copy > p {
  margin: 7px 0 0;
  color: #3e579f;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

.plan-copy > p span {
  color: #6d7fb7;
  font-weight: 500;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: 10px;
  color: #6475a9;
  font-size: 10px;
  font-weight: 700;
}

.plan-meta span {
  white-space: nowrap;
}

.plan-meta i {
  margin-right: 3px;
  color: #4e6ffc;
}

.plan-btn {
  grid-column: 2;
  justify-self: end;
  min-width: 126px;
  padding: 12px 14px;
  border: 2px solid #3561f4;
  border-radius: 17px;
  color: #1e4ae4;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.plan-card-growth .plan-btn {
  color: #fff;
  background: linear-gradient(135deg, #3e6cff, #1f49df);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.37),
    0 7px 13px rgba(37, 75, 229, 0.34);
}

.plan-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #3e6cff, #1f49df);
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(37, 75, 229, 0.3);
}

.plan-btn.btn-loading {
  pointer-events: none;
  opacity: 0.76;
}

.plan-btn.btn-loading span { visibility: hidden; }

.plan-btn.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.65s linear infinite;
}

.plan-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 0;
  color: #6174bc;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.plan-note span {
  display: block;
  width: 52px;
  height: 1px;
  background: #b9c4ed;
}

body.buy-dark-page .appNavBar {
  background: linear-gradient(145deg, #fdfdff, #e5eaff);
  border-color: rgba(120, 138, 222, 0.26);
  box-shadow: 0 13px 28px rgba(35, 54, 132, 0.2);
}

body.buy-dark-page .navLink { color: #6374aa; }
body.buy-dark-page .navLink.center,
body.buy-dark-page .navLink.center.active {
  background: linear-gradient(135deg, #426fff, #244ee2);
  color: #fff;
  box-shadow: 0 8px 18px rgba(36, 78, 226, 0.36);
}
body.buy-dark-page .navLink.center i { color: #fff; }

@media (min-width: 720px) {
  .plan-page { padding-top: 42px; }
  .plan-stage { border-radius: 64px; }
  .plan-sheet { padding-right: 28px; padding-left: 28px; }
}

@media (max-width: 420px) {
  .plan-page {
    width: 100%;
    padding-top: 0;
  }

  .plan-stage {
    border-width: 7px;
    border-radius: 0 0 48px 48px;
  }

  .plan-topbar {
    min-height: 157px;
    padding: 23px 20px 0;
  }

  .plan-top-action {
    width: 47px;
    height: 47px;
    font-size: 19px;
  }

  .plan-header-mark {
    top: 29px;
    width: 86px;
    height: 86px;
    font-size: 35px;
  }

  .plan-heading { padding: 0 18px 28px; }
  .plan-sheet { padding: 25px 13px 24px; border-radius: 40px 40px 35px 35px; }

  .plan-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    min-height: 157px;
    padding: 14px;
    border-radius: 26px;
  }

  .plan-icon {
    width: 82px;
    height: 82px;
    border-radius: 23px;
    font-size: 35px;
  }

  .plan-copy > p { font-size: 12px; margin-top: 6px; }
  .plan-meta { margin-top: 7px; font-size: 8px; gap: 3px 5px; }
  .plan-btn { min-width: 111px; padding: 10px 11px; border-radius: 14px; font-size: 12px; }
  .plan-note { margin-top: 19px; font-size: 11px; }
  .plan-note span { width: 33px; }
}

@media (max-width: 340px) {
  .plan-card { grid-template-columns: 70px minmax(0, 1fr); }
  .plan-icon { width: 67px; height: 67px; font-size: 29px; }
  .plan-name-row h2 { font-size: 20px; }
  .plan-meta span:last-child { display: none; }
}
