/* Базовые стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background: linear-gradient(45deg, #0a192f, #173a6e, #0a192f);
    color: #ccd6f6;
    /* Светлый текст для темного фона */
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: rgba(10, 25, 47, 0.85);
    /* Полупрозрачный фон */
    color: #fff;
    padding: 1.9rem 0; /* Увеличено на 1 см для вставки картинки */
    min-height: 70px; /* Минимальная высота 70px для картинки */
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 2.5rem;
    margin: 0;
    font-style: italic;
    font-weight: bold;
    line-height: 1;
    /* Применяем переливающийся фон к тексту */
    background: linear-gradient(45deg, #ff8c00, #ffd700, #ffA500, #ffd700, #ff8c00);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    /* Магия для отображения фона только на буквах */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Анимация для переливающихся кнопок */
@keyframes redGoldGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Основной контент */
main {
    padding: 2rem 0;
}

main h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #e6f1ff;
}

#mods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Стили для карточек модов */
.mod-card {
    background: #112240;
    /* Темный фон для карточек */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mod-card:hover {
    transform: translateY(-5px);
}

.mod-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
}

.mod-card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mod-card-content h3 {
    margin: 0 0 0.5rem 0;
}

.mod-card-content p {
    font-size: 0.9rem;
    color: #8892b0;
    /* Более светлый серый */
    margin: 0.25rem 0;
}

.mod-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #8892b0;
    margin-bottom: 1rem;
}

.mod-footer {
    margin-top: auto; /* Прижимает этот блок к низу */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-info {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #8892b0;
}

.download-icon {
    margin-right: 8px;
}

.mod-card-content .download-button {
    margin-top: auto;
    /* Прижимает кнопку к низу карточки */
}

.download-button {
    padding: 0.6rem 1.2rem;
    background-color: #5c8d2b;
    /* Зеленый цвет */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.2s;
}

.download-button:hover {
    background-color: #4a7222;
    /* Более темный зеленый при наведении */
}

/* Подвал */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background: #0a192f;
    color: #fff;
    margin-top: 2rem;
}

/* Стиль для переливающегося красного текста в футере */
footer p.footer-text-shimmer {
    font-weight: 900; /* Сделал текст максимально жирным */
    background: linear-gradient(90deg, #4caf50, #ffd700, #66bb6a, #ffd700, #4caf50);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: footerTextShimmer 12s ease-in-out infinite; /* Сделал анимацию еще медленнее и добавил пульс */
}

/* --- Стили аутентификации --- */

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#auth-container button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #5c8d2b;
    color: white;
    font-weight: bold;
    margin-left: 10px;
}

#auth-container button:hover {
    background-color: #4a7222;
}

#logout-button {
    background-color: #c0392b;
}

#logout-button:hover {
    background-color: #a93226;
}

#admin-panel-button {
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#admin-panel-button:hover {
    background: linear-gradient(135deg, #29b6f6, #1976d2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 195, 247, 0.3);
}

/* Специальные цвета для разных ролей админов */
#admin-panel-button.owner {
    background: linear-gradient(135deg, #ffd700, #ff8c00, #dc143c, #8b0000);
    background-size: 400% 400%;
    animation: ownerGradient 3s ease infinite;
}

#admin-panel-button.admin {
    background: linear-gradient(135deg, #4fc3f7, #ffc107, #ff9800, #4fc3f7);
    background-size: 400% 400%;
    animation: adminGradient 3s ease infinite;
}

#admin-panel-button.moderator {
    background: linear-gradient(135deg, #2196f3, #f44336, #dc143c, #2196f3);
    background-size: 400% 400%;
    animation: moderatorGradient 3s ease infinite;
}

/* Компактность и позиционирование в шапке */
#auth-container #user-info #admin-panel-button {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

@keyframes ownerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes adminGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes moderatorGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#user-info {
    display: flex;
    align-items: center;
}

#user-identifier {
    margin-right: 15px;
    font-weight: bold;
}

/* Стили для форм */
.auth-window {
    max-width: 450px;
    margin: 2rem auto;
    background: #112240;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background-color: #0a192f;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #8892b0;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.auth-tab:hover {
    color: #4fc3f7;
}

.auth-tab.active {
    color: #4fc3f7;
    border-bottom-color: #4fc3f7;
}

