
body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
}

/* =========================== */
/*          TOP BAR           */
/* =========================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1030; /* Поверх остального */
  background: white; /* Фон обязателен, иначе будет просвечивать */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* Мягкая тень при прилипающем баре */
  padding: 6px 0; /* по желанию — создаёт ощущение "воздуха" сверху и снизу */

}


.topbar .main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar .logo-button-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar .logo-button-group img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.topbar .btn-primary {
  padding: 6px 16px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.search-bar {
  flex-grow: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
  background: #f1f3f5;
  border-radius: 999px;
  padding: 2px 8px; /* Было: 4px 8px */
  margin: 0 12px; /* ← добавим немного воздуха по краям */
}

.search-bar input {
  border: none;
  background: transparent;
  flex-grow: 1;
  padding: 6px 12px; /* Было: 8px 12px */
  font-size: 0.95rem;
  border-radius: 999px;
  outline: none;
}

.search-bar input:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 110, 253, 0.05);
  z-index: 90;
  backdrop-filter: blur(2px);
}

.search-wrapper {
  max-width: 500px;
  width: 100%;
  position: relative;
}


.search-bar-custom {
  flex-grow: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
  background: #f1f3f5;
  border-radius: 999px;
  padding: 2px 8px;
  margin: 0 12px;
}

.search-input-custom {
  border: none;
  background: transparent;
  flex-grow: 1;
  padding: 6px 12px;
  font-size: 0.95rem;
  border-radius: 999px;
  outline: none;
  box-shadow: none; /* <- убираем остатки браузерного */
}

.search-input-custom:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2); /* оставляем только внешнюю голубую подсветку */
}

.search-input-custom:focus {
  outline: none;
  box-shadow: none; /* убираем тень полностью */
}

.search-button:focus,
.search-button:focus-visible,
.search-button svg:focus,
.search-button svg:focus-visible {
  outline: none;
  box-shadow: none;
}



.search-button {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background-color: rgba(13, 110, 253, 0.1);
}

/* Скрытие */
.visually-hidden {
  display: none;
}

/* Подсказки */
.search-suggestions-custom {
  position: absolute;
  top: calc(100% + 4px); /* чуть ниже поля */
  left: 0;
  width: 50%; /* немного меньше, чем поле поиска */
  background: #fff;
  border-radius: 16px;
  padding: 8px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  z-index: 100;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}


.suggestion-title {
  font-weight: 600;
  font-size: 14px;
  color: #444;
  padding: 0 20px 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border-top: 1px solid #f1f3f5;
  transition: background 0.2s ease;
}

.search-suggestion-item:first-of-type {
  border-top: none;
}

.search-suggestion-item:hover {
  background: #f8f9fa;
}

.search-suggestion-item img {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 4px;
  object-fit: cover;
}

@media (max-width: 576px) {
  

  .search-suggestions-custom {
    width: 100%;
    max-width: 100%;
  }
}



.auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-buttons a {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-buttons a:hover {
  text-decoration: underline;
}

.auth-buttons .btn-light {
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .auth-buttons {
    display: none !important;
  }

  .mobile-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: -4px;
    padding-bottom: 4px;
  }

  .mobile-auth a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .mobile-auth .btn-register {
    background-color: #e9ecef;
    color: #000;
  }

  .mobile-auth .btn-login {
    background-color: #0d6efd;
    color: white;
  }

  .mobile-auth .btn-home-icon {
    padding: 0;
  }

  .mobile-auth .icon-home {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
}

@media (max-width: 768px) {
  .logo-button-group {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .search-bar {
    width: 94%;
    margin: 0 auto;
  }
}



/* === Topbar Search === */
.search-bar-custom {
  position: relative;
  flex-grow: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
  background: #f1f3f5;
  border-radius: 999px;
  padding: 2px 8px;
  margin: 0 12px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  z-index: 1060;
}

.search-bar-custom:focus-within {
  background-color: #fff;
  border: 2px solid #0d6efd;
  box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.1);
  z-index: 1060;
}

.search-input-custom {
  border: none;
  background: transparent;
  flex-grow: 1;
  padding: 6px 12px;
  font-size: 0.95rem;
  border-radius: 999px;
  outline: none;
  z-index: 1061;
  position: relative;
}

.search-button {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  z-index: 1061;
  position: relative;
}

.search-button:hover {
  background-color: rgba(13, 110, 253, 0.1);
}

/* === Suggestions Box === */
.search-suggestions-custom {
  position: absolute;
  top: calc(100% + 10px); /* на 10px ниже инпута */
  left: 0;
  right: 0;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 12px 0;
  border: 2px solid #0d6efd;
  box-shadow: 0 10px 40px rgba(13, 110, 253, 0.2);
  z-index: 1040;
  width: 100%;
  min-width: 100%; /* ← тянется ровно как инпут */
}


.suggestion-title {
  font-weight: 600;
  font-size: 14px;
  color: #444;
  padding: 0 20px 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
  text-align: center;
}

.search-suggestion-item {
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}

.search-suggestion-item:hover {
  background: #f8f9fa;
}

.visually-hidden {
  display: none !important;
}



body.search-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(13, 110, 253, 0.06);
  backdrop-filter: blur(2px);
  z-index: 1030;
  pointer-events: none; /* ← чтобы не блокировал клик */
}

body.search-overlay {
  overflow: hidden; /* предотвратим скачок */
}

body.search-overlay {
  overflow: hidden;
  padding-right: 17px; /* компенсируем исчезновение скроллбара */
}




/* Теперь просто добавь классы:
  - logo-button-group вокруг логотипа и кнопки Каталог



  


  - auth-buttons вокруг регистрации и Войти
*/
/* =========================== */
/*         CATEGORY BAR        */
/* =========================== */
.category-wrapper {
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 12px 0;
}

.category-wrapper .main-container {
  padding: 0 12px;
  overflow: hidden;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-bottom: 4px;
}

.category-bar .item-link.active {
  background-color: #0d6efd; /* Синий фон */
  color: #fff !important;    /* Белый текст */
  border-radius: 12px;
  padding: 4px 12px;
  transition: 0.2s;
}

.category-bar .item-link.active span {
  color: #fff !important; /* Белый текст внутри <span> */
}

/* Удаляем фильтр — иконка остаётся как есть */



/* Мобильные — скролл в ряд */
@media (max-width: 768px) {
  .category-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    cursor: grab;
    justify-content: flex-start;
  }

  .category-bar::-webkit-scrollbar {
    display: none;
  }

  .item-link {
    font-size: 0.85rem;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .icon-img-small {
    width: 28px;
    height: 28px;
  }
}

/* Категории в 1–2 строки на ноутбуках */
@media (min-width: 768px) and (max-width: 1199px) {
  .category-bar {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  
}

/* Полный список на больших экранах */
@media (min-width: 1200px) {
  .category-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Стили кнопок */
.item-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
  text-decoration: none;
  color: #212529;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: background-color 0.2s ease;
}

.item-link:hover {
  background-color: #e9ecef;
  text-decoration: none;
}

.icon-img-small {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.item-link:hover .icon-img-small {
  transform: scale(1.05);
}


.main-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.banner-row img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.card-service {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  margin-top: 32px;
}

.product-card img {
  width: 100%;
  border-radius: 8px;
}

.product-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Центровка логотипа и кнопок */
.topbar {
  flex-wrap: wrap;
  justify-content: center !important;
  text-align: center;
}

/* =========================== */
/*         GAMES GRID         */
/* =========================== */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 20px;
  padding: 8px 0;
  max-height: none;
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


.game-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

/* Убираем масштабирование картинки отдельно */
/* Вместо этого анимируется вся карточка game-item */

.game-label {
  font-size: 0.75rem;
  margin-top: 8px;
  color: #212529;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 16px;
  }
  .game-thumb {
    width: 54px;
    height: 54px;
  }
  .game-label {
    font-size: 0.7rem;
  }
}


@media (max-width: 768px) {
  .topbar .main-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 0;
  }

  .search-bar {
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    order: 1;
  }

  .search-bar input {
    border-radius: 6px !important; /* более прямоугольные углы */
  }

  .search-bar button {
    border-radius: 6px !important;
  }

  .topbar .d-flex.align-items-center.gap-3 {
    justify-content: center;
    flex-direction: column;
    order: 2;
  }

  .topbar .d-flex.align-items-center.gap-3:first-child {
    order: 3;
  }
}

