@import url('https://fonts.cdnfonts.com/css/gilroy');

/* ===== 1. ПЕРЕОПРЕДЕЛЕНИЕ ПЕРЕМЕННЫХ ===== */
:root {
  --main-bg-color:        #0d0909;
  --main-white-color:     #1a1212;
  --main-white-gray-color:#150f0f;
  --header-background:    #0d0909;
  --bg-muted:             #221818;
  --panel-bg:             #1a1212;
  --panel-bg-2:           #241818;
  --muted-3:              #2a2020;
  --muted-4:              #2f2424;
  --muted-5:              #3a2c2c;

  --main-text-color:      #ffffff;
  --text-body:            #d8cfcf;
  --text-muted:           #8a8080;
  --muted-heading:        #ffffff;
  --muted-desc:           #9a9090;
  --muted-2:              #7a7070;
  --muted-6:              #9a9090;
  --dark-2:               #1a1212;
  --text-opaque:          rgba(255,255,255,.88);

  --main-dark-color:      #f2eaea;

  --primary:              #dc3545;
  --accent:               #dc3545;
  --accent-2:             #e25563;

  --warning-color:        #ffc107;
  --info-color:           #5aa0e0;
  --error-color:          #e25563;
  --success-color:        #5fbf61;
  --info-bg:              rgba(90,160,224,.15);
  --info-text:            #a8cdee;
  --border-muted:         rgba(255,255,255,.12);
  --garland-green:        #00f746;
}

/* ===== 2. ГЛОБАЛЬНОЕ ===== */
body {
  font-family: "Gilroy", "gilroyRegular", "Manrope", ui-sans-serif, system-ui, sans-serif !important;
  background: #0d0909 !important;
  color: #fff;
}
.app-wrapper {
  background-color: #0d0909 !important;
  background-image:
    radial-gradient(circle at 85% -5%, rgba(220,53,69,.12), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(220,53,69,.07), transparent 40%);
  background-attachment: fixed;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d0909; }
::-webkit-scrollbar-thumb { background: #3a2a2a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #dc3545; }

/* ===== 3. ШАПКА / НАВИГАЦИЯ ===== */
.navbar {
  background: linear-gradient(to bottom, rgba(13,9,9,.95), rgba(13,9,9,.80)) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,53,69,.25) !important;
  border-bottom-left-radius: 15px !important;
  border-bottom-right-radius: 15px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
}

/* липкая шапка при скролле: sticky вешаем на <header class="wrapper"> —
   внутри него лежит .navbar, поэтому прилипать должен сам header */