.auth-panels {
    padding: 2rem;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-panel form button {
    width: 100%;
    padding: 12px;
    background-color: #4fc3f7;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-panel form button:hover {
    background-color: #29b6f6;
}

.auth-message {
    font-size: 0.9rem;
    color: #ff79c6;
    /* Розовый для ошибок, хорошо виден на темном */
    text-align: center;
    margin-top: 2rem;
}

.auth-panel input {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #233554;
    background-color: #0a192f;
    border-radius: 5px;
    color: #ccd6f6;
    /* Добавляем цвет для вводимого текста */
    box-sizing: border-box;
    /* Важно для правильной ширины */
}

/* Стили для иконки просмотра пароля */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper.password-wrapper {
    justify-content: space-between;
}


/* --- Стили для админ-панели --- */

#admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 800px;
    background: linear-gradient(135deg, #112240, #1a2f5e);
    border: 3px solid rgba(79, 195, 247, 0.4);
    border-radius: 25px;
    z-index: 9999 !important;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

#admin-panel.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.admin-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.admin-panel-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

#admin-panel h3 {
    margin-top: 0;
    color: #4fc3f7;
    border-bottom: 2px solid rgba(79, 195, 247, 0.3);
    padding-bottom: 1rem;
    font-size: 1.5rem;
}

.admin-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-card {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.admin-card:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: #4fc3f7;
    transform: translateY(-5px);
}

.admin-card h4 {
    color: #4fc3f7;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.admin-card p {
    color: #8892b0;
    margin: 0;
    font-size: 0.9rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.stat-number {
    color: #4fc3f7;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.stat-label {
    color: #8892b0;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}

.admin-section {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.admin-stats-details p {
    margin: 0.5rem 0;
    color: #8892b0;
}

.admin-stats-details strong {
    color: #4fc3f7;
}

/* Стили для модальной админ панели */
.admin-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.admin-panel-grid .admin-section h3 {
    color: #4fc3f7;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.admin-panel-grid .admin-section .btn {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-panel-grid .admin-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Стили для категорий модов */
.mod-categories h3 {
    color: #ffd700;
    margin: 15px 0 10px;
    font-size: 16px;
    text-align: center;
}

.category-btn {
    display: block;
    width: 100%;
    margin: 2px 0;
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
    line-height: 1.2;
    background: linear-gradient(135deg, #4caf50, #66bb6a) !important; /* Зеленый фон по умолчанию */
    color: white !important; /* Белый цвет текста для контраста */
    border: 1px solid #388e3c !important; /* Темно-зеленая рамка */
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-btn.active {
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.5);
}

.category-count-badge {
    float: right;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
    min-width: 20px;
    text-align: center;
}

/* Специальные цвета для счетчиков разных игр */
.game-categories.active .category-count-badge {
    background: rgba(255, 255, 255, 0.3);
    color: inherit;
}

/* Стили для правой боковой панели */
.site-layout {
    display: flex;
    min-height: calc(100vh - 200px);
    gap: 20px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.right-sidebar {
    width: 280px;
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 10px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Стили для выбора игры */
.game-selection {
    margin-bottom: 20px;
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-btn.active {
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.5) !important;
}

/* Специальные цвета для кнопок игр */
.fs25-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
}

.fs22-btn {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    color: white;
}

.fs19-btn {
    background: linear-gradient(135deg, #FFC107, #FFCA28);
    color: #333;
}

.fs25-btn:hover {
    background: linear-gradient(135deg, #388E3C, #4CAF50);
}

.fs22-btn:hover {
    background: linear-gradient(135deg, #1976D2, #2196F3);
}

.fs19-btn:hover {
    background: linear-gradient(135deg, #FFB300, #FFC107);
}

.fs25-btn.active {
    background: linear-gradient(135deg, #2E7D32, #388E3C) !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6) !important;
    color: white !important;
}

.fs22-btn.active {
    background: linear-gradient(135deg, #1565C0, #1976D2) !important;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.6) !important;
    color: white !important;
}

.fs19-btn.active {
    background: linear-gradient(135deg, #FF8F00, #FFB300) !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6) !important;
    color: #333 !important;
}

.game-icon {
    font-size: 16px;
}

.game-name {
    flex: 1;
}

/* Стили для категорий в правой панели */
.game-categories {
    display: none;
    margin-bottom: 20px;
}

.game-categories.active {
    display: block;
}

.game-categories h4 {
    margin: 15px 0 10px;
    font-size: 14px;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
}

/* Золотистый переливающийся фон для VIP категорий */
.game-categories.requires-vip {
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(255, 223, 0, 0.15), 
        rgba(255, 193, 7, 0.1), 
        rgba(255, 215, 0, 0.12)
    );
    background-size: 400% 400%;
    animation: vipGoldGradient 8s ease infinite;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

@keyframes vipGoldGradient {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    }
    25% {
        background-position: 100% 50%;
        box-shadow: 0 0 25px rgba(255, 223, 0, 0.15);
    }
    50% {
        background-position: 100% 100%;
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.2);
    }
    75% {
        background-position: 0% 100%;
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    }
}

/* Золотистый заголовок для VIP категорий */
.game-categories.requires-vip h4 {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border-bottom: 1px solid rgba(255, 215, 0, 0.4);
    font-weight: bold;
    font-size: 15px;
}

/* Золотистые кнопки для VIP категорий */
.game-categories.requires-vip .category-btn {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2), 
        rgba(255, 223, 0, 0.15)
    );
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    position: relative;
    overflow: hidden;
}

.game-categories.requires-vip .category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.3), 
        transparent
    );
    transition: left 0.5s;
}

.game-categories.requires-vip .category-btn:hover::before {
    left: 100%;
}

.game-categories.requires-vip .category-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.3), 
        rgba(255, 223, 0, 0.25)
    );
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    color: #fff;
}

.game-categories.requires-vip .category-btn.active {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.4), 
        rgba(255, 223, 0, 0.35)
    );
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    color: #fff;
    border-color: rgba(255, 215, 0, 0.5);
}

/* Золотистые счетчики для VIP категорий */
.game-categories.requires-vip .category-count-badge {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.right-sidebar .category-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.right-sidebar .category-btn.active {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

/* Специальные цвета для категорий - удалены, чтобы использовать стили из index.html */

/* Цвета для FS25 - удалены, чтобы использовать стили из index.html */

/* Цвета для FS22 - удалены, чтобы использовать стили из index.html */

/* Цвета для FS19 - удалены, чтобы использовать стили из index.html */

/* Стили для админ панели управления пользователями */
.admin-users-container {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
}

.users-count {
    color: #4fc3f7;
    font-size: 1.1rem;
    font-weight: 600;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.user-card {
    background: rgba(79, 195, 247, 0.05);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.user-card:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: rgba(79, 195, 247, 0.4);
    transform: translateY(-2px);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-name {
    color: #4fc3f7;
    font-weight: 600;
    font-size: 1rem;
}

.user-email {
    color: #8892b0;
    font-size: 0.9rem;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.user-role-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.user-role-badge.user {
    background: rgba(79, 195, 247, 0.2);
    color: #4fc3f7;
}

.user-role-badge.moderator {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.user-role-badge.moderator_senior {
    background: rgba(255, 87, 34, 0.2);
    color: #ff5722;
}

.user-role-badge.admin {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.user-role-badge.admin_senior {
    background: rgba(233, 30, 99, 0.2);
    color: #e91e63;
}

.user-role-badge.owner {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.user-role-badge.vip {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.user-status {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.user-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.user-status.banned {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.user-action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-action-btn.ban {
    background: #f44336;
    color: white;
}

.user-action-btn.unban {
    background: #4CAF50;
    color: white;
}

.user-action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.user-details {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(79, 195, 247, 0.1);
    font-size: 0.8rem;
    color: #8892b0;
}

.ban-reason {
    color: #ff5252;
    font-style: italic;
}

/* Стили для действий с пользователями */
.user-actions-panel {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.user-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.user-action-button {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.user-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.user-action-button.banned {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.user-action-button.banned:hover {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.user-action-button.stats {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
}

.user-action-button.stats:hover {
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

/* Стили для статистики пользователей */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 195, 247, 0.4);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4fc3f7;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #8892b0;
    font-size: 0.9rem;
    font-weight: 500;
}

.role-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.role-stat {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    flex: 1;
    min-width: 120px;
}

.role-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4fc3f7;
    display: block;
}

.role-name {
    color: #8892b0;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Стили для черного списка */
.banned-users-container {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
}

.banned-user-card {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    border-left: 3px solid #f44336;
}

.banned-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.banned-user-info {
    color: #ffcdd2;
}

.banned-reason {
    color: #ff5252;
    font-style: italic;
    margin: 0.3rem 0;
}

.empty-blacklist {
    text-align: center;
    padding: 3rem;
    color: #8892b0;
}

.empty-blacklist-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.user-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.user-list-table th,
.user-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #233554;
}

.user-list-table th {
    color: #4fc3f7;
}

.user-list-table select, .user-list-table button {
    background-color: #0a192f;
    color: #ccd6f6;
    border: 1px solid #233554;
    border-radius: 4px;
    padding: 5px;
}

/* --- Стили модальных окон аутентификации --- */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 47, 0.9);
    -webkit-backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

/* Анимация появления модального окна */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-content {
    background: linear-gradient(135deg, #112240, #1a2f5e);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(79, 195, 247, 0.3);
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-content h3 {
    margin: 0 0 1.2rem 0;
    color: #4fc3f7;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8892b0;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(79, 195, 247, 0.2);
    background: rgba(10, 25, 47, 0.8);
    border-radius: 8px;
    color: #ccd6f6;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 42px;
}

.form-group input:focus {
    outline: none;
    border-color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(79, 195, 247, 0.2);
}

.btn-link {
    background: none;
    border: none;
    color: #4fc3f7;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-link:hover {
    color: #81d4fa;
    background: rgba(79, 195, 247, 0.1);
    text-decoration: none;
}

/* --- Стили для модального окна восстановления пароля --- */
#passwordResetModal .auth-content {
    max-width: 450px;
    padding: 2rem;
}

#passwordResetModal h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

#passwordResetModal p {
    color: #8892b0;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

#passwordResetModal .form-group input {
    border: 2px solid rgba(79, 195, 247, 0.2);
    background: rgba(10, 25, 47, 0.8);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#passwordResetModal .form-group input:focus {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

#passwordResetModal .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#passwordResetModal .btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
}

#passwordResetModal .btn-primary:hover {
    background: linear-gradient(135deg, #ff8c00, #e65100);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

#passwordResetModal .btn-secondary {
    background: rgba(137, 146, 176, 0.1);
    color: #8892b0;
    border: 2px solid rgba(137, 146, 176, 0.3);
}

#passwordResetModal .btn-secondary:hover {
    background: rgba(137, 146, 176, 0.2);
    color: #ccd6f6;
    border-color: rgba(137, 146, 176, 0.5);
}

/* --- Стили для интерфейса сброса паролей в админ панели --- */
.admin-password-reset-container {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.password-reset-search {
    margin-bottom: 1.5rem;
}

.search-user-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(79, 195, 247, 0.2);
    background: rgba(10, 25, 47, 0.8);
    border-radius: 8px;
    color: #ccd6f6;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-user-input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.search-user-input::placeholder {
    color: #8892b0;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.user-search-item {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    border-left: 3px solid #4fc3f7;
}

.user-search-item:hover {
    background: rgba(79, 195, 247, 0.15);
    border-color: rgba(79, 195, 247, 0.4);
    transform: translateX(5px);
}

.user-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.user-search-info {
    flex: 1;
}

.user-search-name {
    color: #4fc3f7;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.user-search-email {
    color: #8892b0;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.user-search-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.user-search-status {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.user-search-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.user-search-status.banned {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.reset-password-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-password-btn:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.empty-search {
    text-align: center;
    padding: 2rem;
    color: #8892b0;
    font-size: 13px;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex: 1;
    min-height: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #29b6f6, #0288d1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

.btn-secondary {
    background: rgba(137, 146, 176, 0.1);
    color: #8892b0;
    border: 2px solid rgba(137, 146, 176, 0.3);
}

.btn-secondary:hover {
    background: rgba(137, 146, 176, 0.2);
    color: #ccd6f6;
    border-color: rgba(137, 146, 176, 0.5);
}

/* --- Стили для индикатора силы пароля --- */
.password-strength {
    margin-top: 8px;
    animation: fadeInUp 0.3s ease;
}

.strength-meter {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* --- Стили для сообщения о несовпадении паролей --- */
.password-match {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 8px;
    color: #ff5252;
    font-size: 12px;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.password-match::before {
    content: '⚠️';
    font-size: 14px;
}

/* --- Улучшенные стили для полей ввода пароля --- */
.input-wrapper.password-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.input-wrapper.password-wrapper input {
    padding-right: 45px !important;
    transition: all 0.3s ease;
}

.input-wrapper.password-wrapper input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.15);
}


/* --- Анимации для улучшения UX --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes dangerPulse {
    0% { box-shadow: 0 0 5px rgba(244, 67, 54, 0.5); }
    50% { box-shadow: 0 0 20px rgba(244, 67, 54, 0.8); transform: scale(1.02); }
    100% { box-shadow: 0 0 5px rgba(244, 67, 54, 0.5); }
}

/* --- Улучшенные стили для кнопок форм --- */
.auth-content .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-content .btn::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 ease;
}

.auth-content .btn:hover::before {
    left: 100%;
}

.auth-content .btn:active {
    transform: translateY(1px);
}

/* --- Стили для успешного сообщения --- */
.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
    color: #4caf50;
    font-size: 12px;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message::before {
    content: '✅';
    font-size: 14px;
}

/* --- Стили для сообщения об ошибке --- */
.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
    color: #f44336;
    font-size: 12px;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: '❌';
    font-size: 14px;
}

/* --- Улучшенные стили для системы модов --- */
.mods-controls {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(79, 195, 247, 0.2);
    background: rgba(10, 25, 47, 0.8);
    border-radius: 10px;
    color: #ccd6f6;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}

.search-input::placeholder {
    color: #8892b0;
}

.version-select {
    padding: 12px 16px;
    border: 2px solid rgba(79, 195, 247, 0.2);
    background: rgba(10, 25, 47, 0.8);
    border-radius: 10px;
    color: #ccd6f6;
    font-size: 1rem;
    cursor: pointer;
}

.version-select:focus {
    outline: none;
    border-color: #4fc3f7;
}

.selector-label {
    color: #8892b0;
    margin-right: 0.5rem;
    font-weight: 500;
}

.game-version-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mod-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(17, 34, 64, 0.6);
    border-radius: 10px;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid rgba(79, 195, 247, 0.3);
    background: transparent;
    border-radius: 20px;
    color: #8892b0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(79, 195, 247, 0.1);
    color: #4fc3f7;
    border-color: #4fc3f7;
}

.category-btn.active {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: white;
    border-color: #4fc3f7;
}

.mods-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.loading-mods, .no-mods {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #8892b0;
    font-size: 1.1rem;
}

.mod-card {
    background: linear-gradient(135deg, #112240, #1a2f5e);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mod-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 195, 247, 0.1);
    border-color: #4fc3f7;
}

.mod-images {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.mod-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mod-card:hover .mod-image {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #233554, #1a2f5e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8892b0;
    font-size: 0.9rem;
}

.mod-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mod-name {
    color: #4fc3f7;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.mod-description {
    color: #8892b0;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.mod-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #8892b0;
}

.mod-meta span {
    background: rgba(79, 195, 247, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.mod-actions {
    display: flex;
    gap: 0.5rem;
}

.mod-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.9rem;
}

.mod-actions .btn-primary {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
}

.mod-actions .btn-secondary {
    background: rgba(137, 146, 176, 0.1);
    border: 1px solid rgba(137, 146, 176, 0.3);
}

/* --- Стили пагинации --- */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination-info {
    color: #8892b0;
    font-size: 1rem;
    padding: 1rem;
    background: rgba(17, 34, 64, 0.6);
    border-radius: 10px;
    display: inline-block;
}

/* --- Правила сайта модальное окно --- */
.rules-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
}

.rules-content {
    background: linear-gradient(135deg, #112240, #1a2f5e);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.rules-content h3 {
    color: #4fc3f7;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rules-text {
    line-height: 1.8;
    color: #8892b0;
}

.rules-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.rules-text li {
    margin-bottom: 0.5rem;
}

.rules-actions {
    margin-top: 2rem;
    text-align: center;
}

/* --- Стили для мини админ панели --- */
.mini-admin-panel {
    position: fixed;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: 180px;
    height: 72px;
    background: linear-gradient(135deg, #ffd700, #ff8c00, #dc143c, #8b0000);
    background-size: 400% 400%;
    animation: goldenRedGradient 3s ease infinite;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.8);
    z-index: 9999;
    display: none;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mini-admin-panel:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.55);
}

@keyframes goldenRedGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.mini-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mini-admin-icon {
    font-size: 16px;
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mini-admin-status {
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mini-admin-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4px 6px;
}

.mini-admin-text {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mini-admin-open {
    background: rgba(255, 255, 255, 0.92);
    color: #8b0000;
    border: none;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mini-admin-open:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Мини кнопка закрыть */
.mini-admin-close {
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mini-admin-panel.pulse { animation: softPulse 2s infinite ease-in-out; }
@keyframes softPulse {
  0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.25); }
  50% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.45); }
  100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.25); }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    #admin-panel {
        width: 95vw !important;
        height: 90vh !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
        top: 50% !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
    }

    #admin-panel.show {
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .player-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .player-controls .btn {
        min-width: 80px;
        font-size: 14px;
        padding: 10px 16px;
    }

    .mini-admin-panel {
        top: 10px;
        left: 10px;
        width: 250px;
        height: 100px;
    }

    .mini-admin-text {
        font-size: 10px;
    }

    .mini-admin-open {
        font-size: 9px;
        padding: 3px 10px;
    }

    #admin-panel-button-compact {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .mods-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .game-version-selector {
        justify-content: center;
    }

    .mod-categories {
        justify-content: center;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .mods-container {
        grid-template-columns: 1fr;
    }

    .mod-actions {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .auth-modal {
        padding: 10px;
    }

    .auth-content {
        padding: 1.5rem;
        max-width: 400px;
        width: 95%;
    }

    .auth-content h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* --- Стили для аудио плеера админ панели --- */
.admin-audio-player {
    border: 1px solid rgba(79, 195, 247, 0.3) !important;
    animation: playerSoftPulse 3s ease-in-out infinite alternate;
    background: rgba(79, 195, 247, 0.02);
}

@keyframes playerSoftPulse {
    0% {
        box-shadow: 0 0 10px rgba(79, 195, 247, 0.05);
        background: rgba(79, 195, 247, 0.02);
    }
    100% {
        box-shadow: 0 0 20px rgba(79, 195, 247, 0.08);
        background: rgba(79, 195, 247, 0.05);
    }
}

.player-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.player-controls .btn {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    min-width: 100px;
    text-align: center;
    background: rgba(255,255,255,0.05);
}

.player-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
}

.player-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-main .btn {
    border-radius: 12px;
    font-weight: bold;
    font-size: 18px;
    padding: 15px 25px;
    min-width: 70px;
    min-height: 70px;
    transition: all 0.3s ease;
}

.player-main .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.progress-container {
    position: relative;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    border-radius: 4px;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.player-mini {
    background: rgba(79, 195, 247, 0.1);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.player-mini .btn {
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 12px;
    border: 2px solid rgba(79, 195, 247, 0.3);
}

.player-mini .btn:hover {
    border-color: #4fc3f7;
    background: rgba(79, 195, 247, 0.2);
}

.playlist-container {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 10px;
}

.playlist-item {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.playlist-item:hover {
    background: rgba(79, 195, 247, 0.1) !important;
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: rgba(255, 215, 0, 0.4);
    animation: activePlaylistItem 1s ease-in-out infinite alternate;
}

@keyframes activePlaylistItem {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
}

/* Улучшенные статусы пользователей */
.user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

.badge.owner {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    animation: ownerSoftPulse 4s ease-in-out infinite alternate;
}

@keyframes ownerSoftPulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
        background: linear-gradient(135deg, #ffd700, #ff8c00);
    }
    100% {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
        background: linear-gradient(135deg, #ff8c00, #ffd700);
    }
}

.badge.admin {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    animation: adminSoftPulse 3s ease-in-out infinite alternate;
}

@keyframes adminSoftPulse {
    0% {
        box-shadow: 0 0 3px rgba(220, 53, 69, 0.2);
        background: linear-gradient(135deg, #dc3545, #c82333);
    }
    100% {
        box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
        background: linear-gradient(135deg, #c82333, #dc3545);
    }
}

.badge.vip {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: #fff;
    animation: vipSoftPulse 3.5s ease-in-out infinite alternate;
}

@keyframes vipSoftPulse {
    0% {
        box-shadow: 0 0 3px rgba(233, 30, 99, 0.2);
        background: linear-gradient(135deg, #e91e63, #ad1457);
    }
    100% {
        box-shadow: 0 0 8px rgba(233, 30, 99, 0.3);
        background: linear-gradient(135deg, #ad1457, #e91e63);
    }
}

.badge.mod {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: #fff;
    animation: modSoftPulse 3s ease-in-out infinite alternate;
}

@keyframes modSoftPulse {
    0% {
        box-shadow: 0 0 3px rgba(23, 162, 184, 0.2);
        background: linear-gradient(135deg, #17a2b8, #138496);
    }
    100% {
        box-shadow: 0 0 8px rgba(23, 162, 184, 0.3);
        background: linear-gradient(135deg, #138496, #17a2b8);
    }
}

.badge.banned {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #fff;
    animation: bannedSoftShake 2s ease-in-out infinite alternate;
}

@keyframes bannedSoftShake {
    0% {
        transform: translateX(0);
        box-shadow: 0 0 3px rgba(108, 117, 125, 0.2);
    }
    100% {
        transform: translateX(1px);
        box-shadow: 0 0 6px rgba(108, 117, 125, 0.3);
    }
}

/* Стили для кнопок управления плеером */
#minimizeBtn {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
}

#minimizeBtn:hover {
    background: linear-gradient(135deg, #f57c00, #e65100) !important;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
    transform: translateY(-1px);
}

#closeBtn {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
}

#closeBtn:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c) !important;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
    transform: translateY(-1px);
}

/* Статус плеера */
#playerStatus {
    font-size: 16px;
    animation: statusPulse 1.5s ease-in-out infinite alternate;
}

@keyframes statusPulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Мини трек информация */
#miniTrackInfo {
     color: #ffd700;
     font-weight: bold;
     text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
     animation: miniTrackScroll 3s ease-in-out infinite alternate;
 }

 @keyframes miniTrackScroll {
     0% {
         transform: translateX(0);
     }
     100% {
         transform: translateX(2px);
     }
 }

/* === СТИЛИ КНОПОК УПРАВЛЕНИЯ ОКНОМ В СТИЛЕ WINDOWS === */

/* Контейнер для кнопок управления окном в стиле Windows */
.admin-windows-controls {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10001;
}

.admin-windows-controls.mobile {
    top: 5px;
    right: 10px;
    gap: 6px;
}

/* Базовый стиль для кнопок Windows */
.windows-btn {
    width: 45px;
    height: 29px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.windows-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Кнопка минимизировать */
.windows-minimize {
    background: linear-gradient(135deg, #f0f0f0, #e5e5e5);
}

.windows-minimize::before {
    content: '─';
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.windows-minimize:hover {
    background: linear-gradient(135deg, #e5e5e5, #d5d5d5);
}

/* Кнопка развернуть */
.windows-maximize {
    background: linear-gradient(135deg, #f0f0f0, #e5e5e5);
}

.windows-maximize::before {
    content: '□';
    font-size: 12px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.windows-maximize:hover {
    background: linear-gradient(135deg, #e5e5e5, #d5d5d5);
}

/* Кнопка закрыть */
.windows-close {
    background: linear-gradient(135deg, #ff5252, #ff4444);
}

.windows-close::before {
    content: '✕';
    font-size: 12px;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.windows-close:hover {
    background: linear-gradient(135deg, #ff4444, #ff3636);
}

/* Анимации для кнопок Windows */
.windows-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Темная тема для кнопок Windows (для админ панели) */
@media (prefers-color-scheme: dark) {
    .windows-btn {
        background: linear-gradient(135deg, #4a4a4a, #3a3a3a);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .windows-minimize:hover,
    .windows-maximize:hover {
        background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    }

    .windows-close:hover {
        background: linear-gradient(135deg, #ff3636, #ff2828);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .windows-btn {
        width: 35px;
        height: 24px;
        font-size: 10px;
    }

    .windows-minimize::before {
        font-size: 12px;
    }

    .windows-maximize::before {
        font-size: 10px;
    }

    .windows-close::before {
        font-size: 10px;
    }
}

/* Анимация появления кнопок Windows */
@keyframes windowsControlsSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.admin-windows-controls {
    animation: windowsControlsSlideIn 0.3s ease-out;
}

/* Специальные стили для активных кнопок */
.windows-btn.active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.windows-close.active {
    background: linear-gradient(135deg, #ff3636, #ff2828);
}

/* === СОСТОЯНИЯ ОКНА АДМИН ПАНЕЛИ === */

/* Состояние минимизированного окна */
.admin-modal.minimized {
    transform: scale(1) !important;
    opacity: 1 !important;
}

.admin-modal.minimized .auth-content {
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(79, 195, 247, 0.4);
}

/* Состояние развернутого окна */
.admin-modal.maximized {
    border-radius: 0 !important;
    border: none !important;
}

.admin-modal.maximized .auth-content {
    width: 100% !important;
    height: 100vh !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 20px 30px !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .admin-windows-controls {
        display: none;
    }

    .mobile-close {
        display: block !important;
    }

    .admin-modal.maximized .auth-content {
        padding: 15px 20px !important;
        width: calc(100% - 40px) !important;
        height: calc(100vh - 40px) !important;
        max-width: calc(100% - 40px) !important;
        max-height: calc(100vh - 40px) !important;
    }

    .admin-modal.minimized .auth-content {
        width: 300px !important;
        max-height: 80px !important;
    }
}

/* Плавные переходы для состояний окна */
.auth-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Улучшенные кнопки управления для разных состояний */

/* Специальные эффекты для кнопок в разных состояниях окна */
.admin-modal.minimized .windows-minimize {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6) !important;
    color: white;
}

.admin-modal.minimized .windows-minimize::before {
    content: '□';
    color: white;
}

.admin-modal.maximized .windows-maximize {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
}

.admin-modal.maximized .windows-maximize::before {
    content: '⬜';
    color: white;
}

/* Добавляем идентификаторы для админ модала */
#adminModal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === СТИЛИ ДЛЯ VIP СТАТУСА С АНИМАЦИЯМИ === */

/* Анимация для бессрочного VIP статуса - золотисто-красное мигание */
@keyframes permanentVipAnimation {
    0% {
        background: linear-gradient(135deg, #ffd700, #ff8c00);
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3), 0 0 10px rgba(255, 140, 0, 0.2);
        transform: scale(1);
    }
    25% {
        background: linear-gradient(135deg, #ff8c00, #ff6b35);
        box-shadow: 0 0 8px rgba(255, 140, 0, 0.4), 0 0 15px rgba(255, 107, 53, 0.3);
        transform: scale(1.02);
    }
    50% {
        background: linear-gradient(135deg, #ff6b35, #e91e63);
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.5), 0 0 20px rgba(233, 30, 99, 0.4);
        transform: scale(1);
    }
    75% {
        background: linear-gradient(135deg, #e91e63, #ad1457);
        box-shadow: 0 0 8px rgba(233, 30, 99, 0.4), 0 0 15px rgba(173, 20, 87, 0.3);
        transform: scale(1.02);
    }
    100% {
        background: linear-gradient(135deg, #ad1457, #ffd700);
        box-shadow: 0 0 5px rgba(173, 20, 87, 0.3), 0 0 10px rgba(255, 215, 0, 0.2);
        transform: scale(1);
    }
}

/* Специальный стиль для бессрочного VIP статуса */
.vip-status.permanent {
    animation: permanentVipAnimation 3s ease-in-out infinite alternate;
    border: 2px solid rgba(255, 215, 0, 0.6) !important;
    background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
    position: relative;
    overflow: hidden;
}

.vip-status.permanent::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ff8c00, #e91e63, #ad1457, #ffd700);
    background-size: 400% 400%;
    border-radius: 8px;
    z-index: -1;
    animation: permanentVipBorder 2s ease-in-out infinite;
}

@keyframes permanentVipBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Улучшенная анимация для обычного активного VIP статуса */
.vip-status.active {
    animation: activeVipPulse 2s ease-in-out infinite alternate;
}

@keyframes activeVipPulse {
    0% {
        background: rgba(76, 175, 80, 0.15);
        border-color: rgba(76, 175, 80, 0.4);
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
    }
    100% {
        background: rgba(76, 175, 80, 0.25);
        border-color: rgba(76, 175, 80, 0.6);
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
}

/* Анимация для истекающего VIP статуса */
.vip-status.expiring {
    animation: expiringVipPulse 1.5s ease-in-out infinite alternate;
}

@keyframes expiringVipPulse {
    0% {
        background: rgba(255, 152, 0, 0.15);
        border-color: rgba(255, 152, 0, 0.4);
        box-shadow: 0 0 5px rgba(255, 152, 0, 0.2);
    }
    100% {
        background: rgba(255, 152, 0, 0.25);
        border-color: rgba(255, 152, 0, 0.6);
        box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
    }
}

/* Анимация для истекшего VIP статуса */
.vip-status.expired {
    animation: expiredVipShake 2s ease-in-out infinite;
}

@keyframes expiredVipShake {
    0%, 100% {
        background: rgba(244, 67, 54, 0.15);
        border-color: rgba(244, 67, 54, 0.4);
        transform: translateX(0);
    }
    25% {
        background: rgba(244, 67, 54, 0.2);
        border-color: rgba(244, 67, 54, 0.5);
        transform: translateX(-2px);
    }
    75% {
        background: rgba(244, 67, 54, 0.2);
        border-color: rgba(244, 67, 54, 0.5);
        transform: translateX(2px);
    }
}

/* Стили для модальных окон детальной информации */
.user-details-modal,
.vip-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.user-details-modal .modal-content,
.vip-details-modal .modal-content {
    background: linear-gradient(135deg, #112240, #1a2f5e);
    border-radius: 15px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(79, 195, 247, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-details-modal .modal-content h3,
.vip-details-modal .modal-content h3 {
    color: #4fc3f7;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(79, 195, 247, 0.3);
    padding-bottom: 1rem;
}

/* Стили для кнопок действий в модальных окнах */
.modal-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .btn {
    min-width: 120px;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.3);
}

/* Специальные стили для информационных блоков */
.vip-details-modal .modal-content > div {
    margin: 15px 0;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.vip-details-modal .modal-content > div:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Специальные стили для блоков с VIP информацией */
.vip-info-block {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vip-info-block.permanent {
    animation: permanentVipAnimation 3s ease-in-out infinite alternate;
    border: 2px solid rgba(255, 215, 0, 0.6) !important;
    background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
    color: #000 !important;
}

.vip-info-block.permanent::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ff8c00, #e91e63, #ad1457, #ffd700);
    background-size: 400% 400%;
    border-radius: 12px;
    z-index: -1;
    animation: permanentVipBorder 2s ease-in-out infinite;
}

.vip-info-block.active {
    animation: activeVipPulse 2s ease-in-out infinite alternate;
    border-color: rgba(76, 175, 80, 0.6) !important;
    background: rgba(76, 175, 80, 0.15) !important;
}

.vip-info-block.expiring {
    animation: expiringVipPulse 1.5s ease-in-out infinite alternate;
    border-color: rgba(255, 152, 0, 0.6) !important;
    background: rgba(255, 152, 0, 0.15) !important;
}

.vip-info-block.expired {
    animation: expiredVipShake 2s ease-in-out infinite;
    border-color: rgba(244, 67, 54, 0.6) !important;
    background: rgba(244, 67, 54, 0.15) !important;
}

.vip-info-block h4 {
    transition: all 0.3s ease;
}

.vip-info-block.permanent h4 {
    color: #000 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.vip-info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .user-details-modal,
    .vip-details-modal {
        padding: 10px;
    }

    .user-details-modal .modal-content,
    .vip-details-modal .modal-content {
        padding: 1.5rem;
        max-width: 95vw;
        max-height: 90vh;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .modal-actions .btn {
        min-width: 100%;
    }
}

/* Стили для активных кнопок игр */
.game-btn.vip-btn.active {
    background: linear-gradient(135deg, #ffd700, #ff8c00, #f44336, #ffd700) !important;
    background-size: 250% 250% !important;
    animation: vipCategoryShimmer 2.5s ease-in-out infinite !important;
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.8), inset 0 0 15px rgba(244, 67, 54, 0.5) !important;
    color: white !important;
}

/* Стили для цветовых классов категорий с !important */
.fs25-category-color {
    background: linear-gradient(135deg, #4CAF50, #66BB6A) !important;
    border-color: #4CAF50 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4) !important;
}

.fs22-category-color {
    background: linear-gradient(135deg, #2196F3, #64B5F6) !important;
    border-color: #2196F3 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.4) !important;
}

.fs19-category-color {
    background: linear-gradient(135deg, #FFC107, #FFD54F) !important;
    border-color: #FFC107 !important;
    color: #333 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4) !important;
}

.vip-category-color {
    background: linear-gradient(135deg, #ffd700, #ff8c00, #f44336) !important;
    background-size: 250% 250% !important;
    animation: vipCategoryShimmer 2.5s ease-in-out infinite !important;
    color: white !important;
    font-weight: bold !important;
    border: 1px solid rgba(255, 69, 0, 0.7) !important;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6), inset 0 0 10px rgba(244, 67, 54, 0.4) !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7) !important;
}

/* Стили для активных категорий */
.fs25-category-color.active {
    background: linear-gradient(135deg, #388E3C, #4CAF50) !important;
    border-color: #388E3C !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.8) !important;
}

.fs22-category-color.active {
    background: linear-gradient(135deg, #1976D2, #2196F3) !important;
    border-color: #1976D2 !important;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.8) !important;
}

.fs19-category-color.active {
    background: linear-gradient(135deg, #FFA000, #FFC107) !important;
    border-color: #FFA000 !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.8) !important;
}

.vip-category-color.active {
    background: linear-gradient(135deg, #ff8c00, #f44336, #ffd700) !important;
    background-size: 250% 250% !important;
    animation: vipCategoryShimmer 2.5s ease-in-out infinite !important;
    border-color: #f44336 !important;
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.9), inset 0 0 15px rgba(244, 67, 54, 0.6) !important;
}

/* Стили для заголовков категорий с цветными контейнерами */
.fs25-title-color {
    background: linear-gradient(135deg, #4CAF50, #66BB6A) !important;
    color: black !important; /* Черный цвет текста */
    padding: 8px 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4) !important;
    border: 1px solid #4CAF50 !important;
}

.fs22-title-color {
    background: linear-gradient(135deg, #2196F3, #64B5F6) !important;
    color: black !important; /* Черный цвет текста */
    padding: 8px 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.4) !important;
    border: 1px solid #2196F3 !important;
}

.fs19-title-color {
    background: linear-gradient(135deg, #FFC107, #FFD54F) !important;
    color: #333 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4) !important;
    border: 1px solid #FFC107 !important;
}

.vip-title-color {
    background: linear-gradient(135deg, #ffd700, #ff8c00, #f44336) !important;
    background-size: 250% 250% !important;
    animation: vipCategoryShimmer 2.5s ease-in-out infinite !important;
    color: black !important; /* Черный цвет текста */
    font-weight: bold !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 69, 0, 0.7) !important;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6), inset 0 0 10px rgba(244, 67, 54, 0.4) !important;
    text-shadow: 0 0 5px white !important; /* Белая тень */
}

/* Цветовые классы для контейнеров категорий - ПОВЫШЕННЫЙ ПРИОРИТЕТ */
.game-categories.fs25-category-color {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(102, 187, 106, 0.2)) !important;
    border: 2px solid rgba(76, 175, 80, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3) !important;
    padding: 10px !important;
    margin: 5px 0 !important;
}

.game-categories.fs22-category-color {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(100, 181, 246, 0.2)) !important;
    border: 2px solid rgba(33, 150, 243, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3) !important;
    padding: 10px !important;
    margin: 5px 0 !important;
}

.game-categories.fs19-category-color {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 213, 79, 0.2)) !important;
    border: 2px solid rgba(255, 193, 7, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3) !important;
    padding: 10px !important;
    margin: 5px 0 !important;
}

.game-categories.vip-category-color {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.2), rgba(244, 67, 54, 0.15)) !important;
    background-size: 250% 250% !important;
    animation: vipContainerShimmer 3s ease-in-out infinite !important;
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.4) !important;
    padding: 10px !important;
    margin: 5px 0 !important;
}

.game-categories.active.fs25-category-color,
.game-categories.fs25-category-color.active,
body .game-categories.fs25-category-color {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(102, 187, 106, 0.3)) !important;
    border: 2px solid rgba(76, 175, 80, 0.5) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 25px rgba(76, 175, 80, 0.4) !important;
    padding: 10px !important;
    margin: 5px 0 !important;
}

.game-categories.active.fs22-category-color,
.game-categories.fs22-category-color.active,
body .game-categories.fs22-category-color {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.25), rgba(100, 181, 246, 0.3)) !important;
    border: 2px solid rgba(33, 150, 243, 0.5) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 25px rgba(33, 150, 243, 0.4) !important;
    padding: 10px !important;
    margin: 5px 0 !important;
}

.game-categories.active.fs19-category-color,
.game-categories.fs19-category-color.active,
body .game-categories.fs19-category-color {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 213, 79, 0.3)) !important;
    border: 2px solid rgba(255, 193, 7, 0.5) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 25px rgba(255, 193, 7, 0.4) !important;
    padding: 10px !important;
    margin: 5px 0 !important;
}

.game-categories.active.vip-category-color,
.game-categories.vip-category-color.active,
body .game-categories.vip-category-color {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.3), rgba(244, 67, 54, 0.2)) !important;
    background-size: 250% 250% !important;
    animation: vipContainerShimmer 3s ease-in-out infinite !important;
    border: 2px solid rgba(255, 215, 0, 0.6) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.5) !important;
    padding: 10px !important;
    margin: 5px 0 !important;
}

.game-categories.fs25-category-color.requires-vip,
.game-categories.fs22-category-color.requires-vip,
.game-categories.fs19-category-color.requires-vip,
.game-categories.vip-category-color.requires-vip {
    background: inherit !important;
    border: inherit !important;
    box-shadow: inherit !important;
}

.game-categories.fs25-category-color .category-btn {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(102, 187, 106, 0.25)) !important;
    border: 1px solid rgba(76, 175, 80, 0.4) !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.game-categories.fs25-category-color .category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(76, 175, 80, 0.4), 
        rgba(102, 187, 106, 0.6),
        rgba(76, 175, 80, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.game-categories.fs25-category-color .category-btn:hover::before {
    left: 100%;
}

.game-categories.fs25-category-color .category-btn:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(102, 187, 106, 0.35)) !important;
    border-color: rgba(76, 175, 80, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4) !important;
    color: #000000 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.8), 0 0 12px rgba(76, 175, 80, 0.6) !important;
}

.game-categories.fs25-category-color .category-btn.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(102, 187, 106, 0.45)) !important;
    border-color: rgba(76, 175, 80, 0.7) !important;
    color: #000000 !important;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5) !important;
    animation: fs25ActivePulse 2s ease-in-out infinite !important;
}

@keyframes fs25ActivePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5), 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5), 0 0 0 8px rgba(76, 175, 80, 0.3);
    }
}

.game-categories.fs22-category-color .category-btn {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(100, 181, 246, 0.25)) !important;
    border: 1px solid rgba(33, 150, 243, 0.4) !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.game-categories.fs22-category-color .category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(33, 150, 243, 0.4), 
        rgba(100, 181, 246, 0.6),
        rgba(33, 150, 243, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.game-categories.fs22-category-color .category-btn:hover::before {
    left: 100%;
}

.game-categories.fs22-category-color .category-btn:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(100, 181, 246, 0.35)) !important;
    border-color: rgba(33, 150, 243, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4) !important;
    color: #000000 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(33, 150, 243, 0.8), 0 0 12px rgba(33, 150, 243, 0.6) !important;
}

.game-categories.fs22-category-color .category-btn.active {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.4), rgba(100, 181, 246, 0.45)) !important;
    border-color: rgba(33, 150, 243, 0.7) !important;
    color: #000000 !important;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.5) !important;
    animation: fs22ActivePulse 2s ease-in-out infinite !important;
}

@keyframes fs22ActivePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(33, 150, 243, 0.5), 0 0 0 0 rgba(33, 150, 243, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(33, 150, 243, 0.5), 0 0 0 8px rgba(33, 150, 243, 0.3);
    }
}

.game-categories.fs19-category-color .category-btn {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 213, 79, 0.25)) !important;
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.game-categories.fs19-category-color .category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 193, 7, 0.4), 
        rgba(255, 213, 79, 0.6),
        rgba(255, 193, 7, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.game-categories.fs19-category-color .category-btn:hover::before {
    left: 100%;
}

.game-categories.fs19-category-color .category-btn:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 213, 79, 0.35)) !important;
    border-color: rgba(255, 193, 7, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
    color: #000000 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.8), 0 0 12px rgba(255, 193, 7, 0.6) !important;
}

.game-categories.fs19-category-color .category-btn.active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.4), rgba(255, 213, 79, 0.45)) !important;
    border-color: rgba(255, 193, 7, 0.7) !important;
    color: #000000 !important;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5) !important;
    animation: fs19ActivePulse 2s ease-in-out infinite !important;
}

@keyframes fs19ActivePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5), 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5), 0 0 0 8px rgba(255, 193, 7, 0.3);
    }
}

.game-categories.vip-category-color .category-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.25)) !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    position: relative !important;
    overflow: hidden !important;
}

.game-categories.vip-category-color .category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.4), 
        rgba(255, 140, 0, 0.6),
        rgba(244, 67, 54, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.game-categories.vip-category-color .category-btn:hover::before {
    left: 100%;
}

.game-categories.vip-category-color .category-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.35)) !important;
    border-color: rgba(255, 215, 0, 0.7) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5) !important;
    color: #000000 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 0 12px rgba(255, 140, 0, 0.6) !important;
}

