/* Split from headernew.css: mobile header / mobile megamenu / mobile hub */

/* 8) Mobile header & modals (как было, кратко) */

.header-mobile{
  display: none;
}

.mobile-nav{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1100;
  width: auto;
  height: 50vh;
  max-height: 50vh;
  min-height: 270px;
  background: rgba(35,39,59,.97);
  border-radius: 0 0 26px 26px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .33s cubic-bezier(.33,1.34,.42,1), opacity .27s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav.open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-content{
  padding: 24px 7vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: auto;
}
/* МОБИЛЬНАЯ */

/* ---------- 0. Общие утилиты ---------- */

.body-locked{
  overflow: hidden !important;
}

.icon-24{
  width: 24px;
  height: 24px;
  display: block;
}

/* Кнопка-иконка (бургер, back, close) */

.icon-btn,
.games-megamenu-close.mobile{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #1b1b1b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #232323;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}

.icon-btn:hover,
.games-megamenu-close.mobile:hover{
  opacity: .9;
}

.icon-btn:active,
.games-megamenu-close.mobile:active{
  transform: translateY(1px);
}

/* ---------- 1. Compact header (≤900) ---------- */

.header-desktop{
  display: flex;
}

.header-compact{
  display: none;
  position: sticky;
  top: 0;
  z-index: 1100;
  height: 56px;
  background: #111;
  border-bottom: 1px solid #202020;
  padding-inline: 14px;
  align-items: center;
  justify-content: space-between;
}

.header-compact .logo{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* burger icon */

.icon-burger, .icon-burger::before, .icon-burger::after{
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.icon-burger{
  position: relative;
}

.icon-burger::before{
  position: absolute;
  top: -6px;
  left: 0;
}

.icon-burger::after{
  position: absolute;
  top: 6px;
  left: 0;
}

@media (max-width:900px){
  .header-desktop{
    display: none !important;
  }

  .header-compact{
    display: flex !important;
  }
}

@media (max-width:600px){
  .header-compact{
    height: 54px;
  }
}

/* ---------- 2. Mobile Mega (общие) ---------- */

/* контейнер мегаменю */

#gamesMegaMenuMobileDropdown{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0f0f0f;
  color: #fff;
  overflow: hidden;
}

#gamesMegaMenuMobileDropdown.open{
  display: block;
}

/* шапка мегаменю */

.games-megamenu-mobile-header{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f0f0f;
  padding: 16px 16px 8px;
  border-bottom: 1px solid #222;
}

.mm-head-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 16px;
  color: #fff;
}

.mm-section-title{
  margin: 8px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #8e95a3;
  text-transform: uppercase;
}

/* мини-поиск */

.mm-search{
  padding: 10px 0 12px;
}

.search-form.mini{
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 14px;
  background: #1a1a1a;
  border: 1px solid #262626;
  padding-left: 40px;
}

.search-form.mini::before{
  content: "";
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  opacity: .8;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") center/contain no-repeat;
}

.search-form.mini input{
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
  font-size: 16px;
  padding-right: 44px;
}

.search-form.mini .search-btn{
  position: absolute;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #222;
  border-radius: 10px;
  color: #fff;
}

.search-form.mini .search-enter-btn{
  display: none !important;
}

/* скрываем «Enter» из setupSearchForm */

/* тело мегаменю (колонки живут здесь) */

.mm-body{
  padding: 16px;
  background: transparent !important;
}

/* ---------- 3. Игры (левая колонка) ---------- */

.games-megamenu-mobile-list{
  padding: 16px;
  overflow-y: auto;
}

.games-megamenu-mobile-game{
  list-style: none;
}

.games-megamenu-mobile-game + .games-megamenu-mobile-game{
  margin-top: 10px;
}

.games-megamenu-mobile-game .games-megamenu-mobile-game-link{
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: #141414;
  border: 1px solid #1e1e1e;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.games-megamenu-mobile-game .games-megamenu-mobile-game-link:active{
  transform: scale(.98);
}

.games-megamenu-mobile-game .title{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
}

.games-megamenu-mobile-game .nav-svg{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.games-megamenu-mobile-game .nav-svg svg,
.games-megamenu-mobile-game .nav-svg img,
.games-megamenu-mobile-game .nav-svg .nav-svg-img{
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

/* активная игра — фиолетовый pill */

.games-megamenu-mobile-game.is-active .games-megamenu-mobile-game-link{
  background: linear-gradient(90deg, #6a33ff 0%, #8a2be2 100%);
  border-color: transparent;
}

@media (hover:hover){
  .games-megamenu-mobile-game .games-megamenu-mobile-game-link:hover{
    border-color: #343434;
    background: #171717;
  }
}

/* ---------- 4. Категории (правая колонка) ---------- */

.games-megamenu-side{
  background: #0f0f0f;
}

.games-megamenu-side .side-head{
  padding-top: 6px;
}

#gmSideTitle{
  margin: 4px 0 0px 0px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .9;
  color: #fff;
}

.games-megamenu-side .side-body{
  padding: 0 0 8px 0;
}

.games-megamenu-side .side-body .mm-cat{
  padding: 10px 0 14px;
  border-bottom: 1px solid #1f1f1f;
}

.games-megamenu-side .side-body .mm-cat .mm-cat-heading{
  margin: 0 0 8px;
  padding-left: 2px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.games-megamenu-side .side-body .mm-sub{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px 24px;
  padding-right: 8px;
}

.games-megamenu-side .side-body a{
  color: #cfd5df;
  text-decoration: none;
  font-weight: 600;
  opacity: .9;
}

.games-megamenu-side .side-body a:hover{
  opacity: 1;
  color: #fff;
  text-decoration: underline;
}

/* ---------- 5. Модалка категорий (≤600) ---------- */

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

.mm-cats-modal{
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #0f0f0f;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.mm-cats-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  border-bottom: 1px solid #222;
  background: #0f0f0f;
}

.mm-cats-title{
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  font-size: 18px;
  flex: 1;
}

.mm-cats-search{
  position: sticky;
  top: 56px;
  z-index: 1;
  background: #0f0f0f;
  padding: 10px 12px;
  border-bottom: 1px solid #222;
}

/* Контент: категории — сетка с разделителями и явной иерархией */

.mm-cats-body{
  position: absolute;
  inset: 112px 0 0 0;
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

@media (max-width:480px){
  .mm-cats-body{
    grid-template-columns: 1fr;
  }
}

@media (max-width:480px){
  .mm-cats-body .mm-sub{
    grid-template-columns: 1fr;
  }
}

.mm-cats-body a{
  color: #cfd5df;
  text-decoration: none;
  font-weight: 600;
}

.mm-cats-body a:hover{
  color: #fff;
  text-decoration: underline;
}

.mm-cats-body a:active{
  transform: scale(.98);
}

/* =========================================================
   РЕЖИМЫ
   ========================================================= */

/* ≤600 — одна колонка (только игры) */

@media (max-width:600px){
  .mm-body{
    padding: 16px;
  }

  #gamesMegaMenuMobileList{
    overflow-y: auto;
    max-height: calc(100vh - 122px);
  }

  /* 56 head + ~66 search */

  #gamesMegaMenuSide{
    display: none !important;
  }
}

/* 601–900 — две независимые колонки со своим скроллом */

@media (min-width:601px) and (max-width:900px){
  .mm-body{
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    padding: 16px 0 16px 16px;
    height: calc(100vh - 80px);
  }

  #gamesMegaMenuMobileList{
    grid-column: 1;
    grid-row: 1;
    padding-right: 8px;
    border-right: 1px solid #181818;
    overflow-y: auto;
    height: 100%;
  }

  #gamesMegaMenuSide{
    grid-column: 2;
    grid-row: 1;
    padding: 0 16px 0 8px;
    border-left: 1px solid #232323;
    border-radius: 0 14px 14px 0;
    overflow-y: auto;
    height: 100%;
  }

  .games-megamenu-side .side-head{
    position: sticky;
    top: 0;
    z-index: 1;
    background: #0f0f0f;
    padding: 10px 0 8px;
  }
}

/* ===========================
   Mobile Hub — base
   =========================== */

.mobile-hub[hidden]{
  display: none !important;
}

.mobile-hub{
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.55);
  height: 100dvh;
}

