.subPage {
  min-height: 100vh;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(0, 0, 0, 0.03),
    transparent 55%
  );
}

/* topbar */
.subTopbar {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
}

.subBack,
.subClose {
  justify-self: start;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 900;
  cursor: pointer;
}

.subClose {
  justify-self: end;
}

.subBrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  font-weight: 1000;
}

.subBrand__logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* main layout */
.subMain {
  padding: 22px 16px 44px;
  display: grid;
  gap: 18px;
}

/* status card */
.subStatus {
  display: grid;
  place-items: center;
}

.subStatus__card {
  width: min(920px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 12px;

  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
}

.subStat {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.subStat__label {
  font-size: 12px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 6px;
}

.subStat__value {
  font-weight: 1000;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.86);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subStat__muted {
  font-weight: 900;
  color: rgba(0, 0, 0, 0.45);
  margin-left: 6px;
}

.subStat__email {
  font-size: 14px;
}

/* center content */
.subWrap {
  display: grid;
  place-items: center;
}

.subCard {
  width: min(920px, calc(100vw - 28px));
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.1);
  padding: 18px;
}

.subTitle {
  text-align: center;
  font-size: 36px;
  font-weight: 1000;
  margin: 6px 0 14px;
}

.subTabs {
  margin: 0 auto 14px;
  width: min(460px, 100%);
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.subTab {
  height: 34px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  font-weight: 1000;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.65);
}

.subTab.is-active {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.9);
}

.subGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.planCard {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: grid;
  gap: 10px;
  min-height: 170px;
}

.planCard--light {
  background: rgba(120, 130, 255, 0.08);
}

.planCard--primary {
  background: #4b4fe6;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}

.planTitle {
  font-size: 28px;
  font-weight: 1000;
  margin: 0;
}

.planHint {
  margin: 0;
  font-weight: 900;
  opacity: 0.85;
}

.planPrice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.planPrice__main {
  font-size: 34px;
  font-weight: 1000;
}

.planPrice__per {
  font-weight: 900;
  opacity: 0.75;
}

.planBtn {
  margin-top: 8px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 1000;
  cursor: pointer;
}

.planBtn--primary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.subFoot {
  text-align: center;
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.55);
}

.planCard--primary .subFoot {
  color: rgba(255, 255, 255, 0.75);
}

/* mobile */
@media (max-width: 720px) {
  .subStatus__card {
    grid-template-columns: 1fr;
  }
  .subTitle {
    font-size: 30px;
  }
  .subGrid {
    grid-template-columns: 1fr;
  }
}
/* ✅ центрируем весь контент по вертикали */
.subMain {
  min-height: calc(100vh - 64px); /* минус topbar */
  display: flex;
  flex-direction: column;
  justify-content: center; /* вертикальный центр */
  align-items: center; /* горизонтальный центр */
  gap: 18px;
  padding: 22px 16px 44px;
}

/* чтобы секции не растягивались на всю ширину */
.subStatus,
.subWrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* на маленьких экранах лучше не насиловать вертикальный центр, а дать скролл */
@media (max-height: 780px) {
  .subMain {
    justify-content: flex-start;
  }
}
.subStatus__card,
.subCard {
  animation: subFade 0.25s ease both;
}

@keyframes subFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* основной контейнер НЕ центрируем */
.subMain {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 16px 44px;
}

/* верхний блок всегда сверху */
.subStatus {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ✅ центрируем ТОЛЬКО тарифы */
.subTariffsCenter {
  width: 100%;
  display: flex;
  justify-content: center;

  /* забирает всё оставшееся место и центрует внутри */
  flex: 1;
  align-items: center;
}

/* чтобы карточка тарифов не растягивалась */
.subWrap {
  width: min(900px, calc(100vw - 32px));
  margin-bottom: 10%;
}
@media (max-height: 780px) {
  .subTariffsCenter {
    align-items: flex-start;
  }
}
.subDevTopUp {
  margin-top: 14px;
  display: grid;
}

.subDevTopUp__btn {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 1000;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.subDevTopUp__btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.16);
}

.subDevTopUp__btn:active {
  transform: translateY(1px);
}

.subDevTopUp__btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.subCancel {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.subCancel__btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-weight: 600;
}

.subCancel__btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.subCancel__hint {
  font-size: 12px;
  opacity: 0.75;
  text-align: center;
}
/* video background */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2; /* уходит под весь контент */
  pointer-events: none; /* чтобы не мешало кликам */
}

/* лёгкая “вуаль”, чтобы текст читался */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      900px 500px at 15% 0%,
      rgba(255, 255, 255, 0.55),
      transparent 60%
    ),
    radial-gradient(
      700px 480px at 85% 10%,
      rgba(255, 255, 255, 0.45),
      transparent 60%
    ),
    radial-gradient(
      900px 620px at 60% 90%,
      rgba(255, 255, 255, 0.4),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.65),
      rgba(255, 255, 255, 0.75)
    );
}
/* disabled button look */
.planBtn.is-disabled,
.planBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* credits */
.creditsSection {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.creditsTitle {
  text-align: center;
  font-size: 22px;
  font-weight: 1000;
  margin: 8px 0 12px;
}

.creditsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.creditsPack {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 1000;
  transition:
    transform 0.08s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.creditsPack:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.16);
}

.creditsPack:active {
  transform: translateY(1px);
}

.creditsPack__name {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.86);
}

.creditsPack__price {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.86);
}

.creditsFoot {
  text-align: center;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.55);
}
.subManage {
  width: min(920px, calc(100vw - 28px)); /* как subStatus__card */
  margin: -6px auto 0; /* по центру контейнер, но контент вправо */
  display: flex;
  justify-content: flex-start; /* ✅ вправо */
}

.subManage__link {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subManage__link:hover {
  color: rgba(0, 0, 0, 0.75);
}
.subNote {
  margin: 10px 0 16px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.75);
}
.subNote strong {
  color: rgba(0, 0, 0, 0.95);
  font-weight: 600;
}
.planPrice {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.planPrice__stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.planPrice__old {
  font-size: 24px;
  font-weight: 1000;
  opacity: 0.55;
  text-decoration: line-through;
  line-height: 1;
}

.planPrice__main {
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
}

.planPrice__per {
  font-size: 16px;
  font-weight: 900;
  opacity: 0.8;
  line-height: 1;
  align-self: flex-end; /* прижимает к нижней цене */
  margin-bottom: 3px; /* чуть подровнять по глазу */
}

.planCard--primary .planPrice__old,
.planCard--primary .planPrice__per {
  color: rgba(255, 255, 255, 0.82);
}
