* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    scrollbar-width: thin;
    scrollbar-color: #ff8c00 rgba(0, 0, 0, 0.1);
}

/* 1) тело как якорь */
body{
    position: relative;
    background-color: #161616;
    background-image: url('/static/img/bg2.png');
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  /* 2) полупрозрачный слой, который блюрит то, что СЗАДИ (картинку body) */
  body::before{
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;             /* не мешает кликам */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);  /* для Safari */
    background: rgba(0, 0, 0, 0.432);     /* лёгкое затемнение, чтобы текст читался */
    z-index: 0;
  }
  
  /* 3) контент поверх */
  .container{ position: relative; z-index: 1; }
  

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 120px; /* Ширина логотипа (можно настроить) */
    height: auto; /* Автоматическая высота, чтобы сохранить пропорции */
    transition: transform 0.3s ease; /* Плавная анимация при наведении */
}

.logo img:hover {
    transform: scale(1.1); /* Увеличение логотипа при наведении */
}

.menu {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex: 1;
}

.menu-item {
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}
.menu-item-link {
    text-decoration: none; /* Убираем стандартное подчеркивание */
    display: inline-block; /* Для корректного позиционирования */
}
.steam-login-link {
    text-decoration: none;
    display: inline-block;
}

.menu-item:hover {
    color: #ff5c5c;
}

