:root {
  --bg: #07080b;
  --panel: #121318;
  --panel-soft: #17191f;

  --border: rgba(255,255,255,.09);
  --border-hover: rgba(255,255,255,.16);

  --text: #f5f5f7;
  --muted: #969ca8;

  --red: #ef232a;
  --red-soft: rgba(239,35,42,.14);

  --green: #25d366;
  --green-soft: rgba(37,211,102,.10);

  --radius: 20px;
}


* {
  box-sizing: border-box;
}


html,
body {
  margin: 0;
  min-height: 100%;
}


body {
  font-family:
    Arial,
    sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at 92% 4%,
      rgba(150,0,10,.18),
      transparent 31%
    ),
    radial-gradient(
      circle at 40% 90%,
      rgba(90,0,0,.10),
      transparent 34%
    ),
    #07080b;
}


button,
a {
  font: inherit;
}


button {
  color: inherit;
}


[hidden] {
  display: none !important;
}


/* APP */

.app {
  min-height: 100vh;

  display: grid;

  grid-template-columns:
    215px minmax(0,1fr);

  grid-template-rows:
    74px minmax(0,1fr);
}


/* HEADER */

.global-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  height: 74px;

  z-index: 30;

  padding:
    0 26px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background:
    rgba(8,9,12,.92);

  backdrop-filter:
    blur(18px);

  border-bottom:
    1px solid var(--border);
}


.brand {
  display: flex;
  align-items: center;

  gap: 11px;
}


.brand-icon {
  width: 39px;
  height: 39px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color: var(--red);

  background:
    var(--red-soft);

  border:
    1px solid rgba(239,35,42,.28);

  box-shadow:
    0 0 28px rgba(239,35,42,.10);
}


.brand-title {
  display: flex;
  align-items: baseline;

  gap: 5px;
}


.brand-title b {
  font-size: 17px;

  letter-spacing: .4px;
}


.brand-title span {
  color: #c7c9cf;
}


.account {
  min-width: 190px;

  padding:
    8px 10px;

  display: grid;

  grid-template-columns:
    38px 1fr auto;

  align-items: center;

  gap: 10px;

  border:
    1px solid var(--border);

  border-radius: 14px;

  background:
    rgba(255,255,255,.03);
}


.account-avatar {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color: var(--red);

  background: var(--red-soft);

  border:
    1px solid rgba(239,35,42,.25);

  font-weight: 900;
}


.account-info b,
.account-info span {
  display: block;
}


.account-info b {
  font-size: 11px;
}


.account-info span {
  margin-top: 3px;

  color: var(--muted);

  font-size: 9px;
}


.account-arrow {
  color: #777;

  font-size: 15px;
}


/* SIDEBAR */

.sidebar {
  position: fixed;

  top: 74px;
  left: 0;
  bottom: 0;

  width: 215px;

  padding:
    24px 13px 17px;

  display: flex;
  flex-direction: column;

  border-right:
    1px solid var(--border);

  background:
    linear-gradient(
      180deg,
      rgba(14,15,20,.96),
      rgba(7,8,11,.98)
    );
}


.sidebar-nav {
  display: grid;

  gap: 7px;
}


.nav-item {
  width: 100%;
  min-height: 47px;

  padding:
    0 14px;

  display: flex;
  align-items: center;

  gap: 12px;

  border:
    1px solid transparent;

  border-radius: 14px;

  color: #989da7;

  background:
    transparent;

  cursor: pointer;

  text-align: left;

  transition:
    .16s ease;
}


.nav-item span {
  width: 22px;

  text-align: center;

  font-size: 18px;
}


.nav-item b {
  font-size: 13px;
}


.nav-item:hover {
  color: #fff;

  background:
    rgba(255,255,255,.035);
}


.nav-item.active {
  color: #fff;

  background:
    linear-gradient(
      100deg,
      rgba(239,35,42,.16),
      rgba(239,35,42,.035)
    );

  border-color:
    rgba(239,35,42,.23);

  box-shadow:
    inset 3px 0 var(--red);
}


.nav-item.active span {
  color: var(--red);
}


.sidebar-footer {
  margin-top: auto;
}


.service-status {
  padding:
    12px 13px;

  border:
    1px solid var(--border);

  border-radius: 13px;

  color: #aaaeb7;

  background:
    rgba(255,255,255,.022);

  font-size: 10px;
}


.service-status i {
  display: inline-block;

  width: 7px;
  height: 7px;

  margin-right: 7px;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 11px rgba(37,211,102,.55);
}


/* CONTENT */

.content {
  grid-column: 2;
  grid-row: 2;

  min-width: 0;

  padding:
    38px 42px 70px;

  max-width: 1400px;
}


/* PAGES */

.page {
  display: none;
}


.page.active {
  display: block;
}


.page-heading {
  margin-bottom: 30px;
}


.page-heading h1 {
  margin: 0;

  font-size: 30px;

  letter-spacing: -.035em;
}


.page-heading p {
  margin:
    7px 0 0;

  color: var(--muted);

  font-size: 13px;
}


/* SUMMARY */

.summary-grid {
  width: min(720px,100%);

  margin-bottom: 43px;

  display: grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap: 15px;
}


.summary-card {
  position: relative;

  min-height: 170px;

  overflow: hidden;

  padding: 23px;

  border:
    1px solid var(--border);

  border-radius: 21px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.012)
    ),
    var(--panel);

  box-shadow:
    0 18px 50px rgba(0,0,0,.20);
}


.balance-card::after {
  content: "";

  position: absolute;

  width: 160px;
  height: 160px;

  right: -60px;
  top: -75px;

  border-radius: 50%;

  background:
    rgba(239,35,42,.14);

  filter:
    blur(12px);

  pointer-events: none;
}


.summary-label {
  position: relative;

  z-index: 2;

  color: #a2a7b0;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: .08em;

  text-transform: uppercase;
}


.summary-value {
  position: relative;

  z-index: 2;

  margin-top: 14px;

  font-size: 37px;
  font-weight: 900;

  letter-spacing: -.04em;
}


.balance-button {
  position: relative;

  z-index: 2;

  margin-top: 21px;
}


.subscription-health {
  margin-top: 20px;

  display: flex;
  align-items: center;

  gap: 8px;

  color: #c5c8ce;

  font-size: 11px;
}


.subscription-health i {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background:
    var(--green);

  box-shadow:
    0 0 10px rgba(37,211,102,.5);
}


.subscription-health.offline i {
  background: #777;

  box-shadow: none;
}


/* SECTION */

.subscriptions {
  width: 100%;

  max-width: 1040px;
}


.section-title {
  margin-bottom: 14px;

  color: #d9dadd;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: .1em;

  text-transform: uppercase;
}


/* SUBSCRIPTION */

.subscription-card {
  position: relative;

  overflow: hidden;

  padding: 25px;

  margin-bottom: 14px;

  border:
    1px solid var(--border);

  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.052),
      rgba(255,255,255,.012)
    ),
    var(--panel);

  box-shadow:
    0 18px 48px rgba(0,0,0,.22);

  transition:
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}


.subscription-card:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(239,35,42,.22);

  box-shadow:
    0 22px 55px rgba(0,0,0,.26);
}


.subscription-card::after {
  content: "";

  position: absolute;

  width: 250px;
  height: 100px;

  left: -80px;
  top: -75px;

  border-radius: 50%;

  background:
    rgba(239,35,42,.10);

  filter:
    blur(28px);

  pointer-events: none;
}


.subscription-head {
  position: relative;

  z-index: 2;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}


.subscription-identity {
  display: flex;
  align-items: center;

  gap: 14px;
}


.subscription-logo {
  width: 49px;
  height: 49px;

  flex:
    0 0 49px;

  display: grid;
  place-items: center;

  border-radius: 15px;

  color: var(--red);

  background: var(--red-soft);

  border:
    1px solid rgba(239,35,42,.28);

  font-size: 22px;
}


.subscription-name b {
  display: block;

  font-size: 19px;
}


.subscription-name span {
  display: block;

  margin-top: 4px;

  color: var(--muted);

  font-size: 11px;
}


.active-status {
  padding:
    7px 10px;

  display: flex;
  align-items: center;

  gap: 7px;

  border-radius: 9px;

  color: var(--green);

  background:
    var(--green-soft);

  border:
    1px solid rgba(37,211,102,.18);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .04em;

  text-transform: uppercase;
}


.active-status i {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background:
    var(--green);
}


.subscription-meta {
  position: relative;

  z-index: 2;

  margin-top: 31px;
  padding-top: 22px;

  display: grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap: 25px;

  border-top:
    1px solid rgba(255,255,255,.065);
}


.meta-item span,
.meta-item b {
  display: block;
}


.meta-item span {
  color: #777d87;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: .1em;

  text-transform: uppercase;
}


.meta-item b {
  margin-top: 8px;

  font-size: 13px;
}


.auto-renew {
  color: #dfe1e5;
}


.auto-renew::before {
  content: "";

  display: inline-block;

  width: 7px;
  height: 7px;

  margin-right: 7px;

  border-radius: 50%;

  background: var(--green);
}


.auto-renew.disabled::before {
  background: #777;
}


.subscription-actions {
  position: relative;

  z-index: 2;

  margin-top: 26px;

  display: grid;

  grid-template-columns:
    minmax(230px,1fr)
    160px;

  gap: 10px;
}


/* BUTTONS */

.primary-button {
  min-height: 46px;

  padding:
    0 18px;

  border: 0;

  border-radius: 14px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #ff3037,
      #b80008
    );

  box-shadow:
    0 9px 25px rgba(180,0,8,.16);

  cursor: pointer;

  font-weight: 800;

  transition:
    transform .15s ease,
    filter .15s ease;
}


.primary-button:hover {
  transform:
    translateY(-1px);

  filter:
    brightness(1.07);
}


.secondary-button {
  min-height: 46px;

  padding:
    0 16px;

  border:
    1px solid var(--border);

  border-radius: 14px;

  color: #fff;

  background:
    rgba(255,255,255,.035);

  cursor: pointer;

  font-weight: 700;
}


.secondary-button:hover {
  border-color:
    var(--border-hover);

  background:
    rgba(255,255,255,.055);
}


.full-button {
  width: 100%;
}


button:disabled {
  opacity: .4;

  cursor: not-allowed;
}


/* EMPTY */

.loading-card,
.empty-card {
  padding: 30px;

  border:
    1px solid var(--border);

  border-radius: 20px;

  color: var(--muted);

  background:
    var(--panel);

  font-size: 12px;
}


.empty-card b {
  display: block;

  margin-bottom: 7px;

  color: #fff;

  font-size: 15px;
}


