.plan-page {
  width: 100%;
  max-width: 420px;
  margin: 14px auto 0;
  color: var(--text);
  padding: 96px 14px 140px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.12), transparent 16%),
    linear-gradient(145deg, rgba(81, 58, 140, 0.98), rgba(42, 28, 86, 0.98) 44%, rgba(16, 12, 36, 0.98));
  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: calc(100% - 24px);
    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;
  }
}

.plan-card {
  background:
    linear-gradient(180deg, rgba(35, 24, 70, 0.96), rgba(21, 15, 47, 0.94));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 42px rgba(4, 0, 19, 0.34);
}

.plan-card::before {
  background: rgba(255, 79, 216, 0.12);
}

.plan-name {
  background: rgba(255, 255, 255, 0.08);
  color: #cfc2f2;
}

.plan-price {
  background: linear-gradient(145deg, #7d46ff, #b24fff 54%, #ff8a48);
  box-shadow: 0 20px 34px rgba(93, 37, 189, 0.28);
}

.feature {
  background: rgba(13, 10, 31, 0.74);
  border-color: rgba(255, 255, 255, 0.08);
  color: #d8cafa;
}

.feature i {
  color: #52f2ff;
  background: rgba(82, 242, 255, 0.14);
}

.feature span {
  color: #b6a9db;
}

.feature strong {
  color: #f7f1ff;
}

.plan-btn {
  background: linear-gradient(145deg, #905cff, #ff4fd8);
  box-shadow: 0 18px 30px rgba(93, 37, 189, 0.28);
}

/* Plan page redesign */
.plan-page {
  padding-bottom: 150px;
}

.plan-showcase {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
  padding: 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.plan-showcase::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 42px;
  transform: rotate(28deg);
  background: rgba(255, 255, 255, 0.07);
}

.plan-hero {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.plan-hero-badge {
  background: linear-gradient(145deg, #1bd8c4, #4f7cff);
  box-shadow: 0 14px 28px rgba(38, 125, 214, 0.18);
}

.plan-title {
  color: #ffffff;
  font-size: 31px;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.plan-subtitle {
  color: #cec2f1;
  max-width: 320px;
}

.plan-hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 20%),
    linear-gradient(145deg, rgba(124, 166, 255, 0.28), rgba(90, 217, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 42px rgba(4, 0, 19, 0.28);
  overflow: hidden;
}

.plan-hero-panel::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  transform: rotate(24deg);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel-copy {
  position: relative;
  z-index: 1;
  max-width: 230px;
}

.hero-panel-copy small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 6px;
}

.hero-panel-copy strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  text-shadow: 0 8px 16px rgba(7, 10, 32, 0.18);
}

.hero-panel-bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 88px;
}

.hero-bar {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #52f2ff, #4774ff);
  box-shadow: 0 12px 22px rgba(4, 0, 19, 0.22);
}

.hero-bar-1 {
  height: 42px;
}

.hero-bar-2 {
  height: 66px;
  background: linear-gradient(180deg, #ffb84d, #ff4fd8);
}

.hero-bar-3 {
  height: 92px;
  background: linear-gradient(180deg, #2ee6a6, #52f2ff);
}

.plan-collection {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-card {
  margin-bottom: 0;
  padding: 0;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(19, 15, 43, 0.98), rgba(11, 10, 29, 0.98));
}

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

.plan-ribbon {
  height: 7px;
  background: linear-gradient(90deg, #1bd8c4, #4f7cff, #905cff, #ff4fd8);
}

.plan-shell {
  padding: 20px;
}

.plan-top {
  align-items: flex-start;
}

.plan-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge1 {
  width: fit-content;
  background: linear-gradient(145deg, #1bd8c4, #4f7cff);
  box-shadow: 0 12px 22px rgba(38, 125, 214, 0.22);
}

.plan-name {
  width: fit-content;
  background: rgba(255, 255, 255, 0.06);
  color: #d5cdf4;
}

.plan-orbit {
  display: flex;
  gap: 7px;
  padding-top: 6px;
}

.plan-orbit span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.plan-core {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin: 18px 0 14px;
}

.plan-price {
  margin: 0;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #112f6d, #2a68df 52%, #52f2ff);
  box-shadow: 0 20px 34px rgba(28, 81, 173, 0.28);
}

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

.plan-side-stats {
  display: grid;
  gap: 12px;
}

.side-stat {
  min-width: 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.side-stat span {
  display: block;
  font-size: 11px;
  color: #b8addd;
  margin-bottom: 6px;
}

.side-stat b {
  display: block;
  font-size: 18px;
  color: #fff;
  overflow-wrap: anywhere;
}

.plan-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.rail-pill {
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(33, 25, 69, 0.96), rgba(24, 18, 50, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rail-pill span {
  display: block;
  font-size: 11px;
  color: #b8addd;
  margin-bottom: 6px;
}

.rail-pill strong {
  display: block;
  color: #fff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.plan-features {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  min-height: 92px;
  border-radius: 18px;
}

.feature i {
  color: #1bd8c4;
  background: rgba(27, 216, 196, 0.14);
}

.plan-btn {
  margin-top: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1bd8c4, #4f7cff);
  box-shadow: 0 18px 30px rgba(38, 125, 214, 0.24);
}

@media (max-width: 480px) {
  .plan-showcase {
    padding: 12px;
    border-radius: 24px;
  }

  .plan-title {
    font-size: 26px;
  }

  .plan-hero-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .hero-panel-copy strong {
    font-size: 16px;
  }

  .plan-shell {
    padding: 16px;
  }

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

  .plan-price {
    min-height: 116px;
  }

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

@media (max-width: 480px) {
  .plan-page {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin: 10px auto 0;
    overflow-x: hidden;
  }

  .plan-showcase,
  .plan-collection,
  .plan-card,
  .plan-shell,
  .plan-core,
  .plan-side-stats,
  .plan-rail,
  .plan-features,
  .hero-panel-copy,
  .rail-pill,
  .side-stat,
  .feature {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .plan-top,
  .plan-core,
  .plan-rail,
  .plan-features {
    grid-template-columns: 1fr;
  }
}
