.plan-page {
  width: calc(100% - 24px);
  max-width: 420px;
  margin: 14px auto 0;
  color: var(--text);
  padding: 96px 14px 140px;
  border-radius: 38px;
  background:
    radial-gradient(circle at top right, rgba(168, 126, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 255, 0.96));
  box-shadow: 0 38px 70px rgba(50, 30, 91, 0.28);
}

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

.plan-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, #b07cff, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.18);
}

.plan-title {
  margin: 12px 0 8px;
  text-align: left;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #2e2546;
}

.plan-subtitle {
  margin: 0;
  color: #8d80ad;
  font-size: 13px;
  line-height: 1.55;
}

.plan-card {
  width: 100%;
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 255, 0.94));
  border: 1px solid rgba(139, 92, 246, 0.1);
  box-shadow: 0 22px 38px rgba(81, 54, 138, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(81, 54, 138, 0.18);
}

.plan-card::before {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  right: -16px;
  top: -18px;
  border-radius: 28px;
  transform: rotate(22deg);
  background: rgba(139, 92, 246, 0.07);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.badge1 {
  background: linear-gradient(145deg, #c8a6ff, #8b5cf6);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.18);
}

.plan-name {
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4eeff;
  font-size: 10px;
  font-weight: 700;
  color: #8d80ad;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-price {
  margin: 16px 0 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffca69, #f6a73a);
  color: #fff;
  box-shadow: 0 18px 30px rgba(246, 167, 58, 0.24);
}

.plan-price small {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  opacity: 0.86;
}

.plan-price strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 12px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(247, 243, 255, 0.82);
  border: 1px solid rgba(139, 92, 246, 0.08);
  color: var(--text);
  font-size: 12px;
}

.stat span {
  font-size: 11px;
  color: #7e6a55;
}

.stat b {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.plan-features {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(247, 243, 255, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.08);
  color: var(--text-soft);
  font-size: 12px;
  min-height: 84px;
}

.feature i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  margin-right: 0;
  flex-shrink: 0;
}

.feature div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature span {
  display: block;
  font-size: 11px;
  color: #8d80ad;
}

.feature strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: #2e2546;
}

.plan-btn {
  display: block;
  margin-top: 16px;
  text-align: center;
  padding: 15px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(145deg, #b07cff, #8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 16px 28px rgba(139, 92, 246, 0.24);
}

.plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(139, 92, 246, 0.3);
}

@media (max-width: 480px) {
  .plan-page {
    width: calc(100% - 24px);
    max-width: none;
    margin: 10px auto 0;
    padding: 92px 12px 136px;
    border-radius: 32px;
  }

  .plan-card {
    padding: 18px;
    border-radius: 24px;
  }

  .plan-price strong {
    font-size: 28px;
  }

  .plan-features {
    grid-template-columns: 1fr;
  }
}

/* Buy page current purple theme */
.buy-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.62), transparent 30%),
    linear-gradient(180deg, #d8cef2 0%, #f7f3ff 48%, #ebe5fb 100%);
}

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

.buy-reference {
  width: min(100% - 24px, 430px);
  max-width: 430px;
  margin: 22px auto 0;
  padding: 96px 14px 138px;
  border-radius: 46px;
  background: #fff;
  box-shadow:
    0 32px 72px rgba(74, 50, 137, 0.2),
    0 0 0 10px rgba(255, 255, 255, 0.34);
  overflow: hidden;
}

.buy-page .appHeader {
  width: min(390px, calc(100% - 42px));
  top: 22px;
  height: 52px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  justify-content: space-between;
}

.buy-page .appHeader .header-btn {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  color: #7d4ee1;
  box-shadow: none;
}

.buy-page .appHeader .header-btn i {
  color: #fff;
}

.buy-page .header-title {
  display: none;
}

.buy-page .header-left,
.buy-page .header-right {
  width: auto;
}

