.buy-wave-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 74%, rgba(52, 62, 158, 0.36), transparent 24%),
    radial-gradient(circle at 100% 82%, rgba(52, 62, 158, 0.28), transparent 24%),
    linear-gradient(145deg, #111748 0%, #141b53 46%, #080d31 100%);
}

.package-shell {
  width: min(100% - 28px, 430px);
  max-width: 430px;
  margin: 16px auto 0;
  padding: 0 0 124px;
  border-radius: 34px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 34px 74px rgba(0, 4, 34, 0.45);
}

.package-hero {
  min-height: 310px;
  position: relative;
  padding: 34px 26px 104px;
  color: #ffffff;
  background: linear-gradient(135deg, #19dce2 0%, #0878fa 100%);
}

.package-hero::before,
.package-hero::after,
.package-ribbon {
  content: "";
  position: absolute;
  pointer-events: none;
}

.package-hero::before {
  left: -14%;
  right: -10%;
  bottom: -44px;
  height: 126px;
  border-radius: 52% 48% 0 0 / 72% 64% 0 0;
  background: #ffffff;
  transform: rotate(7deg);
  z-index: 0;
}

.package-hero::after {
  width: 290px;
  height: 270px;
  right: -66px;
  top: 0;
  border-radius: 0 0 0 88%;
  background: linear-gradient(135deg, rgba(31, 235, 231, 0.22), rgba(255, 255, 255, 0));
  transform: rotate(8deg);
}

.package-ribbon {
  width: 275px;
  height: 140px;
  right: -22px;
  bottom: 32px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(145deg, rgba(0, 224, 229, 0.46), rgba(0, 104, 250, 0.42));
  transform: rotate(-12deg);
}

.package-topbar,
.package-heading {
  position: relative;
  z-index: 1;
}

.package-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 44px;
}

.package-back {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 30px;
}

.package-benefit-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  font-size: 16px;
  font-weight: 700;
}

.package-benefit-pill i {
  color: #ffd338;
}