.site-footer {
  background-color: #f1f3f5;
  margin-top: 48px;
  padding: 32px 0 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 16px;
}

.payment-icons img {
  height: 28px;
  margin-right: 8px;
  margin-bottom: 6px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 4px;
}

.footer-links a {
  color: #212529;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-support {
  display: flex;
  align-items: start;
  justify-content: center;
}


.search-button {
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background-color: rgba(13, 110, 253, 0.1); /* синий с прозрачностью */
}

.banner-card {
  background: -webkit-linear-gradient(135deg, rgb(109, 217, 203), rgb(132, 52, 137));
background: -moz-linear-gradient(135deg, rgb(109, 217, 203), rgb(132, 52, 137));
background: linear-gradient(135deg, rgb(109, 217, 203), rgb(132, 52, 137));
  border-radius: 20px;
  padding: 32px;
  color: #fff;
  min-height: 220px; /* ↑ выше */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.banner-content {
  position: relative;
  z-index: 2;
  padding-right: 100px; /* резерв под персонажа */
}


.banner-mascot {
  position: absolute;
  bottom: 8px;
  right: 16px;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

.icon-inline {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.banner-card:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.card .btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}

.card .card-title {
  font-size: 1rem;
}

.card .card-text {
  font-size: 0.85rem;
}

.btn-outline-primary.active {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.platform-tag {
  background-color: #f1f3f5;
  color: #212529;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid #dee2e6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.2s ease;
}

.platform-tag:hover {
  background-color: #e4e8ec;
  cursor: default;
}

.btn-soft {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #212529;
  transition: all 0.2s ease;
}

.btn-soft:hover {
  background-color: #e2e6ea;
  color: #0d6efd;
  text-decoration: none;
}

.platform-badge {
  background-color: #f1f3f5;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #212529;
  border: 1px solid #dee2e6;
}

.platform-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  background-color: #f1f3f5;
  color: #212529;
  font-size: 0.875rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #dee2e6;
  transition: background-color 0.2s ease;
}

.tag-badge:hover {
  background-color: #e2e6ea;
}

.tag-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}



/* Улучшенный стиль изображения */
.main-img-container {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Главное изображение */
.main-img-hover:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

/* Миниатюры */
.thumb-img {
  width: 72px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  opacity: 0.9;
}

.thumb-img:hover {
  opacity: 1;
  border-color: #0d6efd;
  box-shadow: 0 0 6px rgba(13, 110, 253, 0.2);
  transform: scale(1.05);
}


/* Иконка увеличения */
.zoom-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Платформы */
.platform {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #212529;
  margin-right: 5px;
}

.platform i {
  margin-right: 6px;
  color: #0d6efd;
}

/* Типы товара */
.tag {
  display: inline-block;
  background: #f1f3f5;
  color: #212529;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  margin-right: 4px;
  transition: 0.2s;
}

.tag:hover {
  background: #0d6efd;
  color: white;
}


/* Цена */
.price {
  font-size: 1.75rem;
  color: #28a745;
  font-weight: bold;
}

/* Блок покупки */
.buy-box {
  border: 1px solid #dee2e6;
}



/* Иконка над ценой */
.price-icon {
  font-size: 1.2rem;
  opacity: 0.7;
}

/* Текущая цена */
.current-big-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #198754;
}

/* Лейбл скидки */
.discount-label {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  background-color: #e8f5e9;
  color: #28a745;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

/* Инфо о продавце */
.seller-info {
  font-size: 0.85rem;
  line-height: 1.4;
}


.price-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: #198754;
}

.big-price {
  font-size: 1.9rem;
  color: #198754;
  font-weight: 700;
}

.old-price {
  font-size: 0.9rem;
  color: #aaa;
  text-decoration: line-through;
}

.discount-tag {
  font-size: 0.75rem;
  background-color: #e6f4ea;
  color: #28a745;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
  display: inline-block;
}

.purchase-price-box {
  border: 1px solid #e2e6ea;
  border-radius: 1rem;
  padding: 1rem 0.75rem;
  background: #f8f9fa;
  transition: 0.25s ease;
}

.purchase-price-box:hover {
  background-color: #f1f3f5;
}

.seller-block a {
  color: #0d6efd;
  font-weight: 500;
}

.seller-block i {
  font-size: 0.9rem;
}

.seller-block .bi-star-fill {
  color: #ffc107;
}


.trust-box {
  border: 1px solid #e4e6eb;
  background-color: #f9fafb;
}


.price-card-box {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border: 1px solid #dee2e6;
  border-radius: 1.25rem;
  padding: 1.2rem;
  transition: all 0.3s ease;
}

.price-card-box:hover {
  background: #f1f3f5;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.05);
}

.price-current {
  font-size: 2rem;
  font-weight: 700;
  color: #198754;
  margin-bottom: 0.4rem;
}

.price-sub {
  font-size: 0.875rem;
  align-items: center;
}

.price-old {
  text-decoration: line-through;
  color: #adb5bd;
}

.discount-percent {
  background-color: #d1f2df;
  color: #28a745;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.icon-16 {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
}

.game-item-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.server-mini-card {
  width: 100%;
  max-width: 370px;
  max-height: 500px;
  transition: 0.3s ease;
}

@media (max-width: 768px) {
  .server-mini-card {
    width: 100%; /* на мобилках пусть растягиваются */
  }
}



.server-mini-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.server-mini-card:hover .server-mini-img {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.transition-hover {
  transition: all 0.2s ease;
}

.transition-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.08);
}