/* PAYMENT PAGE */

.payment-balance {
  width: min(350px,100%);

  margin-bottom: 22px;

  padding: 19px 20px;

  border:
    1px solid var(--border);

  border-radius: 17px;

  background:
    var(--panel);
}


.payment-balance span {
  display: block;

  color: var(--muted);

  font-size: 10px;
}


.payment-balance b {
  display: block;

  margin-top: 7px;

  font-size: 25px;
}


.payment-packages {
  width: min(900px,100%);

  display: grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap: 13px;
}


.payment-package {
  position: relative;

  min-height: 190px;

  padding: 21px;

  border:
    1px solid var(--border);

  border-radius: 20px;

  color: #fff;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.05),
      rgba(255,255,255,.015)
    ),
    var(--panel);

  cursor: pointer;

  text-align: left;

  transition:
    .17s ease;
}


.payment-package:hover {
  transform:
    translateY(-2px);

  border-color:
    rgba(239,35,42,.3);
}


.payment-package.featured {
  border-color:
    rgba(239,35,42,.48);
}


.payment-package-name {
  color: var(--muted);

  font-size: 11px;
}


.payment-package strong {
  display: block;

  margin-top: 23px;

  font-size: 30px;
}


.payment-package p {
  margin:
    10px 0 0;

  color: #d6d7da;

  font-size: 11px;
}


.payment-package small {
  display: block;

  margin-top: 6px;

  color: var(--green);

  font-size: 10px;
}


.payment-package em {
  position: absolute;

  top: 13px;
  right: 13px;

  padding:
    5px 8px;

  border-radius: 7px;

  color: var(--red);

  background:
    var(--red-soft);

  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}


/* HELP */

.help-list {
  width: min(650px,100%);
}


.help-card {
  width: 100%;
  min-height: 77px;

  margin-bottom: 10px;
  padding: 14px;

  display: grid;

  grid-template-columns:
    43px 1fr 20px;

  align-items: center;

  gap: 13px;

  border:
    1px solid var(--border);

  border-radius: 17px;

  color: #fff;

  background:
    var(--panel);

  cursor: pointer;

  text-align: left;
}


.help-icon {
  width: 43px;
  height: 43px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background:
    var(--red-soft);
}


.help-card b,
.help-card span {
  display: block;
}


.help-card b {
  font-size: 13px;
}


.help-card span {
  margin-top: 4px;

  color: var(--muted);

  font-size: 10px;
}


.help-card em {
  color: #777;

  font-size: 26px;
  font-style: normal;
}


.support-button {
  width: 100%;
  min-height: 49px;

  margin-top: 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #ff3037,
      #b80008
    );

  text-decoration: none;

  font-weight: 800;
}


/* MODAL */

.modal {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;
}


.modal.visible {
  display: flex;
}


.modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(0,0,0,.74);

  backdrop-filter:
    blur(9px);
}


.modal-card {
  position: relative;

  z-index: 2;

  width: min(420px,100%);

  padding: 25px;

  border:
    1px solid var(--border-hover);

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.05),
      rgba(255,255,255,.015)
    ),
    #121318;

  box-shadow:
    0 30px 90px rgba(0,0,0,.52);
}


.modal-close {
  position: absolute;

  top: 12px;
  right: 12px;

  width: 34px;
  height: 34px;

  border:
    1px solid var(--border);

  border-radius: 11px;

  color: #999;

  background:
    rgba(255,255,255,.03);

  cursor: pointer;

  font-size: 17px;
}


.modal-brand-icon {
  width: 52px;
  height: 52px;

  margin-bottom: 15px;

  display: grid;
  place-items: center;

  border-radius: 16px;

  color: var(--red);

  background:
    var(--red-soft);

  border:
    1px solid rgba(239,35,42,.25);

  font-size: 23px;
  font-weight: 900;
}


.modal-card h2 {
  margin:
    0 0 19px;

  font-size: 20px;
}


.modal-description {
  margin:
    -9px 0 18px;

  color: var(--muted);

  font-size: 11px;
}


.modal-info {
  overflow: hidden;

  margin-bottom: 15px;

  border:
    1px solid var(--border);

  border-radius: 14px;

  background:
    rgba(0,0,0,.12);
}


.modal-info > div {
  min-height: 53px;

  padding:
    0 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom:
    1px solid var(--border);
}


.modal-info > div:last-child {
  border-bottom: 0;
}


.modal-info span {
  color: var(--muted);

  font-size: 10px;
}


.modal-info b {
  font-size: 12px;
}


.green {
  color: var(--green);
}


.red {
  color: var(--red);
}


.renew-button {
  width: 100%;
  min-height: 42px;

  margin-top: 7px;

  border: 0;

  color: #9297a1;

  background: transparent;

  cursor: pointer;

  font-size: 10px;
}


/* TOPUP */

.topup-list {
  display: grid;

  gap: 9px;
}


.topup-list button {
  position: relative;

  width: 100%;
  min-height: 70px;

  padding:
    13px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border:
    1px solid var(--border);

  border-radius: 14px;

  color: #fff;

  background:
    rgba(255,255,255,.025);

  cursor: pointer;

  text-align: left;
}


.topup-list button:hover {
  border-color:
    rgba(239,35,42,.3);
}


.topup-list button.recommended {
  border-color:
    rgba(239,35,42,.4);
}


.topup-list b,
.topup-list span {
  display: block;
}


.topup-list b {
  font-size: 16px;
}


.topup-list span {
  margin-top: 3px;

  color: var(--muted);

  font-size: 9px;
}


.topup-list strong {
  color: var(--green);

  font-size: 13px;
}


.topup-list em {
  position: absolute;

  top: -7px;
  right: 10px;

  padding:
    3px 7px;

  border-radius: 6px;

  color: #fff;

  background: var(--red);

  font-size: 8px;
  font-style: normal;
}


/* TOAST */

.toast {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 200;

  padding:
    12px 15px;

  border:
    1px solid var(--border-hover);

  border-radius: 12px;

  color: #fff;

  background:
    #17191f;

  box-shadow:
    0 14px 40px rgba(0,0,0,.4);

  opacity: 0;

  transform:
    translateY(12px);

  transition:
    .18s ease;

  pointer-events: none;

  font-size: 11px;
}


.toast.visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* RESPONSIVE */

@media (max-width: 900px) {

  .app {
    display: block;
  }


  .global-header {
    position: static;
  }


  .sidebar {
    position: static;

    width: auto;

    padding:
      12px 14px;

    border-right: 0;

    border-bottom:
      1px solid var(--border);
  }


  .sidebar-nav {
    grid-template-columns:
      repeat(4,1fr);
  }


  .nav-item {
    justify-content: center;
  }


  .nav-item b {
    display: none;
  }


  .sidebar-footer {
    display: none;
  }


  .content {
    padding:
      26px 16px 50px;
  }


  .account-info,
  .account-arrow {
    display: none;
  }


  .account {
    min-width: auto;

    grid-template-columns: 38px;
  }


  .summary-grid {
    grid-template-columns: 1fr;
  }


  .subscription-meta {
    grid-template-columns: 1fr;
  }


  .subscription-actions {
    grid-template-columns: 1fr;
  }


  .payment-packages {
    grid-template-columns: 1fr;
  }

}




/* ==================================================
   VOSKHOD WORDMARK — v21
   ================================================== */


/* Текстовый логотип */

.brand {
  gap: 0;
}


.brand-title {
  display: flex;
  align-items: baseline;
  gap: 0;
}


.brand-title b {
  color: #f5f5f7;

  font-size: 18px;
  font-weight: 900;

  letter-spacing: .12em;
}


.brand-title span {
  margin-left: 9px;

  color: var(--red);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: .18em;
}


/* Старые декоративные иконки больше не используются */

.brand-icon,
.subscription-logo,
.modal-brand-icon {
  display: none !important;
}


/* Подписка теперь держится на типографике */

.subscription-identity {
  gap: 0;
}


.subscription-name b {
  font-size: 19px;
  font-weight: 900;

  letter-spacing: .025em;
}


.subscription-name span {
  margin-top: 6px;

  color: #858b95;

  font-size: 11px;
}


/* Красная фирменная линия вместо иконки */

.subscription-card {
  padding-left: 30px;
}


.subscription-card::before {
  content: "";

  position: absolute;

  left: 0;
  top: 25px;
  bottom: 25px;

  width: 3px;

  border-radius: 0 5px 5px 0;

  background:
    linear-gradient(
      180deg,
      #ff343b,
      #a90006
    );

  box-shadow:
    4px 0 18px rgba(239,35,42,.16);
}


/* Красный glow оставляем очень слабым */

.subscription-card::after {
  opacity: .72;
}


/* Модалки после удаления иконки */

.modal-card h2 {
  margin-top: 2px;

  font-size: 21px;
  font-weight: 800;

  letter-spacing: -.025em;
}


/* Чуть строже верхняя шапка */

.global-header {
  background:
    rgba(7,8,11,.94);
}


.account-avatar {
  border-radius: 50%;

  color: #fff;

  background:
    linear-gradient(
      145deg,
      #272a31,
      #17191f
    );

  border:
    1px solid rgba(255,255,255,.10);
}


/* Менее "иконный" sidebar */

.nav-item span {
  color: #747a85;
}


.nav-item.active span {
  color: var(--red);
}


/* ==========================================================
   VOSKHOD UI POLISH
   ========================================================== */


/* ----------------------------------------------------------
   GLOBAL MOTION
   ---------------------------------------------------------- */

button,
a,
.summary-card,
.subscription-card,
.payment-package,
.help-card,
.nav-item,
.account {
  transition:
    transform .18s ease,
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    opacity .18s ease,
    filter .18s ease;
}


/* ----------------------------------------------------------
   PAGE APPEAR
   ---------------------------------------------------------- */

.page.active {
  animation:
    voskhodPageIn .22s ease both;
}


@keyframes voskhodPageIn {

  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* ----------------------------------------------------------
   PRIMARY BUTTONS
   ---------------------------------------------------------- */

.primary-button,
.support-button {
  position: relative;

  overflow: hidden;

  box-shadow:
    0 8px 22px rgba(190,0,10,.13);
}


.primary-button:hover,
.support-button:hover {
  transform:
    translateY(-2px);

  filter:
    brightness(1.06);

  box-shadow:
    0 11px 27px rgba(220,0,12,.20),
    0 0 18px rgba(239,35,42,.08);
}


.primary-button:active,
.support-button:active {
  transform:
    translateY(0) scale(.985);

  box-shadow:
    0 5px 13px rgba(180,0,8,.13);
}


/* лёгкий блик */

.primary-button::after,
.support-button::after {
  content: "";

  position: absolute;

  top: -80%;
  left: -40%;

  width: 32%;
  height: 260%;

  pointer-events: none;

  transform:
    rotate(18deg);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.10),
      transparent
    );

  opacity: 0;

  transition:
    left .45s ease,
    opacity .2s ease;
}


