/* Case-Battle clone — собственный CSS, размеры и цвета сняты с оригинала */

:root {
  --bg: #171c25;
  --panel-dark: #13171f;
  --orange: #f07a3f;
  --highlight: #ea9a50;
  --aside-w: 190px;
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { position: relative; height: 100%; line-height: 1.15; }

/* как в normalize.css оригинала: контролы наследуют шрифт страницы */
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

html ::-webkit-scrollbar { width: 5px; background-color: #191d26; }
html ::-webkit-scrollbar-track { background-color: #191d26; border-radius: 6px; }
html ::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background-image: linear-gradient(to top, rgb(77, 58, 196) 34%, rgb(41, 141, 220) 52%, rgb(77, 58, 196) 84%);
}

body {
  height: 100%;
  background-color: var(--bg);
  font-family: "Open Sans", sans-serif;
  color: #d2d2d2;
}
/* фоновая картинка на весь экран */
body::before {
  content: "";
  position: fixed;
  z-index: -10;
  inset: 0;
  background: url("../assets/img/bg-main.png") no-repeat top;
  background-size: cover;
}

a { color: var(--highlight); text-decoration: none; }

/* ===== Шапка (68px) ===== */
header { height: var(--header-h); position: relative; z-index: 5; }

header .wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  white-space: nowrap;
  height: var(--header-h);
}

header .logo {
  display: inline-block;
  color: #d2d2d2;
  background: url("../assets/img/logo-bg.png"), var(--panel-dark);
  background-repeat: no-repeat;
  background-position: top center;
  position: fixed;
  top: 0; left: 0;
  height: var(--header-h);
  width: var(--aside-w);
}
header .logo a { display: block; margin-top: 8px; text-align: center; }
header .logo a img { width: 87.5%; height: auto; margin: 7px auto 2px; }
header .logo .title { font-size: 10px; text-align: center; cursor: pointer; letter-spacing: 1px; }

header .bg-wrap {
  width: 100%;
  background: var(--panel-dark);
  margin-left: var(--aside-w);
  height: inherit;
  position: relative;
}

header .bg-wrap nav {
  height: 100%;
  display: flex;
  align-items: center;
  width: calc(100% - 240px);
}
header .bg-wrap nav > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #929292;
  font-size: 14px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 15px;
  height: 100%;
  position: relative;
  transition: background-color .5s ease-out, color .3s ease-out;
}
header .bg-wrap nav > a:first-child { padding: 0 20px; }
header .bg-wrap nav > a img { height: 23px; width: auto; margin-bottom: 5px; transition: transform .2s ease-in-out; }
header .bg-wrap nav > a:hover,
header .bg-wrap nav > a.active { color: #f07a3f; background-color: #0d1015; }
header .bg-wrap nav > a:hover img { transform: translateY(-3px); }
/* оранжевое свечение-линия снизу при наведении и у активной вкладки */
header .bg-wrap nav > a:hover::after,
header .bg-wrap nav > a.active::after {
  position: absolute;
  content: "";
  display: block;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(124, 67, 42, 0) 0%, rgb(124, 67, 42) 50%, rgba(124, 67, 42, 0) 100%);
  box-shadow: 0 0 12px 1px rgba(240, 122, 63, .55);
}

/* базовый класс иконок как в оригинале */
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; }

header .bg-wrap nav > a.visitors-online {
  cursor: help;
  color: #fff;
  margin-left: 20px;
}
header .bg-wrap nav > a.visitors-online:hover { background: none; }
header .bg-wrap nav > a.visitors-online:hover::after { display: none; }
.visitors-online > span { display: flex; flex-direction: column; align-items: center; }
.visitors-online .icon-user-group {
  font-size: 1.25rem;    /* их размер: 1em × 1.25rem, аспект держит viewBox */
  transform: scale(1.2);
  margin: 0 auto;
}
.visitors-online #online-count {
  font-size: 18px;
  font-weight: bold;
  color: #169815;
  line-height: 20px;
}

/* соцсети — тёмная лента с линиями */
header nav .social-icons {
  color: #fff;
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 3vw;
}
header nav .social-icons > div {
  width: 135px;
  height: 36px;
  position: relative;
  background: linear-gradient(90deg, rgba(13, 16, 21, 0) 0%, rgb(13, 16, 21) 15%, rgb(13, 16, 21) 50%, rgb(13, 16, 21) 85%, rgba(13, 16, 21, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
header nav .social-icons > div::before,
header nav .social-icons > div::after {
  content: "";
  position: absolute;
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(124, 67, 42, 0) 0%, rgb(124, 67, 42) 50%, rgba(124, 67, 42, 0) 100%);
}
header nav .social-icons > div::before { top: 0; }
header nav .social-icons > div::after { bottom: 0; }
header nav .social-icons a { padding: 0; margin: 0 8px; }
header nav .social-icons svg { font-size: 1.2rem; fill: var(--orange); transition: fill .3s ease-out; }
/* у иконок разные пропорции viewBox — ширины как в оригинале */
header nav .social-icons svg.icon-yt { width: 1.125em; }
header nav .social-icons svg.icon-vk { width: 1.1428571429em; }
header nav .social-icons svg.icon-tw { transform: translateY(2px); font-size: 1.1rem; }
header nav .social-icons a:hover svg { fill: #ffeec3; }

/* блок юзера справа */
#auth-block {
  padding: 0;
  position: absolute;
  height: var(--header-h);
  top: 0; right: 0;
  text-transform: none;
  z-index: 2;
}
#auth-block .user-container {
  display: inline-block;
  height: 100%;
  padding-right: 15px;
  position: relative;
}
#auth-block .credentials {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  padding-top: 13px;
  margin-right: 40px;
  overflow: hidden;
  width: 180px;
  text-overflow: ellipsis;
}
#auth-block .credentials p { margin: 4px 0 0 0; }
#auth-block .credentials span { color: var(--orange); }
#auth-block .credentials .userpic {
  float: left;
  display: block;
  margin-right: 10px;
  width: 38px;
}
#auth-block .credentials .userpic img {
  box-sizing: content-box;  /* рамка снаружи: итоговые 42px, как в оригинале */
  width: 100%;
  border-radius: 50%;
  border: 2px solid var(--orange);
  display: block;
}
/* гостевая кнопка входа через Steam */
#auth-block .steam-login-btn {
  display: block;
  margin-top: 16px;
  margin-right: 25px;
}
/* кошелёк — по центру высоты шапки, у правого края */
#auth-block .user-container > a {
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -15px;
}
#auth-block .user-container > a svg {
  fill: var(--orange);
  font-size: 1.7rem;
  width: 1.0416666667em;
  transition: fill .5s ease-out;
}
#auth-block .user-container > a:hover svg { fill: #ffeec3; }

/* ===== Лента дропов (плитки 190x100, панель ховера 250px) ===== */
.aside-content {
  height: 100%;
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 4;
  width: var(--aside-w);
}

.aside-content .item {
  position: relative;
  height: 100px;
  width: var(--aside-w);
  cursor: default;
  box-shadow: inset -12px 0 6px -11px #110f0f;
  border-bottom: 1px solid #151920;
}
/* пока плитка «выезжает», её содержимое подрезается */
.aside-content .item.play { overflow: hidden; }