.game-categories.vip-category-color .category-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 140, 0, 0.45)) !important;
    border-color: rgba(255, 215, 0, 0.8) !important;
    color: #000000 !important;
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6) !important;
    font-weight: bold !important;
    animation: vipActivePulse 1.5s ease-in-out infinite !important;
}

@keyframes vipActivePulse {
    0%, 100% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6), 0 0 0 0 rgba(255, 215, 0, 0.8);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6), 0 0 0 10px rgba(255, 215, 0, 0.4);
    }
}

.game-categories.fs25-category-color .category-count-badge {
    background: rgba(76, 175, 80, 0.3) !important;
    color: #000000 !important;
    border: 1px solid rgba(76, 175, 80, 0.5) !important;
}

.game-categories.fs22-category-color .category-count-badge {
    background: rgba(33, 150, 243, 0.3) !important;
    color: #000000 !important;
    border: 1px solid rgba(33, 150, 243, 0.5) !important;
}

.game-categories.fs19-category-color .category-count-badge {
    background: rgba(255, 193, 7, 0.3) !important;
    color: #000000 !important;
    border: 1px solid rgba(255, 193, 7, 0.5) !important;
}

.game-categories.vip-category-color .category-count-badge {
    background: rgba(255, 215, 0, 0.3) !important;
    color: #000000 !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    font-weight: bold !important;
}