.primary-button:hover::after,
.support-button:hover::after {
  left: 115%;

  opacity: 1;
}


/* ----------------------------------------------------------
   SECONDARY BUTTONS
   ---------------------------------------------------------- */

.secondary-button:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(255,255,255,.16);

  background:
    rgba(255,255,255,.065);
}


.secondary-button:active {
  transform:
    scale(.985);
}


/* ----------------------------------------------------------
   SUMMARY CARDS
   ---------------------------------------------------------- */

.summary-card:hover {
  transform:
    translateY(-2px);

  border-color:
    rgba(255,255,255,.13);

  box-shadow:
    0 20px 48px rgba(0,0,0,.27);
}


.balance-card:hover {
  border-color:
    rgba(239,35,42,.18);
}


.balance-card:hover::after {
  opacity: 1;

  transform:
    scale(1.08);
}


.balance-card::after {
  transition:
    transform .25s ease,
    opacity .25s ease;
}


/* ----------------------------------------------------------
   SUBSCRIPTION CARD
   ---------------------------------------------------------- */

.subscription-card:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(239,35,42,.24);

  box-shadow:
    0 24px 58px rgba(0,0,0,.29),
    0 0 26px rgba(239,35,42,.035);
}


.subscription-card::before {
  transition:
    box-shadow .22s ease,
    width .22s ease;
}


.subscription-card:hover::before {
  width: 4px;

  box-shadow:
    5px 0 19px rgba(239,35,42,.20);
}


/* статус слегка оживает */

.active-status i,
.subscription-health i,
.service-status i {
  animation:
    voskhodStatusPulse 2.8s ease-in-out infinite;
}


@keyframes voskhodStatusPulse {

  0%,
  100% {
    box-shadow:
      0 0 8px rgba(37,211,102,.35);
  }

  50% {
    box-shadow:
      0 0 15px rgba(37,211,102,.65);
  }

}


/* ----------------------------------------------------------
   SIDEBAR
   ---------------------------------------------------------- */

.nav-item:hover {
  transform:
    translateX(2px);

  color: #fff;

  background:
    rgba(255,255,255,.045);
}


.nav-item.active {
  box-shadow:
    inset 3px 0 var(--red),
    0 0 20px rgba(239,35,42,.025);
}


.nav-item.active:hover {
  background:
    linear-gradient(
      100deg,
      rgba(239,35,42,.19),
      rgba(239,35,42,.045)
    );
}


/* ----------------------------------------------------------
   ACCOUNT
   ---------------------------------------------------------- */

.account:hover {
  border-color:
    rgba(255,255,255,.15);

  background:
    rgba(255,255,255,.045);
}


/* ----------------------------------------------------------
   PAYMENT PACKAGES
   ---------------------------------------------------------- */

.payment-package:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(239,35,42,.28);

  box-shadow:
    0 18px 45px rgba(0,0,0,.25);
}


.payment-package.featured:hover {
  border-color:
    rgba(239,35,42,.60);

  box-shadow:
    0 18px 50px rgba(0,0,0,.26),
    0 0 24px rgba(239,35,42,.055);
}


.payment-package:active {
  transform:
    translateY(-1px) scale(.992);
}


/* ----------------------------------------------------------
   HELP CARDS
   ---------------------------------------------------------- */

.help-card:hover {
  transform:
    translateX(3px);

  border-color:
    rgba(255,255,255,.14);

  background:
    #15171c;
}


.help-card:hover em {
  transform:
    translateX(3px);

  color: #aaa;
}


.help-card em {
  transition:
    transform .18s ease,
    color .18s ease;
}


/* ----------------------------------------------------------
   MODAL MOTION
   ---------------------------------------------------------- */

.modal.visible .modal-backdrop {
  animation:
    voskhodBackdropIn .16s ease both;
}


.modal.visible .modal-card {
  animation:
    voskhodModalIn .20s ease both;
}


@keyframes voskhodBackdropIn {

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }

}


@keyframes voskhodModalIn {

  from {
    opacity: 0;
    transform:
      translateY(10px) scale(.985);
  }

  to {
    opacity: 1;
    transform:
      translateY(0) scale(1);
  }

}


/* ----------------------------------------------------------
   TOPUP ITEMS
   ---------------------------------------------------------- */

.topup-list button:hover {
  transform:
    translateX(2px);

  border-color:
    rgba(239,35,42,.30);

  background:
    rgba(255,255,255,.04);
}


.topup-list button:active {
  transform:
    translateX(0) scale(.992);
}


/* ----------------------------------------------------------
   MOBILE: меньше движения
   ---------------------------------------------------------- */

@media (max-width: 900px) {

  .summary-card:hover,
  .subscription-card:hover,
  .payment-package:hover,
  .nav-item:hover,
  .help-card:hover {
    transform: none;
  }

}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}


/* ==========================================================
   MODAL BUTTON SPACING
   ========================================================== */

.modal-card .modal-info + .full-button {
  margin-top: 14px;
}

.modal-card .full-button + .full-button {
  margin-top: 10px;
}

.modal-card .renew-button {
  margin-top: 16px;
}



/* ==========================================================
   PAYMENT CARDS v40
   ========================================================== */


.payment-balance-rich {
  width: min(790px, 100%);

  min-height: 115px;

  padding: 22px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;
}


.payment-balance-rich > div:first-child {
  flex: 1;
}


.payment-balance-rich > div:first-child > span,
.payment-balance-rich > div:first-child > b,
.payment-balance-rich > div:first-child > small {
  display: block;
}


.payment-balance-rich > div:first-child > b {
  margin-top: 7px;

  font-size: 30px;
}


.payment-balance-rich > div:first-child > small {
  margin-top: 7px;

  color: var(--muted);

  font-size: 10px;
}


.payment-balance-rate {
  min-width: 170px;

  padding-left: 24px;

  border-left:
    1px solid var(--border);
}


.payment-balance-rate span,
.payment-balance-rate strong,
.payment-balance-rate small {
  display: block;
}


.payment-balance-rate span {
  color: var(--muted);

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: .06em;
}


.payment-balance-rate strong {
  margin-top: 8px;

  font-size: 19px;
}


.payment-balance-rate small {
  margin-top: 3px;

  color: #767b85;

  font-size: 9px;
}



/* GRID */

.payment-packages {
  width: min(1020px, 100%);

  margin-top: 24px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}



/* CARD */

.payment-package {
  position: relative;

  min-height: 340px;

  padding: 24px;

  display: flex;
  flex-direction: column;

  border:
    1px solid var(--border);

  border-radius: 22px;

  color: #fff;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(239,35,42,.055),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.015)
    ),
    var(--panel);

  text-align: left;

  cursor: pointer;

  overflow: hidden;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}


.payment-package:hover {
  transform:
    translateY(-4px);

  border-color:
    rgba(239,35,42,.30);

  box-shadow:
    0 22px 55px rgba(0,0,0,.30);
}



/* FEATURED */

.payment-package.featured {
  border-color:
    rgba(239,35,42,.42);

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(239,35,42,.11),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.06),
      rgba(255,255,255,.015)
    ),
    var(--panel);
}


.payment-package.best-value {
  border-color:
    rgba(239,35,42,.24);
}


.payment-package.featured:hover,
.payment-package.best-value:hover {
  border-color:
    rgba(239,35,42,.60);

  box-shadow:
    0 22px 58px rgba(0,0,0,.30),
    0 0 26px rgba(239,35,42,.05);
}



/* TOP */

.package-top {
  min-height: 25px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
}


.payment-package-name {
  color: #979ca6;

  font-size: 11px;
}


.package-top em {
  padding:
    5px 8px;

  border-radius: 7px;

  color: #ff4a50;

  background:
    rgba(239,35,42,.11);

  border:
    1px solid rgba(239,35,42,.10);

  font-size: 8px;

  font-style: normal;
  font-weight: 800;

  white-space: nowrap;
}



/* PRICE */

.package-price {
  display: block;

  margin-top: 24px;

  font-size: 35px;
  font-weight: 900;

  letter-spacing: -.035em;
}



/* CREDIT */

.package-credit {
  margin-top: 14px;

  padding:
    13px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border:
    1px solid rgba(255,255,255,.07);

  border-radius: 12px;

  background:
    rgba(255,255,255,.025);
}


.package-credit span {
  color: var(--muted);

  font-size: 9px;
}


.package-credit b {
  color: #fff;

  font-size: 13px;
}


.featured .package-credit b,
.best-value .package-credit b {
  color: var(--green);
}



/* INFO */

.package-benefits {
  margin-top: 17px;

  display: grid;

  gap: 12px;
}


.package-benefits > div {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}


.package-benefits span,
.package-benefits b {
  display: block;
}


.package-benefits span {
  color: #737985;

  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: .05em;
}


.package-benefits b {
  color: #d9dadd;

  font-size: 10px;

  text-align: right;
}



/* SAVING */

.package-saving {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;

  width: max-content;

  margin-top: 15px;
  margin-bottom: 16px;

  padding: 6px 10px;

  border-radius: 8px;

  color: var(--green);

  background: rgba(37,211,102,.075);

  border: 1px solid rgba(37,211,102,.12);

  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}



/* CTA */

.package-cta {
  width: 100%;

  min-height: 43px;

  margin-top: auto;
  
  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid var(--border);

  border-radius: 12px;

  color: #e6e7e9;

  background:
    rgba(255,255,255,.035);

  font-size: 10px;
  font-weight: 800;

  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}


.payment-package:hover .package-cta {
  border-color:
    rgba(255,255,255,.15);

  background:
    rgba(255,255,255,.06);
}


.payment-package.featured .package-cta {
  border-color:
    rgba(239,35,42,.30);

  background:
    linear-gradient(
      135deg,
      rgba(255,48,55,.92),
      rgba(184,0,8,.92)
    );

  color: #fff;

  box-shadow:
    0 8px 22px rgba(180,0,8,.13);
}


.payment-package.best-value:hover .package-cta {
  border-color:
    rgba(239,35,42,.30);

  color: #fff;

  background:
    rgba(239,35,42,.10);
}



/* MOBILE */

@media (max-width: 900px) {

  .payment-packages {
    grid-template-columns: 1fr;
  }

  .payment-package {
    min-height: 300px;
  }

}