.steam-login {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.steam-login:hover {
    background:linear-gradient(90deg, #ff5c5c, #f33c3cc4);
    box-shadow: 0 4px 15px rgb(255 0 0 / 50%);
}

.steam-login .steam-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.steam-login span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Баннер */
.banner {
    width: 100%;
    height: 294px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
}

.server-list {
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.server-item {
    width: 220px;
    height: 50px;
    background: rgba(0, 0, 0, 0.40);
    border-radius: 14px;
    padding: 10px;
    display: flex; /* Используем flexbox */
    flex-direction: column; /* Размещаем элементы вертикально */
    justify-content: flex-end; /* Выравниваем элементы по нижнему краю */
    position: relative;
    backdrop-filter: blur(10px);
}

.server-name {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.server-status {
    color: rgba(255, 255, 255, 0.70);
    font-size: 12px;
    font-weight: 500;
}

.server-icon {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 22px;
    right: 20px;
}

/* Категории */
.categories {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin-top: 30px;
}

.category-item {
    flex: 1 1 0;
    height: 60px;
    color: white;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.category-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, #16161670, #8d8c8ca9);
    z-index: 0;
    transition: all 0.6s ease;
    opacity: 0.2;
}

.category-item:hover::before {
    left: 0;
    opacity: 0.3;
}
.category-item:hover,
.category-item.active-category {
    color: white;
    font-weight: 600;
    box-shadow: 0 0 5px rgb(143 143 143 / 38%);
    transform: translateY(-2px);
}
.category-item span {
    position: relative;
    z-index: 2;
}
/* ===== Карточки товаров: 4 в ряд, кнопка близко к картинке ===== */

.product-section{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:20px;
    padding:30px 0;
}

/* Карточка */
.product-item{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    background:rgba(53,53,53,0.116);
    border-radius:8px;
    padding:16px;
    backdrop-filter:blur(50px);
    transition:all .3s ease;
    height:320px; /* одинаковая высота, чтобы всё было вровень */
    text-align: center;
}
.product-item:hover{
    background:rgba(255,255,255,0.20);
    box-shadow:0 8px 16px rgba(0,0,0,.2);
    transform:translateY(-5px);
}

/* Картинка в фиксированном боксе */
.product-image{
    height:166px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:6px;
}
.product-image img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    display:block;
}

/* Заголовок — 1 строка, эллипсис, фикс. высота строки */
.product-title{
    color:#fff;
    font-size:16px;
    font-weight:600;
    margin-top:8px;
    line-height:1.3;
    height:1.3em;                 /* резерв под 1 строку */
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Описание — 1 строка, эллипсис, минимальный зазор перед кнопкой */
.product-description{
    color:rgba(255,255,255,0.70);
    font-size:12px;
    font-weight:500;
    text-align:center;
    line-height:1.3;
    height:1.3em;                 /* резерв под 1 строку */
    margin:4px 0 8px;             /* маленькое расстояние до кнопки */
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Кнопка покупки — сразу под описанием, одинаковой высоты у всех */
.product-purchase{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:#fff;
    background:rgba(255,255,255,0.14);
    padding:12px 0;
    border-radius:8px;
    width:100%;
    cursor:pointer;
    transition:background .3s ease, transform .2s ease;
    margin-top:0;                 /* кнопка близко к картинке/описанию */
}
.product-purchase:hover{
    background:linear-gradient(90deg, #ff5c5c, #f33c3cc4);
    transform:translateY(-1px);
}

.product-price{
    background:#fff;
    color:#00aaff;
    font-size:14px;
    font-weight:500;
    padding:6px 10px;
    border-radius:41px;
}

/* Анимация появления — если используешь */
.fade-in{opacity:0;animation:fadeInAnimation .5s ease-in-out forwards;}
@keyframes fadeInAnimation{
    from{opacity:0;transform:translateY(10px)}
    to{opacity:1;transform:translateY(0)}
}


/* Footer */
.footer {
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    justify-content: space-between;
    margin-top: 50px;
    margin-bottom: 20px;
}

.footer-logo {
    color: white;
    font-size: 20px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-link {
    color: white;
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    text-decoration: none;
}

.footer-icons {
    display: flex;
    gap: 15px;
}

.icon {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon img {
    width: 20px;
    height: 20px;
}

/* Социальные иконки */
.icon-vk {
    background-color: #4c75a3; /* Цвет ВКонтакте */
}

.icon-youtube {
    background-color: #FF0000; /* Цвет YouTube */
}

.icon-telegram {
    background-color: #37AEE2; /* Цвет Telegram */
}

.icon-discord {
    background-color: #5865F2; /* Цвет Discord */
}

/* Эффект при наведении */
.icon:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 400px;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(50px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Изображение товара в модальном окне */
#modalImageContainer {
    width: 430px;
    height: 310px;
    padding: 43px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modalImage {
    width: 500px;
    height: 310px;
}

/* Название и описание товара */
#modalTitle {
    color: white;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    margin-top: 10px;
}

#modalDescription {
    color: rgba(255, 255, 255, 0.70);
    font-size: 12px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    margin: 5px 0 20px;
    text-align: center;
}

/* Счетчик количества */
.quantity-control {
    padding: 3px 7px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    margin: 10px 0;
}

.quantity-control div {
    color: rgba(255, 255, 255, 0.50);
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    cursor: pointer;
}

.quantity-control .quantity {
    color: white;
}

/* Выбор сервера */
#serverSelect {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Кнопка "Купить" */
.purchase-button {
    padding: 14px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.purchase-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.purchase-button span {
    color: white;
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
}

.purchase-button .price {
    background: white;
    color: #00aaff;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 41px;
}

/* Стили для кнопки "Выбрать сервер" */
#serverSelect {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}

/* Стили для кнопки "Выбрать сервер" */
#serverSelect {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}

/* Стили для списка серверов */
#serverList {
    display: none;
    position: relative;
    width: 100%;
    background-color: transparent;
    color: white;
    max-height: 150px;
    overflow-y: auto; /* Прокрутка включена, но ползунок будет скрыт */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    padding: 0;
    z-index: 1000;
}

/* Скрываем ползунок */
#serverList::-webkit-scrollbar {
    display: none; /* Скрытие для Chrome, Safari и Opera */
}

#serverList {
    scrollbar-width: none; /* Скрытие для Firefox */
}

/* Стили для каждого элемента в списке серверов */
.server-item {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    transition: background-color 0.3s ease;
    margin-bottom: 5px; /* Отступ между элементами */
}

.server-item:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего элемента */
}

.server-item:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #00aaff;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff8c00, #ffd700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd700, #ff8c00);
}
/* Контейнер для уведомлений */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 1000;
}

/* Стиль для уведомлений */
.notification {
    background: #28a745; /* Зеленый фон */
    color: white;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    position: relative;
}

/* Появление уведомления */
.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Исчезновение уведомления */
.notification.hide {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Полоска прогресса */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    animation: progress 3s linear forwards; /* Анимация полоски */
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}


.container {
    width: 90%;
    max-width: 1400px;
    padding: 0 20px;
    margin: 20px auto; /* Центрирование с помощью margin */
}

/* Навигация */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 14px;
    margin-bottom: 20px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu-item {
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
}


/* Профиль пользователя в правой части навигации */
/* Профиль пользователя в правой части навигации */
.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.profile-section:hover {
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
}

/* Информация о профиле */
.profile-info {
    text-align: right;
    color: white;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    width: 100%; /* Вся кнопка кликабельна */
}

.profile-name {
    font-size: 14px;
    font-weight: 500;
}

.profile-balance {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Аватар пользователя */
.profile-avatar img {
    width: 37px;
    height: 37px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.profile-avatar img:hover {
    border-color: rgba(151, 25, 255, 0.8);
}

.profile-section:hover .profile-avatar img {
    border-color: rgba(151, 25, 255, 0.8); /* Изменяем цвет границы при наведении */
}


/* Информация */
.info-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
}

.info-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.info-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-name {
    font-size: 18px;
    font-weight: 600;
}

.info-balance {
    display: flex;
    gap: 5px;
    align-items: center;
}

.info-balance .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.info-balance .value {
    font-size: 18px;
    font-weight: 600;
}

/* Кнопка "Пополнить" */
.top-up-button {
    background: rgba(156, 39, 39, 0.8); /* Тёмный фон */
    color: white; /* Белый текст */
    padding: 10px 20px;
    border-radius: 41px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease; /* Плавный переход */
}

.top-up-button:hover {
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5); /* Светящаяся тень */
    background: rgb(47, 65, 219); /* Ещё более насыщенный тёмный фон */
    color: white; /* Белый текст остаётся неизменным */
}

.info-container {
    width: 50%; /* Уменьшенная ширина */
    max-width: 600px; /* Максимальная ширина */
    margin: 0; /* Полностью убираем отступы */
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.info-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.info-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-nickname {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
}

.info-balance {
    display: flex;
    gap: 5px;
    align-items: center;
}

.info-balance .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.info-balance .value {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.info-row {
    display: flex; /* Для размещения элементов в одну строку */
    justify-content: space-between; /* Разделение текста и значения по краям */
    align-items: center; /* Вертикальное выравнивание */
    width: 100%; /* Ширина строки */
    gap: 10px; /* Расстояние между текстом и значением */
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
}

.info-label {
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap; /* Запрещает перенос текста */
}

.info-value {
    color: white;
    text-align: right;
    flex-grow: 1; /* Заполняет оставшееся пространство */
}


.top-up-button {
    background: white;
    color: #9719FF;
    padding: 10px 20px;
    border-radius: 41px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    align-self: flex-start; /* Расположить кнопку в начале блока */
}

.top-up-button:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
    color: #9719FF;
}

/* Дополнительные данные */
.info-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
}

.info-row .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}
.info-row.steam-id {
    justify-content: space-between;
    padding: 0 20px; /* Добавляем отступы вместо абсолютного позиционирования */
}
.info-row .value {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}
/* Секция таблицы */
.purchases-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

/* Заголовок таблицы */
.table-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.3);
}