.aside-content .item > div {
  height: 100%;
  display: block;
  border-left: 3px solid #ddd;
  background-color: rgba(221, 221, 221, .2);
}
.aside-content .item > div.mil-spec    { border-color: #4169e1; background-color: rgba(65, 105, 225, .2); }
.aside-content .item > div.industrial  { border-color: #279bf0; background-color: rgba(39, 155, 240, .2); }
.aside-content .item > div.restricted  { border-color: #8a2be2; background-color: rgba(138, 43, 226, .2); }
.aside-content .item > div.classified  { border-color: #e334c8; background-color: rgba(227, 52, 200, .2); }
.aside-content .item > div.covert      { border-color: #ea2f2f; background-color: rgba(234, 47, 47, .2); }
.aside-content .item > div.rare        { border-color: #e9bf0c; background-color: rgba(233, 191, 12, .2); }

/* выезжающая панель с деталями дропа — шире плитки, выходит за край ленты */
.aside-content .item .hover {
  position: absolute;
  top: 0;
  height: 100%;
  width: 250px;
  z-index: 2;
  display: flex;
  text-align: center;
  transform: translateX(-253px);
  transition: all .5s ease;
}
.aside-content .item:hover .hover { transform: translateX(-3px); }
.aside-content .item > div.base       .hover { background-color: rgba(221, 221, 221, .73); }
.aside-content .item > div.mil-spec   .hover { background-color: rgba(65, 105, 225, .73); }
.aside-content .item > div.industrial .hover { background-color: rgba(39, 155, 240, .73); }
.aside-content .item > div.restricted .hover { background-color: rgba(138, 43, 226, .73); }
.aside-content .item > div.classified .hover { background-color: rgba(227, 52, 200, .73); }
.aside-content .item > div.covert     .hover { background-color: rgba(234, 47, 47, .73); }
.aside-content .item > div.rare       .hover { background-color: rgba(233, 191, 12, .73); }

/* при наведении старое содержимое плитки прячется */
.aside-content .item:hover .item-wrapper { opacity: 0; }

/* левая часть панели: название кейса и сам кейс */
.aside-content .item .hover .drop-left {
  height: 100%;
  position: relative;
  text-align: center;
  width: 190px;
}
.aside-content .item .hover .drop-left .drop-name {
  font-size: 13px;
  color: #fff;
  display: inline-block;
  margin-top: 9px;
  margin-bottom: 5px;
}
.aside-content .item .hover .drop-left .drop-name span { font-size: 11px; }
.aside-content .item .hover .drop-left .drop-thumb {
  width: 62px;
  height: 55px;
  background-repeat: no-repeat;
  background-position-x: center;
  background-size: cover;
  margin: 3px auto 0;
  display: block;
}
.aside-content .item .hover .drop-left .drop-thumb > img { height: 100%; }

/* правая часть панели: аватар и выпавший предмет */
.aside-content .item .hover .user-right { padding-top: 9px; flex-grow: 1; }
.aside-content .item .hover .user-right .user-thumb { display: inline-block; width: 36px; }
.aside-content .item .hover .user-right .user-thumb > img {
  width: 100%;
  border-radius: 50%;
  display: block;
}
.aside-content .item .hover .user-right .user-item {
  width: 65px;
  position: absolute;
  right: 10px;
  top: 42px;
}
.aside-content .item .hover .user-right .user-item > img { max-width: 100%; height: auto; }

.aside-content .item .item-wrapper { padding: 0 5px; height: 100%; opacity: 1; transition: all .2s ease; }
.aside-content .item .item-wrapper img.drop-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 700ms ease-out;
}
.aside-content .item .item-wrapper img.drop-image.loaded { opacity: 1; }
.aside-content .item .item-wrapper .title {
  color: #c3dcff;
  font-size: 11px;
  text-align: center;
  overflow: hidden;
  width: 100%;
  height: 34px;
}

/* ===== Основной контент ===== */
.main-content {
  padding-left: var(--aside-w);
  min-height: calc(100% - 68px);
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* ===== Промо-полоса (100px) ===== */
.promo-wrapper {
  height: 100px;
  width: 100%;
  background:
    url("../assets/img/promo-bg.webp") no-repeat center,
    linear-gradient(to right, #13171e 0%, #22273b 35%, #232f3f 50%, #22273b 67%, #13171e 100%),
    var(--bg);
}

.promo-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1026px;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

/* карточка +19% */
.promo-info {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 10px;
}
.promo-icon {
  position: absolute;
  z-index: 4;
  left: -34px;
  top: 6px;
  height: 85%;
  width: auto;
  filter: drop-shadow(0 0 7px rgba(255, 1, 153, .25));
}
.promo-info--card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 150px;
  height: 65px;
  transform: rotate(-3deg);
  user-select: none;
}
.promo-info--label {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  border-radius: 15px 8px .75rem 40px;
  padding-right: 10px;
  padding-top: 6px;
  text-align: right;
  color: #fff;
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 700;
  font-family: "Arial Black", "Impact", sans-serif;
  background: linear-gradient(90deg, var(--promo-grad-a, #f4952a), var(--promo-grad-b, #f24e4a));
}
.promo-info--label-bottom {
  position: absolute;
  bottom: -1px;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 1.15rem;
  padding-right: 9px;
  padding-top: 1px;
  background-color: #7b24f4;
  border-radius: 0 0 7px 7px;
  text-align: right;
  color: #fff3b1;
  font-weight: 500;
  font-size: 13px;
  filter: drop-shadow(0 0 2px rgba(11, 96, 255, .15));
}

/* таймер 340×65 */
.promo-timer {
  height: 65px;
  width: 340px;
  border-radius: 12px;
  border: 2px solid #ff7350;
  border-left-color: #ffb648;
  border-right-color: #ff3557;
  user-select: none;
}
.promo-timer--inner {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  padding-left: 1rem;
  padding-right: 2.5rem;
}
.promo-timer--label {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25rem;
  text-transform: uppercase;
  color: #fef9c3;
}
.promo-timer--countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.promo-timer--icon {
  position: absolute;
  right: -32px;
  width: 63px;
  filter: drop-shadow(0 0 5px rgba(1, 170, 255, .5));
  animation: pulse-icon 3s infinite ease-in-out;
}
@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* кнопка промокода 210×45 */
.promo-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  user-select: none;
}
.promo-code--label { text-transform: uppercase; color: #fff; font-size: 14px; }
.promo-code--label-light { font-weight: 700; color: #fef9c3; }

.promo-code--button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 210px;
  height: 45px;
  cursor: pointer;
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid transparent;
  border-radius: 9px;
  background:
    radial-gradient(100% 100% at 50% 100%, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, 0) 80%) padding-box,
    linear-gradient(90deg, var(--promo-grad-a, #fda033) 0%, var(--promo-grad-b, #f95243) 100%) padding-box,
    linear-gradient(90deg, #ffee00 0%, #ff0000 100%) border-box;
  box-shadow: 0 0 15px 3px rgba(255, 170, 0, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.promo-code--button:hover {
  transform: scale(1.04);
  box-shadow: 0 0 22px 5px rgba(255, 170, 0, .45);
}

/* ===== Фильтр (полоса 50px) ===== */
#filter {
  background: #1c212c;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  height: 50px;
  color: #929292;
}
#filter > div { height: 32px; display: flex; align-items: center; }
#filter input[type=search] {
  background-color: #0f0f19;
  outline: 0;
  border: 1px solid #0e0e17;
  border-right-color: #191a21;
  border-bottom-color: #191a21;
  font-size: 14px;
  font-weight: 600;
  color: #bfcae3;
  padding: 0 10px;
  height: 30px;
  width: 200px;
  margin-left: 10px;
  font-family: inherit;
}
#filter input[type=search]::placeholder {
  color: #6e7682;
  font-weight: 400;
  opacity: 1;
}

/* тумблер «Только избранные» — стилизованный сам checkbox, как в оригинале */
#filter .filter__favorite { margin-left: 20px; display: flex; }
#filter .filter__favorite label { display: flex; align-items: center; cursor: pointer; }
#filter input[type=checkbox] {
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  min-width: 39px;
  width: 39px;
  height: 23px;
  border-radius: 11.5px;
  display: inline-block;
  position: relative;
  border: 2px solid #474755;
  background: linear-gradient(180deg, #2d2f39 0%, #1f2027 100%);
  transition: all .2s ease;
  margin-right: 5px;
}
#filter input[type=checkbox]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(44, 44, 44, .2);
  transition: all .2s cubic-bezier(.5, .1, .75, 1.35);
}
#filter input[type=checkbox]:checked { border-color: #09a65b; }
#filter input[type=checkbox]:checked::after { transform: translateX(16px); }

/* ===== Каталог ===== */
.container.homepage { flex: 1; }

#caseList {
  max-width: 1281px;
  margin: 0 auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

/* заголовок категории и заголовок режима фильтрации */
#caseList .category-title,
#caseList .filter-title {
  flex: 0 0 100%;
  text-align: center;
  color: #bcb9cd;
  text-transform: uppercase;
  background-image: url("../assets/img/case-category-bg.png");
  background-repeat: no-repeat;
  background-position: center;
}
#caseList .category-title h1,
#caseList .filter-title h1 { font-size: 15px; font-weight: bold; margin: 35px; }
#caseList .filter-title { display: none; }
#caseList.filtered .filter-title { display: block; }

/* сообщения «ничего не найдено» / «избранное пусто» */
#caseList .callout {
  width: 100%;
  border: 1px solid #282a2e;
  padding: 10px;
  display: none;
  text-align: center;
  color: #8d8a87;
  max-width: 600px;
  margin: 0 10px;
}

/* карточка кейса 255px */
#caseList > a.case-card {
  width: 255px;
  color: #d2d2d2;
  padding: 2px 2px 20px;
  position: relative;
  display: block;
  margin-bottom: 15px;
}
#caseList > a.case-card:hover {
  background-image: url("../assets/img/hover.jpg");
  background-size: cover;
  animation: case-bg-opacity 2s;
}
@keyframes case-bg-opacity {
  from { opacity: .2; }
  to   { opacity: 1; }
}

/* анимированная рамка при наведении */
.ui-border-element { display: block; }
.case-card::before, .case-card::after,
.case-card .ui-border-element::before, .case-card .ui-border-element::after {
  content: "";
  position: absolute;
  transition: all .2s cubic-bezier(0, .98, .51, .93);
}
.case-card::before  { border-top: 2px solid #545186; top: 0; left: 0; right: 100%; }
.case-card::after   { border-bottom: 2px solid #545186; bottom: 0; right: 0; left: 100%; }
.case-card .ui-border-element::before { border-left: 2px solid #545186; left: 0; top: 100%; bottom: 0; }
.case-card .ui-border-element::after  { border-right: 2px solid #545186; right: 0; bottom: 100%; top: 0; }
.case-card:hover::before { right: 0; }
.case-card:hover::after  { left: 0; transition-delay: .4s; }
.case-card:hover .ui-border-element::after { bottom: 0; transition-delay: .2s; }
.case-card:hover .ui-border-element::before { top: 0; transition-delay: .6s; }

.case-card .title {
  text-transform: uppercase;
  margin-left: 15px;
  position: relative;
  z-index: 2;
}
.case-card .title h3 { font-size: 15px; margin: 10px 0 5px; color: #fff; }
.case-card .title > span { font-size: 14px; color: #707070; text-transform: none; }
.case-card .title img.badge { vertical-align: middle; height: 16px; margin-left: 4px; }

/* картинка кейса: задник + передник + декор темы */
.case-card .case-image { height: 192px; position: relative; }
.case-card .case-image img.back-image { position: absolute; right: 15px; top: -5px; }
.case-card .case-image img.image { transition: all .2s ease; position: absolute; top: -5px; left: 17px; }
.case-card:hover .case-image img.image { transform: translateY(-7px); }
/* позиционирование .theme-overlay задаётся темой — см. /css/themes/<тема>.css */

/* SVG-заглушка, если картинки нет */
.case-card .case-image svg.placeholder { width: 196px; height: 150px; display: block; margin: 20px auto 0; }

/* цена */
.case-card .bottom-elements { position: relative; }
.case-card .price {
  font-size: 16px;
  color: #ee6f3c;
  position: relative;
  text-align: right;
  margin-right: 35px;
  z-index: 2;
}
.case-card .price .border-box {
  display: inline-block;
  text-align: center;
  width: 88px;
  background-image: linear-gradient(to right, #ee9f58, #d12a1e);
  padding: 1px;
}
.case-card .price .border-box span {
  background: #1a1e23;
  display: block;
  padding: 5px 7px;
}
.__currency::after { content: "₽"; margin-left: .33rem; font-weight: normal; }
/* ценник в BattleCoins: число + монетка BCN */
.__bcn { white-space: nowrap; display: inline-flex; align-items: center; }
.__bcn .bcn-coin { width: 1.05em; height: 1.05em; margin-left: .33rem; vertical-align: middle; }

/* старая цена (скидка) */
.case-card .price .price-old {
  color: #79769a;
  font-size: 15px;
  white-space: nowrap;
  margin-right: 10px;
  text-decoration: line-through;
}

/* бонусная цена в BCN — без рамки, крупнее */
.case-card .price.price-bcn {
  font-weight: 700;
  margin-top: 4px;
  font-size: 20px;
  margin-right: 36px;
  height: 28px;
  color: #ea9a50;
}
.case-card .price.price-bcn img.icon-bcn {
  height: 1.3rem;
  vertical-align: bottom;
  margin-left: 5px;
}

/* счётчик остатка лимитированных кейсов */
.case-card .counter {
  position: absolute;
  top: 55px;
  right: 5px;
  z-index: 3;
  text-align: center;
}
.case-card .counter .timer {
  background: url("../assets/img/ico-limit.png") no-repeat;
  width: 27px;
  height: 22px;
  margin: 0 auto;
}
.case-card .counter .count-left { font-size: 13px; color: #bb732b; font-weight: bold; }
.case-card .counter span { font-size: 11px; color: #9aa1ac; }
.case-card .counter .count-left { color: #bb732b; }

/* распроданные лимитированные кейсы — серые целиком */
.case-card.case-disabled .case-image img { filter: grayscale(1); opacity: .9; }
.case-card.case-disabled .price { color: #5d5d5d; }
.case-card.case-disabled .price .border-box {
  background-image: linear-gradient(to right, #6f6f6f, #454545);
}
.case-card.case-disabled .price .price-old { color: #5d5d5d; }
.case-card.case-disabled .counter .timer { filter: grayscale(1) brightness(.8); }
.case-card.case-disabled .counter .count-left,
.case-card.case-disabled .counter span { color: #5d5d5d; }

/* ===== Страница кейса ===== */
.container.caseBox {
  background: url("../assets/img/bg_case.webp") no-repeat;
  background-position: top center;
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
  position: relative;
  width: 100%;
  max-width: none;
}

.container.caseBox h2.page-sub-title {
  font-size: 13px;
  font-weight: bold;
  color: #9c9c9c;
  text-align: center;
  text-transform: uppercase;
  padding-top: 20px;
  margin: 0;
}
.main-content h1.page-title {
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 25px;
  color: #fff;
  text-align: center;
}
/* на странице кейса заголовок меньше и без нижнего отступа */
.container.caseBox h1.page-title {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 0;
}
.container.caseBox #case-box-app { margin-bottom: 20px; }

/* сердечко избранного — справа от кейса */
.container.caseBox .favorite {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 17px;
  right: calc(50% - 230px);
  z-index: 2;
  outline: none;
  cursor: pointer;
  transition: all .5s ease;
}
.container.caseBox .favorite:hover { transform: translateY(-2px); }
.container.caseBox .favorite svg { font-size: 1.5rem; outline: none; }

/* кейс с вращающимся кругом позади */
.container.caseBox #case-box-app .center-wrapper {
  margin: 0 auto 0;
  min-height: 270px;
  grid-auto-rows: 1fr;
  display: grid;
  position: relative;
}
/* контейнер SVG-фейерверков при выигрыше (соло) — как в оригинале */
#firework-container {
  position: absolute;
  width: 450px;
  left: calc(50% - 225px);
  z-index: 2;
  height: 320px;
  top: 50px;
  pointer-events: none;
}
.container.caseBox #case-box-app .case {
  position: relative;
  margin: 38px auto 0;
  height: 232px;
  width: 220px;
}
.container.caseBox #case-box-app .case .case-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 5px), calc(-50% - 10px));
  z-index: 0;
  outline: none;
  width: 350px;
  height: 350px;
}
.container.caseBox #case-box-app .case .case-circle img.case-animated-circle {
  outline: none;
  animation: rotation 40000ms infinite linear;
  width: 100%;
}
@keyframes rotation {
  from { transform: rotate(0deg); }
  to   { transform: rotate(359deg); }
}
.container.caseBox #case-box-app .case img.case-image {
  position: absolute;
  left: 0;
  top: 0;
}
/* тематический оверлей кейса — своя геометрия (из темы оригинала) */
.container.caseBox #case-box-app .case img.case-image.theme {
  position: absolute;
  left: -18px;
  top: -49px;
  width: 251px;
  height: auto;
}
.container.caseBox #case-box-app .case img.case-image.animated {
  animation-name: slowmotion;
  animation-timing-function: ease;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}
@keyframes slowmotion {
  from { transform: translateY(0); }
  50%  { transform: translateY(-9px); }
  to   { transform: translateY(0); }
}

/* нижний блок: для гостя — приглашение авторизоваться */
.container.caseBox #case-box-app .footer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}
.container.caseBox #case-box-app .error-holder {
  box-sizing: content-box;  /* итог 350px с паддингами, как в оригинале */
  width: 320px;
  text-align: center;
  background-color: rgba(9, 8, 13, .55);
  height: 100px;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 13px;
  color: #fff;
  padding: 0 15px;
}
.container.caseBox #case-box-app .error-holder p { margin: 0 0 10px 0; line-height: 18px; }
.container.caseBox #case-box-app .error-holder span { color: #ea9a50; }
.container.caseBox #case-box-app .error-holder svg { fill: #ea9a50; font-size: 1.8rem; }
.container.caseBox #case-box-app .error-holder svg.icon-coins-gradient { font-size: 3.5rem; }
.icon-coins { width: 1.1260504202em; }
.container.caseBox #case-box-app .error-holder a.btn {
  box-sizing: content-box;  /* рамки 2px снаружи: итог 31px высоты */
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  height: 27px;
  background: linear-gradient(90deg, #261214, #181412);
  border: 2px solid;
  border-image-source: linear-gradient(90deg, #e6964c 0%, #bb281e 100%);
  border-image-slice: 1;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .9em;
  padding: 0 14px;
  cursor: pointer;
}
.container.caseBox #case-box-app .error-holder a.btn:hover {
  background: linear-gradient(90deg, #e6964c, #bb281e);
}

/* ===== Открытие кейса: кнопки и счётчик ===== */
.container.caseBox #case-box-app .bottom-controls {
  position: relative;
  z-index: 3;
  color: #9c9c9c;
  transition: opacity .6s ease-out;
}
.container.caseBox #case-box-app .bottom-controls.transparent { opacity: 0; }
.container.caseBox #case-box-app .bottom-controls .open-count {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.container.caseBox #case-box-app .bottom-controls .open-count span.num-text { width: 38px; }
.container.caseBox #case-box-app .bottom-controls .open-count ul {
  display: inline-block;
  margin: 3px 10px 0 10px;
  padding: 0;
  vertical-align: middle;
}
/* счётчик заблокирован на время прокрутки */
.container.caseBox #case-box-app .bottom-controls .open-count ul[disabled] {
  pointer-events: none;
  filter: grayscale(100%);
  opacity: .6;
}
.container.caseBox #case-box-app .bottom-controls .open-count ul li {
  list-style: none;
  display: inline-block;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  color: #fff;
  cursor: pointer;
  line-height: 29px;
  border: transparent 1px solid;
  transition: background-color ease-in .2s;
  text-align: center;
  box-sizing: content-box;
}
.container.caseBox #case-box-app .bottom-controls .open-count ul li a {
  color: #fff;
  text-decoration: none;
  display: block;
}
.container.caseBox #case-box-app .bottom-controls .open-count ul li.active {
  background-color: rgba(32, 17, 18, .91);
  border: 2px solid;
  border-image-source: linear-gradient(44deg, #f6a158 0%, #d92b1e 100%);
  border-image-slice: 1;
}
.container.caseBox #case-box-app .bottom-controls .open-count ul li:hover:not(.active) {
  font-weight: 700;
  background-color: #201112;
}
.container.caseBox #case-box-app .bottom-controls button,
.container.caseBox #case-box-app .games-wrapper .control-after-open button {
  box-sizing: content-box;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(90deg, #261214, #181412);
  border: 2px solid;
  border-image-source: linear-gradient(90deg, #e6964c 0%, #e6964c 100%);
  border-image-slice: 1;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .9em;
  padding: 0 14px;
  cursor: pointer;
}
.container.caseBox #case-box-app .bottom-controls button:disabled,
.container.caseBox #case-box-app .games-wrapper .control-after-open button:disabled {
  color: #6f6f6f;
  cursor: not-allowed;
  filter: grayscale(100%);
}
.container.caseBox #case-box-app .bottom-controls button:hover:not(:disabled),
.container.caseBox #case-box-app .games-wrapper .control-after-open button:hover:not(:disabled) {
  background: linear-gradient(90deg, #571318, #143919);
}
.container.caseBox #case-box-app .bottom-controls button { height: 45px; margin: 0 6px; }
.container.caseBox #case-box-app .bottom-controls button svg { font-size: 1.3rem; margin-right: 10px; }

/* ===== Рулетка прокрутки ===== */
.container.caseBox #case-box-app .games-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: 25px;
  row-gap: 5px;
  justify-content: center;
  align-items: stretch;
  justify-items: stretch;
  align-content: center;
  margin: 0 15px;
  position: relative;
}
.container.caseBox #case-box-app .games-wrapper.solo { grid-auto-rows: 1fr; }
.container.caseBox #case-box-app .games-wrapper > div {
  background-color: rgba(15, 18, 24, .5);
  overflow: hidden;
  padding: 55px 0 10px 0;
  box-sizing: border-box;
  margin: 10px 0 15px 0;
  position: relative;
}
.container.caseBox #case-box-app .games-wrapper.solo > div { padding: 50px 0; }
.container.caseBox #case-box-app .games-wrapper > div::before,
.container.caseBox #case-box-app .games-wrapper > div::after {
  content: "";
  position: absolute;
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(124, 67, 42, 0) 0%, rgb(124, 67, 42) 50%, rgba(124, 67, 42, 0) 100%);
}
.container.caseBox #case-box-app .games-wrapper > div::before { top: 0; }
.container.caseBox #case-box-app .games-wrapper > div::after { bottom: 0; }

