:root{
  --tw-background-start:#0c061a;
  --tw-background-end:#120824;
  --tw-text-color:#f5f3ff;
  --tw-accent-violet:#a855f7;
  --tw-accent-pink:#ec4899;
  --tw-accent-green:#11d676;
}

/* ===== Base ===== */
*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  overflow-x:hidden !important;
}

button.tw-monitoring-connect{
  color: white;
}

body{
  padding-left:0 !important;
}

span.navbar-toggler-icon{
  display: none
}

div.twf-badges{
  display: none !important;
}



html,
body,
#app,
/* main, */
/* .wrapper, */
/* .app-wrapper, */
.content,
.layout,
.page{
  background:
    radial-gradient(1000px 520px at 75% 0%, rgba(168,85,247,.14), transparent 65%),
    linear-gradient(180deg, var(--tw-background-start), var(--tw-background-end)) !important;
  color:var(--tw-text-color) !important;
  background-color: black !important;
}

.wrapper,
.app-wrapper,
.products-container{
  transform:none !important;
}


/* ===== Navbar ===== */
.navbar{
  background:linear-gradient(180deg, rgba(24,10,45,.88), rgba(12,6,26,.90)) !important;
  border:1px solid rgba(168,85,247,.24) !important;
  border-radius:14px !important;
  box-shadow:0 12px 36px rgba(0,0,0,.45) !important;
  backdrop-filter:blur(10px);
}

.navbar-mobile,
.navbar-links,
.navbar-nav,
.auth-btns,
.language-switcher{
  background:transparent !important;
}

.navbar a,
.navbar .auth-btn,
.navbar .balance-btn,
.navbar .profile-btn,
.navbar .lang-label{
  color:#f5f3ff !important;
}

div.balance-btn.tw-balance-btn-v3{
  /* width: 90px; */
}

div.lang-label.auth-btn.tw-lang-btn-v3{
  display: none !important;
}

/* ===== Banner 900x180 ===== */
.banner{
  width:900px !important;
  max-width:calc(100vw - 20px) !important;
  /* height:180px !important; */
  margin:8px auto 12px auto !important;
  border-radius:14px !important;
  overflow:hidden !important;
  display:block !important;
  float:none !important;
}

.banner img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

/* ===== Products Container ===== */
.products-container{
  width:min(1200px, calc(100vw - 20px)) !important;
  max-width:1200px !important;
  margin:12px auto !important;
  padding:12px !important;
  background:linear-gradient(180deg, rgba(24,10,45,.70), rgba(11,6,22,.62)) !important;
  border:1px solid rgba(168,85,247,.18) !important;
  border-radius:16px !important;
  box-shadow:0 18px 60px rgba(0,0,0,.55) !important;
}

/* скрыть старый ряд серверов */
.servers-buttons{
  display:none !important;
}

/* ===== Categories Top Bar ===== */
.products-types-buttons{
  position:sticky !important;
  top:10px !important;
  left:auto !important;
  right:auto !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 0 12px 0 !important;
  padding:8px 44px !important;

  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  gap:10px !important;

  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none !important;

  border-radius:14px !important;
  background:linear-gradient(180deg, rgba(24,10,45,.92), rgba(12,6,26,.96)) !important;
  border:1px solid rgba(168,85,247,.24) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.45) !important;
  z-index:120 !important;
}

.products-types-buttons::-webkit-scrollbar{
  display:none !important;
}

ul.dropdown{
  left: 790px !important;
}

.products-types-buttons .app-button.app-button--primary{
  min-width:max-content !important;
  width:auto !important;
  white-space:nowrap !important;
  text-align:left !important;
  justify-content:flex-start !important;
  padding:10px 14px !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(168,85,247,.14) !important;
  color:#f5f3ff !important;
}

.products-types-buttons .app-button.app-button--primary:hover{
  background:rgba(168,85,247,.10) !important;
  border-color:rgba(168,85,247,.34) !important;
}

.products-types-buttons .app-button--active{
  background:linear-gradient(135deg, var(--tw-accent-violet), var(--tw-accent-pink)) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 0 18px rgba(168,85,247,.45) !important;
}

/* стрелки категорий (JS кнопки) */
.tw-cat-wrap{
  position:relative;
}