.package-heading h1 {
  margin: 0;
  max-width: 360px;
  color: #ffffff;
  font-size: clamp(35px, 9.5vw, 45px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.package-heading p {
  max-width: 280px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  line-height: 1.35;
}

.package-content {
  position: relative;
  z-index: 1;
  margin-top: -44px;
  padding: 0 24px 28px;
  background: #ffffff;
}

.package-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.package-benefit {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
}

.package-benefit span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0878fa;
  background: #eef6ff;
  font-size: 22px;
}

.package-benefit:nth-child(2) span {
  color: #19bf68;
  background: #e9faef;
}

.package-benefit:nth-child(3) span {
  color: #855cf5;
  background: #f0e8ff;
}

.package-benefit strong {
  color: #111633;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.package-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.package-card {
  position: relative;
  display: block;
  padding: 22px 18px 18px;
  border: 1px solid rgba(10, 25, 55, 0.1);
  border-radius: 20px;
  color: #111633;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.package-card.is-featured {
  border-color: #0878fa;
  padding-top: 42px;
  box-shadow: 0 12px 28px rgba(8, 120, 250, 0.12);
}

.popular-ribbon {
  position: absolute;
  top: 0;
  left: 18px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 0 0 8px 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #18a6ff, #0878fa);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-1px);
}

.package-card-main {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px;
}

.package-plan-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 28px;
  background: linear-gradient(145deg, #18a6ff, #0878fa);
}

.package-plan-copy h2 {
  margin: 0 0 8px;
  color: #111633;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
}

.package-plan-copy p {
  margin: 0;
  max-width: 190px;
  color: #656b82;
  font-size: 15px;
  line-height: 1.38;
}

.package-price {
  text-align: center;
  white-space: nowrap;
}

.package-price strong {
  display: block;
  color: #0878fa;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 800;
}

.package-price span {
  display: block;
  margin-top: 4px;
  color: #0878fa;
  font-size: 15px;
}

.package-arrow {
  color: #102050;
  font-size: 23px;
}

.package-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.package-features div {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  color: #0878fa;
  border-right: 1px solid rgba(10, 25, 55, 0.1);
}

.package-features div:last-child {
  border-right: 0;
}

.package-features i {
  margin-top: 2px;
  font-size: 17px;
}

.package-features span {
  color: #111633;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.package-features small {
  display: block;
  margin-top: 4px;
  color: #656b82;
  font-size: 12px;
  font-weight: 500;
}

.plan-green .package-plan-icon { background: linear-gradient(145deg, #35d982, #19bf68); }
.plan-green .package-price strong,
.plan-green .package-price span,
.plan-green .package-features div { color: #19bf68; }

.plan-purple .package-plan-icon { background: linear-gradient(145deg, #a177ff, #855cf5); }
.plan-purple .package-price strong,
.plan-purple .package-price span,
.plan-purple .package-features div { color: #855cf5; }

.plan-orange .package-plan-icon { background: linear-gradient(145deg, #ffb12a, #ff8a00); }
.plan-orange .package-price strong,
.plan-orange .package-price span,
.plan-orange .package-features div { color: #ff8a00; }

.package-note {
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f2f8ff, #edf5ff);
}

.package-note i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, #18a6ff, #0878fa);
}

.package-note p {
  margin: 0;
  color: #656b82;
  font-size: 14px;
  line-height: 1.45;
}

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

.buy-wave-body .appNavBar {
  left: 50%;
  bottom: 18px;
  width: min(390px, calc(100% - 46px));
  height: 76px;
  padding: 10px 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 25, 55, 0.08);
  box-shadow: 0 18px 38px rgba(0, 4, 34, 0.18);
}

.buy-wave-body .navLink {
  color: #73788b;
}

.buy-wave-body .navLink.active,
.buy-wave-body .navLink:hover {
  color: #0878fa;
}

.buy-wave-body .navLink.center {
  top: -22px;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, #18d5e1, #0878fa);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(8, 120, 250, 0.34);
}

@media (max-width: 430px) {
  .package-shell {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 30px;
  }

  .package-hero {
    min-height: 274px;
    padding: 28px 22px 94px;
  }

  .package-topbar {
    margin-bottom: 34px;
  }

  .package-benefit-pill {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .package-heading h1 {
    font-size: 34px;
  }

  .package-heading p {
    font-size: 18px;
  }

  .package-content {
    padding: 0 20px 24px;
  }

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

  .package-benefit {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
  }

  .package-benefit span {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }

  .package-benefit strong {
    font-size: 11px;
  }

  .package-card {
    padding: 20px 14px 16px;
  }

  .package-card.is-featured {
    padding-top: 42px;
  }

  .popular-ribbon {
    left: 14px;
    min-height: 26px;
    font-size: 12px;
  }

  .package-card-main {
    grid-template-columns: 52px minmax(0, 1fr) auto 14px;
    gap: 10px;
  }

  .package-plan-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .package-plan-copy h2 {
    font-size: 18px;
  }

  .package-plan-copy p {
    font-size: 13px;
  }

  .package-price strong {
    font-size: 20px;
  }

  .package-price span {
    font-size: 12px;
  }

  .package-arrow {
    font-size: 18px;
  }

  .package-features {
    gap: 8px;
    margin-top: 20px;
  }

  .package-features div {
    grid-template-columns: 16px 1fr;
    gap: 5px;
  }

  .package-features i {
    font-size: 14px;
  }

  .package-features span {
    font-size: 11px;
  }

  .package-features small {
    font-size: 10px;
  }

  .buy-wave-body .appNavBar {
    width: calc(100% - 28px);
    bottom: 10px;
  }
}

/* Saving card buy page */
.saving-plan-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 0%, rgba(41, 190, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #e8f1ff 100%);
}

.saving-plan-shell {
  width: min(100% - 28px, 292px);
  margin: 14px auto 0;
  padding: 12px 12px 118px;
  border: 1.5px solid rgba(8, 120, 250, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 40px rgba(8, 120, 250, 0.08);
}

.saving-plan-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.saving-plan-top {
  margin-bottom: 10px;
}

.saving-plan-card {
  padding: 12px 12px 10px;
  border: 1.5px solid rgba(8, 120, 250, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(8, 120, 250, 0.08);
}

.saving-plan-head {
  min-height: 122px;
  padding: 14px 12px 10px;
  border: 1.5px solid rgba(8, 120, 250, 0.22);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(110deg, transparent 0 48%, rgba(34, 198, 238, 0.12) 48% 68%, transparent 68% 100%),
    linear-gradient(135deg, #ffffff 0%, #e7f8ff 100%);
}

.saving-plan-head img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 7px;
}

.saving-plan-head h2 {
  margin: 0;
  color: #2d5af6;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.saving-plan-rows {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saving-plan-row {
  min-height: 48px;
  padding: 7px 16px;
  border: 1.5px solid rgba(8, 120, 250, 0.26);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(110deg, transparent 0 45%, rgba(37, 178, 255, 0.08) 45% 60%, transparent 60% 100%),
    rgba(255, 255, 255, 0.9);
}

.saving-plan-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.saving-plan-row strong {
  color: #031333;
  font-size: 15px;
  line-height: 1.05;
  font-weight: 900;
}

.saving-plan-row strong span {
  margin-left: 5px;
  white-space: nowrap;
}

.invest-row {
  border-color: rgba(255, 80, 165, 0.38);
}

.invest-row span,
.bonus-row p {
  color: #e24aa7;
}

.profit-row {
  border-color: rgba(28, 205, 139, 0.42);
}

.profit-row span {
  color: #00a56d;
}

.valid-row {
  border-color: rgba(0, 190, 255, 0.42);
}

.valid-row span {
  color: #09aee8;
}

.total-row {
  border-color: rgba(229, 161, 38, 0.42);
}

.total-row span {
  color: #d89218;
}

.bonus-row {
  min-height: 50px;
  grid-template-columns: 38px 1fr;
  border-color: rgba(255, 80, 165, 0.38);
}

.bonus-row div {
  min-width: 0;
}

.bonus-row strong {
  display: block;
  font-size: 12px;
}

.bonus-row p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
}

.saving-invest-btn {
  min-height: 52px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  background: linear-gradient(100deg, #28caff 0%, #1499ff 48%, #7364ff 100%);
  box-shadow: 0 12px 24px rgba(8, 120, 250, 0.24);
}

.saving-invest-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.saving-invest-btn span {
  text-align: center;
  color: #ffffff;
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
}

.saving-invest-btn i {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.saving-invest-btn.btn-loading {
  pointer-events: none;
  opacity: 0.72;
}

@media (max-width: 360px) {
  .saving-plan-shell {
    width: calc(100% - 20px);
    padding-left: 10px;
    padding-right: 10px;
  }

  .saving-plan-head h2 {
    font-size: 22px;
  }

  .saving-plan-row {
    padding-left: 12px;
    padding-right: 12px;
  }

  .saving-invest-btn span {
    font-size: 19px;
  }
}