/* круги позади ленты */
.container.caseBox #case-box-app .games-wrapper > div .circle__back .static,
.container.caseBox #case-box-app .games-wrapper > div .circle__back .animated {
  position: absolute;
  top: calc(50% - 15px);
  left: calc(50% - 30px);
  transform: translate(calc(-50% + 30px), -50%);
}
.container.caseBox #case-box-app .games-wrapper.solo > div .circle__back .static,
.container.caseBox #case-box-app .games-wrapper.solo > div .circle__back .animated { top: 50%; }
.container.caseBox #case-box-app .games-wrapper > div .circle__back .static { height: 60%; }
.container.caseBox #case-box-app .games-wrapper > div .circle__back .animated { height: 96%; }
.container.caseBox #case-box-app .games-wrapper.solo > div .circle__back .static { height: 76%; }
.container.caseBox #case-box-app .games-wrapper.solo > div .circle__back .animated { height: 119%; }
.container.caseBox #case-box-app .games-wrapper > div .circle__back .static > img,
.container.caseBox #case-box-app .games-wrapper > div .circle__back .animated > img { height: 100%; }
.container.caseBox #case-box-app .games-wrapper > div .circle__back .animated > img {
  filter: brightness(0.8);
  animation: rotation 40000ms infinite linear;
}
.container.caseBox #case-box-app .games-wrapper > div.rolling .circle__back > .animated > img {
  animation: rotation4 calc(var(--duration) * 1ms) cubic-bezier(0.39, 0.575, 0.65, 1);
}
@keyframes rotation4 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(1439deg); }
}