.tw-cat-scroll{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border:0;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:18px;
  line-height:1;
  color:#fff;
  cursor:pointer;
  z-index:130;
  background:radial-gradient(circle at 30% 30%, #ff3fd2, #7c3aed);
  box-shadow:0 0 14px rgba(236,72,153,.45);
}

div.tw-monitoring-ip{
  display:none
}

.tw-cat-scroll--left{ 
  left:6px;
  margin-top: -5px;
}
.tw-cat-scroll--right{ 
  right:6px;
  margin-top: -5px;
}





.tw-cat-scroll[disabled]{
  opacity:.35;
  pointer-events:none;
}

.footer[data-tw-footer="v2"] .twf-social[aria-label="VK"] svg {
  margin-left: 5px !important;
  margin-right: 0px;
  margin-top: 5px;
}

.footer[data-tw-footer="v2"] .twf-social--boosty img{
  margin-right: -2px;
  /* margin-top: 5px; */
  width: 20px !important;
}

.footer[data-tw-footer="v2"] .twf-social svg{
  margin-right: 
}

/* ===== Search ===== */
.search-input{
  width:100% !important;
  margin:0 0 12px 0 !important;
  padding:12px 14px !important;
  border-radius:12px !important;
  background:rgba(10,6,18,.75) !important;
  color:#f5f3ff !important;
  border:1px solid rgba(168,85,247,.16) !important;
}

h2.mb-4.text-xl.font-semibold{
  color: white;
}


.search-input::placeholder{
  color:rgba(245,243,255,.65) !important;
}

/* Белые кнопки пагинации */
.mt-4.flex.justify-center.gap-2 > button{
  background: #ffffff !important;
  color: #0f1220 !important;
  border: 1px solid #ffffff !important;
  box-shadow: none !important;
}

.mt-4.flex.justify-center.gap-2 > button:hover{
  background: #f1f3f8 !important;
  border-color: #f1f3f8 !important;
  color: #0f1220 !important;
}

/* disabled тоже белые */
.mt-4.flex.justify-center.gap-2 > button:disabled{
  background: #ffffff !important;
  color: #6b7280 !important;
  border-color: #ffffff !important;
  opacity: 1 !important;
}



/* ===== Product Cards ===== */
.product-cards{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px !important;
}

.product-cards > div{
  min-width:0;
}

.product-card{
  background:linear-gradient(180deg, rgba(30,14,58,.90), rgba(14,8,30,.95)) !important;
  border:1px solid rgba(168,85,247,.24) !important;
  border-radius:16px !important;
  box-shadow:0 14px 36px rgba(0,0,0,.45) !important;
  overflow:hidden !important;
  height: 420px;
}

.product-card-image-container{
  background-color:rgba(18,10,34,.90) !important;
  background-size:cover !important;
  background-position:center !important;
  border-bottom:1px solid rgba(168,85,247,.18) !important;
}

.product-card-footer{
  background:rgba(10,6,20,.82) !important;
  border-top:1px solid rgba(168,85,247,.14) !important;
}



.product-card-name,
.product-card-price{
  color:#f5f3ff !important;
}

.product-card-footer{
  min-height: 130px !important;
  padding: 14px 16px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  gap: 10px !important;
  border-top: 1px solid rgba(138,79,255,.35) !important;
  background: linear-gradient(90deg, #151934 0%, #191d3d 52%, #12152d 100%) !important;
  overflow: hidden !important;
}

.product-card-footer .product-card-name{
  margin: 0 !important;
  font-size: clamp(20px, 1.4vw, 34px) !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  color: #f1f3ff !important;
  text-transform: uppercase !important;
}

.product-card-footer .product-card-price{
  margin: 0 !important;
  font-size: clamp(46px, 3vw, 72px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #b97aff !important;
  white-space: nowrap !important;
}








/* ===== PRODUCT FOOTER FINAL (with/without discount) ===== */

/* базовый */
.product-card-footer{
  min-height: 104px !important;
  max-height: 104px !important;
  padding: 10px 14px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 6px !important;
  overflow: hidden !important;
}

.product-card-footer > div{
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  transform: none !important;
}

.product-card-footer .product-card-name,
.product-card-footer .product-card-old-price,
.product-card-footer .product-card-price{
  margin: 0 !important;
  line-height: 1 !important;
  transform: none !important;
  white-space: nowrap !important;
}

/* без скидки */
.product-card-footer:not(:has(.product-card-discount-price)) .product-card-name{
  font-size: 18px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: #f1f3ff !important;
}

.product-card-footer:not(:has(.product-card-discount-price)) .product-card-price{
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #b97aff !important;
}

/* со скидкой */
.product-card-footer:has(.product-card-discount-price){
  min-height: 112px !important;
  max-height: 112px !important;
}

.product-card-footer:has(.product-card-discount-price) .product-card-name{
  font-size: 17px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: #f1f3ff !important;
}

.product-card-footer .product-card-old-price{
  font-size: 12px !important;
  font-weight: 700 !important;
  color: rgba(241,243,255,.55) !important;
  text-decoration: line-through !important;
}

.product-card-footer .product-card-price.product-card-discount-price{
  font-size: 34px !important;
  font-weight: 900 !important;
  color: #b97aff !important;
}

/* Без скидки — поднять блок цены выше */
.product-card-footer:not(:has(.product-card-discount-price)) > div{
  transform: translateY(-10px) !important;
}


/* скидка: старая цена выше, новая чуть ниже */
.product-card-footer .product-card-old-price{
  transform: translateY(-14px) !important;
  margin-top: 10px !important;
}

.product-card-footer .product-card-price.product-card-discount-price{
  transform: translateY(-12px) !important;
  transform: translateX(px) !important;

}

/* без скидки */
.product-card-footer:not(:has(.product-card-discount-price)) > div{
  transform: translateY(-10px) !important;
}




/* ===== Note above monitoring ===== */
.tw-monitoring-note{
  width:min(1265px, calc(100vw - 20px)) !important;
  margin:10px auto 12px auto !important;
  padding:12px 14px !important;
  border-radius:12px !important;
  text-align:center !important;
  color:rgba(245,243,255,.95) !important;
  font-size:15px !important;
  line-height:1.45 !important;
  background:linear-gradient(180deg, rgba(28,14,52,.92), rgba(12,8,24,.95)) !important;
  border:1px solid rgba(168,85,247,.24) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.35) !important;
}

.tw-monitoring-note kbd{
  display:inline-block;
  padding:1px 7px;
  border-radius:6px;
  font-weight:700;
  color:#fff;
  background:rgba(168,85,247,.25);
  border:1px solid rgba(168,85,247,.45);
}

/* ===== Monitoring Showcase ===== */
.tw-monitoring-showcase{
  width:min(1265px, calc(100vw - 20px)) !important;
  margin:14px auto !important;
  padding:14px !important;
  border-radius:16px !important;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(168,85,247,.18), transparent 62%),
    linear-gradient(180deg, rgba(18,10,36,.93), rgba(10,6,24,.97));
  border:1px solid rgba(168,85,247,.35);
  box-shadow:0 18px 70px rgba(0,0,0,.5);
  text-align:center;
}

.tw-ms-pill{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  color:#92ffd0;
  background:rgba(16,214,118,.16);
  border:1px solid rgba(16,214,118,.45);
}

.tw-ms-title{
  margin:8px 0 2px 0;
  font-size:30px;
  line-height:1.1;
  font-weight:900;
  color:#fff;
}

.tw-ms-subtitle{
  margin:0 0 10px 0;
  font-size:12px;
  color:rgba(245,243,255,.72);
}

.tw-ms-stats{
  width:min(760px, 96%);
  margin:0 auto 10px auto;
  padding:8px;
  border-radius:12px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  background:linear-gradient(180deg, rgba(48,22,86,.76), rgba(20,10,40,.82));
  border:1px solid rgba(168,85,247,.24);
}

.tw-ms-stat{
  padding:8px;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(42,18,76,.70), rgba(18,10,36,.78));
  border:1px solid rgba(168,85,247,.20);
}

.tw-ms-stat-label{
  font-size:11px;
  color:rgba(245,243,255,.72);
}

.tw-ms-stat-value{
  font-size:28px;
  line-height:1;
  font-weight:900;
  color:#22e38f;
}

/* ===== Servers slider: 4 cards + arrows ===== */
.tw-ms-slider{
  position:relative;
  width:100%;
  padding:0 48px;
}

.tw-ms-cards{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:12px !important;
  width:100%;
  margin:8px 0 0 0 !important;
}

.tw-ms-cards .monitoring{
  width:100% !important;
  margin:0 !important;
  padding:8px !important;
  border-radius:10px !important;
  background:linear-gradient(180deg, rgba(44,22,84,.86), rgba(18,10,40,.92)) !important;
  border:1px solid rgba(168,85,247,.4) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.34) !important;
}

.tw-ms-cards .monitoring::before{
  content:none !important;
  display:none !important;
}

.tw-ms-cards .monitoring-header{
  padding-top:0 !important;
  margin-bottom:6px !important;
  text-align:left;
}

div.grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row{
  /* width: px !important; */
}

.tw-ms-cards .monitoring-title{
  font-size:12px !important;
  font-weight:800 !important;
  color:#fff !important;
  line-height:1.25 !important;
}

div.tw-monitoring-ping{
  display: none
}

.tw-ms-cards .monitoring-title-span{
  font-size:10px !important;
  color:#d9cbff !important;
}

.tw-ms-cards .monitoring-progress-bar{
  height:16px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  overflow:hidden;
}