.header-item {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: white;
    text-align: left;
    flex: 1;
}

/* Для равномерного выравнивания столбцов */
.header-item:nth-child(1) {
    text-align: left; /* Товар */
}

.header-item:nth-child(2) {
    text-align: center; /* Кол-во */
}

.header-item:nth-child(3) {
    text-align: center; /* Сервер */
}

.header-item:nth-child(4) {
    text-align: right; /* Дата покупки */

}.header-item:nth-child(5) {
    text-align: right; /* Дата покупки */
}

/* Таблица с данными */
.table-body {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.5);
}

/* Строки таблицы */
.table-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    transition: background-color 0.3s ease;
}

.table-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.1);
}

.table-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Ячейки таблицы */
.row-item {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
    text-align: left;
    flex: 1;
}

/* Для выравнивания ячеек по столбцам */
.row-item:nth-child(1) {
    text-align: left; /* Товар */
}

.row-item:nth-child(2) {
    text-align: center; /* Кол0-во */
}

.row-item:nth-child(3) {
    text-align: center; /* Сервер */
}

.row-item:nth-child(4) {
    text-align: right; /* Дата покупки */
}

.row-item:nth-child(5) {
    text-align: right; /* Стоимость */
}

/* Статусы платежей */
.status-completed {
    color: #32CD32; /* Зелёный цвет для завершённых */
}

.status-pending {
    color: #FFA500; /* Оранжевый цвет для ожидающих */
}

.status-failed {
    color: #FF6347; /* Красный цвет для неудачных */
}

/* Секция промокодов */
.promocode-section {
    width: 100%;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Заголовок */
.promocode-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promocode-title {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
}

.promocode-description {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.70);
}

/* Поле ввода */
.promocode-input {
    width: 100%;
    max-width: 344px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    padding: 0 20px;
    height: 57px;
}

.promocode-input input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
}

.promocode-input input::placeholder {
    color: rgba(255, 255, 255, 0.70);
}