@keyframes vipContainerShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 🔥 ОСНОВНАЯ КНОПКА "ВСЕ МОДЫ" - ЦВЕТОВАЯ ПОДСВЕТКА ПО ИГРЕ */
/* Когда активна FS25 */
body[data-active-game="fs25"] .mod-categories .category-btn[data-category-id="Все"] {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(102, 187, 106, 0.25)) !important;
    border: 1px solid rgba(76, 175, 80, 0.4) !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

body[data-active-game="fs25"] .mod-categories .category-btn[data-category-id="Все"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(76, 175, 80, 0.4), 
        rgba(102, 187, 106, 0.6),
        rgba(76, 175, 80, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

body[data-active-game="fs25"] .mod-categories .category-btn[data-category-id="Все"]:hover::before {
    left: 100%;
}

body[data-active-game="fs25"] .mod-categories .category-btn[data-category-id="Все"]:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(102, 187, 106, 0.35)) !important;
    border-color: rgba(76, 175, 80, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4) !important;
    color: #000000 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.8), 0 0 12px rgba(76, 175, 80, 0.6) !important;
}

body[data-active-game="fs25"] .mod-categories .category-btn[data-category-id="Все"].active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(102, 187, 106, 0.45)) !important;
    border-color: rgba(76, 175, 80, 0.7) !important;
    color: #000000 !important;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5) !important;
    animation: fs25MainActivePulse 2s ease-in-out infinite !important;
}

