/* ================= PLAN PAGE ================= */
.plan-page {
  width: 100%;
  max-width: 380px;
  margin: auto;
  color: var(--primary-dark);
  padding: 86px 12px 100px;
}

.plan-profile-page {
  position: relative;
}

/* ================= HERO ================= */
.plan-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #725cff 0%, #5c4cff 100%);
  border-radius: 32px;
  padding: 18px 18px 0;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(92, 76, 255, 0.22);
}

.plan-hero::before,
.plan-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.plan-hero::before {
  width: 220px;
  height: 220px;
  top: -130px;
  right: -70px;
  background: rgba(255, 255, 255, 0.12);
}

.plan-hero::after {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: -120px;
  background: rgba(255, 255, 255, 0.08);
}

.plan-hero-top,
.plan-avatar-wrap,
.plan-hero-title,
.plan-hero-subtitle,
.plan-hero-btn,
.plan-overview {
  position: relative;
  z-index: 2;
}

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

.plan-hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.84;
}

.plan-hero-menu {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
}

.plan-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.plan-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #dfe5ff);
  color: #5c4cff;
  font-size: 30px;
  border: 4px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 28px rgba(29, 36, 64, 0.18);
}

.plan-hero-title {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.plan-hero-subtitle {
  max-width: 260px;
  margin: 10px auto 0;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.88;
}

.plan-hero-btn {
  width: fit-content;
  min-width: 154px;
  margin: 20px auto 0;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #6b60d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(29, 36, 64, 0.16);
}

.plan-hero-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7d67ff, #5c4cff);
  color: #ffffff;
}

.plan-overview {
  margin-top: 22px;
  padding: 18px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.plan-overview-item {
  text-align: center;
}

.plan-overview-item strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.plan-overview-item span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ================= SECTION ================= */
.plan-section-shell {
  margin-top: -12px;
  padding: 22px 0 0;
}

.plan-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px 14px;
}

.plan-section-head h2 {
  margin: 0;
  font-size: 18px;
  color: #1d2440;
}

.plan-section-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7a819d;
}

.plan-highlight-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef1ff, #dbe4ff);
  color: #5c4cff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ================= PLAN CARD ================= */
.plan-card {
  width: 100%;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(125, 103, 255, 0.12);
  box-shadow: 0 16px 34px rgba(42, 50, 107, 0.08);
  transition: 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(42, 50, 107, 0.12);
}

.plan-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.plan-card-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7d67ff, #5c4cff);
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 12px 24px rgba(92, 76, 255, 0.2);
}

.plan-card-copy {
  flex: 1;
}

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

.badge1 {
  background: linear-gradient(135deg, #7d67ff, #5c4cff);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: #1d2440;
  text-align: right;
}

.plan-price {
  font-size: 28px;
  font-weight: 800;
  margin: 12px 0 14px;
  line-height: 1;
  color: #1d2440;
}

.plan-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.plan-mini-stat {
  padding: 10px 8px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dff0ff, #c8e0ff);
  border: 1px solid #b8d6ff;
  text-align: center;
}

.plan-mini-stat span {
  display: block;
  font-size: 10px;
  color: #8a91ae;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-mini-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #1d2440;
  line-height: 1.4;
}

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

.feature {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8f9ff, #eff3ff);
  border: 1px solid #e5e9ff;
  color: #47506f;
  font-size: 11px;
  line-height: 1.45;
}

.feature i {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7d67ff, #5c4cff);
  color: #ffffff;
  font-size: 12px;
}

/* ================= BUTTON ================= */
.plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, #7d67ff 0%, #5c4cff 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  box-shadow: 0 16px 28px rgba(92, 76, 255, 0.22);
  transition: 0.25s ease;
}

.plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(92, 76, 255, 0.28);
}

.plan-btn i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
}

.plan-btn.btn-loading span,
.plan-btn.btn-loading i {
  visibility: hidden;
}

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

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

@media (max-width: 420px) {
  .plan-page {
    padding: 82px 10px 98px;
  }

  .plan-hero {
    border-radius: 28px;
    padding: 16px 14px 0;
  }

  .plan-hero-title {
    font-size: 24px;
  }

  .plan-card-top {
    gap: 12px;
  }

  .plan-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .plan-price {
    font-size: 24px;
  }

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

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

  .plan-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature {
    min-height: 58px;
    padding: 10px 10px;
    font-size: 10px;
  }

  .feature i {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
}