/* Кнопка активации */
.promocode-button {
    width: 100%;
    max-width: 344px;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9719FF;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.promocode-button:hover {
    background: #7d17cc;
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
}

.promocode-button span {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
}

/* Кнопка активации */
.popolnenie-button {
    max-width: 344px;
    height: 50px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9719FF;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.popolnenie-button:hover {
    background: #7d17cc;
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
}

.popolnenie-button span {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
}
/* Контейнер для раздела переводов */
.transfers-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* Левая секция: перевод средств */
.transfer-section {
    flex: 1;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transfer-title {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
}

.transfer-description {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.70);
}

/* Поля ввода */
.transfer-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    padding: 0 20px;
    height: 57px;
}

.transfer-input input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
}

.transfer-input input::placeholder {
    color: rgba(255, 255, 255, 0.70);
}

/* Уведомление */
.transfer-notice {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.50);
}

/* Кнопка перевода */
.transfer-button {
    height: 57px;
    background: #9719FF;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.transfer-button:hover {
    background: #7d17cc;
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
}
.history-section {
    flex: 2;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.history-title {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
}
.history-header {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.20);
    padding: 15px 20px;
    border-radius: 8px;
}
.history-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.history-row {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.10);
    padding: 15px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.history-row:hover {
    background: rgba(255, 255, 255, 0.20);
}
/* Основной контейнер */
.daily-bonus-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    gap: 40px;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Заголовок */
.bonus-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bonus-title {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
}

.bonus-description {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.70);
}

/* Элементы бонусов */
.bonus-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.bonus-item {
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 154px;
}

.bonus-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
}

/* Информация о бонусе */
.bonus-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bonus-amount {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: white;
}

.bonus-day {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.50);
}

/* Кнопка забрать */
.bonus-claim {
    width: 100%;
    height: 57px;
    background: #9719FF;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.bonus-claim:hover {
    background: #7d17cc;
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
}

.roulette-section {
    width: 100%;
    position: relative;
    border-radius: 8px;
    backdrop-filter: blur(50px);
    padding: 50px 0;
    text-align: center;
    margin-top: 30px; /* Отступ от навигации */
}

/* Заголовок и описание */
.roulette-title {
    color: white;
    font-size: 34px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

.roulette-description {
    color: white;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    max-width: 550px;
    margin: 0 auto 40px;
}

/* Рулетка с горизонтальным скольжением */
.roulette-images {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
}
.roulette-images-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.try-luck-button {
    padding: 14px 24px;
    background: #9719FF;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.try-luck-button:hover {
    background-color: #7d17cc;
}

.button-price {
    padding: 6px 10px;
    background: white;
    border-radius: 41px;
    color: #9719FF;
    font-size: 14px;
    font-weight: 500;
}

/* Выбор сервера */
.server-select {
    height: 57px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
}
.center-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px; /* Толщина линии */
    height: 100%;
    background-color: #ffffff; /* Цвет линии */
    opacity: 0.7;
    z-index: 10;
}
.roulette-image {
    width: 232px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 42px;
}

.roulette-image img {
    width: 232px;
    height: 64px;
    border-radius: 8px;
}
.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow {
    width: 10px;
    height: 5px;
    background: rgba(255, 255, 255, 0.50);
}

/* Контейнер для призов */
.prizes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 20px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.20);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(50px);
}

/* Карточка приза */
.prize-card {
    flex: 1 1 calc(100% / 6 - 20px); /* Ширина карточки, чтобы вмещать до 6 на строку */
    max-width: calc(100% / 6 - 20px); /* Ограничение ширины для ровного размещения */
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

/* Изображение приза */
.prize-card img {
    width: 140px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Название и описание */
.prize-title {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 4px;
}

.prize-description {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.70);
    text-align: center;
}
/* Список серверов */
.server-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    text-align: left; /* Выравниваем текст по левому краю */
}

/* Элементы списка */
.server-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: white;
    font-size: 16px;
}

.server-item:hover {
    background: rgba(255, 255, 255, 0.2);
}
button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background-color: #9719FF;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #7d17cc;
}
.server-icon {
    width: 16px;
    height: 16px;
    margin-left: 10px;
}
.server-status-online {
    color: #32CD32; /* Зеленый для онлайн */
}

.server-status-offline {
    color: #FF6347; /* Красный для оффлайн */
}
/* Основное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px; /* Отступ сверху */
    z-index: 9999; /* Высокий приоритет */
}

/* Контент модального окна */
.modal-content {
    background-color: rgba(0, 0, 0, 0);
    padding: 30px;
    border-radius: 15px;
    width: 600px;
    max-height: 80%;
    overflow-y: auto;
    text-align: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 10000; /* Поверх всего остального */
}

