.plan-page {
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 96px 12px 100px;
}

.buy-shell {
  position: relative;
}

.buy-shell::before,
.buy-shell::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  border-radius: 50%;
  pointer-events: none;
}

.buy-shell::before {
  top: 140px;
  height: 140px;
  border-top: 2px solid rgba(255, 88, 20, 0.36);
  box-shadow: 0 0 16px rgba(255, 88, 20, 0.22);
  transform: rotate(-7deg);
}

.buy-shell::after {
  bottom: 110px;
  height: 190px;
  border-top: 2px solid rgba(255, 88, 20, 0.44);
  box-shadow: 0 0 18px rgba(255, 88, 20, 0.2);
  transform: rotate(-8deg);
}

.buy-top-tabs,
.featured-plan-grid,
.calculator-card,
.plan-list {
  position: relative;
  z-index: 1;
}

.buy-top-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 121, 58, 0.18);
  background: linear-gradient(180deg, rgba(62, 16, 18, 0.9), rgba(28, 10, 14, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 132, 72, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.24);
}

.buy-tab {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe8c1;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 121, 58, 0.12);
}

.buy-tab:last-child {
  border-right: 0;
}

.buy-tab.active {
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
}

.buy-section {
  margin-top: 18px;
}

.buy-section-title {
  margin-bottom: 12px;
  color: #ffd38f;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.buy-section-title::after {
  content: "";
  position: absolute;
  left: 88px;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 124, 62, 0.5), transparent);
}

.buy-section-title.with-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.buy-section-title.with-cta::after {
  left: 185px;
  right: 72px;
}

.buy-section-title.with-cta a {
  position: relative;
  z-index: 1;
  color: #ffd699;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.featured-plan-card {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 125, 63, 0.22);
  color: #fff2d8;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 132, 72, 0.14),
    0 18px 36px rgba(0, 0, 0, 0.34);
}

.featured-plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.07) 0 22%, transparent 22% 100%),
    radial-gradient(circle at 84% 12%, rgba(255, 120, 43, 0.24), transparent 20%);
  pointer-events: none;
}

.featured-plan-card.silver {
  background: linear-gradient(180deg, rgba(66, 57, 65, 0.96), rgba(35, 28, 34, 0.98));
}

.featured-plan-card.gold {
  background: linear-gradient(180deg, rgba(146, 71, 10, 0.98), rgba(74, 32, 10, 0.98));
}

.featured-plan-card.vip {
  background: linear-gradient(180deg, rgba(150, 24, 16, 0.98), rgba(79, 16, 14, 0.98));
}

.featured-plan-card.is-selected {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 191, 111, 0.18),
    0 0 0 2px rgba(255, 118, 52, 0.16),
    0 22px 40px rgba(0, 0, 0, 0.42);
}

.featured-plan-name,
.featured-plan-rate,
.featured-plan-detail,
.featured-plan-meta,
.featured-plan-btn {
  position: relative;
  z-index: 1;
}

.featured-plan-name {
  color: #f3ede3;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-plan-rate {
  margin-top: 18px;
  color: #fff0cc;
  font-family: "Rajdhani", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.95;
}

.featured-plan-detail {
  margin-top: 8px;
  color: rgba(255, 236, 206, 0.94);
  font-size: 0.84rem;
  line-height: 1.35;
  min-height: 34px;
  text-transform: uppercase;
}

.featured-plan-meta {
  margin-top: 14px;
  color: #ffd89d;
  font-size: 0.9rem;
}

.featured-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  min-height: 34px;
  margin-top: 16px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 136, 76, 0.36);
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
  color: #fff0dc;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calculator-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 62, 0.16);
  background: linear-gradient(180deg, rgba(63, 16, 18, 0.96), rgba(31, 10, 14, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 132, 72, 0.14),
    0 18px 36px rgba(0, 0, 0, 0.34);
}

.calculator-input {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 121, 61, 0.34);
  background: rgba(39, 12, 14, 0.92);
  color: #ffe3bd;
}

.calculator-currency {
  color: #ffbf62;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.calculator-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffe3bd;
}

.calculator-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.calculator-stat {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 124, 62, 0.3);
}

.calculator-stat span {
  display: block;
  color: rgba(255, 224, 181, 0.68);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calculator-stat strong {
  display: block;
  margin-top: 10px;
  color: #ffd58d;
  font-size: 2rem;
  line-height: 1;
  font-family: "Rajdhani", sans-serif;
}

.calculator-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 210px);
  min-height: 48px;
  margin: 20px auto 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 136, 76, 0.36);
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
  color: #fff0dc;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(255, 61, 17, 0.18);
}

.plan-list {
  display: grid;
  gap: 14px;
}

.plan-card-list {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 62, 0.16);
  background: linear-gradient(180deg, rgba(63, 16, 18, 0.96), rgba(31, 10, 14, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 132, 72, 0.14),
    0 18px 36px rgba(0, 0, 0, 0.34);
}

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

.plan-list-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
  color: #fff0d8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-list-name {
  color: #f3ede3;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-list-price {
  margin: 14px 0 12px;
  color: #ffd58d;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

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

.plan-list-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(90, 32, 29, 0.92), rgba(55, 17, 19, 0.98));
  border: 1px solid rgba(255, 128, 70, 0.22);
  color: #ffe7bf;
  font-size: 0.82rem;
  line-height: 1.25;
}

.plan-list-feature i {
  flex: 0 0 auto;
  color: #ffc66d;
}

.plan-list-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 136, 76, 0.36);
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
  color: #fff0dc;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-list-btn span {
  position: relative;
  z-index: 1;
}

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

.plan-list-btn.btn-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 235, 209, 0.95);
  border-top-color: transparent;
  animation: spin 0.75s linear infinite;
  z-index: 2;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 460px) {
  .plan-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .buy-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .buy-top-tabs,
  .featured-plan-grid,
  .calculator-stats {
    grid-template-columns: 1fr;
  }

  .buy-section-title::after,
  .buy-section-title.with-cta::after {
    display: none;
  }

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

  .plan-list-feature {
    padding: 8px;
    font-size: 0.74rem;
    gap: 6px;
  }
}

@media (max-width: 300px) {
  .plan-list-features {
    grid-template-columns: 1fr;
  }
}