@media (max-width: 560px) {

  .payment-balance-rich {
    display: block;
  }


  .payment-balance-rate {
    margin-top: 18px;

    padding:
      17px 0 0;

    border-left: 0;

    border-top:
      1px solid var(--border);
  }

}



/* ==========================================================
   PACKAGE ACTIONS + DETAILS v50
   ========================================================== */

.payment-package {
  cursor: default;
}


.package-bonus {
  color: var(--green) !important;
}


.package-actions {
  width: 100%;

  margin-top: auto;
  padding-top: 22px;

  display: grid;

  gap: 9px;
}


.package-cta,
.package-details {
  width: 100%;

  min-height: 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  cursor: pointer;

  font-size: 10px;
  font-weight: 800;

  transition:
    transform .17s ease,
    background .17s ease,
    border-color .17s ease,
    box-shadow .17s ease;
}


.package-cta {
  border:
    1px solid var(--border);

  color: #f4f4f5;

  background:
    rgba(255,255,255,.045);
}


.payment-package.featured .package-cta {
  border-color:
    rgba(239,35,42,.35);

  background:
    linear-gradient(
      135deg,
      #ff3037,
      #b80008
    );

  box-shadow:
    0 8px 22px rgba(180,0,8,.13);
}


.package-details {
  border:
    1px solid transparent;

  color: #8e949e;

  background: transparent;
}


.package-details:hover {
  color: #fff;

  background:
    rgba(255,255,255,.035);

  border-color:
    rgba(255,255,255,.07);
}


.package-cta:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(255,255,255,.16);

  background:
    rgba(255,255,255,.07);
}


.payment-package.featured .package-cta:hover {
  border-color:
    rgba(255,70,77,.55);

  background:
    linear-gradient(
      135deg,
      #ff3c43,
      #c90009
    );

  box-shadow:
    0 11px 28px rgba(200,0,10,.20);
}


.package-cta:active,
.package-details:active {
  transform:
    scale(.988);
}



/* DETAILS MODAL */

.package-details-modal {
  width:
    min(470px,100%);
}


.details-heading {
  margin-bottom: 20px;
}


.details-heading > span {
  display: block;

  margin-bottom: 7px;

  color: var(--red);

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .13em;
}


.details-heading h2 {
  margin: 0;

  font-size: 23px;
}


.details-heading p {
  margin:
    6px 0 0;

  color: var(--muted);

  font-size: 10px;
}


.details-info {
  margin-bottom: 17px;
}


.details-explanation {
  margin-bottom: 19px;

  padding: 15px;

  border:
    1px solid var(--border);

  border-radius: 14px;

  background:
    rgba(255,255,255,.022);
}


.details-explanation b {
  display: block;

  margin-bottom: 8px;

  font-size: 11px;
}


.details-explanation p {
  margin: 0;

  color: #969ca8;

  font-size: 10px;
  line-height: 1.65;
}





/* ==========================================================
   WEB AUTH v60
   ========================================================== */

body.auth-checking {
  background:
    #07080b;
}


body.auth-checking .app {
  visibility:
    hidden;
}


body.auth-view .app {
  display:
    none;
}


body.cabinet-view .web-auth {
  display:
    none;
}


.web-auth {
  position:
    fixed;

  inset:
    0;

  z-index:
    9999;

  display:
    none;

  align-items:
    center;

  justify-content:
    center;

  padding:
    28px;

  overflow:
    auto;

  background:
    #07080b;
}


body.auth-view .web-auth {
  display:
    flex;
}


.web-auth-backdrop {
  position:
    absolute;

  inset:
    0;

  pointer-events:
    none;

  background:

    radial-gradient(
      circle at 50% 25%,
      rgba(239,35,42,.085),
      transparent 34%
    ),

    radial-gradient(
      circle at 15% 90%,
      rgba(255,255,255,.025),
      transparent 32%
    ),

    #07080b;
}


.web-auth-shell {
  position:
    relative;

  z-index:
    1;

  width:
    min(430px, 100%);
}


.web-auth-brand {
  margin-bottom:
    22px;

  color:
    #fff;

  font-size:
    18px;

  font-weight:
    900;

  letter-spacing:
    .11em;

  text-align:
    center;
}


.web-auth-brand::after {
  content:
    "";

  display:
    block;

  width:
    42px;

  height:
    2px;

  margin:
    12px auto 0;

  border-radius:
    999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #ef232a,
      transparent
    );

  box-shadow:
    0 0 17px rgba(239,35,42,.24);
}


.web-auth-card {
  padding:
    30px;

  border:
    1px solid rgba(255,255,255,.085);

  border-radius:
    22px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.012)
    ),
    #111217;

  box-shadow:
    0 30px 85px rgba(0,0,0,.42);
}


.web-auth-head h1 {
  margin:
    0;

  color:
    #f5f5f7;

  font-size:
    24px;

  line-height:
    1.2;

  letter-spacing:
    -.025em;
}


.web-auth-head p {
  margin:
    8px 0 0;

  color:
    #8d929d;

  font-size:
    11px;

  line-height:
    1.6;
}


.auth-tabs {
  margin-top:
    24px;

  padding:
    4px;

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    4px;

  border:
    1px solid rgba(255,255,255,.07);

  border-radius:
    12px;

  background:
    rgba(255,255,255,.025);
}


.auth-tab {
  min-height:
    39px;

  border:
    0;

  border-radius:
    9px;

  color:
    #858b96;

  background:
    transparent;

  cursor:
    pointer;

  font:
    inherit;

  font-size:
    10px;

  font-weight:
    800;

  transition:
    color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}


.auth-tab:hover {
  color:
    #fff;
}


.auth-tab.active {
  color:
    #fff;

  background:
    rgba(255,255,255,.065);

  box-shadow:
    0 3px 12px rgba(0,0,0,.18);
}


.auth-form {
  margin-top:
    22px;

  display:
    grid;

  gap:
    15px;
}


.auth-form[hidden] {
  display:
    none !important;
}


.auth-field {
  display:
    grid;

  gap:
    7px;
}


.auth-field > span {
  color:
    #a0a5ae;

  font-size:
    9px;

  font-weight:
    700;
}


.auth-field input {
  width:
    100%;

  height:
    48px;

  padding:
    0 14px;

  outline:
    none;

  border:
    1px solid rgba(255,255,255,.085);

  border-radius:
    12px;

  color:
    #f5f5f7;

  background:
    rgba(255,255,255,.028);

  font:
    inherit;

  font-size:
    11px;

  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}


.auth-field input::placeholder {
  color:
    #555b65;
}


.auth-field input:hover {
  border-color:
    rgba(255,255,255,.13);
}


.auth-field input:focus {
  border-color:
    rgba(239,35,42,.55);

  background:
    rgba(255,255,255,.038);

  box-shadow:
    0 0 0 3px rgba(239,35,42,.07);
}


.auth-submit {
  position:
    relative;

  min-height:
    49px;

  margin-top:
    3px;

  border:
    1px solid rgba(255,70,77,.26);

  border-radius:
    12px;

  color:
    #fff;

  background:
    linear-gradient(
      135deg,
      #ff3037,
      #b80008
    );

  cursor:
    pointer;

  overflow:
    hidden;

  font:
    inherit;

  font-size:
    10px;

  font-weight:
    900;

  box-shadow:
    0 9px 25px rgba(190,0,10,.15);

  transition:
    transform .18s ease,
    filter .18s ease,
    box-shadow .18s ease;
}


.auth-submit:hover {
  transform:
    translateY(-2px);

  filter:
    brightness(1.06);

  box-shadow:
    0 13px 32px rgba(210,0,12,.21);
}


.auth-submit:active {
  transform:
    translateY(0) scale(.988);
}


.auth-submit:disabled {
  cursor:
    wait;

  opacity:
    .65;

  transform:
    none;
}


.auth-message {
  margin-top:
    15px;

  padding:
    11px 12px;

  border:
    1px solid rgba(239,35,42,.18);

  border-radius:
    10px;

  color:
    #ff7378;

  background:
    rgba(239,35,42,.065);

  font-size:
    9px;

  line-height:
    1.5;
}


.auth-security {
  margin-top:
    20px;

  padding-top:
    16px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    7px;

  border-top:
    1px solid rgba(255,255,255,.06);

  color:
    #606671;

  font-size:
    8px;
}


.auth-security-dot {
  width:
    6px;

  height:
    6px;

  border-radius:
    50%;

  background:
    #25d366;

  box-shadow:
    0 0 9px rgba(37,211,102,.34);
}


.sidebar-logout {
  width:
    100%;

  min-height:
    37px;

  margin-bottom:
    12px;

  border:
    1px solid rgba(255,255,255,.07);

  border-radius:
    10px;

  color:
    #757b86;

  background:
    rgba(255,255,255,.018);

  cursor:
    pointer;

  font:
    inherit;

  font-size:
    9px;

  transition:
    color .18s ease,
    border-color .18s ease,
    background .18s ease;
}


.sidebar-logout:hover {
  color:
    #fff;

  border-color:
    rgba(239,35,42,.22);

  background:
    rgba(239,35,42,.055);
}


@media (max-width: 560px) {

  .web-auth {
    align-items:
      flex-start;

    padding:
      55px 16px 25px;
  }


  .web-auth-card {
    padding:
      23px 19px;
  }


  .web-auth-head h1 {
    font-size:
      21px;
  }

}



/* ==========================================================
   ACCOUNT DROPDOWN v61
   ========================================================== */

.account-menu-wrap {
  position: relative;

  justify-self: end;
}


.account {
  appearance: none;
  font: inherit;

  cursor: pointer;
}


.account:hover {
  border-color:
    rgba(255,255,255,.14);

  background:
    rgba(255,255,255,.045);
}


.account-arrow {
  transition:
    transform .2s ease,
    color .2s ease;
}


.account-menu-wrap.open .account-arrow {
  transform:
    rotate(180deg);

  color:
    #fff;
}


.account-menu-wrap.open .account {
  border-color:
    rgba(239,35,42,.20);

  box-shadow:
    0 8px 28px rgba(0,0,0,.20);
}


.account-dropdown {
  position: absolute;

  top:
    calc(100% + 10px);

  right:
    0;

  z-index:
    1500;

  width:
    265px;

  padding:
    12px;

  border:
    1px solid rgba(255,255,255,.09);

  border-radius:
    15px;

  background:
    rgba(18,19,24,.98);

  box-shadow:
    0 24px 65px rgba(0,0,0,.43);

  backdrop-filter:
    blur(18px);

  transform-origin:
    top right;

  animation:
    accountDropdownIn .17s ease both;
}