.tw-ms-cards .monitoring-progress-fill{
  background:linear-gradient(90deg, var(--tw-accent-green), #08c36a) !important;
}

.tw-ms-cards .monitoring-status-overlay{
  font-size:11px !important;
  font-weight:800 !important;
  color:#fff !important;
}

.tw-ms-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border:0;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:20px;
  color:#fff;
  cursor:pointer;
  z-index:3;
  background:radial-gradient(circle at 30% 30%, #ff3fd2, #7c3aed);
  box-shadow:0 0 16px rgba(236,72,153,.5);
}


.tw-ms-arrow--left{ left:4px; }
.tw-ms-arrow--right{ right:4px; }

.tw-ms-arrow[disabled]{
  opacity:.35;
  pointer-events:none;
}

.tw-ms-foot{
  margin-top:8px;
  font-size:12px;
  color:rgba(245,243,255,.72);
}

/* hide emptied old parents after moving cards */
.tw-origin-empty{
  display:none !important;
}

/* =========================
   TWINKLE FULL MODAL
   ========================= */

:root{
  --twm-bg1:#111e36;
  --twm-bg2:#1a2a46;
  --twm-panel:#1a2e52;
  --twm-panel2:#203860;
  --twm-text:#edf3ff;
  --twm-muted:#9fb2d8;
  --twm-border:rgba(132,104,255,.45);
  --twm-border-soft:rgba(132,104,255,.24);
  --twm-accent1:#a855f7;
  --twm-accent2:#ec4899;
  --twm-green:#16e78f;
}

/* оверлей */
.modal,
.modal.show,
.modal-mask,
[class*="modal-overlay"]{
  z-index: 99990 !important;
  background: rgba(5,10,20,.72) !important;
  backdrop-filter: blur(3px) !important;
}

/* центрирование модалки */
.modal-content,
.modal-content[data-v-d1bc91d6],
.modal-content[data-tw-enhanced-key]{
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  inset: auto !important;
  transform: translate(-50%,-50%) !important;

  width: 660px !important;
  max-width: 94vw !important;
  max-height: 92vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;

  border-radius: 18px !important;
  border: 1px solid var(--twm-border) !important;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(168,85,247,.15), transparent 60%),
    linear-gradient(180deg, var(--twm-bg1), var(--twm-bg2)) !important;
  box-shadow:
    0 26px 80px rgba(0,0,0,.65),
    inset 0 0 0 1px rgba(168,85,247,.15) !important;
  color: var(--twm-text) !important;
  z-index: 99999 !important;
}

.modal-dialog{
  margin: 0 !important;
  max-width: none !important;
  width: auto !important;
}



/* тело карточки */
.product-modal{
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  right: 50px;
  margin-left: 170px;
  padding: 16px !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: transparent !important;
}

.product-modal::-webkit-scrollbar{ width: 8px; }
.product-modal::-webkit-scrollbar-thumb{
  background: rgba(168,85,247,.45);
  border-radius: 999px;
}
.product-modal::-webkit-scrollbar-track{ background: transparent; }

.product-modal-title{
  margin: 0 !important;
  text-align: center !important;
  color: #fff !important;
  font-size: clamp(28px,4.2vw,40px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

button.tw-modal-connect{
  display: none;
}



/* картинка */
div.product-modal-gallery{
  height: 300px !important;
  min-height: 240px !important;
  border-radius: 14px !important;
  border: 1px solid var(--twm-border-soft) !important;
  background:
    linear-gradient(180deg, rgba(90,70,180,.34), rgba(50,70,145,.22)),
    radial-gradient(110% 95% at 50% 0%, rgba(168,85,247,.2), transparent 65%) !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 12px !important;
}
.gallery-main-image{
  width: 100%;
  height: 100%;
  max-height: 1500px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.45));
}

/* описание */
.product-modal-description{
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 12px !important;
  width: 449px;
  /* height: 100px; */
  font-size: 16px;
  margin-left: -87px !important;
  padding-top: 10px !important;
  border: 1px solid var(--twm-border-soft) !important;
  background: rgba(20,38,70,.62) !important;
}








/* если backend вставляет <br>, убираем принудительные переносы */
.modal-content .product-modal .product-modal-description > p br{
  display: none !important;
}


/* scroll внутри модального окна */
.modal-content,
.modal-content[data-v-d1bc91d6],
.modal-content[data-tw-enhanced-key]{
  max-height: 92vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

div.tw-socials-static{
    margin-top: 0px !important;
    margin-right: 610px ;
  }

.product-modal{
  max-height: none !important;
  overflow: visible !important;
}

/* красивый скролл */
.modal-content::-webkit-scrollbar{
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb{
  background: rgba(168,85,247,.45);
  border-radius: 999px;
}
.modal-content::-webkit-scrollbar-track{
  background: transparent;
}


/* сервера */
.tw-modal-servers-title{
  display: block !important;
  margin: 2px 0 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
.tw-modal-servers-grid{
  display: grid !important;
  grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  gap: 8px !important;
}
.tw-modal-server-chip{
  min-height: 56px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(130,160,230,.3) !important;
  background: rgba(20,40,76,.74) !important;
  color: #dce7ff !important;
  cursor: pointer !important;
  padding: 7px 6px !important;
  transition: .18s ease !important;
}
.tw-modal-server-chip:hover{
  transform: translateY(-1px) !important;
  border-color: rgba(168,85,247,.6) !important;
}
.tw-modal-server-chip.is-active{
  border-color: rgba(168,85,247,.95) !important;
  background: linear-gradient(180deg, rgba(95,52,178,.45), rgba(38,30,86,.78)) !important;
  box-shadow: 0 0 0 1px rgba(168,85,247,.45) inset, 0 0 16px rgba(168,85,247,.35) !important;
}
.tw-modal-server-chip-top{
  font-size: 14px !important;
  font-weight: 1000 !important;
}

.product-modal .tw-modal-servers-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 6fr)) !important;
  gap: 10px !important;
  width: 450px;
}

.product-modal .tw-modal-server-chip{
  min-height: 76px !important;
  padding: 8px 6px !important;
  margin: 0 !important;
}

.product-modal .tw-modal-server-chip-top{
  font-size: 15px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: keep-all !important;     /* не ломать слово по буквам */
  overflow-wrap: normal !important;  
  /* width: 100px; */ online
  hyphens: none !important;
}

div.twf-brand-logo{
  display: none !important;
}

p.twf-brand-text{
  margin-left: -90px !important;
}

div.twf-socials{
  margin-left: -140px;
}


.tw-modal-server-chip-online{
  margin-top: 4px !important;
  color: var(--twm-green) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: none;
}

/* инпуты */
.product-modal-inputs{
  display: grid !important;
  gap: 10px !important;
}
.select-display{
  min-height: 46px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(130,160,230,.3) !important;
  background: rgba(20,40,76,.74) !important;
  color: #e7efff !important;
  padding: 0 14px !important;
}
.select-text{
  color: #dce7ff !important;
  font-weight: 700 !important;
}

