body {
    font-family: 'Rubik', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    flex-grow: 1;
}

.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px; }
.legend-item { display: flex; flex-direction: column; align-items: center; }
.legend-label { font-size: 0.7rem; margin-top: 2px; }
.legend-value { font-size: 0.8rem; }


.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid #334155;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #0d6efd;
    margin-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    color: #0d6efd;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.header .icon-buttons {
    display: flex;
   
    margin-left: 20px;
}

.header .icon-buttons .btn {
    background: linear-gradient(135deg, #2196F3 0%, #0f71bf 100%);
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header .icon-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.advert-banner {
    width: 470px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: inline-block;
    margin-right: 0px;
    border: 1px solid #475569;
    box-sizing: border-box;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.plus-button {
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(135deg, #2196F3 0%, #0f71bf 100%);
    color: white;
    font-size: 12px;
    border: none;
    border-radius: 0 0 0 8px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plus-button:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #33bfff 100%);
    transform: scale(1.1);
}

@media (max-width: 1100px) {
    .header {
        padding: 12px 20px;
    }
}

@media (max-width: 767px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .header .logo {
        margin-bottom: 0px;
        margin-left: 0;
    }

    .header .advert-banner {
        margin: 15px 0;
        width: 100%;
        max-width: 350px;
       
    }

    .header .icon-buttons {
        margin: 15px 0 0 0;
    }
}

.main-content {
    padding: 30px 20px;
    background: transparent;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.item {
     background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border: 1px solid #475569;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #334155;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #475569;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-title {
    font-size: 1.0em;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    width: 80%;
}

.favicon-container {
    width: 32px;
    height: 32px;
    overflow: hidden;
    background: #475569;
    border-radius: 8px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #64748b;
    flex-shrink: 0;
}

.favicon {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.title-and-small {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.item-title-text {
    font-size: 1.2em;
    font-weight: 600;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Стиль для текста с фоном для лучшей видимости */
.text-bg {
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    text-shadow: 
        0 0 3px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(0, 0, 0, 0.5),
        1px 1px 0 rgba(0, 0, 0, 0.7),
        -1px -1px 0 rgba(0, 0, 0, 0.7),
        1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px 1px 0 rgba(0, 0, 0, 0.7);
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-block;
    line-height: 1.4;
}

.text-small {
    font-size: 0.8em;
    color: #94a3b8;
    margin-top: 5px;
}

/* Стиль для мигающего текста */
.blink-title .text-bg {
    animation: blink-title 1.5s infinite;
}

@keyframes blink-title {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 3px rgba(0, 0, 0, 0.8);
    }
    50% { 
        opacity: 0.7;
        text-shadow: 
            0 0 15px currentColor,
            0 0 25px currentColor,
            0 0 3px rgba(0, 0, 0, 0.8);
    }
}

/* Стиль для мигающей кнопки */
.blink-button {
    animation: blink-button 1.5s infinite;
}

@keyframes blink-button {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 10px currentColor;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
        transform: scale(1.02);
    }
}

.item button {
    background: linear-gradient(135deg, #2196F3 0%, #0f71bf 100%);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 8px;
    margin-left: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
}

.item button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.item button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.item button:hover::before {
    left: 100%;
}

.footer {
    border-top: 1px solid #334155;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 25px;
    text-align: center;
    color: #94a3b8;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.footer p {
    margin: 0;
    font-size: 0.9em;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Анимации для плавного появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item {
    animation: fadeInUp 0.5s ease-out;
}

/* Стили для скроллбара */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2196F3 0%, #0f71bf 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
   background: linear-gradient(135deg, #2196F3 0%, #0f71bf 100%);
}

/* Эффект свечения для логотипа */
.logo {
    position: relative;
}
.logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.logo:hover::after {
    opacity: 1;
}

/* Улучшенные тени и градиенты */
.header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    backdrop-filter: blur(10px);
}

.footer {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    backdrop-filter: blur(10px);
}

/* Убрали градиентный текст, чтобы цвет был из базы данных */
/* .item-title-text {
    background: linear-gradient(90deg, #0d6efd, #0d6efd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} */

/* Стили для VIP значка */
.vip-corner-badge {
    position: absolute;
    left: -6px;
    top: -6px;
    z-index: 10;
}

.vip-circle-small {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 30% 30%, #FFD700 0%, #FFA500 60%, #FF8C00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.7), 
              0 0 15px rgba(255, 165, 0, 0.5),
              0 0 0 2px rgba(255, 255, 255, 0.9),
              inset 0 0 6px rgba(255, 255, 255, 0.3);
    border: 1.5px solid white;
    animation: vipPulseSmall 3s infinite;
    transition: all 0.3s ease;
    transform: rotate(-15deg);
    transform-origin: center;
}

.vip-circle-small:hover {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.9), 
              0 0 24px rgba(255, 165, 0, 0.7),
              0 0 0 3px rgba(255, 255, 255, 1);
    border: 1.5px solid white;
}

.vip-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(15deg);
    text-align: center;
}

.vip-circle-small i {
    color: #000;
    font-size: 8px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
    margin-bottom: -1px;
}

.vip-text-small {
    color: #000;
    font-weight: 800;
    font-size: 7px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
    font-family: Arial, sans-serif;
    line-height: 0.8;
}

@keyframes vipPulseSmall {
    0%, 100% {
        box-shadow: 0 0 6px rgba(255, 215, 0, 0.6), 
                  0 0 12px rgba(255, 165, 0, 0.4),
                  0 0 0 1.5px rgba(255, 255, 255, 0.9),
                  inset 0 0 4px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 
                  0 0 20px rgba(255, 165, 0, 0.6),
                  0 0 0 2px rgba(255, 255, 255, 1),
                  inset 0 0 8px rgba(255, 255, 255, 0.4);
    }
}

/* Эффект при наведении на всю карточку */
.item:hover .vip-circle-small {
    animation: vipPulseSmall 0.5s infinite;
}

/* Адаптивность для VIP значка */
@media (max-width: 768px) {
    .vip-corner-badge {
        left: -5px;
        top: -5px;
    }
    
    .vip-circle-small {
        width: 24px;
        height: 24px;
    }
    
    .vip-circle-small i {
        font-size: 7px;
    }
    
    .vip-text-small {
        font-size: 5px;
    }
    
    .text-bg {
        font-size: 1rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .vip-corner-badge {
        left: -4px;
        top: -4px;
    }
    
    .vip-circle-small {
        width: 22px;
        height: 22px;
    }
    
    .vip-circle-small i {
        font-size: 9px;
    }
    
    .vip-text-small {
        font-size: 8px;
    }
    
    .text-bg {
        font-size: 0.95rem;
        padding: 2px 6px;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .item button {
        margin-left: 0;
        width: 100%;
    }
}

/* Центрирование всего контента на странице */
body > * {
    margin-left: auto;
    margin-right: auto;
} 


  
  /* Стили для скрытия текста на мобильных устройствах */
@media (max-width: 767.98px) { /* Выберите брейкпойнт, который соответствует вашему определению "мобильной версии" */
    .btn-light-custom .mHidden {
        display: none; /* Скрываем элемент */
    }
    .btn-light-custom {
        /* Можно добавить небольшие корректировки для стилей кнопки, если нужно */
        padding-left: 0.75rem !important; /* Уменьшаем padding, чтобы иконка была по центру */
        padding-right: 0.75rem !important;
        display: inline-flex; /* Убедимся, что иконка и текст (если будет) выравниваются */
        align-items: center; /* Выравнивание по вертикали */
        justify-content: center; /* Выравнивание по горизонтали */
    }
    .btn-light-custom i {
        margin-right: 0; /* Убираем правый отступ у иконки, чтобы она была по центру */
    }
}  
    
    
    
    
    
    
    
    
    
    
        .online-counter {
        position: relative;
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
        /* Изменен цвет границы */
        border: 1px solid rgba(0, 146, 163, 0.3); 
        border-radius: 10px;
        padding: 8px 15px;
        transition: all 0.3s ease;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .online-counter:hover {
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
        /* Изменен цвет границы при наведении */
        border-color: rgba(0, 146, 163, 0.6); 
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    }

    .online-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        background: #0d6efd;
        border-radius: 50%;
        animation: pulseDot 2s infinite;
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    }

    .online-text {
        color: #94a3b8;
        font-weight: 500;
        font-size: 0.95rem;
    }

    .online-count {
        color: #ef4444;
        font-weight: 700;
        font-size: 1.1rem;
        text-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
        position: relative;
        transition: all 0.3s ease;
    }

    .online-counter:hover .online-count {
        transform: scale(1.1);
        color: #ff6b6b;
    }

    .online-unit {
        color: #f59e0b;
        font-weight: 600;
        font-size: 0.9rem;
    }

    /* Анимации */
    @keyframes pulseDot {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
        }
        50% {
            transform: scale(1.2);
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
        }
    }

    @keyframes floatText {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-3px);
        }
    }

    .online-counter:hover .online-count {
        animation: floatText 1.5s ease-in-out infinite;
    }

    /* Адаптивность для счетчика */
    @media (max-width: 768px) {
        .footer .d-flex {
            flex-direction: column;
            text-align: center;
            gap: 15px;
        }

        .online-counter {
            justify-content: center;
            margin: 0 auto;
            width: fit-content;
        }

        .float-end {
            float: none !important;
            text-align: center !important;
            margin-top: 10px;
        }
    }

    @media (max-width: 576px) {
        .online-count {
            font-size: 1rem;
        }

        .online-unit {
            font-size: 0.8rem;
        }

        .online-counter {
            padding: 6px 12px;
        }
    }
    
    