.server-mini-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15); /* синяя "аура" при наведении */
}


.tag-popular {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ff9800;
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.75rem;
}

.emoji {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  transform: translateY(1px);
}

.server-option-card {
  background: #f8f9fa;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  padding: 16px 12px;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  color: inherit;
}

.modal-content.custom-modal {
  background-color: #fff;
  border-radius: 20px;
  border: 2px solid #0d6efd;
  box-shadow:
    0 0 0 6px rgba(13, 110, 253, 0.08),
    0 8px 30px rgba(13, 110, 253, 0.15);
  transition: all 0.3s ease;
}

.server-option-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 16px;
  transition: all 0.2s ease-in-out;
  text-decoration: none !important;
}

.server-option-card:hover {
  background-color: #e9f3ff;
  transform: scale(1.03);
  border-color: #0d6efd;
}

.server-option-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
  background-color: #ffffff;
  text-decoration: none;
}

.server-option-card .server-id {
  font-size: 1rem;
  color: #0d6efd;
  font-weight: 600;
  margin-bottom: 4px;
}

.server-option-card .server-name {
  font-size: 0.85rem;
  color: #6c757d;
}

.server-option-card {
  text-decoration: none !important;
}

.server-option-card:hover {
  text-decoration: none !important;
}


.server-id {
  font-size: 1.2rem;
  color: #0d6efd;
}

.server-name {
  font-size: 0.85rem;
}


.server-logo-box {
  background-color: #f9fafb;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  width: 300px;
  margin: 0 auto;
  transition: 0.3s ease;
}

.server-logo-img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.seller-trust i {
  font-size: 1rem;
}


.server-logo-img:hover {
  transform: scale(1.05);
}

.features-list {
  padding-left: 0;
}

.features-list li {
  transition: background-color 0.2s ease;
  border-radius: 8px;
  padding: 4px 6px;
}

.features-list li:hover {
  background-color: #f8f9fa;
}