.amount-control{
  border: 1px solid rgba(130,160,230,.3) !important;
  border-radius: 12px !important;
  padding: 10px !important;
  background: rgba(20,40,76,.55) !important;
}
.amount-control-counter{
  border-radius: 10px !important;
  overflow: hidden !important;
}
.amount-control-counter-button{
  min-width: 56px !important;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(180deg, rgba(72,44,146,.95), rgba(46,31,97,.95)) !important;
}
div.amount-control-count{
  color: #233d66 !important;
  font-weight: 800 !important;
}
.amount-control-total{
  margin-top: 8px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}
.amount-control-total-rub{ color: #bdd2ff !important; }

/* кнопки */
.tw-modal-actions{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tw-modal-connect,
.tw-modal-buy{
  min-height: 50px !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  height: 100%;
  width: 275px;
  margin-left: 2px;
}
.tw-modal-connect{
  background: linear-gradient(180deg, rgba(30,110,95,.95), rgba(24,88,80,.95)) !important;
  color: #d9fff1 !important;
}
.tw-modal-connect:disabled{
  opacity: .55 !important;
  cursor: not-allowed !important;
}
.tw-modal-buy{
  background: linear-gradient(90deg, var(--twm-accent1), var(--twm-accent2)) !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(236,72,153,.35) !important;
}

/* скрыть штатный футер */
.modal-footer-buttons,
.modal-close-button,
.modal-primary-button{
  display: none !important;
}




/* ===== Footer V2 Final ===== */
.footer[data-tw-footer="v2"]{
  width:min(1275px, calc(100vw - 24px)) !important;
  /* margin:28px auto 18px !important; */
  padding:28px 36px 20px !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,#060914 0%, #05070f 100%) !important;
  border:1px solid rgba(152,86,255,.35) !important;
  box-shadow:0 24px 60px rgba(0,0,0,.55) !important;
  color:#efe7ff !important;
  position:relative !important;
  margin-top: 15px !important;
  overflow:hidden !important;
  text-align:left !important;
}
.footer[data-tw-footer="v2"] *{ box-sizing:border-box; }

.footer[data-tw-footer="v2"] a{
  color:#d8b9ff !important;
  text-decoration:none !important;
}
.footer[data-tw-footer="v2"] a:hover{ color:#f1dcff !important; }

/* top grid */
.footer[data-tw-footer="v2"] .twf-top{
  display:grid !important;
  grid-template-columns:minmax(280px,1.2fr) minmax(220px,1fr) minmax(260px,1fr) !important;
  align-items:start !important;
  column-gap:44px !important;
  row-gap:8px !important;
}



/* brand */
.footer[data-tw-footer="v2"] .twf-brand-logo{
  width:96px;height:44px;border-radius:10px;
  border:1px solid rgba(162,94,255,.35);
  background:linear-gradient(135deg,#1a1533,#231447);
  display:grid;place-items:center;
  margin-bottom:12px;
}
.footer[data-tw-footer="v2"] .twf-brand-logo img{ max-width:88px; max-height:34px; object-fit:contain; }
.footer[data-tw-footer="v2"] .twf-brand-logo span{ font-weight:900; font-size:12px; color:#f2e9ff; letter-spacing:.6px; }

.footer[data-tw-footer="v2"] .twf-brand-text{
  margin:0 0 14px 0;
  max-width:300px;
  color:#d9c9f8;
  line-height:1.45;
  font-size:14px;
}

.footer[data-tw-footer="v2"] .twf-socials{ display:flex; gap:10px; }
.footer[data-tw-footer="v2"] .twf-social{
  width:34px;height:34px;border-radius:10px;
  border:1px solid rgba(148,84,255,.45);
  background:rgba(102,40,182,.20);
  display:grid;place-items:center;
  font-size:13px;font-weight:800;
}

/* headings + links */
.footer[data-tw-footer="v2"] .twf-col h4,
.footer[data-tw-footer="v2"] .twf-support h4{
  margin:0 0 12px 0 !important;
  font-size:24px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  color:#fff !important;
  white-space:normal !important;
}

.footer[data-tw-footer="v2"] .twf-support{
  /* margin-left: -18px !important; */
}


.footer[data-tw-footer="v2"] .twf-links{
  display:grid !important;
  gap:10px !important;
}
.footer[data-tw-footer="v2"] .twf-links a{
  font-size:16px !important;
  line-height:1.25 !important;
  color:#ccb2ee !important;
}

.footer[data-tw-footer="v2"] .twf-support{
  margin-top:18px !important;
  max-width:360px !important;
}
.footer[data-tw-footer="v2"] .twf-support .twf-links a{
  color:#d8b8ff !important;
}



/* contacts */
.footer[data-tw-footer="v2"] .twf-contacts{
  margin-top:18px !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
  align-items:stretch !important;
}
.footer[data-tw-footer="v2"] .twf-contact{
  min-height:78px !important;
  border:1px solid rgba(148,84,255,.45);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(45,16,84,.55), rgba(24,10,47,.7));
  padding:12px 14px;
  display:grid !important;
  grid-template-columns:30px 1fr !important;
  align-items:center !important;
  column-gap:10px !important;
  width: 368px;
}

div.lang-label{
    display: none;
  }

.footer[data-tw-footer="v2"] .twf-contact-ico{
  width:30px;height:30px;border-radius:8px;
  background:rgba(149,78,255,.3);
  display:grid;place-items:center;
  font-size:14px;
}
.footer[data-tw-footer="v2"] .twf-contact-label{
  margin:0 0 2px 0 !important;
  font-size:12px;
  line-height:1.1;
  color:#bfa2e4;
}
.footer[data-tw-footer="v2"] .twf-contact-val{
  margin:0 !important;
  font-size:17px;
  line-height:1.2;
  font-weight:800;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* legal */
.footer[data-tw-footer="v2"] .twf-legal{
  width:100% !important;
  margin-top:14px;
  padding:16px 16px 12px;
  border-radius:14px;
  border:1px solid rgba(151,86,255,.35);
  background:linear-gradient(180deg, rgba(44,9,78,.55), rgba(30,8,52,.72));
}
.footer[data-tw-footer="v2"] .twf-legal-title{
  font-size:18px; font-weight:900; color:#fff; margin-bottom:8px;
}

div.tw-shell{
  width: 1280px;
  margin-left: -17px !important;
}

.footer[data-tw-footer="v2"] .twf-legal-text{
  margin:0;
  font-size:18px;
  line-height:1.45;
  color:#e5d6ff;
}
.footer[data-tw-footer="v2"] .twf-badges{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.footer[data-tw-footer="v2"] .twf-badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:15px;
  font-weight:700;
  border:1px solid rgba(161,98,255,.45);
  background:rgba(118,57,210,.25);
  color:#e9d7ff;
}

/* bottom */
.footer[data-tw-footer="v2"] .twf-bottom{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(145,81,255,.25);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}
.footer[data-tw-footer="v2"] .twf-copy{
  font-size:15px;
  color:#be9cf0;
}
.footer[data-tw-footer="v2"] .twf-bottom-links{
  display:flex; gap:18px; flex-wrap:wrap;
}
.footer[data-tw-footer="v2"] .twf-bottom-links a{
  font-size:17px;
  color:#cdaeff !important;
}

/* Нижняя строка футера: слева копирайт, справа 2 ссылки */
.footer[data-tw-footer="v2"] .twf-bottom{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
}

.footer[data-tw-footer="v2"] .twf-copy{
  margin: 0 !important;
  text-align: left !important;
  flex: 1 1 auto !important;
}

.footer[data-tw-footer="v2"] .twf-bottom-links{
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* Если есть лишние ссылки — скрыть, оставить только 2 справа */
.footer[data-tw-footer="v2"] .twf-bottom-links a:nth-child(n+3){
  display: none !important;
}


/* responsive */
@media (max-width:980px){
  .footer[data-tw-footer="v2"]{
    padding:22px 16px 16px !important;
  }

  .footer[data-tw-footer="v2"] .twf-top{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  .footer[data-tw-footer="v2"] .twf-support{
    max-width:none !important;
  }

  .footer[data-tw-footer="v2"] .twf-contacts{
    grid-template-columns:1fr !important;
  }

  .footer[data-tw-footer="v2"] .twf-contact-val{
    white-space:normal;
  }
}




/* адаптив */
@media (max-width: 640px){
  .modal-content,
  .modal-content[data-v-d1bc91d6],
  .modal-content[data-tw-enhanced-key]{
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 94vh !important;
    border-radius: 14px !important;
  }

  .product-modal{
    padding: 14px !important;
    gap: 10px !important;
  }

  .product-modal-title{ font-size: 28px !important; }

  .product-modal-gallery{
    height: 190px !important;
    min-height: 190px !important;
  }

  .tw-modal-servers-grid{
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }

  .tw-modal-actions{
    grid-template-columns: 1fr !important;
  }
}

/* ===== FIX DROPDOWN OPEN ===== */
.product-modal,
.product-modal-inputs,
.select-container{
  overflow: visible !important;
}

/* базовый контейнер селекта */
.select-container{
  position: relative !important;
  z-index: 20 !important;
}

/* сам dropdown (разные движки) */
.select-options,
.select-menu,
.select-dropdown,
.vs__dropdown-menu,
.multiselect__content-wrapper,
[role="listbox"]{
  display: block !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  max-height: 260px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 999999 !important;

  border-radius: 10px !important;
  border: 1px solid rgba(130,160,230,.35) !important;
  background: rgba(18,32,62,.98) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.45) !important;
}

/* пункты */
.select-option,
.select-options .option,
.vs__dropdown-option,
.multiselect__option,
[role="option"]{
  color: #e7efff !important;
  background: transparent !important;
}

.select-option:hover,
.select-options .option:hover,
.vs__dropdown-option:hover,
.multiselect__option:hover,
[role="option"]:hover{
  background: rgba(168,85,247,.18) !important;
}

/* ===== HARD FIX CENTER WHITE BLOCK ===== */
.product-modal .amount-control-counter{
  display:grid !important;
  grid-template-columns:56px minmax(0,1fr) 56px !important;
  height:40px !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid rgba(130,160,230,.30) !important;
  border-radius:10px !important;
  overflow:hidden !important;
  background:#1c3a68 !important;
}

.product-modal .amount-control-counter > :nth-child(1),
.product-modal .amount-control-counter > :nth-child(3){
  background:linear-gradient(180deg, rgba(72,44,146,.95), rgba(46,31,97,.95)) !important;
  color:#fff !important;
  border:0 !important;
}

.product-modal .amount-control-counter > :nth-child(2){
  background:#1c3a68 !important;
  color:#eef3ff !important;
  border:0 !important;
}

.product-modal .amount-control-counter > :nth-child(2),
.product-modal .amount-control-counter > :nth-child(2) *{
  box-shadow:none !important;
  border:0 !important;
}

.product-modal .amount-control-counter .amount-control-count,
.product-modal .amount-control-counter input[type="number"],
.product-modal .amount-control-counter > :nth-child(2) input{
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  color:#eef3ff !important;
  text-align:center !important;
  font-weight:800 !important;
  border:0 !important;
  outline:0 !important;
  appearance:textfield !important;
  -moz-appearance:textfield !important;
  -webkit-appearance:none !important;
}

.product-modal .amount-control-counter input[type="number"]::-webkit-outer-spin-button,
.product-modal .amount-control-counter input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none !important;
  margin:0 !important;
}

/* ===== Pretty qty control ===== */
.product-modal .amount-control-counter{
  display: grid !important;
  grid-template-columns: 56px minmax(0,1fr) 56px !important;
  height: 42px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(142,123,255,.45) !important;
  background: linear-gradient(180deg, #193864, #17345d) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 8px 20px rgba(0,0,0,.35) !important;
}

.product-modal .amount-control-counter-button{
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 56px !important;
  color: #f7f1ff !important;
  font-weight: 900 !important;
  background: linear-gradient(180deg, #7a45d8, #4d2b9a) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  transition: filter .18s ease, transform .06s ease;
}

.product-modal .amount-control-counter-button:hover{
  filter: brightness(1.08);
}

.product-modal .amount-control-counter-button:active{
  transform: translateY(1px);
}

.product-modal .amount-control-count,
.product-modal .amount-control-counter > :nth-child(2){
  border: 0 !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #21497f, #1b3d6d) !important;
  color: #f0f5ff !important;
  font-weight: 800 !important;
  letter-spacing: .3px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,.08),
    inset -1px 0 0 rgba(255,255,255,.08) !important;
}

.product-modal .amount-control-counter input[type="number"]{
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: #f0f5ff !important;
  text-align: center !important;
  font-weight: 800 !important;
  outline: 0 !important;
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
}

/* ===== FINAL pretty qty ===== */
.product-modal .amount-control-counter{
  display: grid !important;
  grid-template-columns: 58px minmax(0,1fr) 58px !important;
  height: 42px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(145,125,255,.5) !important;
  background: linear-gradient(180deg, #1f467a, #1a3d6d) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.35) !important;
}



.product-modal .amount-control-counter .amount-control-counter-button{
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #7f4be0, #4d2c9e) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.35) !important;
}



/* если внутри count есть input */
.product-modal .amount-control-counter input[type="number"]{
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #eef4ff !important;
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  outline: 0 !important;
  -moz-appearance: textfield !important;
  -webkit-appearance: none !important;
}

div.tw-color-wrap{
  display: none;
}


div.tw-modal-servers-grid.tw-modal-injected{
  margin-left: -85px;
}

div.tw-modal-servers-title.tw-modal-injected{
  padding-left: 75px;
}

/* ===== NAVBAR LIKE SCREENSHOT ===== */
.navbar .tw-socials-v3{
  display:none !important;
}

.navbar{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  min-height:28px;
  padding:6px 14px;
  border-bottom:1px solid rgba(114,70,255,.25);
  background:rgba(8,10,26,.8);
}

.navbar .tw-nav-topline-v3-left{
  display:none !important;
}

.navbar .tw-nav-topline-v3-right{
  color:#8ea3c8;
  font-size:14px;
  line-height:1;
}

.navbar .navbar-links{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  padding:10px 14px !important;
}

.navbar .auth-btns{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  margin-left:0 !important;
}

.navbar .language-switcher .auth-btn,
.navbar a[href="/admin/dashboard"],
.navbar .tw-login-btn-v3{
  min-height:36px !important;
  padding:0 16px !important;
  border-radius:12px !important;
  border:1px solid rgba(133,76,255,.65) !important;
  background:rgba(16,12,36,.75) !important;
  color:#f2f5ff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
  font-weight:800 !important;
  white-space:nowrap;
}

.navbar .balance-btn{
  min-height:36px !important;
  padding:0 14px !important;
  border-radius:12px !important;
  border:0 !important;
  background:linear-gradient(135deg,#ffb100,#ff7a00) !important;
  color:#fff !important;
  font-weight:900 !important;
  display:inline-flex !important;
  align-items:center !important;
}

.navbar .profile-btn{
  min-height:36px !important;
  padding:0 16px !important;
  border-radius:12px !important;
  border:0 !important;
  background:linear-gradient(135deg,#ff3bbd,#a53dff) !important;
  color:#fff !important;
  font-weight:900 !important;
  text-decoration:none !important;
  display:inline-flex !important;
  align-items:center !important;
}

section.profile-info.tw-profile-info-dark{
  width: 1243px;
}

.table{
  width: 100% !important;
  min-width: 1240px !important; /* расширяет таблицу */
  table-layout: auto !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

div.mt-4.flex.justify-center.gap-2{
  margin-left: 300px;
}

div.w-full.tw-promo-activation-card{
  width: 1250px;
}

div.form.mb-8.tw-transfer-card{
  width: 1280px;
}

/* .table th,
.table td{
  padding: 14px 18px !important;
  white-space: nowrap !important; */
}

/* PRELOADER */
html.tw-preload-lock body{
  opacity: 0 !important;
}

#tw-preload-mask-v1{
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: #090413;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tw-preload-mask-v1 .tw-spinner{
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,.20);
  border-top-color: #d96cff;
  border-radius: 50%;
  animation: twSpin .85s linear infinite;
}

div.tw-nav-topline-v3-right{
 display: none;
}

div.tw-nav-topline-v3{
  display: none;
}

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

/* HT -> Logo */
a.navbar-brand[data-v-b03506df]{
  position: relative !important;
  display: inline-block !important;
  width: 120px !important;   /* ширина логотипа */
  height: 50px !important;   /* высота логотипа */
  font-size: 0 !important;   /* скрыть HT */
  line-height: 0 !important;
  color: transparent !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
}

a.navbar-brand[data-v-b03506df]::after{
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  margin-left: -30px;
  background: url("https://i.postimg.cc/htwm1Zgt/logo2-1-1.png") center center / contain no-repeat;
}

/* мобилка */
@media (max-width: 768px){
  a.navbar-brand[data-v-b03506df]{
    width: 96px !important;
    height: 28px !important;
  }
}




/* ===== Mobile Adaptive ===== */
@media (max-width: 768px){
  .products-container{
    width: calc(100vw - 12px) !important;
    margin: 8px auto !important;
    padding: 10px !important;
    margin-left: -18px !important;
  }

  div.product-card{
    height: 360px;
  }

  .product-card-footer:has(.product-card-discount-price) .product-card-name{
  /* font-size: 10px !important; */
  }

  

  div.tw-socials-static{
    margin-top: -77px !important;
    margin-right: 5px !important;
  }

  div.navbar-mobile{
    margin-top: -20px !important;
  }

  /* скидка: старая цена выше, новая чуть ниже */
  .product-card-footer .product-card-old-price{
  transform: translateY(-15px) !important;
  }

  button.tw-rm-u-pay{
    width: 318px !important;
  }


  /* product-card-name: перенос на 2 строки */
  .product-card-footer .product-card-name{
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;

  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;

  overflow: hidden !important;
  line-height: 1.15 !important;
  min-height: calc(1.15em * 2) !important;
  }

  div.balance-btn.tw-balance-btn-v3{
  width: 243px;
  }

  div.twf-socials{
  margin-left: -170px !important;
}


  #tw-stable-profile-menu-overlay-v1 .tw-head{
  display: flex !important;
  flex-direction: column !important;   /* заголовок сверху, кнопка ниже */
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

#tw-stable-profile-menu-overlay-v1 .tw-title{
  margin: 0 !important;
}

#tw-stable-profile-menu-overlay-v1 .tw-exit[data-tw-exit-replaced="1"]{
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  align-self: flex-start !important;   /* если нужна справа: flex-end */
}

#tw-stable-profile-menu-overlay-v1 .tw-shell{
  margin-top: 0 !important;
}

  section.profile-info.tw-profile-info-dark{
     margin-left: -25px; 
  }

  div.tw-shell{
    width: 320px;
  }

  


  /* скидка: старая цена выше, новая чуть ниже */
  div.product-card-footer .product-card-old-price{
  font-size: 10px !important;
  /* margin-top: -50px !important; */
  }

  .product-card-footer .product-card-price.product-card-discount-price{
  transform: translateY(-14px) !important;
  /* margin-left: -10px !important; */
  font-size: 25px !important;
  }


  div.tw-monitoring-note{
    margin-left: -13px !important;
    margin-top: -20px !important;
  }

  section.tw-monitoring-showcase{
    margin-left: -13px !important; 
  }
  

  .product-cards{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .tw-ms-slider{
    padding: 0 40px !important;
  }

  .tw-ms-cards{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .tw-ms-title{
    font-size: 24px !important;
  }

  .modal-content,
  .modal-content[data-v-d1bc91d6],
  .modal-content[data-tw-enhanced-key]{
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100vh - 12px) !important;
    border-radius: 14px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .product-modal{
    margin-left: 0 !important;
    right: auto !important;
    padding: 12px !important;
    gap: 10px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .product-modal-title{
    font-size: 28px !important;
  }

  .product-modal-gallery{
    height: 190px !important;
    min-height: 190px !important;
  }

  .gallery-main-image{
    max-height: 170px !important;
  }

  .product-modal-description{
    width: 100% !important;
    margin-left: 0 !important;
    padding: 10px !important;
  }

  .product-modal-description p{
    font-size: 14px !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  div.tw-modal-servers-title.tw-modal-injected{
    padding-left: 0 !important;
  }

  div.tw-modal-servers-grid.tw-modal-injected{
    margin-left: 0 !important;
  }

  .product-modal .tw-modal-servers-grid{
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .product-modal .tw-modal-server-chip{
    min-height: 68px !important;
    padding: 8px 6px !important;
  }

  .product-modal .tw-modal-server-chip-top{
    font-size: 13px !important;
  }

  .product-modal .amount-control-counter{
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    height: 40px !important;
  }

  .product-modal .amount-control-counter .amount-control-counter-button{
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 40px !important;
    font-size: 20px !important;
  }

  .tw-modal-actions{
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .tw-modal-connect,
  .tw-modal-buy{
    width: 100% !important;
    margin-left: 0 !important;
    min-height: 40px !important;
    font-size: 14px !important;
  }
}

/* ===== LANGUAGE DROPDOWN (for .language-switcher ul.dropdown) ===== */
.language-switcher{
  position: relative;
}

.language-switcher ul.dropdown{
  list-style: none !important;
  margin: 8px 0 0 0 !important;
  padding: 10px !important;
  min-width: 230px !important;
  border-radius: 14px !important;
  background: rgba(6,10,26,.98) !important;
  border: 1px solid rgba(140,86,255,.55) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.55) !important;
  z-index: 2147483646 !important;
}

.language-switcher ul.dropdown > li{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: #f1f5ff !important;
  background: transparent !important;
  cursor: pointer !important;
  user-select: none;
}

.language-switcher ul.dropdown > li:hover{
  background: rgba(168,85,247,.20) !important;
}

.language-switcher ul.dropdown > li.active,
.language-switcher ul.dropdown > li.is-active{
  background: linear-gradient(135deg,#ff3bbd,#a53dff) !important;
}

.language-switcher ul.dropdown > li .flag{
  width: 20px;
  height: 14px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
}

.language-switcher ul.dropdown > li .flag svg,
.language-switcher ul.dropdown > li .flag img{
  width: 20px !important;
  height: 14px !important;
  display: block;
  border-radius: 2px;
}

.language-switcher .tw-lang-text{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  line-height: 1.1;
}

.language-switcher .tw-lang-code{
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
}

.language-switcher .tw-lang-name{
  font-size: 12px;
  font-weight: 700;
  color: #b8c4e6;
}

.language-switcher .tw-lang-dot{
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: transparent;
}

.language-switcher ul.dropdown > li.active .tw-lang-dot,
.language-switcher ul.dropdown > li.is-active .tw-lang-dot{
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,.8);
}


@media (max-width: 768px){
  .banner{
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    height: 120px !important;
    margin: 6px auto 10px auto !important;
    border-radius: 12px !important;
  }

  .banner img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media (max-width: 480px){
  .banner{
    height: 96px !important;
    border-radius: 10px !important;
    margin-left: -15px !important;
  }
}




.modal-content .product-modal div.product-modal-gallery{
  width: min(720px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-content .product-modal div.product-modal-gallery::before,
.modal-content .product-modal div.product-modal-gallery::after{
  content: none !important;
  display: none !important;
}

.modal-content .product-modal div.product-modal-gallery .gallery-main-image{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.14) !important;
  transform-origin: center center !important;
}

@media (max-width: 1023px){
  .modal-content .product-modal div.product-modal-gallery{
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
  }

  .modal-content .product-modal div.product-modal-gallery .gallery-main-image{
    transform: scale(1.04) !important;
  }
}


/* ===== Footer legal: FULL WIDTH on phones ===== */
@media (max-width: 768px){
  /* футер во всю ширину экрана */
  .footer[data-tw-footer="v2"]{
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -27px;
    scale: 0.96;
    /* margin-left: calc(50% - 50vw) !important; /* прижать к краям даже внутри контейнеров */ */
    /* margin-right: calc(50% - 50vw) !important; */
               /* если хочешь именно "на всю ширину" */
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* сам блок юридической инфы — растянуть */
  .footer[data-tw-footer="v2"] .twf-legal{
    width: 100% !important;
    max-width: 100% !important;
    margin-left: -4px !important;
    margin-right: 0 !important;
  }

  div.twf-support{
    margin-right: 140px !important;
  }
  div.twf-col{
    margin-right: 130px !important;
  }
  div.twf-support{
    margin-right: 130px !important;
  }

  p.twf-brand-text{
    margin-left: 0px !important;
  }

  div.twf-socials{
    margin-left: -0px;
  }


  


  button.app-button--primary.scroll-top-btn{
    display:none
  }

  /* чтобы текст не вываливался */
  .footer[data-tw-footer="v2"] .twf-legal-text{
    font-size: 14px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
  }

  /* бейджи — перенос строк */
  .footer[data-tw-footer="v2"] .twf-badges{
    flex-wrap: wrap !important;
  }
}

@media (max-width: 768px){
  section.profile-info.tw-profile-info-dark{
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    margin: 0 auto !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__body{
    display: block !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__table{
    min-width: 640px !important;   /* регулируй 600-760 */
    width: max-content !important;
    table-layout: auto !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__cell{
    white-space: nowrap !important;
  }
}


/* =========================
   PROFILE TABLES + TRANSFER FORM ADAPTIVE
   ========================= */

/* планшет */
@media (max-width: 1024px){
  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row{
    display: block !important;
  }

  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .left-column{
    width: 100% !important;
    min-width: 0 !important;
  }

  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .right-column{
    display: none !important;
  }

  .form.mb-8.tw-transfer-card{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* телефон */
@media (max-width: 768px){
  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .left-column{
    /* overflow-x: auto !important; */
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
  }

  /* таблицы в профиле: горизонтальный скролл */
  html.tw-profile-route .table,
  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .table{
    min-width: 720px !important;
    width: max-content !important;
    table-layout: auto !important;
  }

  html.tw-profile-route .table th,
  html.tw-profile-route .table td,
  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .table th,
  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .table td{
    white-space: nowrap !important;
  }

  /* пагинация под таблицей не ломается */
  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .mt-4.flex.justify-center.gap-2{
    min-width: 720px !important;
    width: max-content !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
    padding: 8px 0 !important;
    gap: 8px !important;
  }

  /* форма перевода */
  .form.mb-8.tw-transfer-card{
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  .form.mb-8.tw-transfer-card #form-amount-inputs{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .form.mb-8.tw-transfer-card .tw-transfer-input,
  .form.mb-8.tw-transfer-card .text-input{
    width: 100% !important;
    min-height: 44px !important;
  }

  .form.mb-8.tw-transfer-card .tw-transfer-agree{
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .form.mb-8.tw-transfer-card .tw-transfer-label{
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .form.mb-8.tw-transfer-card .tw-transfer-submit{
    min-height: 44px !important;
    font-size: 15px !important;
  }
}

/* маленькие телефоны */
@media (max-width: 420px){
  html.tw-profile-route .table,
  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .table{
    min-width: 660px !important;
  }

  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .mt-4.flex.justify-center.gap-2{
    min-width: 660px !important;
  }
}


.footer[data-tw-footer="v2"] .twf-legacy{
  margin-top: 12px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(145,81,255,.22) !important;
  text-align: center !important;
}
.footer[data-tw-footer="v2"] .twf-legacy p{
  margin: 3px 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #e9e6ff !important;
}
.footer[data-tw-footer="v2"] .twf-legacy a{
  color: #29a3ff !important;
  text-decoration: none !important;
}
.footer[data-tw-footer="v2"] .twf-legacy a:hover{
  text-decoration: underline !important;
}


p.twf-legacy-links{
  display: none;
}

div.twf-col{
  display: none;
}

div.twf-support{
  display: none;
}

p.twf-brand-text{
  display: none
}

/* Растянуть блок контактов */
.footer[data-tw-footer="v2"] .twf-contacts.twf-contacts--two{
  width: 100% !important;
  max-width: none !important;
  margin: 16px 0 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

/* Убрать фиксированную ширину карточек (типа 368px) */
.footer[data-tw-footer="v2"] .twf-contacts.twf-contacts--two .twf-contact{
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Мобилка */
@media (max-width: 768px){
  .footer[data-tw-footer="v2"] .twf-contacts.twf-contacts--two{
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 1024px){
  #tw-stable-profile-menu-overlay-v1 .tw-head{
    display: flex !important;
    align-items: center !important;
  }

  #tw-stable-profile-menu-overlay-v1 .tw-head .tw-exit{
    margin-left: auto !important;          /* прижать вправо */
    transform: translateX(-20px) !important; /* ещё правее */
  }
}

@media (max-width: 768px){
  section.profile-info.tw-profile-info-dark{
    width: calc(100vw - 12px) !important;
    margin: 8px auto !important;
    border-radius: 12px !important;
    /* margin-left: -5px !important; */
  }

  section.profile-info.tw-profile-info-dark .profile-info__body{
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__table{
    width: 100% !important;
    min-width: 560px !important; /* чтобы можно было листать вправо */
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__cell{
    /* padding: 10px 12px !important; */
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__cell--header{
    font-weight: 700 !important;
  }
}

@media (max-width: 768px){
  section.profile-info.tw-profile-info-dark{
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    margin: 8px auto !important;
    transform: none !important;
    left: auto !important;
    overflow: hidden !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__body{
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__table{
    width: 100% !important;
    min-width: 680px !important; /* как на скрине: таблица шире экрана */
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__row{
    display: table-row !important;   /* отмена grid/card */
    padding: 0 !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__cell{
    display: table-cell !important;
    padding: 18px 20px !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__cell--header{
    width: 280px !important;
    min-width: 280px !important;
  }
}

@media (max-width: 768px){
  section.profile-info.tw-profile-info-dark{
    --pi-left: 4px; /* 0px, 2px, 6px — подбери */
    margin: 8px 0 8px var(--pi-left) !important;
    width: calc(100vw - var(--pi-left) - 8px) !important;
    max-width: calc(100vw - var(--pi-left) - 8px) !important;
  }
}

@media (max-width: 768px){
  section.profile-info.tw-profile-info-dark .profile-info__table,
  section.profile-info.tw-profile-info-dark .profile-info__row,
  section.profile-info.tw-profile-info-dark .profile-info__cell,
  section.profile-info.tw-profile-info-dark .profile-info__cell--header,
  section.profile-info.tw-profile-info-dark .profile-info__cell a{
    text-align: left !important;
  }

  section.profile-info.tw-profile-info-dark .profile-info__cell{
    justify-content: flex-start !important;
    align-items: center !important;
  }
}

@media (max-width: 768px){
  section.profile-info.tw-profile-info-dark{
    /* жёстко прижать левее */
    position: relative !important;
    left: -6px !important;

    margin: 8px 0 !important;
    width: calc(100vw - 6px) !important;
    max-width: calc(100vw - 6px) !important;

    transform: none !important;
    justify-self: start !important;
    align-self: start !important;
  }
}


@media (max-width: 768px){
  section.profile-info.tw-profile-info-dark{
    position: relative !important;
    left: 0 !important;                 /* важно */
    transform: none !important;

    margin: 8px 8px 8px -22px !important; /* левее, но без обрезки */
    width: calc(100vw - 10px) !important;
    max-width: calc(100vw - 10px) !important;

    overflow: visible !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(138,79,255,.55) !important; /* вернуть видимую рамку */
  }
}

/* ПК: блок "Мои покупки" шире */
@media (min-width: 1024px){
  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row{
    width: min(1279px, calc(100vw - 32px)) !important;
    max-width: 1500px !important;
    margin: 12px auto !important;
    grid-template-columns: 1fr !important; /* т.к. right-column скрыт */
  }

  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .left-column{
    width: 100% !important;
    max-width: none !important;
  }

  .grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row .table{
    width: 100% !important;
    min-width: 0 !important;
  }

div.mt-4.flex.justify-center.gap-2{
  margin-left: 5px;
}


/* ПК: расширить блок магазина */
@media (min-width: 1024px){
  .products-container{
    width: min(1265px, calc(100vw - 24px)) !important;
    max-width: 1600px !important;
    margin: 12px auto !important;
  }

/* очень широкий экран — чтобы пустоты не было */
@media (min-width: 1440px){
  .products-container .product-cards{
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }


@media (min-width: 1024px){
  .product-card-footer .product-card-name{
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.15 !important;

    /* чтобы не ломало высоту карточки */
    min-height: 2.3em !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important; /* перенос до 2 строк */
    overflow: hidden !important;
      
    }
/* ПК: растянуть кнопку оплаты */
@media (min-width: 1024px){
  button.tw-rm-u-pay[data-tw-bound="1"]{
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 52px !important;
    font-size: 20px !important;
    padding: 0 20px !important;
    align-self: stretch !important;
    justify-content: center !important;
  }
}


  .navbar a.navbar-brand{
  position: relative !important;
  display: inline-block !important;
  width: 130px !important;
  height: 45px !important;
  font-size: 0 !important;      /* скрыть HT */
  color: transparent !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  margin-left: -50px;
}

.navbar a.navbar-brand::after{
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  margin-left: 70px;
  background: url("https://i.postimg.cc/htwm1Zgt/logo2-1-1.png") center / contain no-repeat !important;
}


/* Мои покупки: убрать прозрачность */
.grid-wrapper.tw-overlay-row-v1.tw-profile-unified-row{
  background: #442386 !important;
  background-image: none !important;
  opacity: 1 !important;
  /* border: 1px solid rgba(138,79,255,.45) !important; */
  border-radius: 14px !important;
  padding: 18px !important;
  backdrop-filter: none !important;
}

/* Перевод средств: убрать прозрачность */
.form.mb-8,
.form.mb-8.tw-transfer-card{
  background: #442386 !important;
  background-image: none !important;
  opacity: 1 !important;
  border: 1px solid rgba(138,79,255,.45) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  backdrop-filter: none !important;
}

/* инпуты внутри формы */
.form.mb-8 .text-input{
  background: #442386 !important;
  color: #f5f3ff !important;
  border: 1px solid rgba(138,79,255,.4) !important;
}

/* чекбокс-блок и лейблы */
.form.mb-8 label,
.form.mb-8 .text-sm,
.form.mb-8 .font-medium{
  color: #e9dcff !important;
}

/* кнопка */
.form.mb-8 .app-button,
.form.mb-8 button{
  opacity: 1 !important;
{
  