@keyframes fs25MainActivePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5), 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5), 0 0 0 8px rgba(76, 175, 80, 0.3);
    }
}

/* Когда активна FS22 */
body[data-active-game="fs22"] .mod-categories .category-btn[data-category-id="Все"] {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(100, 181, 246, 0.25)) !important;
    border: 1px solid rgba(33, 150, 243, 0.4) !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

body[data-active-game="fs22"] .mod-categories .category-btn[data-category-id="Все"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(33, 150, 243, 0.4), 
        rgba(100, 181, 246, 0.6),
        rgba(33, 150, 243, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

body[data-active-game="fs22"] .mod-categories .category-btn[data-category-id="Все"]:hover::before {
    left: 100%;
}

body[data-active-game="fs22"] .mod-categories .category-btn[data-category-id="Все"]:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(100, 181, 246, 0.35)) !important;
    border-color: rgba(33, 150, 243, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4) !important;
    color: #000000 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(33, 150, 243, 0.8), 0 0 12px rgba(33, 150, 243, 0.6) !important;
}

body[data-active-game="fs22"] .mod-categories .category-btn[data-category-id="Все"].active {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.4), rgba(100, 181, 246, 0.45)) !important;
    border-color: rgba(33, 150, 243, 0.7) !important;
    color: #000000 !important;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.5) !important;
    animation: fs22MainActivePulse 2s ease-in-out infinite !important;
}