/* лента предметов */
.container.caseBox #case-box-app .games-wrapper > div .rolling-assets {
  display: flex;
  justify-content: left;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-left: calc(var(--offset) * 1px);
}
.container.caseBox #case-box-app .games-wrapper > div .rolling-assets > div {
  text-align: center;
  color: #c3dcff;
  font-weight: 600;
  position: relative;
  box-sizing: border-box;
  margin: 0 calc(var(--margin) * 1px);
  width: calc(var(--width) * 1px);
  flex-shrink: 0;
  transition: opacity .5s ease;
}
.container.caseBox #case-box-app .games-wrapper > div .rolling-assets > div > img {
  display: block;
  margin: 0 auto -15px auto;
  filter: brightness(1.2);
  width: calc(var(--width) * 1px);
  height: calc(var(--width) * 1px);
}
.container.caseBox #case-box-app .games-wrapper > div .rolling-assets > div h3,
.container.caseBox #case-box-app .games-wrapper > div .rolling-assets > div h4 {
  visibility: hidden;
  position: absolute;
  margin: 0;
  font-size: 12px;
  bottom: 14px;
  white-space: nowrap;
  width: auto;
  text-align: center;
  color: #e6964c;
  transition: transform 600ms ease, font-size 600ms ease;
  left: 50%;
  transform: scale(1) translateY(0) translateX(-50%);
  transform-origin: left;
}
.container.caseBox #case-box-app .games-wrapper > div .rolling-assets > div h4 { bottom: -1px; font-weight: 100; }
.container.caseBox #case-box-app .games-wrapper > div .rolling-assets > div h5,
.container.caseBox #case-box-app .games-wrapper > div .rolling-assets > div h6 {
  width: calc(100% + 16px);
  font-size: 12px;
  overflow: hidden;
  margin: 0 -10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.container.caseBox #case-box-app .games-wrapper > div .rolling-assets > div h6 { font-weight: 100; }