/* Кнопка закрытия */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.close-modal:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}
/* Заголовок модального окна */
.modal-content h3 {
    margin-bottom: 20px;
    font-size: 24px;
}
/* Кнопка админ-панели */
.admin-link {
    margin-left: 15px; /* Добавляем отступ */
}

.admin-link-button {
    display: inline-block;
    padding: 20px 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: white;
    background: rgb(180, 56, 56);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.admin-link-button:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
}

/* Вкладки профиля */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Исправляем баг: теперь активная вкладка точно показывается */
.tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 💥 Важное исправление! Теперь вкладка будет ПРАВИЛЬНО отображаться */
/* 💥 Ломаем любые ошибки: вкладка "Покупки" ВСЕГДА будет видна */
/* ✅ Исправленный CSS, который ПРАВИЛЬНО показывает вкладки */
.tab-content {
    display: none !important; /* ❌ Скрываем все вкладки */
}

.tab-content.active {
    display: block !important; /* ✅ Показываем только активную вкладку */
}

.confirm-replace-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirm-replace-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* затемнённый фон */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirm-replace-content {
    background-color: rgba(0, 0, 0, 0.8); /* полупрозрачный тёмный фон */
    padding: 30px;
    border-radius: 15px;
    width: 500px;
    max-width: 90%;
    text-align: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    animation: zoomIn 0.3s ease forwards;
}

.confirm-replace-content p {
    font-size: 20px;
    margin-bottom: 25px;
}