@keyframes fs22MainActivePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(33, 150, 243, 0.5), 0 0 0 0 rgba(33, 150, 243, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(33, 150, 243, 0.5), 0 0 0 8px rgba(33, 150, 243, 0.3);
    }
}

/* Когда активна FS19 */
body[data-active-game="fs19"] .mod-categories .category-btn[data-category-id="Все"] {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 213, 79, 0.25)) !important;
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

body[data-active-game="fs19"] .mod-categories .category-btn[data-category-id="Все"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 193, 7, 0.4), 
        rgba(255, 213, 79, 0.6),
        rgba(255, 193, 7, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

body[data-active-game="fs19"] .mod-categories .category-btn[data-category-id="Все"]:hover::before {
    left: 100%;
}

body[data-active-game="fs19"] .mod-categories .category-btn[data-category-id="Все"]:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 213, 79, 0.35)) !important;
    border-color: rgba(255, 193, 7, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
    color: #000000 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.8), 0 0 12px rgba(255, 193, 7, 0.6) !important;
}

body[data-active-game="fs19"] .mod-categories .category-btn[data-category-id="Все"].active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.4), rgba(255, 213, 79, 0.45)) !important;
    border-color: rgba(255, 193, 7, 0.7) !important;
    color: #000000 !important;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5) !important;
    animation: fs19MainActivePulse 2s ease-in-out infinite !important;
}