/* конечное состояние: лента доехала, выигрыш подсвечен */
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets {
  transform: translateX(calc(var(--transition) * 1px));
  margin-left: 0;
}
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > .drop { z-index: 1; position: relative; }
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > .drop > img { transition: transform 450ms ease; }
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > .drop h3,
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > .drop h4 {
  display: block;
  visibility: visible;
  z-index: 2;
}
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > .drop h4 { bottom: -7px; font-weight: 600; }
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > .drop h5,
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > .drop h6 { opacity: 0; visibility: hidden; }
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > .drop + div {
  mask-image: linear-gradient(to right, transparent 0%, transparent 5%, black 100%);
}
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > div:has(+ .drop) {
  mask-image: linear-gradient(to left, transparent 0%, transparent 5%, black 100%);
}
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > div:not(.drop) { opacity: .5; }
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > div:not(.drop) img { filter: grayscale(1); }
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > div:not(.drop) h5,
.container.caseBox #case-box-app .games-wrapper > div.finished .rolling-assets > div:not(.drop) h6 { opacity: .5; }
.container.caseBox #case-box-app .games-wrapper.finished.solo div.drop > img { transform: scale(1.9) translateY(-6px) translateX(-4px); }
.container.caseBox #case-box-app .games-wrapper.finished.solo div.drop h3,
.container.caseBox #case-box-app .games-wrapper.finished.solo div.drop h4 { transform: scale(1.6) translateY(13px) translateX(-50%); }
.container.caseBox #case-box-app .games-wrapper.finished div.drop > img { transform: scale(1.7) translateY(-6px) translateX(-4px); }
.container.caseBox #case-box-app .games-wrapper.finished div.drop h3,
.container.caseBox #case-box-app .games-wrapper.finished div.drop h4 { transform: scale(1.5) translateY(7px) translateX(-50%); }

/* кнопки под каждой лентой при мульти-открытии */
.container.caseBox #case-box-app .games-wrapper .control-after-open {
  margin-top: 26px;
  visibility: hidden;
  position: relative;
  height: 33px;
  text-align: center;
}
.container.caseBox #case-box-app .games-wrapper .control-after-open.finished { visibility: visible; }
.container.caseBox #case-box-app .games-wrapper .control-after-open button {
  height: 33px;
  color: silver;
  font-size: .8em;
  border-width: 1px;
}
.container.caseBox #case-box-app .games-wrapper .control-after-open button svg {
  font-size: 1.1rem;
  margin-right: 10px;
  width: 20px;
}

/* содержимое кейса */
.container.caseBox .case-assets {
  min-height: 300px;
  margin-bottom: 70px;
  text-align: center;
  width: 100%;
  margin-top: 0;
}
.container.caseBox .case-assets .title {
  text-transform: uppercase;
  font-size: 17px;
  color: #fff;
  display: flex;
  margin: 0 auto 30px auto;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}