.account-dropdown[hidden] {
  display:
    none !important;
}


@keyframes accountDropdownIn {

  from {
    opacity: 0;

    transform:
      translateY(-5px) scale(.985);
  }

  to {
    opacity: 1;

    transform:
      translateY(0) scale(1);
  }

}


.account-dropdown-head {
  padding:
    9px 10px 12px;
}


.account-dropdown-head span {
  display:
    block;

  color:
    #606671;

  font-size:
    8px;

  font-weight:
    800;

  letter-spacing:
    .09em;
}


.account-dropdown-head b {
  display:
    block;

  max-width:
    100%;

  margin-top:
    6px;

  color:
    #f5f5f7;

  overflow:
    hidden;

  font-size:
    10px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.account-dropdown-row {
  min-height:
    54px;

  padding:
    10px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  border:
    1px solid rgba(255,255,255,.055);

  border-radius:
    11px;

  background:
    rgba(255,255,255,.018);
}


.account-dropdown-row > div {
  display:
    grid;

  gap:
    4px;
}


.account-dropdown-row b {
  color:
    #d9dadd;

  font-size:
    9px;
}


.account-dropdown-row span {
  color:
    #777d87;

  font-size:
    8px;
}


.account-status-dot {
  width:
    7px;

  height:
    7px;

  flex:
    0 0 auto;

  border-radius:
    50%;

  background:
    #666b74;
}


.account-status-dot.connected {
  background:
    #25d366;

  box-shadow:
    0 0 9px rgba(37,211,102,.35);
}


.account-dropdown-separator {
  height:
    1px;

  margin:
    10px 3px;

  background:
    rgba(255,255,255,.065);
}


.account-logout {
  width:
    100%;

  min-height:
    42px;

  padding:
    0 11px;

  border:
    1px solid transparent;

  border-radius:
    10px;

  color:
    #a4a8b0;

  background:
    transparent;

  cursor:
    pointer;

  font:
    inherit;

  font-size:
    9px;

  font-weight:
    700;

  text-align:
    left;

  transition:
    color .17s ease,
    background .17s ease,
    border-color .17s ease,
    transform .17s ease;
}


.account-logout:hover {
  color:
    #ff6469;

  border-color:
    rgba(239,35,42,.11);

  background:
    rgba(239,35,42,.065);

  transform:
    translateX(2px);
}


.account-logout:active {
  transform:
    translateX(0) scale(.99);
}


@media (max-width: 600px) {

  .account-dropdown {
    width:
      min(265px, calc(100vw - 28px));

    right:
      0;
  }

}



/* ==========================================================
   SUPPORT CHAT v62
   ========================================================== */

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;

  display: grid;
  place-items: center;

  padding: 24px;
}


.support-modal[hidden] {
  display: none !important;
}


.support-modal-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(3,4,6,.72);

  backdrop-filter:
    blur(8px);
}


.support-dialog {
  position: relative;
  z-index: 1;

  width: min(540px,100%);
  max-height: min(720px,90vh);

  overflow: hidden;

  border:
    1px solid rgba(255,255,255,.09);

  border-radius: 20px;

  background:
    #111217;

  box-shadow:
    0 35px 100px rgba(0,0,0,.52);

  animation:
    supportDialogIn .18s ease both;
}


@keyframes supportDialogIn {

  from {
    opacity: 0;

    transform:
      translateY(7px) scale(.985);
  }

  to {
    opacity: 1;

    transform:
      translateY(0) scale(1);
  }

}


.support-dialog-head {
  min-height: 78px;

  padding:
    18px 20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom:
    1px solid rgba(255,255,255,.065);
}


.support-kicker {
  display: block;

  margin-bottom: 4px;

  color:
    var(--red);

  font-size: 8px;

  font-weight: 900;

  letter-spacing: .13em;
}


.support-dialog-head h2 {
  margin: 0;

  color: #f5f5f7;

  font-size: 18px;
}


.support-close {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(255,255,255,.06);

  border-radius: 9px;

  color: #8b9099;

  background:
    rgba(255,255,255,.025);

  cursor: pointer;

  font-size: 19px;

  transition:
    color .16s ease,
    background .16s ease,
    border-color .16s ease;
}


.support-close:hover {
  color: #fff;

  border-color:
    rgba(255,255,255,.12);

  background:
    rgba(255,255,255,.055);
}


.support-new-ticket {
  padding: 22px 20px;
}


.support-description {
  margin:
    0 0 20px;

  color:
    var(--muted);

  font-size: 10px;

  line-height: 1.65;
}


.support-field {
  display: grid;

  gap: 7px;

  margin-bottom: 15px;
}


.support-field > span {
  color: #9297a1;

  font-size: 9px;

  font-weight: 700;
}


.support-field input,
.support-field textarea {
  width: 100%;

  outline: none;

  border:
    1px solid rgba(255,255,255,.085);

  border-radius: 11px;

  color: #f3f3f5;

  background:
    rgba(255,255,255,.025);

  font: inherit;

  font-size: 10px;

  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}


.support-field input {
  height: 46px;

  padding:
    0 13px;
}


.support-field textarea {
  min-height: 145px;

  padding: 13px;

  resize: vertical;

  line-height: 1.55;
}


.support-field input:focus,
.support-field textarea:focus {
  border-color:
    rgba(239,35,42,.45);

  background:
    rgba(255,255,255,.035);

  box-shadow:
    0 0 0 3px rgba(239,35,42,.055);
}


.support-error {
  margin:
    0 0 14px;

  padding: 10px 11px;

  border:
    1px solid rgba(239,35,42,.16);

  border-radius: 9px;

  color: #ff7378;

  background:
    rgba(239,35,42,.06);

  font-size: 9px;
}


.support-send-primary {
  width: 100%;
  min-height: 48px;

  border:
    1px solid rgba(255,70,77,.22);

  border-radius: 11px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #ff3037,
      #b80008
    );

  cursor: pointer;

  font: inherit;

  font-size: 10px;

  font-weight: 900;

  transition:
    transform .16s ease,
    filter .16s ease,
    opacity .16s ease;
}


.support-send-primary:hover {
  transform:
    translateY(-1px);

  filter:
    brightness(1.06);
}


.support-send-primary:disabled,
.support-send-icon:disabled {
  opacity: .5;

  cursor: wait;
}


.support-chat {
  height:
    min(570px,70vh);

  display: grid;

  grid-template-rows:
    auto 1fr auto;
}


.support-chat[hidden] {
  display: none !important;
}


.support-chat-state {
  min-height: 39px;

  padding:
    0 20px;

  display: flex;

  align-items: center;

  gap: 7px;

  border-bottom:
    1px solid rgba(255,255,255,.05);

  color:
    #707680;

  font-size: 8px;
}


.support-online-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #25d366;

  box-shadow:
    0 0 8px rgba(37,211,102,.30);
}


.support-messages {
  min-height: 0;

  padding:
    18px 17px;

  overflow-y: auto;

  display: flex;

  flex-direction: column;

  gap: 10px;
}


.support-message {
  max-width: 78%;

  padding:
    10px 12px;

  border-radius:
    12px;

  font-size: 10px;

  line-height: 1.5;

  white-space: pre-wrap;

  word-break: break-word;
}


.support-message.client {
  align-self: flex-end;

  border-bottom-right-radius:
    4px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #d8171e,
      #9f0007
    );
}


.support-message.support {
  align-self: flex-start;

  border:
    1px solid rgba(255,255,255,.065);

  border-bottom-left-radius:
    4px;

  color: #d8d9dc;

  background:
    #1a1c22;
}


.support-message-time {
  display: block;

  margin-top: 5px;

  opacity: .5;

  font-size: 7px;
}


.support-empty-chat {
  margin: auto;

  color: #656a73;

  font-size: 9px;

  text-align: center;
}


.support-composer {
  padding: 12px;

  display: grid;

  grid-template-columns:
    1fr 42px;

  gap: 9px;

  border-top:
    1px solid rgba(255,255,255,.065);
}


.support-composer textarea {
  height: 44px;
  min-height: 44px;
  max-height: 110px;

  padding:
    12px 13px;

  resize: none;

  outline: none;

  border:
    1px solid rgba(255,255,255,.075);

  border-radius: 11px;

  color: #eee;

  background:
    rgba(255,255,255,.025);

  font: inherit;

  font-size: 10px;
}


.support-composer textarea:focus {
  border-color:
    rgba(239,35,42,.38);
}


.support-send-icon {
  width: 42px;
  height: 42px;

  border: 0;

  border-radius: 11px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #ff3037,
      #b80008
    );

  cursor: pointer;

  font-size: 18px;

  transition:
    transform .16s ease,
    filter .16s ease;
}


.support-send-icon:hover {
  transform:
    translateY(-1px);

  filter:
    brightness(1.07);
}


@media (max-width: 600px) {

  .support-modal {
    padding: 10px;
  }


  .support-dialog {
    width: 100%;

    max-height:
      calc(100vh - 20px);
  }


  .support-chat {
    height:
      calc(100vh - 120px);
  }


  .support-message {
    max-width: 88%;
  }

}



/* ==========================================================
   VOSKHOD CABINET UI v64
   Главный визуальный слой кабинета
   ========================================================== */

:root {
  --cab-bg: #090a0c;
  --cab-surface: #101114;
  --cab-surface-2: #15161a;
  --cab-surface-3: #1a1b20;

  --cab-border: rgba(255, 255, 255, .075);
  --cab-border-strong: rgba(255, 255, 255, .12);

  --cab-text: #f5f5f6;
  --cab-text-soft: #a6a7ad;
  --cab-text-muted: #72747c;

  --cab-red: #e63232;
  --cab-red-soft: rgba(230, 50, 50, .12);

  --cab-radius: 18px;
}


/* =========================
   BASE
   ========================= */

body {
  background:
    radial-gradient(
      circle at 75% -20%,
      rgba(230, 50, 50, .07),
      transparent 38%
    ),
    var(--cab-bg);

  color: var(--cab-text);
}


.app {
  min-height: 100vh;
  background: transparent;
}


/* =========================
   GLOBAL HEADER
   ========================= */

.global-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 30px;

  background: rgba(9, 10, 12, .86);

  border-bottom:
    1px solid var(--cab-border);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  z-index: 100;
}


.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
}


.brand-title b {
  font-size: 19px;
  font-weight: 800;

  letter-spacing: .16em;

  color: var(--cab-text);
}


.brand-title span {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--cab-red);

  box-shadow:
    0 0 18px rgba(230, 50, 50, .65);
}