.cashback-wrapper {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulseRotate 3s infinite ease-in-out;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.cashback-icon {
  width: 30px;
  height: 30px;
  pointer-events: none;
}

@keyframes pulseRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.15) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.hover-effect {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
  background-color: rgba(13, 110, 253, 0.15); /* усиление синевы */
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.2);
}


.mascot-badge {
  position: absolute;
  top: 260px;
  right: 45px;
  width: 85px;
  cursor: pointer;
  transition: transform 0.4s ease;
  z-index: 20;
}

.mascot-badge:hover {
  transform: rotate(-3deg) scale(1.05);
}


.mascot-badge-1 {
  position: absolute;
  top: 15px;
  right: 45px;
  width: 70px;
  cursor: pointer;
  transition: transform 0.4s ease;
  z-index: 20;
}

.mascot-badge-1:hover {
  transform: rotate(-3deg) scale(1.05);
}


.custom-modal-content {
  background-color: #fff;
  border-radius: 16px;
  border: 2px solid #0d6efd;
  box-shadow: 0 20px 60px rgba(13, 110, 253, 0.15);
  transition: all 0.3s ease;
}

.custom-modal-header,
.custom-modal-footer {
  background-color: rgba(13, 110, 253, 0.03);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 12px;
}

.custom-modal-title {
  font-weight: 600;
  color: #0d6efd;
  margin: 0;
}

.custom-modal-body {
  padding: 1rem 1.5rem;
}

.custom-modal-highlight {
  background-color: #f8faff;
  border: 1px dashed #0d6efd;
  padding: 1rem;
  border-radius: 12px;
}

.custom-cashback-modal {
  background-color: #fff;
  border-radius: 20px;
  border: 2px solid rgba(13, 110, 253, 0.2); /* мягкий синий */
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.1);
}

.cashback-modal-dialog {
  max-width: 540px;
}

.cashback-modal-content {
  background-color: #fff;
  border-radius: 20px;
  border: 2px solid #0d6efd;
  box-shadow:
    0 0 0 10px rgba(13, 110, 253, 0.08), /* нежное синее свечение вокруг */
    0 0 50px rgba(13, 110, 253, 0.25),  /* мягкий glow */
    0 20px 60px rgba(0, 0, 0, 0.08);    /* классическая тень */
  transition: all 0.3s ease;
}

/* Затемнение фона + синее свечение при открытии модала */
body.modal-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(13, 110, 253, 0.06); /* Мягкий синий оттенок */
  backdrop-filter: blur(6px); /* Размытие заднего фона */
  box-shadow: 0 0 120px rgba(13, 110, 253, 0.25); /* Голубое свечение */
  z-index: 1040; /* Чтобы было выше основного контента */
  pointer-events: none; /* Не мешает клику по модальному */
  transition: all 0.3s ease-in-out;
}


.cashback-info-block {
  background-color: #f8f9fa;
  border: 2px dashed #cce5ff;
  border-radius: 12px;
  padding: 16px 20px;
}


.product-card img {
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
}


/* Уникальный класс для 5 колонок */
.seller-col-5 {
  width: 20%;
  flex: 0 0 20%;
}

@media (max-width: 1200px) {
  .seller-col-5 {
    width: 25%;
    flex: 0 0 25%;
  }
}

@media (max-width: 992px) {
  .seller-col-5 {
    width: 33.333%;
    flex: 0 0 33.333%;
  }
}

@media (max-width: 768px) {
  .seller-col-5 {
    width: 50%;
    flex: 0 0 50%;
  }
}

@media (max-width: 576px) {
  .seller-col-5 {
    width: 100%;
    flex: 0 0 100%;
  }
}

.seller-product-img {
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.reviewzz-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #007bff; /* синий Bootstrap */
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  font-weight: bold;
}


.search-wrapper {
  flex: 1 1 auto;
  min-width: 0; /* чтобы сжималось */
}

.search-bar-custom {
  display: flex;
  width: 100%;
  max-width: 600px; /* ограничение при широком экране */
}

.search-input-custom {
  flex: 1;
  min-width: 0;
  width: 100%;
}