.container.caseBox .case-assets .title span:first-child { margin-right: 10px; }
.container.caseBox .case-assets .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  column-gap: 15px;
  row-gap: 20px;
}
.container.caseBox .case-assets .wrapper .unit {
  box-sizing: content-box;  /* рамки снаружи: итог 177x174, как в оригинале */
  position: relative;
  width: 175px;
  height: 170px;
  background-size: cover;
  border: 1px solid #29313f;
  border-bottom: 3px solid #ddd;
  text-align: left;
  color: #fff;
  text-decoration: none;
}
.container.caseBox .case-assets .wrapper .unit img {
  display: block;
  width: calc(100% - 40px);
  margin: 0 auto 0;
  filter: brightness(1.2);
}
.container.caseBox .case-assets .wrapper .unit .unit-title {
  box-sizing: content-box;
  position: absolute;
  bottom: 0;
  left: 0;
  overflow: hidden;
  width: calc(100% - 20px);
  padding: 5px 10px 7px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}
.container.caseBox .case-assets .wrapper .unit .price {
  box-sizing: content-box;
  position: absolute;
  left: -1px;
  background-color: rgba(43, 51, 66, .83);
  bottom: 44px;
  padding: 3px 6px 4px 6px;
  text-align: center;
  font-weight: 600;
  min-width: 60px;
}
.container.caseBox .case-assets .wrapper .unit .price span { font-size: 15px; color: #ee6f3c; }
.container.caseBox .case-assets .wrapper .unit.restricted { border-bottom-color: #8a2be2; background-image: url("../assets/img/case-asset-bg-restricted.jpg"); }
.container.caseBox .case-assets .wrapper .unit.mil-spec   { border-bottom-color: #4169e1; background-image: url("../assets/img/case-asset-bg-mil-spec.jpg"); }
.container.caseBox .case-assets .wrapper .unit.classified { border-bottom-color: #e334c8; background-image: url("../assets/img/case-asset-bg-classified.jpg"); }
.container.caseBox .case-assets .wrapper .unit.industrial { border-bottom-color: #279bf0; background-image: url("../assets/img/case-asset-bg-industrial.jpg"); }
.container.caseBox .case-assets .wrapper .unit.covert     { border-bottom-color: #ea2f2f; background-image: url("../assets/img/case-asset-bg-covert.jpg"); }
.container.caseBox .case-assets .wrapper .unit.rare       { border-bottom-color: #e9bf0c; background-image: url("../assets/img/case-asset-bg-rare.jpg"); }
.container.caseBox .case-assets .wrapper .unit.base       { border-bottom-color: #ddd;    background-image: url("../assets/img/case-asset-bg-base.jpg"); }

/* ===== Подвал ===== */
.main-content #footer {
  margin-top: 20px;
  flex-shrink: 0;
  background: var(--panel-dark);
  padding: 15px 20px;
  color: #333e52;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#footer a { text-decoration: none; }
#footer .copyright { font-size: 15px; font-weight: bold; margin-bottom: 20px; }
#footer .contacts { font-size: 12px; line-height: 15px; margin-top: 10px; word-wrap: break-word; }
#footer h1 { font-size: 14px; font-weight: 100; margin: 9px 0 10px; padding: 0; }

#footer .footer__links { display: flex; }
#footer .footer__links > div {
  margin-right: 15px;
  line-height: 12px;
  text-align: center;
}
#footer .footer__links > div:last-child { margin-right: 0; }
#footer .footer__links svg { vertical-align: middle; }
#footer .footer__links a {
  font-size: 14px;
  font-weight: bold;
  color: #333e52;
  vertical-align: middle;
  border-bottom: 1px solid transparent;
}
#footer .footer__links a:hover { border-color: #333e52; }

#footer .right { text-align: right; padding-left: 10px; }
#footer .right .logo-wrapper { display: inline-block; }
#footer .right div {
  margin: 7px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
#footer .right div img { margin-left: 10px; }

/* ===== Плавающая кнопка чата поддержки =====
   позиция и размер сняты с живого сайта: картинка 100x100, right 10px, bottom 2px */
#supportTrigger {
  position: fixed;
  right: 10px;
  bottom: 2px;
  width: 100px;
  height: 100px;
  cursor: pointer;
  z-index: 2147483647;
}
#supportTrigger .trigger-image img {
  width: 100px;
  height: 100px;
  display: block;
}

/* поля форм входа и пополнения */
.auth-form { margin-bottom: 14px; }
.auth-form input {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  background-color: #0f0f19;
  outline: 0;
  border: 1px solid #0e0e17;
  border-right-color: #191a21;
  border-bottom-color: #191a21;
  font-size: 14px;
  color: #bfcae3;
  padding: 9px 10px;
  font-family: inherit;
}
.auth-form input::placeholder { color: #6e7682; }
.auth-form .auth-error { color: #ea2f2f; font-size: 12px; min-height: 15px; margin-top: 2px; }
.btn-center { display: flex; justify-content: center; gap: 12px; }

/* ===== Модалка пополнения (структура и размеры оригинала) ===== */
/* окно прижато к верху, как у hystmodal в оригинале */
#funds-modal.modal-overlay { align-items: flex-start; overflow-y: auto; }
#funds-modal.modal-overlay.open { animation: hyst-shadow-in .15s ease; }
#funds-modal .hystmodal__window {
  position: relative;
  max-width: 950px;
  width: calc(100% - 30px);
  display: flex;
  margin: 50px auto;
  /* появление окна: масштаб и прозрачность, как у hystmodal */
  animation: hyst-window-in .2s ease;
}
@keyframes hyst-window-in {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes hyst-shadow-in {
  from { background-color: rgba(10, 13, 18, 0); }
  to   { background-color: rgba(10, 13, 18, .8); }
}
#funds-modal .modal-body { padding: 25px 30px; }

#funds-modal .hystmodal__close {
  position: absolute;
  z-index: 10;
  display: block;
  background-color: #1a2031;
  border: 1px solid #2f374e;
  width: 30px;
  height: 30px;
  right: -29px;
  top: 0;
  cursor: pointer;
  padding: 0;
}
#funds-modal .hystmodal__close svg { fill: #ff9739; font-size: .95rem; transition: .5s fill ease; }
#funds-modal .hystmodal__close:hover svg { fill: #fff; }

#funds-modal .method_btns { color: #fff; display: flex; position: relative; }

/* левая колонка — способы оплаты */
#funds-modal .method_btns__l1_buttons { color: #5e626e; }
#funds-modal .method_btns__l1_buttons > a {
  overflow: hidden;
  border-left: 1px solid #2f374e;
  border-bottom: 1px solid #2f374e;
  background-color: #1a2031;
  cursor: pointer;
  width: 110px;
  height: 86px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  text-decoration: none;
  color: #5e626e;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
}
#funds-modal .method_btns__l1_buttons > a:first-of-type { border-top: 1px solid #2f374e; }
#funds-modal .method_btns__l1_buttons > a .icon { fill: #5e626e; margin-bottom: 6px; margin-top: 7px; font-size: 1.8rem; }
#funds-modal .method_btns__l1_buttons > a .icon.icon-card   { width: 1.3971962617em; }
#funds-modal .method_btns__l1_buttons > a .icon.icon-wallet { width: 1.0940594059em; }
#funds-modal .method_btns__l1_buttons > a .icon.icon-crypto { width: 1.1096491228em; }
#funds-modal .method_btns__l1_buttons > a .icon.icon-knife  { width: 1.6331658291em; }
#funds-modal .method_btns__l1_buttons > a .border {
  position: absolute;
  top: -1px;
  left: 0;
  height: calc(100% + 2px);
  width: 3px;
  background-color: #ff9739;
  display: none;
}
#funds-modal .method_btns__l1_buttons > a div.icons-holder { justify-content: center; text-align: center; vertical-align: middle; }
#funds-modal .method_btns__l1_buttons > a div.icons-holder p { margin: 0; padding: 0; }
#funds-modal .method_btns__l1_buttons > a:hover { background-color: #2f374e; }
#funds-modal .method_btns__l1_buttons > a.active { background-color: #2f374e; color: #fff; font-weight: 600; }
#funds-modal .method_btns__l1_buttons > a.active .icon { fill: #fff; }
#funds-modal .method_btns__l1_buttons > a.active .border { display: block; }

/* правая часть — шлюзы и форма */
#funds-modal .method_btns__l2_wrapper {
  box-sizing: content-box;  /* итоговые ~722px, как у оригинала */
  background-color: #171c25;
  border: 1px solid #2f374e;
  padding: 30px;
  width: 661.3px;   /* панель обнимает контент, а не тянется на всё окно */
}
#funds-modal .method_btns__text_separator {
  margin-top: 0;
  font-size: 19px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 25px;
}
#funds-modal .method_btns__text_separator.position_top { display: none; }
#funds-modal .method_btns__l2_buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  margin-bottom: 20px;
}
#funds-modal .method_btns__l2_buttons .currencies {
  position: absolute;
  top: -50px;
  right: 0;
  padding: 3px 20px;
  background: #1a2031;
  color: #ff9939;
}
#funds-modal .method_btns__l2_buttons > a {
  border: 1px solid #2f374e;
  background-color: #1a2031;
  height: 110px;
  max-width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  text-decoration: none;
}
#funds-modal .method_btns__l2_buttons > a:hover { background-color: #2f374e; }
#funds-modal .method_btns__l2_buttons > a.active { border-color: #ff9739; }
#funds-modal .method_btns__l2_buttons > a .icons-holder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  width: 100%;
}
#funds-modal .method_btns__l2_buttons > a .icons-holder > img { height: 35px; max-width: 70%; margin: 0 auto; }
#funds-modal .method_btns__extra_desc { margin: 6px 0 8px; }
#funds-modal .method_btns__extra_desc img { vertical-align: bottom; }
/* пустая плитка-заполнитель в конце ряда: не подсвечивается при наведении */
#funds-modal .method_btns__l2_buttons > a.disabled:hover {
  background: #1a2031;
  cursor: default;
}
#funds-modal .method_btns__l2_buttons > a .gateway {
  color: #999;
  position: absolute;
  display: flex;
  bottom: 5px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  padding: 1px;
  justify-content: space-between;
  align-content: center;
  align-items: center;
}
#funds-modal .method_btns__l2_buttons > a .gateway > div { padding: 0 10px; }
#funds-modal .method_btns__l2_buttons > a .gateway > div:first-child { color: #dfdfdf; font-size: 12px; }