.confirm-replace-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.confirm-replace-buttons button {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.confirm-replace-buttons button:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Плавное появление модалки */
@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.pagination {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: center;
}
.pagination button {
    padding: 5px 10px;
    border: none;
    background-color: #444;
    color: white;
    cursor: pointer;
}
.pagination button.active {
    background-color: #b3b3b3;
}
.pagination-dots {
    padding: 5px 8px;
    color: #999;
    user-select: none;
    align-self: flex-end; /* 👇 опускает элемент вниз в flex-контейнере */
}
.roulette-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
}
.server-select select {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.global-server-select {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.global-server-select label {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.global-server-select select {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.global-server-select select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.global-server-select select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 5px #00aaff;
}
.left-align {
    margin-left: 0;
    justify-content: flex-start;
}

.server-bar {
    display: flex;
    align-items: flex-start; /* Выровнял по верхнему краю */
    gap: 20px; /* Расстояние между выбором сервера и карточками */
    flex-wrap: wrap; /* Если не влезает, переносится */
    margin: 30px 0;
}

/* Блок выбора сервера — оставляем как есть */
.global-server-select-custom {
    min-width: 220px; /* Чтобы он не был слишком узким */
    flex-shrink: 0; /* Чтобы не сжимался */
}

/* Карточки сервера — делаем адаптивными и мелкими */
.server-monitoring {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    flex: 1; /* Занимает всё доступное пространство */
}

.server-status-box {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    min-width: 160px; /* Ещё компактнее */
    flex: 1 1 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.server-status-box:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Текст в карточке (уменьшен) */
.server-info-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.server-info-online {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
}

.server-info-map-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
    font-style: italic;
}


.ServerSelectBlock {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.Server_Select {
    background-color: #343333;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    height: 45px;
    line-height: 45px;
    padding-left: 18px;
    padding-right: 30px;
    position: relative;
    transition: all .2s ease-in-out;
    user-select: none;
    white-space: nowrap;
}

.Server_Select:after {
    content: "";
    border-bottom: 2px solid #999;
    border-right: 2px solid #999;
    display: block;
    height: 5px;
    width: 5px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transition: all .15s ease-in-out;
}

.Server_Select.Open:after {
    transform: translateY(-50%) rotate(-135deg);
}

.Server_SelectedInp {
    background-color: #343333;
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgb(68 68 68 / 11%);
    margin-top: 4px;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    transform-origin: 50% 0;
    transform: scale(0.75) translateY(-21px);
    transition: all .2s cubic-bezier(.5, 0, 0, 1.25), opacity .15s ease-out;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;

    /* 👇 ДОБАВЬ ЭТО: */
    max-height: 220px;
    overflow-y: auto;
}


.Server_SelectedInp::-webkit-scrollbar {
    width: 6px;
}

.Server_SelectedInp::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.Server_SelectedInp {
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

.Server_SelectedInp.Open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.Server_SelOption {
    padding-left: 18px;
    padding-right: 29px;
    line-height: 48px;
    min-height: 48px;
    color: #ffffff85;
    transition: all .2s;
    cursor: pointer;
}

.Server_SelOption:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.Server_SelOption.Selected {
    color: white;
}
.select-wrapper {
    position: relative;
    flex-grow: 1;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.select-wrapper select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.select-wrapper select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 5px #00aaff;
}

/* 👇 Кастомная стрелочка */
.select-wrapper .select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 10px;
    height: 10px;
    pointer-events: none;
    transform: translateY(-50%) rotate(45deg);
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    opacity: 0.7;
}
.global-server-select-custom {
    position: relative;
    width: 250px;
    font-family: 'Montserrat', sans-serif;
}
.global-server-select-custom {
    position: relative;
    width: 250px;
    font-family: 'Montserrat', sans-serif;
}

.custom-select {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 25px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}


.custom-select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.arrow-down {
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin-left: 10px;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(50, 50, 50, 0.9);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    margin-top: 6px;
}
.custom-options.show {
    display: block;
}
.custom-option {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
/* Баннер как якорь для абсолютного позиционирования */
.banner { position: relative; overflow: hidden; }

/* Мягкое затемнение снизу для читаемости карточек */
.banner::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:46%;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events:none;
  border-radius: inherit;
  z-index: 1;
}

/* Мониторинг на баннере — снизу слева */
.server-monitoring.on-banner{
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;                   /* выше затемнения */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: calc(100% - 32px); /* чтобы не вылезало за края */
}

/* Можно чуть уплотнить карточки на баннере, не ломая твой общий стиль */
.server-monitoring.on-banner .server-status-box{
  min-width: 180px;             /* компактнее, чем в общем списке */
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.192);  /* чуть темнее на баннере для контраста */
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
}

/* Адаптив: на узких — ужимаем и скрываем часть второстепенного текста */
@media (max-width: 900px){
  .server-monitoring.on-banner .server-status-box{
    min-width: 160px;
    padding: 8px 10px;
  }
  .server-monitoring.on-banner .server-info-map-time{
    display: none;  /* на мобильных оставим Только имя+онлайн */
  }
}
.server-status-box{ position:relative; padding-left:28px; }
.server-status-box::before{
  content:""; position:absolute; left:10px; top:12px; width:10px; height:10px; border-radius:50%;
  background:#ff4d4f; /* offline по умолчанию */
  box-shadow:0 0 0 2px rgba(0,0,0,.25) inset, 0 0 10px rgba(255,77,79,.35);
  transition:background .2s, box-shadow .2s, transform .2s;
}
.server-status-box.is-online::before{
  background:#36e46f;
  box-shadow:0 0 0 2px rgba(0,0,0,.2) inset, 0 0 12px rgba(54,228,111,.55);
  animation:status-pulse 1.8s ease-in-out infinite;
}
@keyframes status-pulse{ 0%{transform:scale(1)}50%{transform:scale(1.15)}100%{transform:scale(1)} }
/* если раньше был индикатор на .server-status-box::before — выключаем */
.server-status-box::before{ display:none !important; }
.server-status-box{ padding-left: 15px !important; } /* возвращаем нормальный отступ */
/* имя сервера в строку с точкой слева */
.server-info-name{
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  /* точка-статус перед текстом (по умолчанию КРАСНАЯ = оффлайн/нет ответа) */
  .server-info-name::before{
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4d4f; /* красный */
    box-shadow: 0 0 0 2px rgba(0,0,0,.25) inset, 0 0 10px rgba(255,77,79,.35);
    flex: 0 0 10px;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
  }
  
  /* когда сервер отвечает — ЗЕЛЁНЫЙ */
  .server-status-box.is-online .server-info-name::before{
    background: #36e46f;
    box-shadow: 0 0 0 2px rgba(0,0,0,.2) inset, 0 0 12px rgba(54,228,111,.55);
    animation: status-pulse 1.8s ease-in-out infinite;
  }
  
  /* опционально — слегка приглушаем оффлайн */
  .server-status-box.is-offline .server-info-name{ opacity: .95; }
  
  @keyframes status-pulse{
    0%{transform:scale(1)}
    50%{transform:scale(1.15)}
    100%{transform:scale(1)}
  }
  /* ==== Toolbar: выше и с меньшим скруглением ==== */
  .server-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  
  /* селект сервера — выше и менее скруглённый */
  .server-toolbar .global-server-select-custom{
    flex:0 0 260px; /* при необходимости подгони ширину */
  }
  .server-toolbar .custom-select{
    height:56px;             /* +высота */
    padding:0 16px;          /* плотнее по бокам */
    border-radius:10px;      /* было «пилюлей», делаем спокойнее */
    display:flex;
    align-items:center;
  }
  
  /* категории — выше и менее скруглённые */
  .server-toolbar .categories{
    flex: 1 1 0;          /* можно сжиматься */
    min-width: 0;         /* КРИТИЧНО: иначе будет выталкивать вправо */
    display: flex;
    flex-wrap: wrap;      /* перенос чипов на новые строки */
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    white-space: normal;  /* отменяем nowrap на контейнере */
    overflow: visible;
  }
  .server-toolbar .categories::-webkit-scrollbar{ display:none; }
  
  /* чипы категорий */
  .server-toolbar .category-item{
    /* ключевые правки для переноса и троеточия */
    flex: 0 1 auto;        /* можно сжиматься (а не фикс. ширина) */
    min-width: 0;          /* важно для обрезки внутри flex */
    max-width: 240px;      /* ограничиваем ширину бейджа */
    white-space: nowrap;   /* в одну строку */
    overflow: hidden;      
    text-overflow: ellipsis;
  
    /* твои существующие стили ниже — оставляем */
    display:flex;
    align-items:center;
    min-height:56px;
    padding:0 18px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.18);
    background:transparent;
    color:rgba(255,255,255,.92);
    font-weight:600;
    letter-spacing:.2px;
    cursor:pointer;
    transition:
      transform .15s ease,
      border-color .2s ease,
      background .2s ease,
      color .2s ease,
      box-shadow .2s ease;
  }

  .server-toolbar .category-item:hover{
    transform:translateY(-1px);
    border-color:rgba(255,255,255,.35);
    background:rgba(255,255,255,.04); /* можешь удалить для «сухого» вида */
    color:#fff;
  }
  .server-toolbar .category-item.active-category{
    border-color:rgba(255,255,255,.7);
    color:#fff;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
  }
  
  /* адаптив: на узких переносим строки */
  @media (max-width:900px){
    .server-toolbar{ flex-wrap:wrap; }
    .server-toolbar .global-server-select-custom{ flex:1 1 100%; }
    .server-toolbar .categories{ width:100%; }
    .server-toolbar .category-item{ min-height:52px; padding:0 16px; }
  }
  /* === Server Select — clean glass style === */
:root{
    --ss-bg: rgba(255,255,255,.06);
    --ss-bg-hover: rgba(255,255,255,.10);
    --ss-stroke: rgba(255,255,255,.22);
    --ss-stroke-strong: rgba(255,255,255,.45);
    --ss-text: rgba(255,255,255,.95);
  }
  
  .server-toolbar .global-server-select-custom{
    position: relative;
    flex: 0 0 260px;               /* ширина селекта; подгони при желании */
    z-index: 20;                   /* поверх категорий и прочего */
  }
  
  .server-toolbar .custom-select{
    height: 56px;                  /* выше */
    padding: 0 16px;
    border-radius: 10px;           /* меньшее скругление */
    background: var(--ss-bg);
    border: 1px solid var(--ss-stroke);
    color: var(--ss-text);
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
  }
  .server-toolbar .custom-select:hover{
    background: var(--ss-bg-hover);
    border-color: var(--ss-stroke-strong);
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    transform: translateY(-1px);
  }
  
  /* стрелка */
  .server-toolbar .arrow-down{
    width: 8px; height: 8px;
    border-right: 2px solid rgba(255,255,255,.8);
    border-bottom: 2px solid rgba(255,255,255,.8);
    transform: rotate(45deg);
    transition: transform .2s ease, opacity .2s ease;
    opacity: .9;
  }
  
  /* состояния "открыто" без JS-класса — через :has() списка с .show */
  .global-server-select-custom:has(.custom-options.show) .custom-select{
    background: rgba(255,255,255,.12);
    border-color: var(--ss-stroke-strong);
    box-shadow: 0 14px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  }
  .global-server-select-custom:has(.custom-options.show) .arrow-down{
    transform: rotate(225deg);     /* переворачиваем стрелку при открытии */
  }
  
  /* список вариантов */
  .server-toolbar .custom-options{
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    display: none;                 /* по умолчанию скрыт (показывается твоим .show) */
    background: rgba(15, 15, 15, 0.274);
    border: 1px solid var(--ss-stroke);
    border-radius: 10px;
    box-shadow: 0 18px 36px rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
    z-index: 9999;
  }
  .server-toolbar .custom-options.show{ display: block; }
  
  /* скроллбар (WebKit) */
  .server-toolbar .custom-options::-webkit-scrollbar{ width: 6px; }
  .server-toolbar .custom-options::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.35);
    border-radius: 4px;
  }
  .server-toolbar .custom-options::-webkit-scrollbar-track{
    background: transparent;
  }
  
  /* пункт списка */
  .server-toolbar .custom-option{
    display: flex; align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ss-text);
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .15s ease, transform .12s ease;
    cursor: pointer;
  }
  .server-toolbar .custom-option:hover{
    background: rgba(255,255,255,.10);
    transform: translateY(-1px);
  }
  
  /* active/keyboard press ощущение */
  .server-toolbar .custom-option:active{
    transform: translateY(0);
    background: rgba(255,255,255,.16);
  }
  
  /* доступность */
  .server-toolbar .custom-select:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,.25);
  }
  
  /* на узких — растягиваем селект */
  @media (max-width: 900px){
    .server-toolbar .global-server-select-custom{ flex: 1 1 100%; }
  }
  /* Лента: селект + категории с переносом */