/* =========================
   ACCOUNT BUTTON
   ========================= */

.account {
  min-height: 50px;

  padding: 7px 10px 7px 8px;

  border:
    1px solid var(--cab-border);

  border-radius: 14px;

  background: rgba(255,255,255,.025);

  box-shadow: none;
}


.account:hover {
  border-color:
    var(--cab-border-strong);

  background:
    rgba(255,255,255,.045);

  transform: none;
}


.account-avatar {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      #27282e,
      #17181c
    );

  border:
    1px solid rgba(255,255,255,.08);

  color: #fff;

  font-size: 14px;
  font-weight: 800;
}


.account-info b {
  color: var(--cab-text);

  font-size: 13px;
  font-weight: 650;
}


.account-info span {
  color: var(--cab-text-muted);

  font-size: 11px;
}


.account-arrow {
  color: var(--cab-text-muted);
}


/* =========================
   SIDEBAR
   ========================= */

.sidebar {
  position: fixed;

  top: 76px;
  bottom: 0;
  left: 0;

  width: 238px;

  padding: 30px 18px 22px;

  background:
    rgba(12, 13, 16, .72);

  border-right:
    1px solid var(--cab-border);

  z-index: 50;
}


.sidebar-nav {
  display: flex;
  flex-direction: column;

  gap: 6px;
}


.nav-item {
  position: relative;

  min-height: 48px;

  display: flex;
  align-items: center;

  gap: 13px;

  padding: 0 15px;

  border: 0;
  border-radius: 12px;

  background: transparent;

  color: var(--cab-text-muted);

  transition:
    background .16s ease,
    color .16s ease;
}


.nav-item:hover {
  background:
    rgba(255,255,255,.04);

  color: var(--cab-text);
}


.nav-item.active {
  background:
    rgba(255,255,255,.055);

  color: #fff;
}


.nav-item.active::before {
  content: "";

  position: absolute;

  left: 0;
  top: 13px;
  bottom: 13px;

  width: 3px;

  border-radius: 10px;

  background:
    var(--cab-red);
}


.nav-item span {
  width: 22px;

  color: inherit;

  opacity: .9;

  font-size: 16px;
  font-weight: 500;

  text-align: center;
}


.nav-item b {
  font-size: 13px;
  font-weight: 600;

  letter-spacing: .01em;
}


.sidebar-footer {
  padding:
    20px 2px 0;

  border-top:
    1px solid var(--cab-border);
}


.service-status {
  color: var(--cab-text-muted);

  font-size: 11px;
}


.service-status i {
  background: #44c77a;

  box-shadow:
    0 0 10px rgba(68,199,122,.35);
}


/* =========================
   CONTENT
   ========================= */

.content {
  margin-left: 238px;

  padding:
    120px 48px 64px;

  min-height: 100vh;
}


.page {
  width: 100%;

  max-width: 1180px;

  margin: 0 auto;
}


/* =========================
   PAGE HEADING
   ========================= */

.page-heading {
  margin-bottom: 34px;
}


.page-heading h1 {
  margin: 0 0 7px;

  color: var(--cab-text);

  font-size:
    clamp(28px, 3vw, 38px);

  line-height: 1.08;

  font-weight: 750;

  letter-spacing: -.035em;
}


.page-heading p {
  margin: 0;

  color: var(--cab-text-muted);

  font-size: 14px;
}


/* =========================
   SUMMARY
   ========================= */

.summary-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, .85fr);

  gap: 16px;

  margin-bottom: 42px;
}


.summary-card {
  position: relative;

  min-height: 196px;

  display: flex;
  flex-direction: column;

  padding: 25px;

  overflow: hidden;

  border:
    1px solid var(--cab-border);

  border-radius: var(--cab-radius);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.036),
      rgba(255,255,255,.014)
    );

  box-shadow: none;

  transition:
    border-color .18s ease,
    background .18s ease;
}


.summary-card:hover {
  transform: none;

  border-color:
    var(--cab-border-strong);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.05),
      rgba(255,255,255,.018)
    );
}


.summary-label {
  color: var(--cab-text-muted);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: .11em;

  text-transform: uppercase;
}


.summary-value {
  margin-top: 16px;

  color: #fff;

  font-size: 38px;
  font-weight: 760;

  letter-spacing: -.04em;

  line-height: 1;
}


.balance-card {
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(230,50,50,.11),
      transparent 50%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.042),
      rgba(255,255,255,.015)
    );
}


.balance-card::after {
  content: "";

  position: absolute;

  width: 130px;
  height: 130px;

  right: -60px;
  top: -60px;

  border-radius: 50%;

  background:
    rgba(230,50,50,.06);

  filter: blur(8px);

  pointer-events: none;
}


.balance-button {
  width: fit-content;

  margin-top: auto;
}


/* =========================
   BUTTONS
   ========================= */

.primary-button {
  min-height: 42px;

  padding: 0 18px;

  border: 0;

  border-radius: 11px;

  background:
    var(--cab-red);

  color: #fff;

  font-size: 13px;
  font-weight: 700;

  box-shadow:
    0 8px 28px rgba(230,50,50,.16);

  transition:
    transform .15s ease,
    filter .15s ease;
}


.primary-button:hover {
  transform:
    translateY(-1px);

  filter:
    brightness(1.07);
}


.primary-button:active {
  transform:
    translateY(0);
}


/* =========================
   SUBSCRIPTION HEALTH
   ========================= */

.subscription-health {
  width: fit-content;

  margin-top: auto;

  display: flex;
  align-items: center;

  gap: 8px;

  color: var(--cab-text-soft);

  font-size: 12px;
}


.subscription-health i {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #44c77a;
}


/* =========================
   SECTION TITLES
   ========================= */

.subscriptions {
  margin-top: 0;
}


.section-title {
  margin-bottom: 16px;

  color: var(--cab-text-soft);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: .1em;

  text-transform: uppercase;
}


/* =========================
   SUBSCRIPTION CARD
   ========================= */

.subscription-card {
  position: relative;

  padding: 24px;

  border:
    1px solid var(--cab-border);

  border-radius:
    var(--cab-radius);

  background:
    rgba(255,255,255,.022);

  box-shadow: none;

  overflow: hidden;

  transition:
    border-color .18s ease,
    background .18s ease;
}


.subscription-card:hover {
  transform: none;

  border-color:
    var(--cab-border-strong);

  background:
    rgba(255,255,255,.032);
}


.subscription-card::before {
  content: "";

  position: absolute;

  top: 22px;
  bottom: 22px;
  left: 0;

  width: 3px;

  border-radius:
    0 6px 6px 0;

  background:
    var(--cab-red);
}


.subscription-card::after {
  display: none;
}


.subscription-name b {
  color: #fff;

  font-size: 18px;
  font-weight: 700;

  letter-spacing: -.015em;
}


.subscription-name span {
  color: var(--cab-text-muted);

  font-size: 12px;
}


.subscription-meta {
  color: var(--cab-text-soft);
}


/* =========================
   LOADING / EMPTY
   ========================= */

.loading-card,
.empty-card {
  border:
    1px solid var(--cab-border);

  border-radius:
    var(--cab-radius);

  background:
    rgba(255,255,255,.018);

  color:
    var(--cab-text-muted);

  box-shadow: none;
}


/* =========================
   ACCOUNT DROPDOWN
   ========================= */

.account-dropdown {
  margin-top: 10px;

  border:
    1px solid var(--cab-border-strong);

  border-radius: 15px;

  background:
    rgba(18,19,23,.98);

  box-shadow:
    0 24px 70px rgba(0,0,0,.45);

  backdrop-filter:
    blur(20px);
}


.account-dropdown-head,
.account-dropdown-row {
  border-color:
    var(--cab-border);
}


/* =========================
   DESKTOP RESPONSIVE
   ========================= */

@media (max-width: 1100px) {

  .content {
    padding-left: 34px;
    padding-right: 34px;
  }

}


/* =========================
   TABLET / MOBILE
   ========================= */

@media (max-width: 900px) {

  .global-header {
    height: 68px;

    padding:
      0 18px;
  }


  .sidebar {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;

    width: auto;
    height: 66px;

    padding:
      7px 10px;

    border-right: 0;

    border-top:
      1px solid var(--cab-border);

    background:
      rgba(10,11,13,.96);

    backdrop-filter:
      blur(18px);

    z-index: 150;
  }


  .sidebar-nav {
    height: 100%;

    display: grid;

    grid-template-columns:
      repeat(4, 1fr);

    gap: 4px;
  }


  .nav-item {
    min-height: 50px;

    justify-content: center;

    flex-direction: column;

    gap: 3px;

    padding: 4px;

    border-radius: 10px;
  }


  .nav-item.active::before {
    top: auto;
    bottom: 0;

    left: 28%;
    right: 28%;

    width: auto;
    height: 2px;
  }


  .nav-item span {
    height: 18px;

    font-size: 15px;
    line-height: 18px;
  }


  .nav-item b {
    font-size: 10px;
  }


  .sidebar-footer {
    display: none;
  }


  .content {
    margin-left: 0;

    padding:
      98px 18px 94px;
  }


  .page {
    max-width: none;
  }


  .summary-grid {
    grid-template-columns:
      1fr;
  }

}


@media (max-width: 560px) {

  .brand-title b {
    font-size: 16px;
  }


  .account {
    min-height: 42px;
  }


  .account-avatar {
    width: 32px;
    height: 32px;
  }


  .page-heading {
    margin-bottom: 25px;
  }


  .page-heading h1 {
    font-size: 29px;
  }


  .summary-card {
    min-height: 170px;

    padding: 21px;
  }


  .summary-value {
    font-size: 34px;
  }


  .subscription-card {
    padding:
      21px 18px;
  }

}



/* ==========================================================
   SIMPLE WEB AUTH v65
   ========================================================== */

.web-auth {
  align-items: center;
  justify-content: center;

  padding: 48px 20px;

  background: #08090b;
}


.web-auth-backdrop {
  display: none;
}


.web-auth-shell {
  width: min(390px, 100%);
}


.web-auth-brand {
  margin-bottom: 34px;

  font-size: 16px;
  font-weight: 800;

  letter-spacing: .17em;

  text-align: center;
}


.web-auth-brand::after {
  width: 28px;

  margin-top: 13px;

  opacity: .8;
}


/* Убираем ощущение "карточки в карточке" */

.web-auth-card {
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  box-shadow: none;
}


.web-auth-head {
  text-align: center;
}


.web-auth-head h1 {
  font-size: 30px;

  line-height: 1.1;

  letter-spacing: -.035em;
}