#funds-modal .hr { height: 1px; width: 100%; background-color: #2f374e; }

/* форма суммы */
#funds-modal form { margin: 20px 0; color: #fff; font-size: 15px; }
#funds-modal form .form-group {
  display: grid;
  grid-template-columns: .4fr .7fr .9fr;
  grid-template-rows: auto;
  column-gap: 15px;
  row-gap: 15px;
  padding: 0;
  margin-bottom: 30px;
  align-items: center;
}
#funds-modal form input[type=number],
#funds-modal form input[type=text] {
  background-color: #1a2031;
  height: 43px;
  border: none;
  font-size: 17px;
  font-weight: 600;
  color: #5e626e;
  padding: 2px 34px 0 7px;
  text-transform: uppercase;
  width: 100%;
  outline: none;
}
#funds-modal form .input-wrap { position: relative; }
/* без стрелок-спиннеров у числового поля */
#funds-modal form input[type=number]::-webkit-outer-spin-button,
#funds-modal form input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#funds-modal form input[type=number] { -moz-appearance: textfield; appearance: textfield; }
#funds-modal form .input-wrap > span {
  display: block;
  font-size: 22px;
  color: #5e626e;
  position: absolute;
  right: 12px;
  top: 8px;
}
/* буквенные коды валют (USDT, TRX...) — мельче, чем одиночный знак */
#funds-modal form .input-wrap > span.acronym {
  font-size: 14px;
  right: 9px;
  top: 14px;
}
#funds-modal form .icon-percent { font-size: 1.4rem; vertical-align: middle; fill: #5e626e; }
#funds-modal form .input-wrap .input-wrap-error {
  position: absolute;
  color: #ed4141;
  font-size: 12px;
  bottom: -16px;
}
#funds-modal form .item-label { font-weight: 400; }
#funds-modal form .label-hint { font-size: 13px; margin: 3px 0 0 0; }
#funds-modal form .label-hint.small { font-size: 12px; font-weight: 100; color: #5e626e; }
#funds-modal form .label-hint.small strong { font-weight: 700; }
#funds-modal form .item-description.empty { display: none; }
#funds-modal form .item-description { grid-column: span 3; }
#funds-modal form .item-description span.tooltip {
  position: relative;
  border-bottom: 1px dashed #969696;
  cursor: help;
}
/* всплывающий список стран-исключений: плавно появляется и исчезает */
#funds-modal form .item-description span.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: -40px;
  width: 340px;
  background: #26262e;
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  z-index: 20;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
#funds-modal form .item-description span.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#funds-modal form .item-hint { font-size: 12px; color: #969696; }
#funds-modal form .item-coins { font-size: 14px; color: #fff; }
#funds-modal form .item-coins span { color: #ff9739; font-weight: 600; }
#funds-modal form .item-coins .amount-prediction { color: #fff; }
#funds-modal form .item-coins .bcn-prediction { color: #979eb0; margin-top: 4px; font-size: 13px; }
#funds-modal form .item-coins img { vertical-align: middle; margin: 0 3px; width: 16px; }
#funds-modal form button {
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
  background: linear-gradient(to right, #ff9c43, #ff9739);
  border: 0;
  padding: 13px 10px;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
}
#funds-modal form button:disabled { background: linear-gradient(to right, #777, #c0c0c0); }
#funds-modal p.help { margin: 0; padding: 0; color: #969696; font-size: 12px; text-align: center; white-space: nowrap; }
#funds-modal p.help a { color: #b0681e; text-decoration: none; }