.buy-reference .plan-hero {
  position: relative;
  min-height: 220px;
  margin: -96px -14px 22px;
  padding: 126px 28px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 38%, rgba(255, 255, 255, 0.15), transparent 30%),
    linear-gradient(145deg, #8b64d8 0%, #5f39b4 100%);
  overflow: hidden;
}

.buy-reference .plan-hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -48px;
  height: 104px;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  background: #fff;
  z-index: 1;
}

.plan-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 235px;
}

.buy-reference .plan-hero-badge {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.buy-reference .plan-title {
  margin: 16px 0 8px;
  color: #fff;
  font-size: 32px;
  letter-spacing: 0;
}

.buy-reference .plan-subtitle {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.plan-hero-art {
  position: absolute;
  right: 24px;
  bottom: 32px;
  z-index: 2;
  width: 116px;
  height: 116px;
}

.plan-art-ring {
  position: absolute;
  inset: 10px;
  border: 11px solid rgba(255, 255, 255, 0.82);
  border-left-color: #8b64d8;
  border-bottom-color: #ffd14c;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.plan-hero-art i {
  position: absolute;
  left: 35px;
  top: 36px;
  color: #fff;
  font-size: 34px;
}

.plan-hero-art span {
  position: absolute;
  right: 12px;
  bottom: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffd14c;
  box-shadow: -48px 18px 0 #fff, -2px -62px 0 rgba(255, 255, 255, 0.42);
}

.buy-reference .plan-card {
  padding: 0;
  margin-bottom: 18px;
  border: 0;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(74, 50, 137, 0.12);
}

.buy-reference .plan-card::before {
  display: none;
}

.buy-reference .plan-top {
  position: relative;
  padding: 20px 20px 0;
  align-items: flex-start;
}

.buy-reference .badge1 {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  background: linear-gradient(145deg, #8b64d8, #5f39b4);
  letter-spacing: 0;
  text-transform: none;
}

.buy-reference .plan-name {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: #8179a3;
}

.plan-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #8b64d8, #5f39b4);
  color: #fff;
  box-shadow: 0 14px 24px rgba(95, 57, 180, 0.24);
}

.buy-reference .plan-price {
  margin: 18px 20px;
  padding: 22px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(145deg, #8b64d8 0%, #5f39b4 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(95, 57, 180, 0.22);
}

.buy-reference .plan-price strong {
  font-size: 32px;
  letter-spacing: 0;
}

.buy-reference .plan-features {
  margin: 0 20px;
  gap: 12px;
}

.buy-reference .feature {
  min-height: 86px;
  border: 1px solid rgba(111, 82, 178, 0.1);
  border-radius: 18px;
  background: #fbfaff;
  box-shadow: 0 10px 24px rgba(74, 50, 137, 0.06);
}

.buy-reference .feature i {
  color: #fff;
  background: linear-gradient(145deg, #8b64d8, #5f39b4);
}

.buy-reference .plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 20px 20px;
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(145deg, #8b64d8, #5f39b4);
  box-shadow: 0 16px 30px rgba(95, 57, 180, 0.26);
}

.buy-page .appNavBar {
  width: min(390px, calc(100% - 42px));
  height: 76px;
  bottom: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(111, 82, 178, 0.08);
  box-shadow: 0 18px 38px rgba(74, 50, 137, 0.16);
}

.buy-page .navLink {
  color: #8179a3;
}

.buy-page .navLink.center {
  color: #fff;
  background: linear-gradient(145deg, #8b64d8, #5f39b4);
}

@media (max-width: 480px) {
  .buy-reference {
    width: calc(100% - 24px);
    padding: 92px 12px 136px;
    border-radius: 36px;
  }

  .buy-page .appHeader {
    width: min(390px, calc(100% - 34px));
    top: 14px;
  }

  .buy-reference .plan-hero {
    margin-left: -12px;
    margin-right: -12px;
    margin-top: -92px;
    padding: 122px 24px 26px;
  }

  .plan-hero-art {
    right: 8px;
    transform: scale(0.9);
  }

  .buy-reference .plan-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .buy-reference .feature {
    min-height: 104px;
    padding: 12px 10px;
    flex-direction: column;
  }

  .buy-reference .feature strong {
    font-size: 12px;
  }

  .buy-page .appNavBar {
    width: min(390px, calc(100% - 34px));
    bottom: 12px;
  }
}

/* SEBI-inspired black and emerald Buy Plan page. */
body.buy-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 15%, rgba(20, 233, 134, .07), transparent 20%),
    #030504 !important;
  color: #f7fbf9;
}

body.buy-page .buy-reference {
  width: min(100% - 32px, 640px) !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  padding: 132px 0 132px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.buy-page .appHeader {
  width: min(100% - 32px, 640px) !important;
  max-width: 640px !important;
  top: 18px !important;
  height: 60px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.buy-page .appHeader .header-left,
body.buy-page .appHeader .header-right { width: 46px !important; }

body.buy-page .appHeader .header-btn {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #f7fbf9 !important;
  box-shadow: none !important;
}

body.buy-page .appHeader .header-left .header-btn {
  justify-content: flex-start !important;
  font-size: 28px;
}

body.buy-page .appHeader .header-title {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  text-align: left !important;
}

body.buy-page .appHeader .app-header-copy { display: none !important; }
body.buy-page .appHeader .header-title::after {
  content: "Buy Plan";
  color: #f7fbf9;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.04em;
}

/* Retains the existing logout action while giving it the emerald brand treatment. */
body.buy-page .appHeader .logout-btn {
  border: 1px solid #14e986 !important;
  color: #14e986 !important;
  box-shadow: 0 0 22px rgba(20, 233, 134, .12) !important;
}

body.buy-page .appHeader .logout-btn i { color: #14e986 !important; }

body.buy-page .plan-hero {
  min-height: 132px !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  color: #f7fbf9 !important;
  background: transparent !important;
  overflow: visible !important;
}

body.buy-page .plan-hero::after,
body.buy-page .plan-hero-badge,
body.buy-page .plan-hero-art { display: none !important; }

body.buy-page .plan-hero-copy { max-width: none !important; }

body.buy-page .plan-title {
  margin: 0 0 12px !important;
  color: #f7fbf9 !important;
  font-size: clamp(38px, 7vw, 60px) !important;
  font-weight: 800 !important;
  letter-spacing: -.06em !important;
  line-height: 1.03 !important;
}

body.buy-page .plan-subtitle {
  color: rgba(235, 243, 238, .64) !important;
  font-size: clamp(18px, 3vw, 25px) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

body.buy-page .plan-card {
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 26px !important;
  border: 1px solid rgba(227, 243, 235, .18) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 85% 16%, rgba(20, 233, 134, .055), transparent 24%),
    linear-gradient(145deg, rgba(22, 26, 24, .97), rgba(7, 10, 9, .99)) !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .28) !important;
  overflow: hidden !important;
}

body.buy-page .plan-card::before { display: none !important; }

body.buy-page .plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 233, 134, .55) !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .3), 0 0 22px rgba(20, 233, 134, .1) !important;
}

body.buy-page .plan-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 22px;
  position: relative;
}

body.buy-page .plan-primary {
  min-width: 0;
  padding-left: 68px;
  position: relative;
}

body.buy-page .plan-icon {
  position: absolute;
  top: 3px;
  left: 0;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #14e986;
  font-size: 37px;
}

body.buy-page .plan-primary h2 {
  margin: 4px 0 24px !important;
  color: #f7fbf9 !important;
  font-size: clamp(22px, 3.6vw, 31px) !important;
  font-weight: 750 !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
}

body.buy-page .plan-investment {
  display: block;
  color: #14e986;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .92;
  white-space: nowrap;
}

body.buy-page .plan-investment-label {
  display: block;
  margin-top: 12px;
  color: rgba(235, 243, 238, .66);
  font-size: clamp(12px, 2vw, 17px);
}

body.buy-page .plan-features {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  margin: 0 !important;
  padding-left: 22px;
  border-left: 1px solid rgba(227, 243, 235, .16);
}

body.buy-page .feature {
  min-height: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.buy-page .feature i {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #14e986 !important;
  font-size: 25px;
}

body.buy-page .feature div { gap: 4px !important; }
body.buy-page .feature span {
  color: rgba(235, 243, 238, .66) !important;
  font-size: clamp(12px, 2vw, 17px) !important;
  line-height: 1.1;
}

body.buy-page .feature strong {
  color: #14e986 !important;
  font-size: clamp(20px, 3.7vw, 30px) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  white-space: nowrap;
}

body.buy-page .plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(227, 243, 235, .1);
  color: rgba(235, 243, 238, .58);
  font-size: 12px;
}

body.buy-page .plan-meta span { display: inline-flex; align-items: center; gap: 6px; }
body.buy-page .plan-meta i,
body.buy-page .plan-meta strong { color: #14e986; }
body.buy-page .plan-meta strong { font-weight: 700; }

body.buy-page .plan-btn {
  min-height: 58px !important;
  margin: 22px 0 0 !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 2px solid #14e986 !important;
  border-radius: 18px !important;
  background: transparent !important;
  color: #14e986 !important;
  box-shadow: none !important;
  font-size: 21px !important;
  font-weight: 750 !important;
}

body.buy-page .plan-card:nth-of-type(2) .plan-btn {
  background: linear-gradient(105deg, #12dc7d, #13e987) !important;
  color: #04190e !important;
  box-shadow: 0 14px 26px rgba(11, 235, 130, .14) !important;
}

body.buy-page .plan-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(105deg, #12dc7d, #13e987) !important;
  color: #04190e !important;
  box-shadow: 0 14px 26px rgba(11, 235, 130, .14) !important;
}

body.buy-page .appNavBar {
  width: min(100% - 32px, 640px) !important;
  height: 78px !important;
  bottom: 14px !important;
  padding: 8px !important;
  border: 1px solid rgba(227, 243, 235, .14) !important;
  border-radius: 24px !important;
  background: rgba(16, 20, 18, .96) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42) !important;
}

body.buy-page .appNavBar .navLink { color: rgba(238, 246, 241, .58) !important; }
body.buy-page .appNavBar .navLink.active,
body.buy-page .appNavBar .navLink[href="./dashboard"] { color: #14e986 !important; }

@media (max-width: 480px) {
  body.buy-page .buy-reference { width: calc(100% - 28px) !important; padding-top: 112px !important; }
  body.buy-page .appHeader { width: calc(100% - 28px) !important; top: 10px !important; }
  body.buy-page .plan-hero { min-height: 124px !important; margin-bottom: 22px !important; }
  body.buy-page .plan-card { padding: 20px !important; border-radius: 23px !important; }
  body.buy-page .plan-card-main { gap: 13px !important; }
  body.buy-page .plan-primary { padding-left: 53px !important; }
  body.buy-page .plan-icon { width: 40px !important; height: 40px !important; font-size: 30px !important; }
  body.buy-page .plan-primary h2 { margin-top: 2px !important; margin-bottom: 21px !important; }
  body.buy-page .plan-features { gap: 16px !important; padding-left: 13px !important; }
  body.buy-page .feature { grid-template-columns: 24px minmax(0, 1fr) !important; gap: 7px !important; }
  body.buy-page .feature i { font-size: 19px !important; }
  body.buy-page .feature strong { font-size: 18px !important; }
  body.buy-page .plan-meta { gap: 8px 12px !important; font-size: 10px !important; }
  body.buy-page .plan-btn { min-height: 54px !important; font-size: 18px !important; }
  body.buy-page .appNavBar { width: calc(100% - 28px) !important; bottom: 10px !important; }
}