/* Подзаголовок здесь только мешает */

.web-auth-head p {
  display: none;
}


/* Старые вкладки остаются в DOM,
   но пользователю больше не показываются */

.auth-tabs {
  display: none !important;
}


.auth-form {
  margin-top: 31px;

  gap: 16px;
}


.auth-field {
  gap: 8px;
}


.auth-field > span {
  color: #9b9da4;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0;

  text-transform: none;
}


.auth-field input {
  height: 52px;

  padding: 0 15px;

  border:
    1px solid rgba(255,255,255,.09);

  border-radius: 12px;

  background:
    rgba(255,255,255,.035);

  color: #f4f4f5;

  font-size: 14px;
}


.auth-field input:hover {
  border-color:
    rgba(255,255,255,.15);
}


.auth-field input:focus {
  border-color:
    rgba(239,35,42,.55);

  background:
    rgba(255,255,255,.045);

  box-shadow:
    0 0 0 3px rgba(239,35,42,.06);
}


.auth-submit {
  min-height: 52px;

  margin-top: 5px;

  border-radius: 12px;

  font-size: 13px;
  font-weight: 700;
}


.auth-submit:hover {
  transform: none;

  filter: brightness(1.06);

  box-shadow:
    0 9px 28px rgba(210,0,12,.18);
}


/* Единственный вторичный action */

.auth-switch {
  margin-top: 21px;

  color: #676a72;

  font-size: 12px;

  text-align: center;
}


.auth-switch[hidden] {
  display: none !important;
}


.auth-switch button {
  padding: 0;

  border: 0;

  background: transparent;

  color: #d6d6d9;

  font: inherit;
  font-weight: 600;

  cursor: pointer;
}


.auth-switch button:hover {
  color: #fff;
}


/* Техническая подпись больше не нужна */

.auth-security {
  display: none;
}


.auth-message {
  margin-top: 17px;

  text-align: center;
}


/* MOBILE */

@media (max-width: 560px) {

  .web-auth {
    align-items: center;

    padding:
      36px 18px;
  }


  .web-auth-shell {
    width: 100%;

    max-width: 390px;
  }


  .web-auth-brand {
    margin-bottom: 28px;
  }


  .web-auth-card {
    padding: 0;
  }


  .web-auth-head h1 {
    font-size: 27px;
  }


  .auth-form {
    margin-top: 27px;
  }

}



/* ==========================================================
   MOBILE BOTTOM NAV v2
   Крупные кнопки + подписи
   ========================================================== */

@media (max-width: 900px) {

  .sidebar {
    position: fixed !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;

    width: 100% !important;
    height: auto !important;

    padding:
      9px 12px
      calc(9px + env(safe-area-inset-bottom)) !important;

    background:
      rgba(8, 9, 11, .97) !important;

    border: 0 !important;

    border-top:
      1px solid rgba(255,255,255,.08) !important;

    backdrop-filter:
      blur(18px);

    -webkit-backdrop-filter:
      blur(18px);

    z-index: 500 !important;
  }


  .sidebar-nav {
    width: 100%;
    height: auto !important;

    display: grid !important;

    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;

    gap: 8px !important;
  }


  .sidebar-footer {
    display: none !important;
  }


  .nav-item {
    position: relative;

    width: 100% !important;
    min-width: 0 !important;

    min-height: 66px !important;

    padding:
      9px 6px !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 6px !important;

    border:
      1px solid transparent !important;

    border-radius:
      15px !important;

    background:
      rgba(255,255,255,.018) !important;

    color:
      #7e828b !important;

    text-align: center;

    transition:
      background .16s ease,
      border-color .16s ease,
      color .16s ease,
      transform .12s ease !important;
  }


  .nav-item[hidden] {
    display: none !important;
  }


  .nav-item:hover {
    background:
      rgba(255,255,255,.04) !important;

    color:
      #d8d9dd !important;
  }


  .nav-item:active {
    transform:
      scale(.97);
  }


  .nav-item span {
    width: auto !important;
    height: 21px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    color: inherit !important;

    font-size:
      19px !important;

    line-height:
      21px !important;

    opacity:
      1 !important;
  }


  .nav-item b {
    display: block !important;

    color: inherit !important;

    font-size:
      11px !important;

    font-weight:
      600 !important;

    line-height:
      1.1 !important;

    letter-spacing:
      0 !important;

    white-space:
      nowrap;
  }


  /* Активная вкладка */

  .nav-item.active {
    background:
      linear-gradient(
        180deg,
        rgba(232, 31, 43, .14),
        rgba(232, 31, 43, .065)
      ) !important;

    border-color:
      rgba(232, 31, 43, .28) !important;

    color:
      #ffffff !important;

    box-shadow:
      inset 0 0 0 1px
      rgba(232,31,43,.035) !important;
  }


  .nav-item.active span {
    color:
      #ef303b !important;
  }


  /* Убираем старую красную полоску */

  .nav-item.active::before {
    display:
      none !important;
  }


  /* Чтобы контент не залезал под панель */

  .content {
    padding-bottom:
      calc(
        108px
        + env(safe-area-inset-bottom)
      ) !important;
  }

}


@media (max-width: 420px) {

  .sidebar {
    padding-left:
      8px !important;

    padding-right:
      8px !important;
  }


  .sidebar-nav {
    gap:
      6px !important;
  }


  .nav-item {
    min-height:
      64px !important;

    border-radius:
      14px !important;
  }


  .nav-item span {
    font-size:
      18px !important;
  }


  .nav-item b {
    font-size:
      10px !important;
  }

}



/* ==========================================================
   BUY SUBSCRIPTION CTA v1
   ========================================================== */

.purchase-card {
  position: relative;

  padding: 28px;

  overflow: hidden;

  border:
    1px solid rgba(255,255,255,.09);

  border-radius:
    20px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(230,50,50,.10),
      transparent 46%
    ),
    rgba(255,255,255,.022);
}


.purchase-card::before {
  content: "";

  position: absolute;

  top: 24px;
  bottom: 24px;
  left: 0;

  width: 3px;

  border-radius:
    0 5px 5px 0;

  background:
    var(--cab-red, #e63232);
}


.purchase-card-top {
  display: flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap: 25px;
}


.purchase-kicker {
  color:
    #777b84;

  font-size:
    10px;

  font-weight:
    700;

  letter-spacing:
    .13em;
}


.purchase-title {
  margin-top:
    10px;

  color:
    #fff;

  font-size:
    25px;

  font-weight:
    750;

  letter-spacing:
    -.035em;
}


.purchase-description {
  max-width:
    430px;

  margin-top:
    8px;

  color:
    #7f828a;

  font-size:
    12px;

  line-height:
    1.55;
}


.purchase-duration {
  min-width:
    78px;

  text-align:
    right;
}


.purchase-duration b {
  display:
    block;

  color:
    #fff;

  font-size:
    28px;

  line-height:
    1;
}


.purchase-duration span {
  display:
    block;

  margin-top:
    5px;

  color:
    #71757e;

  font-size:
    10px;
}


.purchase-divider {
  height:
    1px;

  margin:
    24px 0;

  background:
    rgba(255,255,255,.075);
}


.purchase-price-row {
  display:
    grid;

  grid-template-columns:
    repeat(2, minmax(0,1fr));

  gap:
    18px;
}


.purchase-price-row > div {
  padding:
    14px 15px;

  border:
    1px solid rgba(255,255,255,.065);

  border-radius:
    13px;

  background:
    rgba(255,255,255,.018);
}


.purchase-price-row span {
  display:
    block;

  color:
    #71757e;

  font-size:
    9px;
}


.purchase-price-row b {
  display:
    block;

  margin-top:
    6px;

  color:
    #f3f3f4;

  font-size:
    15px;
}


.purchase-hint {
  margin-top:
    17px;

  font-size:
    11px;

  line-height:
    1.45;
}


.purchase-hint.ready {
  color:
    #8f949d;
}


.purchase-hint.missing {
  color:
    #a4a6ad;
}


.purchase-main-button {
  width:
    100%;

  min-height:
    52px;

  margin-top:
    20px;

  border:
    0;

  border-radius:
    12px;

  background:
    var(--cab-red, #e63232);

  color:
    #fff;

  font-size:
    13px;

  font-weight:
    750;

  cursor:
    pointer;

  box-shadow:
    0 10px 30px
    rgba(230,50,50,.15);

  transition:
    filter .15s ease,
    transform .15s ease;
}


.purchase-main-button:hover {
  filter:
    brightness(1.07);

  transform:
    translateY(-1px);
}


.purchase-main-button:active {
  transform:
    translateY(0);
}


.purchase-main-button:disabled {
  cursor:
    wait;

  opacity:
    .65;

  transform:
    none;
}


@media (max-width: 560px) {

  .purchase-card {
    padding:
      22px 19px;
  }


  .purchase-card-top {
    gap:
      14px;
  }


  .purchase-title {
    font-size:
      22px;
  }


  .purchase-duration b {
    font-size:
      24px;
  }


  .purchase-price-row {
    grid-template-columns:
      1fr;

    gap:
      8px;
  }


  .purchase-main-button {
    min-height:
      56px;

    font-size:
      14px;
  }

}



/* ==========================================================
   TELEGRAM LINK UI v1
   ========================================================== */

.account-dropdown-row.telegram-linkable {
  cursor:
    pointer;

  border-radius:
    11px;

  transition:
    background .16s ease,
    transform .12s ease;
}


.account-dropdown-row.telegram-linkable:hover {
  background:
    rgba(255,255,255,.045);
}


.account-dropdown-row.telegram-linkable:active {
  transform:
    scale(.985);
}


.account-dropdown-row.telegram-linkable
#accountTelegramStatus {
  color:
    #c9cbd1;
}


.account-dropdown-row.telegram-linkable
#accountTelegramStatus::after {
  content:
    " →";

  color:
    #ef303b;
}


@media (max-width: 600px) {

  .account-dropdown-row.telegram-linkable {
    min-height:
      58px;
  }

}


/* ==========================================================
   PROMO + PARTNER UI V1
   ========================================================== */


.promo-apply-card,
.partner-promo-card,
.partner-tier-card,
.partner-stat-card {

  border:
    1px solid var(--border);

  border-radius:
    22px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.012)
    ),
    var(--panel);

}


.promo-apply-card {

  display:
    grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(300px,.8fr);

  gap:
    24px;

  align-items:
    center;

  padding:
    24px;

  margin:
    20px 0 28px;

}


.promo-eyebrow {

  display:
    block;

  margin-bottom:
    8px;

  color:
    #ef232a;

  font-size:
    11px;

  font-weight:
    900;

  letter-spacing:
    .12em;

}