header.wrapper {
  position: sticky !important;
  top: 0 !important;
  z-index: 100;
  transition: transform .35s ease;
}
/* шапка скрыта при скролле вниз (класс ht-nav-hidden добавляет script.js) */
header.wrapper.ht-nav-hidden {
  transform: translateY(-105%);
}
.navbar__brand {
  font-family: "Gilroy", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
}
.nav-link { color: #d8cfcf !important; transition: color .25s ease; }
.nav-link:hover { color: #fff !important; }
.navbar__nav-item:hover,
.navbar__btn:hover {
  background-color: rgba(220,53,69,.92) !important;
  color: #fff !important;
}
.dropdown { background: #1a1212 !important; box-shadow: 0 10px 30px rgba(0,0,0,.55) !important; }
.dropdown li { color: #d8cfcf !important; }
.dropdown li:hover { background: rgba(255,255,255,.06) !important; }

/* ===== 4. КНОПКИ-ФИЛЬТРЫ / КАТЕГОРИИ (.app-button) ===== */
.app-button {
  background-color: #1a1212 !important;
  color: #f2eaea !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: .75rem !important;
  font-family: "Gilroy", "Manrope", sans-serif;
  font-weight: 600;
  transition: all .25s ease !important;
}
.app-button:hover,
.app-button--active {
  background-color: #dc3545 !important;
  color: #fff !important;
  border-color: #dc3545 !important;
  box-shadow: 0 8px 20px rgba(220,53,69,.35);
}
.app-button--danger { border-color: var(--error-color) !important; }
.app-button--danger:hover, .app-button--danger.app-button--active { background: var(--error-color) !important; }
.app-button--success:hover, .app-button--success.app-button--active { background: var(--success-color) !important; }
.app-button--info:hover,    .app-button--info.app-button--active    { background: var(--info-color)    !important; }

/* ===== 5. КАРТОЧКИ ТОВАРОВ ===== */
.product-card {
  background-color: #1a1212 !important;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1rem !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: #dc3545;
  box-shadow: 0 18px 40px rgba(220,53,69,.18), 0 8px 20px rgba(0,0,0,.55);
}

/* Змейка-обводка: рамка #dc3545 выкатывается по периметру (цвет/толщина прежние) */
.product-card { position: relative; isolation: isolate; }
.product-card.ht-snake-on:hover { border-color: transparent; }
.ht-snake {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.ht-snake rect {
  fill: none;
  stroke: #dc3545;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: opacity .3s ease, stroke-dashoffset 0s ease .3s;
}
.product-card:hover .ht-snake rect,
.ht-nav-site:hover .ht-snake rect {
  stroke-dashoffset: 0;
  opacity: 1;
  transition: stroke-dashoffset .55s cubic-bezier(.4,0,.2,1);
}
.product-card-footer { color: #f2eaea !important; border-top: 1px solid rgba(255,255,255,.05); }
.product-card-name  { color: #fff !important; }
.product-card-price { color: #fff !important; }
.product-card-old-price { color: #8a8080 !important; }
.product-card-badge-days      { background: #dc3545 !important; color: #fff !important; font-weight: 700; }
.product-card-badge-percentage{ background: var(--success-color) !important; color: #fff !important; }
.product-card-label           { background: #dc3545 !important; color: #fff !important; }

/* ===== 5.1. ПРОМО-БАННЕР (.banner / .banner-elem) ===== */
.banner { border-radius: 15px; overflow: hidden; }
.banner-elem {
  position: relative;
  background-color: rgba(220,53,69,.08) !important;  /* бьём инлайновый белый фон */
  color: #fff !important;                             /* бьём инлайновый чёрный текст */
  border: 1px solid rgba(220,53,69,.22);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.banner-elem::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,9,9,.55) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.banner-item-link { position: relative; z-index: 1; color: #fff !important; }
.bunner-title     { position: relative; z-index: 1; color: #fff !important; font-weight: 700; }
.banner-content   { position: relative; z-index: 1; color: rgba(255,255,255,.85) !important; }
.banner-elem:hover { box-shadow: 0 14px 30px rgba(220,53,69,.20), 0 8px 20px rgba(0,0,0,.55); }

/* ===== 6. МОДАЛКА ТОВАРА ===== */
.modal {
  width: min(580px, 94vw) !important;
  max-width: 580px !important;
  background: #150f0f !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.7) !important;
}
.modal-content { color: #e9e0e0; padding: 1.75rem !important; }

/* Блюр фона + анимация появления */
.modal-overlay {
  background-color: rgba(0,0,0,.74) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
  animation: ht-overlay-in .25s ease !important;
}
.modal {
  animation: ht-modal-in .3s cubic-bezier(.16,1,.3,1) !important;
}
@keyframes ht-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ht-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal { animation: none !important; }
}

/* Снимаем штатное ограничение контента в 310px, чтобы модалка стала шире */
.product-modal {
  max-width: none !important;
  padding: 0 !important;
  gap: 1.1rem !important;
}
.product-modal-title       { color: #fff !important; font-size: 1.5rem !important; }
.product-modal-description { color: #b9b0b0 !important; text-align: center !important; }
.product-modal-inputs-zone-block { background: #1a1212 !important; color: #f2eaea !important; }
.product-modal-inputs-zone-block p { color: #d8cfcf !important; }

/* Кнопки по центру */
.modal-footer-buttons {
  justify-content: center !important;
  gap: 1rem !important;
  height: auto !important;
  margin-top: 1.1rem !important;
  margin-bottom: 0 !important;
}
.modal-close-button { margin-left: 0 !important; }
.modal-close-button-text       { color: #b9b0b0 !important; font-weight: 500; }
.modal-close-button-text:hover { color: #fff !important; }
.modal-primary-button {
  background-color: #dc3545 !important;
  border-radius: 1.5rem !important;
  height: 2.75rem !important;
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
  box-shadow: 0 4px 12px rgba(220,53,69,.25);
  transition: background-color .2s ease !important;
}
/* в рулетке кнопка с бликом при наведении (как у кнопок виджетов) */
.modal:has(.roulette-modal) .modal-primary-button {
  position: relative;
  overflow: hidden;
}
.modal:has(.roulette-modal) .modal-primary-button::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 50%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}
.modal:has(.roulette-modal) .modal-primary-button:hover::after {
  animation: ht-site-shine .6s ease;
  opacity: 1;
}
.modal-primary-button:hover  { background-color: #b02a37 !important; }
.modal-primary-button:active { transform: none; }
.modal-primary-button-text   { color: #fff !important; font-weight: 500; }
.gallery-nav { background-color: #1a1212 !important; color: #fff !important; }
.gallery-thumbnails img.active { border-color: #dc3545 !important; }

/* ===== 7. СЕЛЕКТЫ, СЧЁТЧИК, ИНПУТЫ ===== */
.select-display { background: #1a1212 !important; border: 1px solid rgba(255,255,255,.08); }
.select-text    { color: #f2eaea !important; }
.select-options { background: #1a1212 !important; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.5) !important; }
.select-option  { color: #d8cfcf !important; }
.select-option:hover, .select-option.active { background: #dc3545 !important; color: #fff !important; }
.amount-control-counter       { background: #1a1212 !important; border: 1px solid rgba(255,255,255,.08); }
.amount-control-counter-button{ color: #f2eaea !important; }
.amount-control-counter-button:hover { background: rgba(220,53,69,.15) !important; }
.amount-control-count         { color: #fff; }
.amount-control-total         { background: #1a1212 !important; color: #fff !important; border: 1px solid rgba(255,255,255,.08); }
.amount-control-total-rub     { color: #b9b0b0 !important; }
input {
  background: #1a1212 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: .6rem !important;
}
input::placeholder { color: #8a8080 !important; }
input:focus        { border-color: #dc3545 !important; outline: none !important; }
.recharge-panel-input     { background: #1a1212 !important; border-color: rgba(255,255,255,.12) !important; }
.recharge-panel-input-raw { color: #fff !important; }
.recharge-panel-input.changed { background: rgba(220,53,69,.12) !important; }
.text-input { background: #1a1212 !important; color: #f2eaea !important; }
.text-input.disabled { background: #150f0f !important; }

/* ===== 8. ПАНЕЛЬ ПОПОЛНЕНИЯ ===== */
.modal:has(.recharge-panel) {
  width: min(720px, 94vw) !important;
  max-width: 720px !important;
}
.recharge-panel {
  background: #150f0f !important;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1.25rem !important;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.recharge-panel-header { color: #fff !important; }
.recharge-panel-title  { color: #e9e0e0 !important; }
.recharge-panel-label  { color: #d8cfcf !important; }
.recharge-panel-provider {
  background: #1a1212 !important;
  border: 2px solid rgba(255,255,255,.08) !important;
  border-radius: .75rem !important;
  transition: border-color .2s ease, transform .2s ease !important;
}
.recharge-panel-provider:hover     { border-color: rgba(220,53,69,.45) !important; transform: translateY(-2px); }
.recharge-panel-provider.selected  { border-color: #dc3545 !important; background: #241818 !important; box-shadow: 0 8px 20px rgba(220,53,69,.25); }

/* ===== 9. МОНИТОРИНГ СЕРВЕРОВ ===== */
.monitoring { background: #1a1212 !important; border-left: 2px solid transparent; color: #f2eaea; }
.monitoring--active   { border-left-color: var(--success-color) !important; }
.monitoring--disabled { border-left-color: #dc3545 !important; }
.monitoring-title       { color: #fff !important; }
.monitoring-title-span  { color: #8a8080 !important; }
.monitoring-progress-bar      { background: #2a2020 !important; }
.monitoring-progress-fill     { background: #dc3545 !important; }
.monitoring-progress-fill--disabled { background: #6a5a5a !important; }
.monitoring-status-text  { color: #fff !important; }
.monitoring-progress-text{ color: #fff !important; }

/* ===== 10. ПРОФИЛЬ / САЙДБАР / ТАБЛИЦЫ ===== */
.profile-sidebar__header { background: #1a1212 !important; color: #fff; }
.profile-sidebar__item   { background: #1a1212 !important; }
.profile-sidebar__link--active { background: rgba(220,53,69,.18) !important; color: #fff !important; }
.profile-sidebar__link:hover   { background: #dc3545 !important; color: #fff !important; }
.profile-sidebar__footer       { border-color: #dc3545 !important; color: #dc3545 !important; }
.profile-sidebar__footer > .profile-sidebar__link:hover { background: #dc3545 !important; color: #fff !important; }
.profile-info { background: #150f0f !important; }
.profile-info__row--white { background: #1a1212 !important; }
.profile-info__row:hover  { background: rgba(220,53,69,.12) !important; }
.profile-info__cell--header { color: #fff !important; }
.profile-info__cell         { color: #d8cfcf !important; }
.profile-info__cell a       { color: #e25563 !important; }
.table            { border-color: rgba(255,255,255,.1) !important; }
.table thead      { background: #1a1212 !important; color: #fff !important; }
.table tbody      { background: #150f0f !important; }
.table th, .table td { border-color: rgba(255,255,255,.08) !important; color: #d8cfcf !important; }
.promo-wrapper .promo-button { font-weight: 600; }

/* ===== 11. ФУТЕР / COOKIE / ТОСТЫ ===== */
.footer      { color: #8a8080; }
.footer-link { color: #e25563 !important; }
.cookie-banner {
  background: #1a1212 !important;
  color: #f2eaea !important;
  border-color: rgba(255,255,255,.1) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.55) !important;
}
.cookie-content p { color: #b9b0b0 !important; }
.cookie-buttons button:first-child { background: #dc3545 !important; color: #fff !important; }
.cookie-buttons button:first-child:hover { background: #b02a37 !important; }
.toast.success, .toast.error, .toast.info { color: #fff; }

/* ===== 12. ПРОЧЕЕ ===== */
.scroll-top-btn { filter: drop-shadow(0 6px 14px rgba(220,53,69,.4)); }


/* видеофон */
body { background:#0d0909; }
body::after{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:1;
  background:rgba(13,9,9,.32);          /* затемнение — регулируйте .32 */
}
.app-wrapper{
  position:relative; z-index:2;
  background:transparent !important;     /* убираем opaque-фон, иначе перекроет видео */
  background-image:none !important;
}

p.footer-link::after {
    content: "Самозанятый · Алфеева Татьяна Анатольевна · ИНН 770402460227";
    display: block;
    margin-top: 0px;
    text-align: center;
}

/* ===== 13. СТРЕЛКИ ПЕРЕЛИСТЫВАНИЯ ВАРИАНТОВ В ГАЛЕРЕЕ ===== */
.product-modal-gallery { position: relative; }

.ht-gallery-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,18,18,.82); color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  font-size: 1.7rem; line-height: 1; cursor: pointer; z-index: 5;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
  transition: background-color .2s ease, transform .15s ease, opacity .2s ease;
}
.ht-gallery-arrow:hover  { background-color: #dc3545; }
.ht-gallery-arrow:active { transform: translateY(-50%) scale(.92); }
.ht-gallery-prev { left: .6rem; }
.ht-gallery-next { right: .6rem; }

/* прячем всплывающий список вариантов во время программного переключения */
.select-container.ht-switching .select-options { opacity: 0 !important; }

@media (max-width: 480px) { .ht-gallery-arrow { width: 2.2rem; height: 2.2rem; font-size: 1.4rem; } }

/* ===== 14. РУЛЕТКА (кастом под дизайн сайта + лёгкие эффекты) =====
   Ширина 900px и снятие дизайн-капа .modal{580px} — из фикса.
   Лента/карточки/маркер/сетка призов — в едином стиле с .product-card.
   Подсветку выигрыша (.ht-roulette-win) вешает script.js. */

/* --- контейнер: ширина + снять кап .modal{580px} только для рулетки --- */
.roulette-modal {
  width: 900px !important;
  max-width: 95vw !important;
}
.modal:has(.roulette-modal) {
  width: auto !important;
  max-width: 95vw !important;
  /* flex-элемент оверлея: min-width:auto иначе распирает модалку
     по min-content контента и игнорирует max-width */
  min-width: 0 !important;
}

/* --- лента как панель сайта --- */
.roulette-wrapper {
  position: relative;
  isolation: isolate;
  height: 190px !important;
  background: #150f0f !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 1.1rem !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 10px 30px rgba(0,0,0,.45);
}
/* затухание краёв ленты: предметы «растворяются» у границ */
.roulette-wrapper::before,
.roulette-wrapper::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 3;
  pointer-events: none;
}
.roulette-wrapper::before { left: 0;  background: linear-gradient(to right, #150f0f, transparent); }
.roulette-wrapper::after  { right: 0; background: linear-gradient(to left,  #150f0f, transparent); }

/* --- карточки в ленте (мини-карточки товара) ---
   ВАЖНО: ширину 100px и gap 12px задаёт платформа и по ним же считает
   остановку ленты — переопределять width/min-width/gap НЕЛЬЗЯ,
   иначе выигрыш не встанет под маркер. Крупность даём высотой и
   внутренностями карточки. */
.roulette-item {
  background: #1a1212 !important;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: .75rem !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
  height: 152px !important;
  padding: 10px 6px 9px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.roulette-item img {
  width: 84% !important;
  height: 74px !important;
  object-fit: contain;
}
.roulette-item-name {
  color: #d8cfcf !important;
  font-size: 11px !important;
  white-space: normal !important;
  line-height: 1.25;
  max-width: 100%;
  text-align: center;
}
/* --- мобильная адаптация (≤768px — тот же брейкпоинт, что у платформы) ---
   ВАЖНО: width карточек (80px на мобильных) и gap 12px не трогаем —
   по ним платформа считает остановку спина. Ужимаем только высоты,
   шрифты, паддинги и ширину модалки/маркера. */
@media (max-width: 768px) {
  /* снимаем десктопные 900px — иначе модалка шире экрана телефона */
  .roulette-modal { width: 100% !important; max-width: 100% !important; }
  .modal:has(.roulette-modal) { max-width: 96vw !important; }
  .modal:has(.roulette-modal) .modal-content { padding: 1rem !important; }
  .roulette-modal .product-modal-title { font-size: 1.15rem !important; }

  .roulette-wrapper { height: 150px !important; }
  .roulette-wrapper::before,
  .roulette-wrapper::after { width: 44px; }
  .roulette-item { height: 120px !important; padding: 6px 4px !important; }
  .roulette-item img { height: 56px !important; }
  .roulette-item-name { font-size: 10px !important; }
  .roulette-window { width: 96px !important; }

  .roulette-prizes { margin-top: 18px; }
  .roulette-prizes-title { font-size: 13px !important; }
  .roulette-prizes-grid { gap: 8px !important; }
  .roulette-prize-card { padding: 8px 6px !important; }
  .roulette-prize-image { height: 48px !important; }
  .roulette-prize-image img { max-width: 56px !important; max-height: 46px !important; }
  .roulette-prize-name { font-size: 10px !important; }

  .modal-footer-buttons { height: 56px !important; gap: 12px !important; margin-top: .8rem !important; }
  .modal-close-button { margin-left: 1rem !important; height: 2.5rem !important; }
  .modal-primary-button { height: 2.5rem !important; padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}

/* выигрышный предмет — добавляется скриптом после остановки */
.roulette-item.ht-roulette-win {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220,53,69,.45), 0 0 22px rgba(220,53,69,.55) !important;
  transform: scale(1.04);
  animation: ht-roulette-flash .6s ease;
}
@keyframes ht-roulette-flash {
  0%   { box-shadow: 0 0 0 2px rgba(220,53,69,.9),  0 0 34px rgba(220,53,69,.80); }
  100% { box-shadow: 0 0 0 2px rgba(220,53,69,.45), 0 0 22px rgba(220,53,69,.55); }
}

/* --- центральный маркер --- */
.roulette-window {
  z-index: 5 !important;
  width: 140px !important;
  border-left: 2px solid #dc3545 !important;
  border-right: 2px solid #dc3545 !important;
  background: linear-gradient(90deg, transparent, rgba(220,53,69,.12) 18% 82%, transparent) !important;
  animation: ht-roulette-pulse 2s ease-in-out infinite;
}
.roulette-window::before,
.roulette-window::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  transform: translateX(-50%);
}
.roulette-window::before { top: -2px;    border-top:    9px solid #dc3545; }
.roulette-window::after  { bottom: -2px; border-bottom: 9px solid #dc3545; }
@keyframes ht-roulette-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(220,53,69,.22); }
  50%      { box-shadow: 0 0 26px rgba(220,53,69,.45); }
}
@media (prefers-reduced-motion: reduce) {
  .roulette-window, .roulette-item.ht-roulette-win { animation: none !important; }
}

/* --- сетка призов --- */
.roulette-prizes-grid {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
  gap: 10px !important;
}
.roulette-prize-card {
  background: #1a1212 !important;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: .75rem !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
  padding: 12px 8px 10px !important;
}
.roulette-prize-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220,53,69,.5) !important;
  box-shadow: 0 10px 24px rgba(220,53,69,.18), 0 8px 20px rgba(0,0,0,.5) !important;
}
.roulette-prize-name   { color: #d8cfcf !important; white-space: normal !important; font-size: 11px !important; line-height: 1.3; }
.roulette-prize-image  { height: 64px !important; }
.roulette-prize-image img { max-width: 76px !important; max-height: 62px !important; }
.roulette-prizes-title { color: #fff !important; }

/* ===== 15. NAV: капс, кнопки вплотную, CTA-эффект на «Сайт» =====
   «Сайт»: idle-дыхание (внутренний glow) + при hover — заливка цветом
   слева, блик-свет, подъём, внешнее свечение, glow текста и змейка. */

/* названия кнопок — капсом */
.navbar__nav-item .nav-link { text-transform: uppercase; }

/* кнопки nav стоят вплотную, без отступов */
.navbar__nav { gap: 0 !important; }

/* база «Сайт» + широкий box */
.ht-nav-site {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease;
  animation: ht-site-breathe 2.6s ease-in-out infinite;
}
.ht-nav-site .nav-link {
  position: relative;
  z-index: 2;
  padding-left: 26px !important;
  padding-right: 26px !important;
}

/* штатную красную заливку при hover у «Сайт» убираем — её даёт ::before */
.navbar__nav-item.ht-nav-site:hover { background-color: transparent !important; }

/* цветная заливка: выезжает слева при hover */
.ht-nav-site::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, #b02a37 0%, #dc3545 55%, #e25563 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.ht-nav-site:hover::before { transform: scaleX(1); }

/* блик-свет, проносящийся по кнопке при hover (доп. анимация) */
.ht-nav-site::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 50%;
  z-index: 4;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}
.ht-nav-site:hover::after { animation: ht-site-shine .6s ease; opacity: 1; }
@keyframes ht-site-shine {
  from { left: -60%; }
  to   { left: 120%; }
}

/* hover: подъём + внешнее свечение + glow текста; idle-дыхание выключаем */
.ht-nav-site:hover {
  animation: none;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(220,53,69,.55), 0 6px 16px rgba(0,0,0,.4);
}
.ht-nav-site:hover .nav-link { text-shadow: 0 0 10px rgba(255,255,255,.5); }

/* лёгкое «дыхание» в покое — внутренний красный glow, чтобы кнопка звала нажать */
@keyframes ht-site-breathe {
  0%, 100% { box-shadow: inset 0 0 0 rgba(220,53,69,0); }
  50%      { box-shadow: inset 0 0 14px rgba(220,53,69,.30); }
}
@media (prefers-reduced-motion: reduce) {
  .ht-nav-site, .ht-nav-site::after { animation: none !important; }
}

a.nav-link[data-v-51365fc8][href="/failed"] {
    display: none !important;
}

/* ===== 16. DISCORD-ВИДЖЕТ В ПРАВОЙ КОЛОНКЕ =====
   Впрыскивается скриптом в низ .right-column (под всеми виджетами).
   Карточка в едином стиле с .monitoring / .banner-elem: фон #1a1212,
   акцент #dc3545. */
.ht-discord-widget {
  position: relative;
  overflow: hidden;
  background: #1a1212;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1rem;
  padding: 22px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ht-discord-widget:hover {
  transform: translateY(-4px);
  border-color: rgba(220,53,69,.35);
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 26px rgba(220,53,69,.18);
}

/* фоновая иконка */
.ht-discord-bg-icon {
  position: absolute;
  top: -30px; right: -30px;
  width: 180px; height: 180px;
  opacity: .05;
  filter: grayscale(100%) brightness(200%);
  transform: rotate(-10deg);
  pointer-events: none;
  fill: #fff;
  transition: all .4s ease;
}
.ht-discord-widget:hover .ht-discord-bg-icon {
  opacity: .15;
  fill: #dc3545;
  filter: grayscale(0%) brightness(100%) drop-shadow(0 0 20px rgba(220,53,69,.5));
  transform: rotate(-10deg) scale(1.05) translate(-5px, 5px);
}

/* шапка */
.ht-discord-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 15px;
}
.ht-discord-logo-wrap {
  position: relative;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(220,53,69,.2);
  border: 1px solid rgba(220,53,69,.3);
  border-radius: 14px;
}
.ht-discord-logo-wrap svg { width: 28px; height: 28px; fill: #dc3545; }
.ht-discord-info h3 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.ht-discord-info p {
  margin: 4px 0 0; font-size: 13px; color: #9ea4b0;
  display: flex; align-items: center; gap: 6px;
}
.ht-discord-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff4d5e;
  box-shadow: 0 0 8px rgba(220,53,69,.6);
}

/* аватарки онлайн-участников */
.ht-discord-members {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  margin-left: 10px; min-height: 40px;
}
.ht-discord-avatar {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  margin-left: -12px;
  background-size: cover; background-position: center;
  background-color: #252b27;
  border: 3px solid rgba(20,24,21,.9);
  transition: transform .2s ease, border-color .2s ease;
  cursor: pointer;
}
.ht-discord-avatar:hover {
  transform: scale(1.15) translateY(-3px);
  z-index: 10 !important;
  border-color: #dc3545;
  box-shadow: 0 0 10px rgba(220,53,69,.4);
}
.ht-discord-more {
  width: 36px; height: 36px; border-radius: 50%;
  margin-left: -12px;
  background: #252b27;
  color: #9ea4b0;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(20,24,21,.9);
  z-index: 5;
}

/* кнопка */
a.ht-discord-btn,
a.ht-discord-btn:visited,
a.ht-discord-btn:active,
a.ht-discord-btn:hover {
  text-decoration: none !important;
  border: none !important;
  outline: none;
}
.ht-discord-btn {
  position: relative; z-index: 2;
  box-sizing: border-box;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 1.5rem;
  background: #241818;
  color: #9ea4b0 !important;
  font-weight: 700;
  font-size: 14px;
  transition: color .3s ease, background-color .3s ease, transform .15s ease, box-shadow .3s ease;
}
.ht-discord-btn-icon {
  width: 18px; height: 18px;
  fill: #9ea4b0;
  filter: grayscale(100%) brightness(200%);
  transition: all .3s ease;
}
.ht-discord-btn:hover {
  background: linear-gradient(90deg, #8a2138, #dc3545, #f0707e, #dc3545, #8a2138);
  background-size: 200% 100%;
  animation: ht-discord-shimmer 3s linear infinite;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(220,53,69,.6);
  transform: translateY(-2px);
}
.ht-discord-btn:hover .ht-discord-btn-icon { fill: #fff; filter: none; }
.ht-discord-btn:active { transform: scale(.98); }
@keyframes ht-discord-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-discord-btn:hover { animation: none !important; }
  .ht-discord-bg-icon { transition: none !important; }
}

@media (max-width: 480px) {
  .ht-discord-widget { padding: 18px; gap: 14px; }
  .ht-discord-info h3 { font-size: 16px; }
}

/* ===== 17. TELEGRAM-ВИДЖЕТ В ПРАВОЙ КОЛОНКЕ =====
   Под Discord-виджетом. Карточка #1a1212, акцент #dc3545 (как у Discord),
   красная точка «онлайн/новости». Кнопка: приглушённая в покое,
   на hover — анимированный красный градиент. */
.ht-telegram-widget {
  position: relative;
  overflow: hidden;
  background: #1a1212;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1rem;
  padding: 22px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ht-telegram-widget:hover {
  transform: translateY(-4px);
  border-color: rgba(220,53,69,.35);
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 26px rgba(220,53,69,.18);
}

/* фоновая иконка */
.ht-telegram-bg-icon {
  position: absolute;
  top: -30px; right: -30px;
  width: 180px; height: 180px;
  opacity: .05;
  filter: grayscale(100%) brightness(200%);
  transform: rotate(-10deg);
  pointer-events: none;
  fill: #fff;
  transition: all .4s ease;
}
.ht-telegram-widget:hover .ht-telegram-bg-icon {
  opacity: .15;
  fill: #dc3545;
  filter: grayscale(0%) brightness(100%) drop-shadow(0 0 20px rgba(220,53,69,.5));
  transform: rotate(-10deg) scale(1.05) translate(-5px, 5px);
}

/* шапка */
.ht-telegram-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 15px;
}
.ht-telegram-logo-wrap {
  position: relative;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(220,53,69,.2);
  border: 1px solid rgba(220,53,69,.3);
  border-radius: 14px;
  flex-shrink: 0;
}
.ht-telegram-logo-wrap svg { width: 28px; height: 28px; fill: #dc3545; }
.ht-telegram-info h3 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.ht-telegram-info p { margin: 4px 0 0; font-size: 13px; color: #9ea4b0; }

/* кнопка */
a.ht-telegram-btn,
a.ht-telegram-btn:visited,
a.ht-telegram-btn:active,
a.ht-telegram-btn:hover {
  text-decoration: none !important;
  border: none !important;
  outline: none;
}
.ht-telegram-btn {
  position: relative; z-index: 2;
  box-sizing: border-box;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 1.5rem;
  background: #241818;
  color: #9ea4b0 !important;
  font-weight: 700;
  font-size: 14px;
  transition: color .3s ease, background-color .3s ease, transform .15s ease, box-shadow .3s ease;
}
.ht-telegram-btn-icon {
  width: 18px; height: 18px;
  fill: #9ea4b0;
  filter: grayscale(100%) brightness(200%);
  transition: all .3s ease;
}
.ht-telegram-btn:hover {
  background: linear-gradient(90deg, #8a2138, #dc3545, #f0707e, #dc3545, #8a2138);
  background-size: 200% 100%;
  animation: ht-telegram-shimmer 3s linear infinite;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(220,53,69,.6);
  transform: translateY(-2px);
}
.ht-telegram-btn:hover .ht-telegram-btn-icon { fill: #fff; filter: none; }
.ht-telegram-btn:active { transform: scale(.98); }
@keyframes ht-telegram-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-telegram-btn:hover { animation: none !important; }
  .ht-telegram-bg-icon { transition: none !important; }
}
@media (max-width: 480px) {
  .ht-telegram-widget { padding: 18px; gap: 14px; }
  .ht-telegram-info h3 { font-size: 16px; }
}

/* ===== 18. «НАШ САЙТ»-ВИДЖЕТ В ПРАВОЙ КОЛОНКЕ =====
   Над Discord-виджетом. Карточка #1a1212, акцент #dc3545, красная точка.
   Иконка — глобус (инлайн SVG). Кнопка: приглушённая в покое, на hover —
   анимированный красный градиент (бесшовный цикл). */
.ht-website-widget {
  position: relative;
  overflow: hidden;
  background: #1a1212;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1rem;
  padding: 22px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ht-website-widget:hover {
  border-color: rgba(220,53,69,.4);
  box-shadow: 0 20px 50px rgba(0,0,0,.7), 0 0 35px rgba(220,53,69,.25);
  animation: ht-website-shake .4s cubic-bezier(.36,.07,.19,.97) both;
}
/* «тряска»: покачивание с подъёмом, играет один раз при наведении */
@keyframes ht-website-shake {
  0%   { transform: translateY(0) rotate(0deg); }
  15%  { transform: translateY(-4px) rotate(-1.2deg); }
  30%  { transform: translateY(-2px) rotate(1.2deg); }
  45%  { transform: translateY(-5px) rotate(-0.8deg); }
  60%  { transform: translateY(-3px) rotate(0.8deg); }
  75%  { transform: translateY(-4px) rotate(-0.4deg); }
  100% { transform: translateY(-4px) rotate(0deg); }
}

/* фоновая иконка */
.ht-website-bg-icon {
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: auto;
  opacity: .05;
  filter: grayscale(100%) brightness(200%);
  transform: rotate(-10deg);
  pointer-events: none;
  transition: all .4s ease;
}
.ht-website-widget:hover .ht-website-bg-icon {
  opacity: .15;
  filter: grayscale(0%) brightness(100%) drop-shadow(0 0 20px rgba(220,53,69,.5));
  transform: rotate(-10deg) scale(1.05) translate(-5px, 5px);
}

/* шапка */
.ht-website-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 15px;
}
.ht-website-logo-wrap {
  position: relative;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(220,53,69,.2);
  border: 1px solid rgba(220,53,69,.3);
  border-radius: 14px;
  flex-shrink: 0;
}
.ht-website-logo-wrap img { width: 34px; height: 34px; object-fit: contain; }
.ht-website-info h3 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.ht-website-info p { margin: 4px 0 0; font-size: 13px; color: #9ea4b0; }

/* кнопка */
a.ht-website-btn,
a.ht-website-btn:visited,
a.ht-website-btn:active,
a.ht-website-btn:hover {
  text-decoration: none !important;
  border: none !important;
  outline: none;
}
.ht-website-btn {
  position: relative; z-index: 2;
  box-sizing: border-box;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 1.5rem;
  background: #241818;
  color: #9ea4b0 !important;
  font-weight: 700;
  font-size: 14px;
  transition: color .3s ease, background-color .3s ease, transform .15s ease, box-shadow .3s ease;
}
.ht-website-btn-icon {
  width: 18px; height: 18px;
  object-fit: contain;
  filter: grayscale(100%) brightness(200%);
  transition: all .3s ease;
}
.ht-website-btn:hover {
  background: linear-gradient(90deg, #8a2138, #dc3545, #f0707e, #dc3545, #8a2138);
  background-size: 200% 100%;
  animation: ht-website-shimmer 3s linear infinite;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(220,53,69,.6);
  transform: translateY(-2px);
}
.ht-website-btn:hover .ht-website-btn-icon { filter: brightness(0) invert(1); }
.ht-website-btn:active { transform: scale(.98); }
@keyframes ht-website-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-website-widget:hover { animation: none !important; transform: translateY(-4px); }
  .ht-website-btn:hover { animation: none !important; }
  .ht-website-bg-icon { transition: none !important; }
}
@media (max-width: 480px) {
  .ht-website-widget { padding: 18px; gap: 14px; }
  .ht-website-info h3 { font-size: 16px; }
}

/* ===== 19. ПЛАВНОЕ ПЕРЕКЛЮЧЕНИЕ ВКЛАДОК (.products-types-buttons) =====
   Клик по вкладке категории/сервера мутирует ref → Inertia подгружает
   новые товары (debounce 300 мс + visit). В шаблоне НЕТ transition-group,
   поэтому анимируем вручную: на время ожидания старая сетка слегка
   затухает (.ht-switching), а прибывшие карточки плавно «выезжают» с
   каскадной задержкой. Каскад — при первой загрузке и смене вкладки;
   при догрузке бесконечным скроллом — лёгкое появление без задержек.
   Класс .ht-card-in и инлайн animation-delay вешает script.js. */
@keyframes ht-card-in {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.product-card.ht-card-in {
  animation: ht-card-in .5s cubic-bezier(.22,.61,.36,1) both;
}
/* затемнение старой сетки, пока ждём новые товары после клика по вкладке */
.product-cards.ht-switching {
  opacity: .5;
  filter: blur(1.5px);
  transition: opacity .25s ease, filter .25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .product-card.ht-card-in   { animation: none !important; }
  .product-cards.ht-switching { filter: none !important; opacity: 1 !important; }
}