.server-toolbar{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
  }
  
  /* селект фиксированной ширины (первая строка, слева) */
  .server-toolbar .global-server-select-custom{
    flex:0 0 260px;
  }
  
  /* «растворяем» обёртку категорий — чипы станут прямыми flex-элементами,
     поэтому перенос начнётся под селектом */
  .server-toolbar .categories{
    display: contents !important;
  }
  
  /* Чипы:
     - растягиваются (flex-grow:1), чтобы заполнить всю строку без пустоты;
     - не сжимаются меньше текста (min-width:max-content);
     - длинные названия обрезаем троеточием, если нужно. */
  .server-toolbar .category-item{
    flex: 1 1 0;              /* делят доступное место строки */
    min-width: max-content;   /* не меньше ширины текста */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  
    /* твои визуальные стили — оставляем */
    display:flex;
    align-items:center;
    min-height:56px;
    padding:0 18px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.18);
    background:transparent;
    color:rgba(255,255,255,.92);
    font-weight:600;
    letter-spacing:.2px;
    transition: transform .15s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  }
  /* === Roulette: серверный селект как на главной === */
.roulette-actions .global-server-select-custom{
    position: relative;
    flex: 0 0 260px;
    z-index: 20;
    font-family: 'Montserrat', sans-serif;
  }
  
  .roulette-actions .custom-select{
    height: 56px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--ss-bg, rgba(255,255,255,.06));
    border: 1px solid var(--ss-stroke, rgba(255,255,255,.22));
    color: var(--ss-text, rgba(255,255,255,.95));
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
  }
  
  .roulette-actions .custom-select:hover{
    background: var(--ss-bg-hover, rgba(255,255,255,.10));
    border-color: var(--ss-stroke-strong, rgba(255,255,255,.45));
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    transform: translateY(-1px);
  }
  
  /* стрелка */
  .roulette-actions .arrow-down{
    width: 8px; height: 8px;
    border-right: 2px solid rgba(255,255,255,.8);
    border-bottom: 2px solid rgba(255,255,255,.8);
    transform: rotate(45deg);
    transition: transform .2s ease, opacity .2s ease;
    opacity: .9;
  }
  
  /* активное состояние (когда список открыт) */
  .roulette-actions .global-server-select-custom:has(.custom-options.show) .custom-select{
    background: rgba(255,255,255,.12);
    border-color: var(--ss-stroke-strong, rgba(255,255,255,.45));
    box-shadow: 0 14px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  }
  .roulette-actions .global-server-select-custom:has(.custom-options.show) .arrow-down{
    transform: rotate(225deg);
  }
  
  /* список */
  .roulette-actions .custom-options{
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    display: none;
    background: rgba(15,15,15,0.27);
    border: 1px solid var(--ss-stroke, rgba(255,255,255,.22));
    border-radius: 10px;
    box-shadow: 0 18px 36px rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
    z-index: 9999;
  }
  .roulette-actions .custom-options.show{ display: block; }
  .roulette-actions .custom-options::-webkit-scrollbar{ width: 6px; }
  .roulette-actions .custom-options::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.35);
    border-radius: 4px;
  }
  
  /* пункт списка */
  .roulette-actions .custom-option{
    display: flex; align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ss-text, rgba(255,255,255,.95));
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .15s ease, transform .12s ease;
    cursor: pointer;
  }
  .roulette-actions .custom-option:hover{
    background: rgba(255,255,255,.10);
    transform: translateY(-1px);
  }
  .roulette-actions .custom-option:active{
    transform: translateY(0);
    background: rgba(255,255,255,.16);
  }
  
  /* на узких — растягиваем селект */
  @media (max-width: 900px){
    .roulette-actions{
      flex-wrap: wrap;
    }
    .roulette-actions .global-server-select-custom{
      flex: 1 1 100%;
    }
  }
  