.promo-apply-copy h2,
.partner-promo-card h2,
.partner-tier-card h2 {

  margin:
    0;

}


.promo-apply-copy p,
.partner-promo-card p,
.partner-tier-card p {

  margin:
    8px 0 0;

  color:
    var(--muted);

  line-height:
    1.55;

}


.promo-apply-form {

  display:
    flex;

  gap:
    10px;

}


.promo-input {

  width:
    100%;

  min-width:
    0;

  padding:
    14px 16px;

  border:
    1px solid var(--border);

  border-radius:
    14px;

  outline:
    none;

  background:
    rgba(255,255,255,.035);

  color:
    var(--text);

  font:
    inherit;

  font-weight:
    750;

  text-transform:
    uppercase;

}


.promo-input:focus {

  border-color:
    rgba(239,35,42,.55);

  box-shadow:
    0 0 0 3px
    rgba(239,35,42,.10);

}


.promo-input::placeholder {

  color:
    var(--muted);

  text-transform:
    none;

  font-weight:
    500;

}


.promo-apply-button {

  flex:
    0 0 auto;

}


.promo-result {

  grid-column:
    1 / -1;

  padding:
    12px 14px;

  border-radius:
    12px;

  font-size:
    13px;

  font-weight:
    650;

}


.promo-result.success {

  color:
    #8ce0ae;

  border:
    1px solid
    rgba(56,185,110,.22);

  background:
    rgba(56,185,110,.10);

}


.promo-result.error {

  color:
    #ff8f94;

  border:
    1px solid
    rgba(239,35,42,.22);

  background:
    rgba(239,35,42,.09);

}


.promo-result.neutral {

  color:
    var(--muted);

  border:
    1px solid var(--border);

  background:
    rgba(255,255,255,.035);

}


/* PARTNER */


.partner-dashboard {

  display:
    grid;

  gap:
    18px;

}


.partner-summary-grid {

  display:
    grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );

  gap:
    14px;

}


.partner-stat-card {

  padding:
    22px;

}


.partner-stat-card span {

  display:
    block;

  margin-bottom:
    10px;

  color:
    var(--muted);

  font-size:
    12px;

  font-weight:
    700;

}


.partner-stat-card strong {

  display:
    block;

  font-size:
    clamp(
      24px,
      3vw,
      34px
    );

  line-height:
    1;

}


.partner-stat-card small {

  display:
    block;

  margin-top:
    12px;

  color:
    var(--muted);

  line-height:
    1.45;

}


.partner-promo-card,
.partner-tier-card {

  padding:
    26px;

}


.partner-promo-card h2 {

  font-size:
    clamp(
      28px,
      5vw,
      46px
    );

  letter-spacing:
    .04em;

}


.partner-copy-button {

  margin-top:
    20px;

}


.partner-tier-card {

  display:
    grid;

  grid-template-columns:
    1fr auto;

  gap:
    30px;

  align-items:
    center;

}


.partner-tier-rules {

  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(130px,1fr)
    );

  gap:
    10px;

}


.partner-tier-rules > div {

  padding:
    16px;

  border:
    1px solid var(--border);

  border-radius:
    14px;

  background:
    rgba(255,255,255,.025);

}


.partner-tier-rules b {

  display:
    block;

  margin-bottom:
    4px;

  font-size:
    22px;

}


.partner-tier-rules span {

  color:
    var(--muted);

  font-size:
    12px;

}


.partner-loading,
.partner-empty {

  padding:
    28px;

  border:
    1px solid var(--border);

  border-radius:
    18px;

  color:
    var(--muted);

  background:
    var(--panel);

}


@media (max-width: 900px) {

  .promo-apply-card {

    grid-template-columns:
      1fr;

  }


  .partner-summary-grid {

    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );

  }


  .partner-tier-card {

    grid-template-columns:
      1fr;

  }

}


@media (max-width: 560px) {

  .promo-apply-form {

    flex-direction:
      column;

  }


  .partner-summary-grid {

    grid-template-columns:
      1fr;

  }


  .partner-tier-rules {

    grid-template-columns:
      1fr 1fr;

  }


  .promo-apply-card,
  .partner-promo-card,
  .partner-tier-card,
  .partner-stat-card {

    padding:
      20px;

  }

}


/* === END PROMO + PARTNER UI V1 === */



/* ==========================================================
   PARTNER PAYOUT UI V1
   ========================================================== */

.partner-payout-card {
  margin-top: 22px;
  padding: 24px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.012)
    ),
    #101114;
}


.partner-payout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}


.partner-payout-head h2 {
  margin:
    7px 0 7px;

  font-size: 21px;
}


.partner-payout-head p {
  max-width: 560px;
  margin: 0;

  color:
    rgba(255,255,255,.58);

  line-height: 1.5;
}


.partner-payout-balance {
  min-width: 150px;

  text-align: right;
}


.partner-payout-balance small {
  display: block;

  margin-bottom: 5px;

  color:
    rgba(255,255,255,.48);

  font-size: 12px;
}


.partner-payout-balance strong {
  font-size: 27px;
  white-space: nowrap;
}


.partner-payout-state {
  display: flex;
  flex-direction: column;
  gap: 5px;

  margin-top: 20px;
  padding: 15px 17px;

  border-radius: 15px;
}


.partner-payout-state strong {
  font-size: 14px;
}


.partner-payout-state span {
  color:
    rgba(255,255,255,.6);

  font-size: 12px;
  line-height: 1.45;
}


.partner-payout-state.pending {
  border:
    1px solid rgba(255,190,70,.16);

  background:
    rgba(255,190,70,.055);
}


.partner-payout-state.paid {
  border:
    1px solid rgba(80,210,140,.16);

  background:
    rgba(80,210,140,.055);
}


.partner-payout-state.rejected {
  border:
    1px solid rgba(239,35,42,.18);

  background:
    rgba(239,35,42,.055);
}


.partner-payout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 22px;
}


.partner-payout-hint {
  color:
    rgba(255,255,255,.52);

  font-size: 12px;
  line-height: 1.45;
}


.partner-payout-button {
  min-width: 190px;
}


.partner-payout-button:disabled {
  opacity: .42;
  cursor: not-allowed;
}


.partner-payout-loading,
.partner-payout-error {
  padding: 16px;

  color:
    rgba(255,255,255,.55);

  font-size: 13px;
}


@media (max-width: 720px) {

  .partner-payout-card {
    padding: 19px;
  }


  .partner-payout-head {
    flex-direction: column;
    gap: 15px;
  }


  .partner-payout-balance {
    min-width: 0;
    text-align: left;
  }


  .partner-payout-footer {
    flex-direction: column;
    align-items: stretch;
  }


  .partner-payout-button {
    width: 100%;
  }

}


/* === END PARTNER PAYOUT UI V1 === */


/* ==========================================================
   VOSKHOD LEGAL FOOTER v1
   ========================================================== */

.legal-footer {
  width: 100%;
  margin-top: 36px;
  border-top:
    1px solid rgba(255,255,255,.07);
  background:
    rgba(0,0,0,.20);
}

.legal-footer-inner {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 22px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;
}

.legal-footer-brand {
  color: rgba(255,255,255,.38);
  font-size: 12px;
  letter-spacing: .06em;
}

.legal-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 8px 18px;
}

.legal-footer-links a {
  color: rgba(255,255,255,.52);
  text-decoration: none;
  font-size: 12px;
}

.legal-footer-links a:hover {
  color: #fff;
}

@media (max-width: 700px) {

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-footer-links {
    justify-content: flex-start;
  }

}


/* ==========================================================
   VOSKHOD CABINET LEGAL FOOTER v1
   ========================================================== */

body > .legal-footer {
  margin-left: 260px;
  width: calc(100% - 260px);
  margin-top: 0;
}

body > .legal-footer .legal-footer-inner {
  width: min(100% - 36px, 1180px);
}

@media (max-width: 900px) {

  body > .legal-footer {
    width: 100%;
    margin-left: 0;
    padding-bottom: 90px;
  }

}


/* ==========================================================
   VOSKHOD MULTI-SUB PURCHASE BUTTON
   ========================================================== */

.subscriptions-heading {
  width: 100%;

  margin-bottom: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
}

.subscriptions-heading .section-title {
  margin-bottom: 0;
}

.buy-another-subscription {
  min-height: 38px;

  padding:
    9px 15px;

  border:
    1px solid
    rgba(239,35,42,.34);

  border-radius:
    11px;

  background:
    rgba(239,35,42,.08);

  color: #fff;

  font: inherit;
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease,
    opacity .18s ease;
}

.buy-another-subscription:hover {
  background:
    rgba(239,35,42,.16);

  border-color:
    rgba(239,35,42,.55);
}

.buy-another-subscription:active {
  transform:
    translateY(1px);
}

.buy-another-subscription:disabled {
  opacity: .55;
  cursor: wait;
}

.buy-another-subscription[hidden] {
  display: none;
}

@media (max-width: 640px) {

  .subscriptions-heading {
    align-items: stretch;
    flex-direction: column;

    gap: 10px;
  }

  .buy-another-subscription {
    width: 100%;
  }

}




/* === REFERRAL CODE UI V1 === */

.promo-result {
  white-space: pre-line;
}

.user-referral-card {
  margin: 22px 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.user-referral-copy {
  min-width: 0;
}

.user-referral-copy h2 {
  margin: 7px 0 8px;
}

.user-referral-copy p {
  margin: 0;
  opacity: 0.72;
  line-height: 1.5;
}

.user-referral-code-box {
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-referral-code-box strong {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  font-family: monospace;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0.06em;
  word-break: break-all;
}

@media (max-width: 720px) {

  .user-referral-card {
    flex-direction: column;
    align-items: stretch;
  }

  .user-referral-code-box {
    min-width: 0;
    width: 100%;
  }
}

/* === END REFERRAL CODE UI V1 === */

/* === TRIAL SUBSCRIPTION CARD V1 === */

.subscription-card.trial-subscription-card {
  border-color: rgba(139, 92, 246, 0.40);

  background:
    linear-gradient(
      120deg,
      rgba(139, 92, 246, 0.09),
      rgba(255, 255, 255, 0.025) 48%
    );
}

.trial-subscription-card .trial-status {
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.10);
}

.trial-subscription-card .trial-status i {
  background: #a78bfa;
}

.trial-subscription-card .subscription-name span {
  color: #c4b5fd;
}

.trial-subscription-card .auto-renew.disabled {
  color: #a78bfa;
}

/* === END TRIAL SUBSCRIPTION CARD V1 === */