.mobile-hub__sheet{
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #141414;
  color: #fff;
}

.mobile-hub.open > .mobile-hub__sheet{
  transform: translateY(0);
}

/* Закрыть (верхняя правая кнопка) */

.mobile-hub__top-row{
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 16px 8px;
}

.mobile-hub__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1b1b1b;
  color: #fff;
  border: 1px solid #232323;
  cursor: pointer;
  transition: transform .12s ease,opacity .12s ease;
}

/* ===========================
   Tokens (radius/gaps)
   =========================== */

:root{
  --hub-radius: 18px;
  --hub-gap-v: 12px;
}

/* ===========================
   Cards / panels
   =========================== */

.hub-panel{
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  border-radius: var(--hub-radius);
  padding: 16px 18px;
  margin: var(--hub-gap-v) 18px;
  box-sizing: border-box;
}

.hub-panel--row{
  padding: 0 18px;
  margin: var(--hub-gap-v) 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Единая «строка-бокс» (Currency / Cart) */

.hub-row{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 58px;
  padding: 16px 18px;
  width: 100%;
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  border-radius: var(--hub-radius);
  margin: var(--hub-gap-v) 0;
  box-sizing: border-box;
}

/* ===========================
   Profile card
   =========================== */

.hub-profile__row{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hub-profile__name{
  font-size: 22px;
  font-weight: 800;
}

.hub-profile__balance{
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-profile__badge{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 0% 0%,#541cff 0%,#8d30ff 60%,#281aff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hub-profile__badge svg{
  width: 22px;
  height: 22px;
  display: block;
}

.hub-profile__label{
  font-size: 13px;
  color: #cfd1da;
}

.hub-profile__amount{
  font-size: 20px;
  font-weight: 900;
}

.hub-sep{
  height: 1px;
  border: 0;
  background: #2d2d2d;
  margin: 14px 0;
}

/* ===========================
   Lists
   =========================== */

.hub-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hub-item{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.hub-ico{
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

.hub-badge{
  display: none !important;
}

/* badge для My Orders скрыт */

/* ===========================
   Currency dropdown (full-width under row)
   =========================== */

.hub-row.currency-dropdown{
  position: relative;
}

.hub-row.currency-dropdown .currency-toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.hub-row.currency-dropdown .cur-left{
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-row.currency-dropdown .cur-symbol{
  font-size: 28px;
}

.hub-row.currency-dropdown .cur-label{
  font-size: 18px;
  font-weight: 600;
}

.hub-row.currency-dropdown .caret{
  width: 18px;
  height: 18px;
  margin-left: 12px;
}

.hub-row.currency-dropdown .currency-menu{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  width: 100%;
  min-width: 100%;
  background: #222;
  border: 1px solid #2d2d2d;
  border-radius: var(--hub-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  padding: 16px 18px 12px;
  display: none;
  z-index: 9999;
  box-sizing: border-box;
}

.hub-row.currency-dropdown .currency-menu .menu-item{
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.hub-row.currency-dropdown .currency-menu .menu-item:hover{
  background: #26293a;
}

.hub-row.currency-dropdown .currency-menu .menu-item.is-active{
  background: #2e3247;
  outline: 1px solid #3a3e57;
}

/* ===========================
   Cart row
   =========================== */

.hub-row--cart .cart-btn{
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.hub-row--cart .cart-icon img.icon{
  width: 24px;
  height: 24px;
}

.hub-row--cart .cart-label{
  font-size: 18px;
  font-weight: 600;
  margin-left: 2px;
  color: #fff;
}

.hub-row--cart .cart-badge{
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff0000;
  border: 3px solid #1f1f1f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   CTA fixed bottom
   =========================== */

.hub-cta-wrap{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10003;
  background: #141414;
  padding: 18px 18px 24px;
}

.hub-cta, .hub-cta--ghost{
  width: 100%;
  height: 56px;
  border-radius: 18px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 20px;
  margin: 0;
  color: #fff;
}

.hub-cta{
  background: linear-gradient(90deg,#2563EB 0%,#720FFE 56%,#7709FF 100%);
}

.hub-cta--ghost{
  background: #252525;
  border: 1px solid #343434;
}

.hub-list li{
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-ico img{
  width: 24px;
  height: 24px;
  display: block;
  filter: none !important;
}

.hub-item-link{
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* === Quick links (right) ============================================== */

/* === Mobile hub – Explore section ===================================== */

.mobile-hub .hub-list a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  border: 1px solid #2a2a2a;
  margin-bottom: 8px;
}

.mobile-hub .hub-list a:hover{
  background: #262626;
}

.mobile-hub .hub-list a img{
  width: 18px;
  height: 18px;
}

/* === Mobile Hub: Explore ========================== */

/* === Right header cluster: equal spacing & unified icon sizes === */

.header-right{
  display: flex;
  align-items: center;
  gap: 16px;
}

/* компактная иконка-кнопка (логин) в общем стиле */

.icon-btn--action{
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
}

.icon-btn--action:hover{
  background: #1f1f1f;
  border-color: #2a2a2a;
}

/* нормализуем размеры всех SVG/PNG в правом блоке */

.header-right .dropdown-toggle .icon,
.header-right .cart-btn .icon,
.header-right .icon-btn--action .icon-24{
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: inline-block;
}

/* Cart: мелкие правки бейджа, чтобы на 24px иконке сидел красиво */

.header-right .cart-btn{
  gap: 8px;
  padding: 0;
}

.header-right .cart-btn .cart-badge{
  top: -6px;
  right: -8px;
}

/* === Mobile Hub — отступы блока EXPLORE такие же, как у остальных === */

.mobile-hub .hub-section{
  margin: 14px 0;
}

.mobile-hub .hub-title{
  margin: 0 16px 10px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  color: #b7b7b7;
}

.mobile-hub .hub-list--cards{
  margin: 0 16px;
}

/* ← горизонтальные отступы */

.mobile-hub .hub-list--cards .hub-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  border: 1px solid #2a2a2a;
  margin-bottom: 8px;
}

.mobile-hub .hub-list--cards .hub-link:hover{
  background: #262626;
}

.mobile-hub .hub-ico-img{
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* разделитель внутри mobile-hub */

.mobile-hub .menu-sep{
  border: 0;
  height: 1px;
  background: #2e2e2e;
  margin: 6px 8px;
}

/* Quick-links dropdown — хвостик и выравнивание по правому краю */

.header-right .quick-links-dropdown .dropdown-menu{
  right: 0;
  left: auto;
}

.header-right .quick-links-dropdown .dropdown-menu::before{
  right: 16px;
  left: auto;
}

.dropdown-menu .menu-sep{
  border: 0;
  height: 1px;
  background: #2e2e2e;
  margin: 6px 8px;
}

.dropdown-menu a img{
  width: 18px;
  height: 18px;
  margin-right: 8px;
  object-fit: contain;
}

/* каркас шита: колонкой, контент прокручивается, футер внизу */

.mobile-hub .mobile-hub__sheet{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-hub .mobile-hub__content{
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.mobile-hub .mobile-hub__footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #0e0e0e 42%);
  backdrop-filter: blur(2px);
  z-index: 2;
}

/* сама кнопка */

.mobile-hub .mobile-hub__cta{
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  background: linear-gradient(90deg,#2563EB 0%, #720FFE 56%, #7709FF 100%);
}

.mobile-hub .mobile-hub__cta:hover{
  filter: brightness(1.04);
}

/* === Right cluster unified hover — filled outer pill =================== */

/* Размеры/отступы не трогаем. Фон и рамка рисуются вне коробки кнопки. */

.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
){
  position: relative;
  z-index: 0;
  border-radius: 12px;
  transition: color .16s ease;
}

/* цвет иконки/текста */

.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):hover,
.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):focus-visible{
  color: #fff !important;
}

/* заливка «пилюли» снаружи (зазор) */

.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):hover::before,
.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):focus-visible::before{
  content: "";
  position: absolute;
  inset: -4px;
  background: #1f1f1f;
  border-radius: 14px;
  pointer-events: none;
  z-index: -1;
}

/* обводка вокруг этой же внешней формы */

.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):hover::after,
.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):focus-visible::after{
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  pointer-events: none;
}

/* иконки — одного размера, без влияния на отступы контейнеров */

.header-right img.icon,
.header-right .icon-24,
.header-right .cart-btn .icon{
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: inline-block;
}

/* === Hide visual scrollbar while modal is open, but keep the gutter === */

html.modal-open{
  scrollbar-gutter: stable;
  scrollbar-color: transparent transparent;
}

/* WebKit: оставляем ширину, но делаем трек и бегунок прозрачными */

html.modal-open::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}

html.modal-open::-webkit-scrollbar-track{
  background: transparent !important;
}

html.modal-open::-webkit-scrollbar-thumb{
  background: transparent !important;
  border-color: transparent !important;
}

/* разделитель между категориями и отступы */

.mm-cats-body .mm-cat{
  padding: 12px 12px 16px;
  border-bottom: 1px solid #202020;
  background: transparent;
}

/* Заголовки категорий — чуть крупнее и белые */

.mm-cats-body .mm-cat .mm-cat-title{
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.mm-cats-body .mm-cat .mm-cat-title a{
  color: inherit;
  text-decoration: none;
}

/* Сабкатегории — чуть мелче и серые, чтобы визуально отличались */

.mm-cats-body .mm-sub{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 18px;
}

@media (max-width:480px){
  .mm-cats-body{
    grid-template-columns: 1fr;
  }

  .mm-cats-body .mm-sub{
    grid-template-columns: 1fr;
  }
}

.mm-cats-body .mm-sub .mm-sub-link{
  color: #9ea6b3;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  display: inline-block;
}

/* Модалка категорий (≤600): секция с кнопкой All offers */

.mm-cats-modal .mm-all-offers-btn{
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 10px 0 12px;
  padding: 10px 14px;
  box-sizing: border-box;
  border-radius: 14px;
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mm-cats-modal .mm-all-offers-btn:hover{
  background: #232323;
}

.mm-cats-modal .mm-all-offers-btn:active{
  transform: translateY(1px);
}

.mm-cats-modal .mm-all-offers-btn:focus-visible{
  outline: 2px solid #5057ff;
  outline-offset: 2px;
}

/* На случай старой обёртки внутри модалки — убираем её визуал, чтобы не было "двойной" таблетки */

.mm-cats-modal .megamenu-all-btn{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: contents;
}


/* =========================================================
   Safe redo: compact header right actions + fullscreen search
   ========================================================= */

.header-compact{
  gap: 12px;
}

.header-compact .logo.center{
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

.header-compact-right{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.compact-action-btn{
  background: transparent;
  border-color: transparent;
}

.compact-action-btn:hover{
  background: #1f1f1f;
  border-color: #2a2a2a;
}

.mobile-header-cart{
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff !important;
  text-decoration: none;
}

.mobile-header-cart:hover{
  background: #1f1f1f;
}

.mobile-header-cart .cart-icon{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-header-cart .icon{
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.mobile-header-cart .cart-badge{
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  border: 2px solid #111;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
}

/* keep catalog purely catalog on mobile */
.games-megamenu-mobile-header .mm-search,
.mm-cats-search{
  display: none !important;
}

@media (max-width:600px){
  #gamesMegaMenuMobileList{
    max-height: calc(100vh - 84px);
  }
}

.mobile-search-overlay[hidden]{
  display: none !important;
}

.mobile-search-overlay{
  position: fixed;
  inset: 0;
  z-index: 10004;
  background: #0f1118;
  color: #fff;
}

.mobile-search-overlay__head{
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 10px;
  align-items: center;
  padding: 12px 12px 10px;
  background: #161926;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.mobile-search-overlay__close{
  background: #1b1b1b;
}

.mobile-top-search{
  height: 48px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: #202433;
  border: 1px solid rgba(255,255,255,.08);
  padding: 0 44px 0 14px;
}

.mobile-top-search input{
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 17px;
}

.mobile-top-search input::placeholder{
  color: #a7adbf;
}

.mobile-top-search .search-btn{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mobile-search-overlay__body{
  min-height: calc(100dvh - 70px);
  padding: 0 12px 12px;
}

.mobile-search-overlay__hint{
  padding: 14px 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #9fa3b4;
}

.mobile-search-overlay .search-form{
  position: relative;
}

.mobile-search-overlay .search-form .search-suggest{
  position: static;
  margin-top: 12px;
  display: none;
  padding: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.mobile-search-overlay .search-form .search-suggest[style*="display: block"],
.mobile-search-overlay .search-form .search-suggest[style*="display:block"]{
  display: block !important;
}

.mobile-search-overlay .search-form .search-suggest-list{
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}

.mobile-search-overlay .search-suggest-group{
  margin: 10px 6px 4px;
  padding: 0 8px 6px;
  border-top: 0;
}

.mobile-search-overlay .search-suggest-item{
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  margin-bottom: 8px;
}

.mobile-search-overlay .search-suggest-item.is-active,
.mobile-search-overlay .search-suggest-item:hover{
  background: rgba(255,255,255,.08);
}

.mobile-search-overlay .search-suggest-main{
  font-size: 15px;
}

.mobile-search-overlay .search-suggest-sub,
.mobile-search-overlay .search-suggest-price-label,
.mobile-search-overlay .search-suggest-price-old{
  font-size: 12px;
}

@media (max-width:380px){
  .header-compact{
    padding-inline: 10px;
  }

  .header-compact-right{
    gap: 2px;
  }

  .compact-action-btn,
  .mobile-header-cart,
  .icon-btn{
    width: 38px;
    height: 38px;
  }
}


/* =========================================================
   Mobile polish pass
   ========================================================= */
@media (max-width: 900px){
  .header-compact{
    height: 62px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(11,13,20,.97) 0%, rgba(14,16,25,.94) 100%);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.32);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
  }

  .header-compact .logo.center{
    justify-content: center;
  }

  .header-compact .logo-svg{
    width: 126px;
    height: 34px;
  }

  .header-compact-right{
    gap: 8px;
  }

  .icon-btn,
  .compact-action-btn,
  .mobile-header-cart{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.22);
  }

  .icon-btn:hover,
  .compact-action-btn:hover,
  .mobile-header-cart:hover{
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.14);
    transform: translateY(-1px);
  }

  .icon-btn:active,
  .compact-action-btn:active,
  .mobile-header-cart:active{
    transform: translateY(0);
  }

  .icon-burger, .icon-burger::before, .icon-burger::after{
    width: 18px;
    height: 2px;
    background: #f2f5ff;
  }

  .mobile-header-cart .cart-badge{
    top: -5px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border: 2px solid #10131d;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
  }

  .games-megamenu-mobile-header,
  .mm-cats-head{
    padding: 14px 14px 10px;
    background: linear-gradient(180deg, rgba(12,14,22,.98) 0%, rgba(12,14,22,.92) 100%);
    border-bottom: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mm-head-row,
  .mm-cats-head{
    min-height: 42px;
  }

  .mm-head-row > span,
  .mm-cats-title{
    flex: 1 1 auto;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: none;
    color: #f5f7ff;
  }

  .games-megamenu-close.mobile,
  .mm-cats-head .icon-btn{
    margin-left: auto;
    flex: 0 0 auto;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
  }

  #gamesMegaMenuMobileDropdown,
  .mm-cats-modal{
    background: radial-gradient(1200px 480px at 50% -12%, rgba(119,9,255,.16), transparent 40%), #0b0d14;
  }

  .games-megamenu-mobile-list,
  .mm-cats-body{
    padding: 14px;
  }

  .games-megamenu-mobile-game + .games-megamenu-mobile-game{
    margin-top: 12px;
  }

  .games-megamenu-mobile-game .games-megamenu-mobile-game-link{
    min-height: 60px;
    height: auto;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 10px 26px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
  }

  .games-megamenu-mobile-game .title{
    font-size: 17px;
    line-height: 1.3;
  }

  .games-megamenu-mobile-game.is-active .games-megamenu-mobile-game-link{
    background: linear-gradient(90deg, rgba(37,99,235,.88) 0%, rgba(114,15,254,.92) 100%);
    box-shadow: 0 14px 32px rgba(88,31,255,.28);
  }

  .games-megamenu-side .side-body .mm-cat{
    padding: 14px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .games-megamenu-side .side-body .mm-cat .mm-cat-heading{
    font-size: 18px;
    margin-bottom: 10px;
  }

  .games-megamenu-side .side-body a{
    color: #d7def3;
  }

  .mobile-search-overlay{
    background: radial-gradient(1000px 420px at 50% -12%, rgba(119,9,255,.18), transparent 38%), #0b0e16;
  }

  .mobile-search-overlay__head{
    padding: 12px;
    background: linear-gradient(180deg, rgba(13,16,24,.98) 0%, rgba(13,16,24,.92) 100%);
    border-bottom: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-top-search{
    height: 50px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  }

  .mobile-top-search .search-btn,
  .mobile-search-overlay__close{
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
  }

  .mobile-search-overlay .search-suggest-item{
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }

  .mobile-search-overlay .search-suggest-item.is-active,
  .mobile-search-overlay .search-suggest-item:hover{
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.12);
  }

  .mobile-hub{
    align-items: flex-end;
    background: rgba(4,6,12,.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-hub__sheet{
    position: relative;
    height: min(100dvh, 100%);
    background: radial-gradient(900px 360px at 50% -8%, rgba(119,9,255,.18), transparent 38%), linear-gradient(180deg, #0c0f17 0%, #10141f 100%);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -20px 44px rgba(0,0,0,.4);
  }

  .mobile-hub__top-row{
    position: sticky;
    top: 0;
    z-index: 3;
    justify-content: space-between;
    padding: 14px 14px 10px;
    background: linear-gradient(180deg, rgba(12,15,23,.98) 0%, rgba(12,15,23,.9) 100%);
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mobile-hub__heading{
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .01em;
    color: #f5f7ff;
  }

  .mobile-hub__close{
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
  }

  .mobile-hub__content{
    padding: 14px;
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }

  .mobile-hub__footer{
    padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(12,15,23,0) 0%, rgba(12,15,23,.92) 38%, rgba(12,15,23,.98) 100%);
  }

  .mobile-hub__cta{
    height: 52px;
    border-radius: 16px;
    font-size: 16px;
    box-shadow: 0 12px 30px rgba(64,38,255,.28);
  }

  .hub-shell{
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .hub-section-card,
  .hub-hero-card{
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
  }

  .hub-section-card--secondary{
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  }

  .hub-section-title{
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9aa3ba;
  }

  .hub-hero-card__head{
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .hub-hero-card__avatar{
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37,99,235,.9), rgba(114,15,254,.95));
    box-shadow: 0 12px 24px rgba(87,40,255,.25);
    flex: 0 0 auto;
  }

  .hub-hero-card__avatar img{
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(1.25);
  }

  .hub-hero-card__meta{
    min-width: 0;
    flex: 1 1 auto;
  }

  .hub-hero-card__eyebrow{
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9aa3ba;
  }

  .hub-hero-card__name{
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    color: #ffffff;
    word-break: break-word;
  }

  .hub-hero-card__sub{
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: #b5bdd0;
  }

  .hub-balance-strip{
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15,22,38,.9), rgba(28,34,52,.88));
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .hub-balance-strip__label{
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8f9ab2;
  }

  .hub-balance-strip__value{
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    color: #ffffff;
  }

  .hub-currency-switch{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
  }

  .hub-currency-btn{
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    color: #eef2ff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  }

  .hub-currency-btn:hover{
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
  }

  .hub-currency-btn.is-active{
    background: linear-gradient(90deg, rgba(37,99,235,.88), rgba(114,15,254,.92));
    border-color: rgba(132,87,255,.55);
    box-shadow: 0 10px 24px rgba(79,46,255,.22);
  }

  .hub-balance-currency-row{
    margin-top: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.03);
    color: #fff;
    text-align: left;
    cursor: pointer;
  }

  .hub-balance-currency-row__left{
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hub-balance-currency-row__icon,
  .hub-link-row__icon{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    flex: 0 0 auto;
  }

  .hub-balance-currency-row__icon img,
  .hub-link-row__icon img{
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
  }

  .hub-balance-currency-row.is-disabled{
    opacity: .72;
    cursor: default;
  }

  .hub-link-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hub-link-row{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    text-decoration: none;
    color: #fff;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
  }

  .hub-link-row:hover{
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.11);
    transform: translateY(-1px);
  }

  .hub-link-row--compact .hub-link-row__sub{
    display: none;
  }

  .hub-link-row__text{
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .hub-link-row__label{
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    color: #f5f7ff;
  }

  .hub-link-row__sub{
    font-size: 12px;
    line-height: 1.35;
    color: #9ea7bd;
  }

  .payment-currency-pill{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
  }
}


/* ===== Polish tune-up: mobile search + categories modal ===== */
.mobile-search-overlay__body{
  padding: 0 12px calc(16px + env(safe-area-inset-bottom));
}

.mobile-search-overlay .search-form .search-suggest.search-suggest--mobile-overlay{
  position: static;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.mobile-search-overlay .search-form .search-suggest.search-suggest--mobile-overlay .search-suggest-list{
  max-height: calc(100dvh - 128px);
  overflow-y: auto;
  padding: 0 0 calc(18px + env(safe-area-inset-bottom));
}

.mobile-search-overlay .search-suggest-group{
  margin: 12px 4px 8px;
  padding: 0 8px;
  color: #8f98b3;
}

.mobile-search-overlay .search-suggest-item{
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.028));
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.mobile-search-overlay .search-suggest-thumb{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: 0 0 52px;
}

.mobile-search-overlay .search-suggest-body{
  min-width: 0;
}

.mobile-search-overlay .search-suggest-main{
  font-size: 16px;
  font-weight: 700;
  line-height: 1.22;
}

.mobile-search-overlay .search-suggest-sub{
  margin-top: 4px;
  font-size: 13px;
  color: #97a0b7;
}

.mobile-search-overlay .search-suggest-right,
.mobile-search-overlay .search-suggest-price-label,
.mobile-search-overlay .search-suggest-price-old,
.mobile-search-overlay .search-suggest-price-current{
  display: none !important;
}

.mm-cats-head{
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(14,18,28,.98) 0%, rgba(14,18,28,.92) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mm-head-icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  color: #f2f5ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.mm-head-icon-btn:hover{
  background: rgba(255,255,255,.07);
}

.mm-cats-title{
  text-transform: none;
  letter-spacing: .02em;
  font-size: 18px;
  font-weight: 800;
  color: #f4f7ff;
}

.mm-cats-modal .mm-all-offers-btn,
#mmAllOffersBtn.megamenu-all-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 8px 0 16px;
  padding: 12px 16px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #eef3ff;
  background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(114,15,254,.26));
  border: 1px solid rgba(119,9,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(40,19,116,.18);
}

.mm-cats-modal .mm-all-offers-btn:hover,
#mmAllOffersBtn.megamenu-all-btn:hover{
  background: linear-gradient(135deg, rgba(37,99,235,.28), rgba(114,15,254,.34));
  border-color: rgba(141,48,255,.5);
}

.mm-cats-modal .mm-all-offers-btn::before,
#mmAllOffersBtn.megamenu-all-btn::before{
  content: '';
  width: 16px;
  height: 16px;
  margin-right: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M3 8h10M8 3l5 5-5 5' stroke='%23EEF3FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  opacity: .96;
}

@media (max-width: 600px){
  .mobile-search-overlay__head{
    padding: 10px 10px 8px;
  }

  .mobile-top-search{
    height: 50px;
    border-radius: 16px;
  }
}


/* ===== V3 tune-up: compact game search + mobile categories ===== */
.games-megamenu-mobile-header .mm-search .search-form.mini{
  background: rgba(255,255,255,.04);
}

.mm-body .mm-side-empty{
  padding: 18px 4px;
  color: #97a0b7;
  font-size: 14px;
}

.mm-cats-body{
  align-content: start;
  grid-auto-rows: max-content;
}

.mm-cats-modal .mm-all-offers-btn,
#mmAllOffersBtn.megamenu-all-btn{
  min-width: 0;
  justify-self: start;
  align-self: start;
  max-width: 100%;
  min-height: 44px;
  margin: 6px 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
}

@media (max-width: 600px){
  .games-megamenu-mobile-game.is-active .games-megamenu-mobile-game-link{
    background: #141414;
    border-color: #1e1e1e;
    color: #fff;
  }

  .mm-cats-body{
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    align-content: start;
    grid-auto-rows: max-content;
  }

  .mm-cats-modal .mm-all-offers-btn{
    justify-self: start;
  }
}


/* =========================================================
   Smart search suggestions — mobile overlay tune-up
   ========================================================= */
.mobile-search-overlay .search-suggest.search-suggest--smart.search-suggest--mobile-overlay{
  position: static;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  max-width: none;
  transform: none;
}

.mobile-search-overlay .search-suggest-smart-list{
  display: block;
  max-height: calc(100dvh - 128px);
  overflow-y: auto;
  padding: 0 0 calc(18px + env(safe-area-inset-bottom));
}

.mobile-search-overlay .search-suggest-section{
  padding: 0;
  margin: 0 0 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mobile-search-overlay .search-suggest-section-title.search-suggest-group{
  margin: 12px 4px 8px;
  padding: 0 8px;
  border: 0;
  color: #8f98b3;
}

.mobile-search-overlay .search-suggest--smart .search-suggest-item{
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.028));
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.mobile-search-overlay .search-suggest--smart .search-suggest-thumb{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: 0 0 52px;
}

.mobile-search-overlay .search-suggest-topline{
  gap: 7px;
}

.mobile-search-overlay .search-suggest--smart .search-suggest-main{
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
}

.mobile-search-overlay .search-suggest-type{
  font-size: 9px;
  padding: 2px 6px;
}

.mobile-search-overlay .search-suggest--smart .search-suggest-sub{
  margin-top: 4px;
  font-size: 13px;
  color: #97a0b7;
}

.mobile-search-overlay .search-suggest--smart .search-suggest-right,
.mobile-search-overlay .search-suggest--smart .search-suggest-price-label,
.mobile-search-overlay .search-suggest--smart .search-suggest-price-old,
.mobile-search-overlay .search-suggest--smart .search-suggest-price-current{
  display: none !important;
}


/* Sales-focused smart search: compact mobile overlay */
.mobile-search-overlay .search-suggest.search-suggest--smart.search-suggest--mobile-overlay.search-suggest--sales{
  margin-top: 8px;
}

.mobile-search-overlay .search-suggest--sales .search-suggest-smart-list{
  display: block;
  max-height: calc(100dvh - 126px);
}

.mobile-search-overlay .search-suggest--sales .search-suggest-section{
  margin: 0 0 12px;
}

.mobile-search-overlay .search-suggest--sales .search-suggest-section--keywords .search-suggest-items,
.mobile-search-overlay .search-suggest--sales .search-suggest-section--recent .search-suggest-items{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-search-overlay .search-suggest--sales .search-suggest-item--keyword,
.mobile-search-overlay .search-suggest--sales .search-suggest-item--recent{
  display: inline-flex;
  width: auto;
  min-height: 0;
  grid-template-columns: none;
  padding: 8px 10px;
  margin: 0;
  border-radius: 12px;
}

.mobile-search-overlay .search-suggest--sales .search-suggest-item--keyword .search-suggest-thumb,
.mobile-search-overlay .search-suggest--sales .search-suggest-item--recent .search-suggest-thumb,
.mobile-search-overlay .search-suggest--sales .search-suggest-item--keyword .search-suggest-sub,
.mobile-search-overlay .search-suggest--sales .search-suggest-item--recent .search-suggest-sub{
  display: none;
}

.mobile-search-overlay .search-suggest--sales .search-suggest-item--keyword .search-suggest-main,
.mobile-search-overlay .search-suggest--sales .search-suggest-item--recent .search-suggest-main{
  font-size: 13px;
  font-weight: 800;
}

.mobile-search-overlay .search-suggest--sales .search-suggest--smart .search-suggest-item,
.mobile-search-overlay .search-suggest--sales .search-suggest-item{
  min-height: 60px;
  margin-bottom: 8px;
}


/* Smart search hotfix 4 — mobile skeleton and sales-only layout */
.mobile-search-overlay .search-suggest--sales .search-suggest-section--categories,
.mobile-search-overlay .search-suggest--sales .search-suggest-section--subcategories{
  display: none !important;
}

.mobile-search-overlay .search-suggest-skeleton{
  min-height: 58px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 16px;
}

.mobile-search-overlay .search-suggest-skeleton .sk-thumb{
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 12px;
}

.mobile-search-overlay .search-suggest-skeleton--keywords .sk-thumb{
  display: none;
}

.mobile-search-overlay .search-suggest--sales.is-results .search-suggest-item--keyword{
  width: 100%;
  min-height: 42px;
}

.mobile-search-overlay .search-suggest--sales.is-results .search-suggest-item--keyword .search-suggest-thumb,
.mobile-search-overlay .search-suggest--sales.is-results .search-suggest-item--keyword .search-suggest-sub{
  display: none;
}

/* ===== Hub promo codes section ===== */
.hub-promo-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-promo-row{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}

.hub-promo-code{
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #e8eaf0;
  letter-spacing: .04em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-promo-disc{
  font-size: 12px;
  color: #22c55e;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.hub-promo-copy{
  flex-shrink: 0;
  min-width: 62px;
  text-align: center;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(114,15,254,.45);
  background: rgba(114,15,254,.1);
  color: var(--brand, #720ffe);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.hub-promo-copy:hover{
  background: rgba(114,15,254,.22);
}