@keyframes fs19MainActivePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5), 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5), 0 0 0 8px rgba(255, 193, 7, 0.3);
    }
}

/* Когда активна VIP */
body[data-active-game="vip_mods"] .mod-categories .category-btn[data-category-id="Все"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.25)) !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    position: relative !important;
    overflow: hidden !important;
}

body[data-active-game="vip_mods"] .mod-categories .category-btn[data-category-id="Все"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.4), 
        rgba(255, 140, 0, 0.6),
        rgba(244, 67, 54, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

body[data-active-game="vip_mods"] .mod-categories .category-btn[data-category-id="Все"]:hover::before {
    left: 100%;
}

body[data-active-game="vip_mods"] .mod-categories .category-btn[data-category-id="Все"]:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.35)) !important;
    border-color: rgba(255, 215, 0, 0.7) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5) !important;
    color: #000000 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 0 12px rgba(255, 140, 0, 0.6) !important;
}

body[data-active-game="vip_mods"] .mod-categories .category-btn[data-category-id="Все"].active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 140, 0, 0.45)) !important;
    border-color: rgba(255, 215, 0, 0.8) !important;
    color: #000000 !important;
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6) !important;
    font-weight: bold !important;
    animation: vipMainActivePulse 1.5s ease-in-out infinite !important;
}

