.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;
  }
}