/* ===== Модальное окно ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 13, 18, .8);
}
.modal-overlay.open { display: flex; }

.modal-window {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  background: #1c222c;
  border: 1px solid #2a3340;
  border-radius: 12px;
  animation: modal-in .25s ease;
}
@keyframes modal-in {
  from { transform: translateY(-14px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: #929292;
  font-size: 16px;
  cursor: pointer;
}
.modal-close:hover { color: #fff; }

.modal-head {
  padding: 20px;
  font-size: 18px;
  border-bottom: 1px solid #1d232e;
  color: #fff;
}
.modal-head p { margin: 0; display: flex; align-items: center; }
.modal-head p svg.icon { margin-right: 7px; font-size: 1.5rem; fill: #e19248; }

.modal-body { padding: 25px 30px; color: #8d8d8d; }
.modal-body h3 { font-size: 16px; font-weight: 300; margin: 0 0 18px; }

/* ===== Модалка «Осторожно, мошенники!» (rogue-alert) — 1:1 с оригиналом ===== */
/* по вертикали по центру экрана; если контент выше экрана — прокрутка */
#rogue-alert.modal-overlay { align-items: center; justify-content: center; overflow-y: auto; }
#rogue-alert.modal-overlay.open { animation: hyst-shadow-in .15s ease; }
#rogue-alert .hystmodal__window {
  position: relative;
  width: calc(100% - 30px);
  max-width: 600px;            /* .__600 */
  margin: 50px auto;
  background: #171c25;
  animation: hyst-window-in .2s ease;
}
#rogue-alert .__alert { background: #511618; color: #cacaca; }
#rogue-alert .__alert .modal-head { padding: 15px; }
#rogue-alert .modal-head p { margin: 0; padding: 0; display: flex; align-items: center; }
#rogue-alert .__alert .modal-body { font-size: 14px; padding: 25px 30px 5px; color: #cacaca; }

/* у сайта нет глобального reset margin, поэтому восстанавливаем «воздух» как в оригинале */
#rogue-alert .modal-body p { margin: 1em 0; }
#rogue-alert .modal-body > p { font-size: 14px; font-weight: 600; text-align: center; }
#rogue-alert .modal-body h4 { margin: 1.33em 0; color: #fff; font-size: 14px; }
/* в оригинале класс text-center не описан → h4 остаётся выровненным по левому краю */
#rogue-alert .modal-body ul { margin: 1em 0; padding-left: 40px; }
#rogue-alert .modal-body ul li { font-size: 14px; }

/* тумблер «больше не показывать» — кастомный чекбокс-переключатель */
#rogue-alert p.inputs label { display: flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 11px; }
#rogue-alert p.inputs input[type=checkbox] {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  cursor: pointer;
  min-width: 39px; width: 39px; height: 23px;
  border-radius: 11.5px;
  display: inline-block; position: relative;
  border: 2px solid #474755;
  background: linear-gradient(180deg, #2D2F39 0%, #1F2027 100%);
  transition: all .2s ease;
  margin-right: 5px;
}
#rogue-alert p.inputs input[type=checkbox]:after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(44, 44, 44, .2);
  transition: all .2s cubic-bezier(0.5, 0.1, 0.75, 1.35);
}
#rogue-alert p.inputs input[type=checkbox]:checked { border-color: #a68709; }
#rogue-alert p.inputs input[type=checkbox]:checked:after { transform: translateX(16px); }

#rogue-alert p.inputs button {
  font-size: 14px;
  display: block;
  text-transform: uppercase;
  margin: 0 auto;
  width: 185px;
  height: 35px;
  cursor: pointer;
  background: #3d1012;
  color: #fff;
  border: 1px solid #fff;
  transition: background-color .3s ease;
}
#rogue-alert p.inputs button:hover { background: #2c0c0e; }

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  margin-bottom: 12px;
  cursor: pointer;
  text-align: left;
}
.check-row input { margin-top: 3px; accent-color: var(--orange); }

.btn-center { text-align: center; margin-top: 22px; }
/* кнопка Steam-входа: тёмная с градиентной рамкой, при наведении заливается */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #261214, #181412);
  border: 2px solid;
  border-image-source: linear-gradient(90deg, #e6964c 0%, #bb281e 100%);
  border-image-slice: 1;
  color: #fff;
  text-transform: uppercase;
  font-size: .9em;
  padding: 11px 14px;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover:not(.disabled) { background: linear-gradient(90deg, #e6964c, #bb281e); }
.btn.disabled {
  color: #6f6f6f;
  cursor: not-allowed;
  filter: grayscale(100%);
  pointer-events: none;
}

/* ===== Мобильное меню (бургер) ===== */
.button-menu { display: none; position: fixed; top: 0; right: 0; padding: 18px 15px 0 0; z-index: 102; }
.menu-toggle {
  position: relative;
  display: block;
  width: 22px;
  height: 19px;
  background: transparent;
  border: none;
  border-top: 3px solid;
  border-bottom: 3px solid;
  color: #e13811;
  font-size: 0;
  cursor: pointer;
  outline: none;
  transition: all .25s ease-in-out;
}
.menu-toggle::before, .menu-toggle::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .25s ease-in-out;
}
.menu-toggle.is-active { border-color: transparent; }
.menu-toggle.is-active::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle.is-active::after { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  display: none;
  overflow: auto;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 54px;
  left: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, .96);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu .mobile-content li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  color: #d2d2d2;
  font-size: 15px;
  text-transform: uppercase;
}
.mobile-menu .mobile-content li > a img { height: 26px; margin-right: 10px; }
.mobile-menu .auth-info {
  padding: 12px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid hsla(0, 0%, 100%, .1);
}
.mobile-menu .auth-info .credentials-info {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px;
}
.mobile-menu .auth-info .credentials-info span { color: var(--orange); }
.mobile-menu .auth-info svg.icon-wallet { fill: var(--orange); font-size: 1.8rem; width: 1.05em; }
.mobile-menu .socials { display: flex; justify-content: center; gap: 22px; padding: 18px 0; }
.mobile-menu .socials svg { font-size: 1.4rem; fill: var(--orange); }

/* ===== Адаптив ===== */
@media (max-width: 1280px) {
  .promo-container { gap: 14px; }
  header .bg-wrap nav > a { padding: 0 12px; }
}
@media (max-width: 1100px) {
  header nav .social-icons { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 54px; }
  html, body { overflow-x: hidden; }
  .aside-content { display: none; }
  .main-content { padding-left: 0; }
  header .logo { position: static; height: 54px; background-size: cover; }
  header .logo a { margin-top: 4px; }
  header .logo a img { width: 70%; margin: 2px auto; }
  header .logo .title { display: none; }
  header .bg-wrap { margin-left: 0; }
  header .bg-wrap nav, #auth-block { display: none; }
  .button-menu { display: block; }
  .promo-wrapper { height: auto; }
  .promo-container { flex-direction: column; gap: 16px; padding: 14px 0; }
  #caseList > a.case-card { width: 196px; }
  .case-card .case-image { height: 150px; }
  .case-card .case-image img.back-image,
  .case-card .case-image img.image { width: 170px; }
  /* мобильное позиционирование .theme-overlay — в /css/themes/<тема>.css */
  #footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  #footer .footer__links { flex-wrap: wrap; }
  #footer .footer__links > div { width: auto; margin-bottom: 9px; }
  #footer .right .logo-wrapper img { width: 150px; }
}

/* убрать нативные стрелки-спиннеры у числовых полей (сумма, диапазон цен) */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* блок «У Вас есть: N BCN» над бонусным кейсом */
.container.caseBox #case-box-app .bcn-amount {
  display: flex; justify-content: center; align-items: center;
  font-size: 13px; position: relative; z-index: 1; color: #9c9c9c;
  text-align: center; text-transform: uppercase; white-space: nowrap;
  margin: 6px 0 5px;
}
.container.caseBox #case-box-app .bcn-amount > span:nth-child(2) { margin: 0 4px; color: #d3863c; font-weight: 600; }
.container.caseBox #case-box-app .bcn-amount > img.icon-bcn { width: 1rem; height: 1rem; }
/* крупная BCN-монета в блоке «нужно пополнить» */
.container.caseBox #case-box-app .error-holder img.bcn-big { width: 2.6rem; height: 2.6rem; }
