.plan-page {
  width: min(100%, 420px);
  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(195, 207, 0, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(31, 8, 53, 0.98), rgba(15, 3, 26, 0.98));
  box-shadow: 0 38px 70px rgba(0, 0, 0, 0.42);
}

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

.plan-hero-upgraded {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(145deg, #47256f, #2a113f 62%, #180826);
  box-shadow: 0 26px 42px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  position: relative;
}

.plan-hero-upgraded::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -44px;
  top: -40px;
  border-radius: 42px;
  transform: rotate(20deg);
  background: rgba(255, 255, 255, 0.06);
}

.plan-hero-copy {
  position: relative;
  z-index: 1;
}

.plan-hero-badge,
.badge1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  color: #2b2000;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(195, 207, 0, 0.18);
}

.plan-title {
  margin: 14px 0 8px;
  text-align: left;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
}

.plan-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 260px;
}

.plan-hero-orbit {
  width: 90px;
  min-width: 90px;
  position: relative;
  z-index: 1;
}

.plan-hero-orbit span {
  position: absolute;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.9);
}

.plan-hero-orbit span:nth-child(1) {
  width: 64px;
  height: 64px;
  top: 2px;
  right: 8px;
  border-color: var(--primary) transparent #a178ff #ffffff;
}

.plan-hero-orbit span:nth-child(2) {
  width: 42px;
  height: 42px;
  top: 40px;
  left: 6px;
  border-width: 7px;
  border-color: #ffffff #ff89aa var(--primary) transparent;
}

.plan-hero-orbit span:nth-child(3) {
  width: 16px;
  height: 16px;
  top: 34px;
  left: 42px;
  background: #fff;
  border: none;
  box-shadow: 18px -10px 0 0 var(--primary), -18px 18px 0 0 #a178ff;
}

.category-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.category-tab {
  border: none;
  border-radius: 24px;
  padding: 16px 14px;
  text-align: left;
  background: linear-gradient(180deg, rgba(74, 44, 118, 0.92), rgba(39, 20, 65, 0.92));
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-tab small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.category-tab strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  color: var(--text);
}

.category-tab span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.category-tab.active {
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  color: #2b2000;
  border-color: transparent;
  box-shadow: 0 20px 34px rgba(195, 207, 0, 0.22);
  transform: translateY(-3px);
}

.category-tab.active small,
.category-tab.active strong,
.category-tab.active span {
  color: #2b2000;
}

.category-panel {
  display: none;
}

.category-panel.active {
  display: block;
}

.category-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.category-panel-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  color: var(--text);
}

.category-panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 250px;
}

.category-media-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(74, 44, 118, 0.92), rgba(39, 20, 65, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.category-media-image {
  border-radius: 18px;
  overflow: hidden;
  min-height: 116px;
  background: rgba(255, 255, 255, 0.06);
}

.category-media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-media-copy {
  align-self: center;
}

.category-media-copy small {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.category-media-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.15;
  color: var(--text);
}

.category-media-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.category-count {
  min-width: 78px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.plan-grid {
  display: grid;
  gap: 16px;
}

.plan-card {
  width: 100%;
  margin-bottom: 0;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(195, 207, 0, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(75, 45, 119, 0.96), rgba(43, 22, 72, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  position: relative;
}

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

.plan-thumb {
  height: 128px;
  margin-bottom: 14px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.plan-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.plan-name {
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 6, 31, 0.48);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.plan-price {
  margin: 16px 0 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--primary), #bac600);
  color: #2b2000;
  box-shadow: 0 18px 30px rgba(195, 207, 0, 0.18);
}

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

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

.plan-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.plan-glance div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(18, 6, 31, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.plan-glance span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}

.plan-glance strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.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(18, 6, 31, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.06);
  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: #2b2000;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  margin-right: 0;
  flex-shrink: 0;
}

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

.feature span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.feature strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}

.plan-btn {
  display: block;
  margin-top: 16px;
  text-align: center;
  padding: 15px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  color: #2b2000;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 16px 28px rgba(195, 207, 0, 0.2);
}

.plan-btn:hover {
  transform: translateY(-2px);
}

.plan-empty-state {
  padding: 28px 22px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(75, 45, 119, 0.96), rgba(43, 22, 72, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.24);
}

.plan-empty-state i {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  color: #2b2000;
  font-size: 24px;
}

.plan-empty-state h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.plan-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

  .plan-hero-upgraded,
  .plan-glance {
    grid-template-columns: 1fr;
  }

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

  .plan-hero-upgraded {
    display: block;
  }

  .plan-hero-orbit {
    margin-top: 18px;
    height: 90px;
  }

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

  .category-tab {
    padding: 14px 10px;
    border-radius: 20px;
  }

  .category-tab strong {
    font-size: 13px;
  }

  .category-tab span {
    font-size: 10px;
    line-height: 1.35;
  }

  .category-media-card {
    grid-template-columns: 104px 1fr;
    gap: 12px;
  }

  .category-media-image {
    min-height: 100px;
  }

  .category-media-copy strong {
    font-size: 17px;
  }

  .category-media-copy p {
    font-size: 12px;
  }

  .category-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