@keyframes vipMainActivePulse {
    0%, 100% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6), 0 0 0 0 rgba(255, 215, 0, 0.8);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6), 0 0 0 10px rgba(255, 215, 0, 0.4);
    }
}

/* 🔥 ЧЕРНЫЙ ЦВЕТ ДЛЯ СЧЕТЧИКОВ НА ОСНОВНОЙ КНОПКЕ */
body[data-active-game="fs25"] .mod-categories .category-btn[data-category-id="Все"] .category-count-badge,
body[data-active-game="fs22"] .mod-categories .category-btn[data-category-id="Все"] .category-count-badge,
body[data-active-game="fs19"] .mod-categories .category-btn[data-category-id="Все"] .category-count-badge,
body[data-active-game="vip_mods"] .mod-categories .category-btn[data-category-id="Все"] .category-count-badge {
    background: rgba(76, 175, 80, 0.3) !important;
    color: #000000 !important;
    border: 1px solid rgba(76, 175, 80, 0.5) !important;
}

body[data-active-game="fs22"] .mod-categories .category-btn[data-category-id="Все"] .category-count-badge {
    background: rgba(33, 150, 243, 0.3) !important;
    border: 1px solid rgba(33, 150, 243, 0.5) !important;
}

body[data-active-game="fs19"] .mod-categories .category-btn[data-category-id="Все"] .category-count-badge {
    background: rgba(255, 193, 7, 0.3) !important;
    border: 1px solid rgba(255, 193, 7, 0.5) !important;
}

body[data-active-game="vip_mods"] .mod-categories .category-btn[data-category-id="Все"] .category-count-badge {
    background: rgba(255, 215, 0, 0.3) !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    font-weight: bold !important;
}