/* ================= BUY PLAN PAGE ================= */
body.buy-plan-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 10%, rgba(72, 94, 255, 0.22), transparent 28%),
    radial-gradient(circle at 18% 48%, rgba(34, 128, 255, 0.12), transparent 32%),
    linear-gradient(150deg, #050816 0%, #080d28 46%, #030611 100%);
  color: #f7f8ff;
}

body.buy-plan-page::before {
  content: "";
  position: fixed;
  top: 52px;
  right: -210px;
  width: 500px;
  height: 500px;
  pointer-events: none;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, rgba(59, 92, 255, 0.2) 0 2px, transparent 3px 30px);
  opacity: 0.45;
  transform: rotate(-24deg);
}

body.buy-plan-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 58%);
}

.buy-plan-page .plan-page {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 22px 16px 118px;
  color: #f7f8ff;
}

.plan-topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-back {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 21px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.plan-page-title {
  text-align: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.plan-wallet {
  min-width: 0;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(128, 143, 208, 0.22);
  backdrop-filter: blur(18px);
}

.plan-wallet i:first-child {
  color: #6377ff;
}

.plan-wallet span {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-heading {
  margin-bottom: 18px;
}

.plan-heading h1 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.1;
}

.plan-heading p {
  margin: 0;
  color: #a5aecb;
  font-size: 14px;
}

.buy-plan-page .plan-card {
  width: 100%;
  min-height: 0;
  display: block;
  grid-template-columns: none;
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  border: 1.5px solid #3d7cff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transition: 0.25s;
}

.buy-plan-page .plan-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 22px 48px rgba(52, 115, 255, 0.18);
}

.buy-plan-page .plan-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.plan-name-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-badge-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  font-size: 22px;
  background: linear-gradient(135deg, #43a8ff, #655fff);
  box-shadow: 0 16px 28px rgba(65, 104, 255, 0.26);
}

.buy-plan-page .plan-name {
  min-width: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-plan-page .badge1 {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #69a7ff;
  background: rgba(76, 156, 255, 0.12);
  border: 1px solid rgba(76, 156, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
}

.buy-plan-page .plan-name-wrap .plan-name {
  flex: 1 1 120px;
}

.buy-plan-page .plan-price {
  color: #35a4ff;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.buy-plan-page .plan-features {
  margin: 0;
}

.buy-plan-page .feature {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 10px 0;
  color: #a5aecb;
  font-size: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.buy-plan-page .feature span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.buy-plan-page .feature i {
  width: 18px;
  margin: 0;
  color: #7279ff;
  text-align: center;
}

.buy-plan-page .feature strong {
  color: #36a5ff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.buy-plan-page .feature strong.success {
  color: #30d578;
}

.buy-plan-page .feature strong.warning {
  color: #ffb21f;
}

.buy-plan-page .plan-btn {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 0 14px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(100deg, #43a8ff, #6c61ff);
  box-shadow: 0 16px 32px rgba(65, 104, 255, 0.24);
  position: relative;
}

.buy-plan-page .plan-btn:hover {
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(76, 132, 255, 0.34);
}

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

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

@keyframes planSpin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Override shared footer styles on this dark page. */
.buy-plan-page .appNavBar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 8px 10px;
  z-index: 9999;
  border-radius: 18px 18px 0 0;
  background: rgba(8, 13, 40, 0.92);
  border: 1px solid rgba(128, 143, 208, 0.18);
  border-bottom: 0;
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.buy-plan-page .navLink {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #9da5c3;
  font-size: 11px;
  text-align: center;
  transform: none;
}

.buy-plan-page .navLink i {
  margin: 0;
  color: inherit;
  font-size: 22px;
}

.buy-plan-page .navLink p {
  margin: 0;
  font-size: 11px;
  line-height: 1;
}

.buy-plan-page .navLink.active,
.buy-plan-page .navLink:nth-child(4) {
  color: #4c8dff;
}

.buy-plan-page .navLink.center {
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.buy-plan-page .navLink.center p {
  display: block;
}

.buy-plan-page .navLink.active::after {
  display: none;
}

@media (max-width: 380px) {
  .buy-plan-page .plan-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .plan-topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .plan-wallet {
    padding: 0 8px;
    font-size: 12px;
  }

  .plan-wallet span {
    max-width: 70px;
  }

  .buy-plan-page .plan-card {
    display: block;
    grid-template-columns: none;
    padding: 14px;
  }

  .buy-plan-page .plan-name {
    font-size: 16px;
  }

  .buy-plan-page .badge1 {
    padding: 4px 7px;
    font-size: 10px;
  }

  .buy-plan-page .plan-price {
    font-size: 17px;
  }

  .buy-plan-page .feature {
    font-size: 13px;
  }
}

/* Keep shared footer identical to dashboard on this page. */
.buy-plan-page .appNavBar.appNavBar {
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: 78px;
  padding: 8px 8px 10px;
  border-radius: 18px 18px 0 0;
  background: rgba(8, 13, 40, 0.92);
  border: 0 !important;
  border-top: 1px solid rgba(76, 141, 255, 0.24) !important;
  outline: 0 !important;
}

.buy-plan-page .navLink.navLink {
  height: 60px;
  gap: 5px;
  color: #9da5c3;
}

.buy-plan-page .navLink.navLink i {
  margin: 0;
  font-size: 22px;
}

.buy-plan-page .navLink.navLink p {
  display: block;
  margin: 0;
  font-size: 11px;
}

.buy-plan-page .navLink.navLink.active {
  color: #4c8dff;
}

.buy-plan-page .navLink.navLink.center {
  top: 0;
  width: auto;
  height: 60px;
  color: #4c8dff;
  background: transparent;
  box-shadow: none;
}

.buy-plan-page .navLink.navLink.center i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  background: linear-gradient(135deg, #43a8ff, #6c61ff);
  box-shadow: 0 14px 28px rgba(65, 104, 255, 0.32);
}

.buy-plan-page .navLink.navLink.center p {
  display: block;
  margin-top: -2px;
}
