* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header {
    background: rgba(10, 10, 20, 0.95);
    color: white;
    padding: 15px 0;
    border-bottom: 2px solid #5865F2;
    width: 100%;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    color: #b0b0b0;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 16px;
}

.nav-item:hover {
    color: #fff;
    background-color: rgba(88, 101, 242, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: white;
}

.user-active {
    background: linear-gradient(135deg, #5865F2, #4752c4) !important;
    color: white !important;
    font-weight: bold;
}

.user-active:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5) !important;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    font-size: 18px;
}

.user-name {
    font-weight: 600;
}

.logout-text {
    margin-left: 8px;
    opacity: 0.8;
}

.promote-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.3);
}

.promote-btn:hover {
    background: linear-gradient(135deg, #f7931e, #e88517);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 147, 30, 0.4);
}

.banner {
    background: rgba(20, 20, 35, 0.9);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #2a2a4a;
    width: 100%;
}

.banner p {
    font-size: 16px;
    color: #cccccc;
    font-style: italic;
}

/* ИСПРАВЛЕННАЯ СЕКЦИЯ ФИЛЬТРОВ - УБРАНА ФИКСИРОВАННАЯ ВЫСОТА */
.filters {
    background-color: #16213e;
    padding: 20px 0;
    border-bottom: 1px solid #333344;
    position: relative;
    width: 100%;

    min-height: auto;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
    padding: 5px;
}

.version-filters h3 {
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}



.filter-btn {
    background-color: #1a1a2e;
    color: #cccccc;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    border: 1px solid #333344;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #333344;
    color: #4a4aff;
}

.filter-btn input {
    margin-right: 5px;
}

.more-btn, .additional-filters {
    background-color: #5865F2;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    font-weight: bold;
}

.additional-filters {
    background-color: #666677;
    color: #ffffff;
}

.categories-menu {
    display: none;
    position: absolute;
    background: #16213e;
    border: 1px solid #333344;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    margin-top: 5px;
    min-width: 200px;
    left: 50%;
    transform: translateX(-50%);
}

.category-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #333344;
    transition: background-color 0.3s;
    text-align: center;
    color: #cccccc;
}

.category-item:hover {
    background-color: #1a1a2e;
    color: #5865F2;
}

.category-item:last-child {
    border-bottom: none;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background-color: #0f0f23;
}

/* ИСПРАВЛЕННЫЕ СТИЛИ ТАБЛИЦЫ - ВЫРАВНИВАНИЕ ПО ЦЕНТРУ */
/* ПОЛНОСТЬЮ ПЕРЕПИСАННЫЕ СТИЛИ ТАБЛИЦЫ */
.clans-table {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: #16213e;
    border-radius: 10px;
    border: 1px solid #333344;
    overflow: hidden;
}

.clans-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.clans-table thead {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: sticky;
    top: 0;
}

.clans-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    color: #5865F2;
    border-bottom: 2px solid #5865F2;
    font-size: 14px;
    background: inherit;
}

.clans-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #333344;
    text-align: center;
    vertical-align: middle;
    color: #cccccc;
    word-wrap: break-word;
}

/* ЖЕСТКО ФИКСИРОВАННЫЕ ШИРИНЫ КОЛОНОК */
.clans-table th:nth-child(1),
.clans-table td:nth-child(1) { width: 80px; } /* Позиция */
.clans-table th:nth-child(2),
.clans-table td:nth-child(2) { width: 280px; } /* Название клана */
.clans-table th:nth-child(3),
.clans-table td:nth-child(3) { width: 120px; } /* Игра */
.clans-table th:nth-child(4),
.clans-table td:nth-child(4) { width: 100px; } /* Участники */
.clans-table th:nth-child(5),
.clans-table td:nth-child(5) { width: 100px; } /* Оценка */
.clans-table th:nth-child(6),
.clans-table td:nth-child(6) { width: 150px; } /* Звезды */
.clans-table th:nth-child(7),
.clans-table td:nth-child(7) { width: 120px; } /* Раскрутка */

/* ВЫРАВНИВАНИЕ ТЕКСТА */
.clans-table td:nth-child(2) { text-align: left; }
.clans-table td:nth-child(3) { text-align: center; }
.clans-table td:nth-child(4) { text-align: center; }
.clans-table td:nth-child(5) { text-align: center; }
.clans-table td:nth-child(6) { text-align: center; }
.clans-table td:nth-child(7) { text-align: center; }

/* Гарантия что ничего не съедет */
.clans-table th,
.clans-table td {
    box-sizing: border-box;
    overflow: hidden;
}

/* Для мобильных */
@media (max-width: 768px) {
    .clans-table {
        margin: 10px;
        width: calc(100% - 20px);
    }

    .clans-table table {
        min-width: 800px;
    }

    .clans-table th,
    .clans-table td {
        padding: 8px 5px;
        font-size: 12px;
    }
}


.clan-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.clan-item:hover {
    background-color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ КОНТЕЙНЕРА ПОЗИЦИИ */
.position-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

.clan-position {
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
}

.boosted-position {
    color: #FFD700 !important;
    font-weight: bold;
    font-size: 1.2em;
}

.boost-badge {
    background: #FFD700;
    color: #000;
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 0.7em;
    font-weight: bold;
}

/* ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ БЛОКА КЛАНА */
.clan-name {
    font-weight: bold;
    color: #ffffff;
    font-size: 14px;
    text-align: left;
    margin-bottom: 4px;
    line-height: 1.3;
}

.clan-description {
    color: #9999aa;
    font-size: 12px;
    text-align: left;
    margin-bottom: 6px;
    line-height: 1.3;
}

.clan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
}

.tag {
    background-color: #5865F2;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
}

.version {
    background-color: #5865F2;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.rating {
    color: #ffcc00;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.stars {
    color: #ffcc00;
    font-weight: bold;
    text-align: center;
}

.stars-count {
    color: #ff4444;
    font-size: 14px;
    text-align: center;
    margin-bottom: 5px;
}

/* ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ КНОПОК */
.boost-actions {
    text-align: center;
    min-width: 100px;
}

.boost-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8em;
    transition: all 0.3s ease;
    min-width: 90px;
    white-space: nowrap;
}

.boost-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.boost-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.boost-btn.cooldown {
    background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
    color: white;
}

.boost-placeholder {
    color: #718096;
    font-size: 0.9em;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

.rate-btn {
    background: linear-gradient(135deg, #57f287 0%, #43b581 100%);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    min-width: 100px;
}

.rate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 242, 135, 0.4);
}

.rate-hint {
    font-size: 0.8em;
    color: #a0aec0;
    text-align: center;
    font-style: italic;
}

/* БЕЙДЖИ */
.user-clan-badge {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.user-added-badge {
    background: linear-gradient(135deg, #9F7AEA 0%, #805AD5 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
    margin-left: 5px;
}

/* СТИЛИ ДЛЯ БУСТНУТЫХ КЛАНОВ */
.boosted-clan {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%) !important;
    border-left: 4px solid #FFD700;
    position: relative;
}

.boosted-clan::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #FFD700, #FFA500);
}

@keyframes boostPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.boosted-clan {
    animation: boostPulse 2s ease-in-out infinite;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 10% auto;
    padding: 30px;
    width: 400px;
    border-radius: 10px;
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 2px solid #5865F2;
    color: #cccccc;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #9999aa;
    transition: color 0.3s;
}

.close:hover {
    color: #5865F2;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #333344;
    border-radius: 4px;
    font-size: 14px;
    background-color: #1a1a2e;
    color: #cccccc;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background-color: #5865F2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background-color: #4752c4;
}

.register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #5865F2;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.rules-text {
    font-size: 12px;
    color: #9999aa;
    text-align: center;
    margin-top: 10px;
}

.user-info {
    background-color: #5865F2;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-buttons {
        justify-content: center;
    }

    .clans-table {
        font-size: 12px;
    }

    .clans-table th,
    .clans-table td {
        padding: 8px 4px;
    }

    .clan-name {
        font-size: 12px;
    }

    .clan-description {
        font-size: 10px;
    }

    .tag {
        font-size: 9px;
        padding: 1px 4px;
    }

    .boost-btn {
        padding: 4px 8px;
        font-size: 0.7em;
        min-width: 70px;
    }

    .position-container {
        flex-direction: column;
        gap: 2px;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .categories-menu {
        position: relative;
        width: 100%;
        left: 0;
        transform: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
        text-align: center;
    }

    .nav-item {
        padding: 6px 10px;
        font-size: 14px;
        text-align: center;
    }

    .promote-btn {
        padding: 8px 15px;
        font-size: 14px;
        display: block;
        margin: 0 auto;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 14px;
        text-align: center;
    }
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.modal-content .register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.modal-content .register-link a {
    color: #5865F2;
    text-decoration: none;
}

.modal-content .register-link a:hover {
    text-decoration: underline;
}

.modal-content {
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.clans-table td[colspan] {
    background-color: #1a1a2e;
    font-size: 16px;
    text-align: center;
    color: #cccccc;
}

.clans-table td[colspan] a {
    color: #5865F2;
    text-decoration: none;
}

.clans-table td[colspan] a:hover {
    text-decoration: underline;
}

.table-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 10px;
    display: none;
    width: 100%;
    border: 1px solid #333344;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #333344;
}

.empty-state-title {
    font-size: 24px;
    color: #9999aa;
    margin-bottom: 10px;
}

.empty-state-description {
    font-size: 16px;
    color: #666677;
    line-height: 1.5;
}

.empty-state-link {
    color: #5865F2;
    text-decoration: none;
    font-weight: bold;
}

.empty-state-link:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #5865F2;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0;
}

.clan-modal {
    max-width: 600px;
    width: 90%;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.clan-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #333344;
    background: rgba(88, 101, 242, 0.05);
    border-radius: 10px 10px 0 0;
}

.clan-modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5em;
    text-align: center;
    flex: 1;
}

.clan-modal-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.clan-rating, .clan-stars {
    color: #ffcc00;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
}

.clan-modal-body {
    padding: 0 20px 20px;
}

.clan-info-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(88, 101, 242, 0.05);
    border-radius: 8px;
    border-left: 3px solid #5865F2;
}

.clan-info-section h3 {
    color: #5865F2;
    margin-bottom: 12px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    justify-content: center;
}

.clan-info-section h3::before {
    content: "▶";
    font-size: 0.8em;
    color: #5865F2;
}

.clan-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    color: #9999aa;
    font-size: 0.9em;
}

.detail-value {
    color: #fff;
    font-weight: bold;
    text-align: right;
}

.recruitment-open {
    color: #5865F2 !important;
    background: rgba(88, 101, 242, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.recruitment-closed {
    color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.clan-description-full, .clan-requirements, .clan-contact {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95em;
    text-align: center;
}

.clan-achievements {
    color: #cccccc;
    padding-left: 20px;
}

.clan-achievements li {
    margin-bottom: 8px;
    position: relative;
}

.clan-achievements li::before {
    content: "🏆";
    position: absolute;
    left: -20px;
}

.clan-tags-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.clan-tags-modal .tag {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.clan-tags-modal .tag:hover {
    transform: translateY(-2px);
}

.clan-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333344;
    justify-content: center;
}

.join-clan-btn, .rate-clan-btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.join-clan-btn {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: white;
}

.join-clan-btn:disabled {
    background: #666677;
    cursor: not-allowed;
    opacity: 0.6;
}

.rate-clan-btn {
    background: linear-gradient(135deg, #ffcc00, #ffaa00);
    color: #0f0f23;
}

.rate-clan-btn:disabled {
    background: #666677;
    cursor: not-allowed;
    opacity: 0.6;
}

.join-clan-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.rate-clan-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.close {
    color: #9999aa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001;
}

.close:hover {
    color: #5865F2;
}

@media (max-width: 768px) {
    .clan-modal {
        width: 95%;
        max-width: none;
    }

    .clan-modal-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .clan-modal-rating {
        align-items: center;
    }

    .clan-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .clan-modal-actions {
        flex-direction: column;
        align-items: center;
    }

    .join-clan-btn, .rate-clan-btn {
        max-width: 100%;
        width: 100%;
    }

    .modal-content {
        width: 95%;
    }
}

.clan-modal::-webkit-scrollbar {
    width: 8px;
}

.clan-modal::-webkit-scrollbar-track {
    background: rgba(88, 101, 242, 0.1);
    border-radius: 4px;
}

.clan-modal::-webkit-scrollbar-thumb {
    background: #5865F2;
    border-radius: 4px;
}

.clan-modal::-webkit-scrollbar-thumb:hover {
    background: #4752c4;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

body.modal-open {
    overflow: hidden;
}

.roblox-login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    transition: all 0.3s;
}

.roblox-login-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
}

.secondary-btn {
    width: 100%;
    padding: 10px;
    background: #666677;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px 0;
}

.secondary-btn:hover {
    background: #555566;
}

.login-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.login-divider span {
    background: #16213e;
    padding: 0 10px;
    color: #9999aa;
}

.login-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #333344;
    z-index: -1;
}

.loading-spinner {
    border: 4px solid #333344;
    border-top: 4px solid #5865F2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.roblox-modal .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #ff4444;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
}

.roblox-modal-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-radius: 13px 13px 0 0;
    margin: -30px -30px 20px -30px;
}

.roblox-modal-header h3 {
    color: white;
    font-size: 1.5em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.roblox-login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
    transition: all 0.3s ease;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.roblox-login-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.roblox-login-btn:active {
    transform: translateY(-1px);
}

.roblox-login-btn img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.secondary-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ff4444;
    border: 2px solid #ff4444;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px 0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.secondary-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    transform: translateY(-2px);
}

.login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.login-divider span {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 0 15px;
    color: #ff4444;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

.login-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4444, transparent);
    z-index: 0;
}

.rules-text {
    text-align: center;
    font-size: 0.9em;
    color: #9999aa;
    margin: 15px 0;
    line-height: 1.4;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 68, 68, 0.3);
}

.register-link a {
    color: #ff4444;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #cc0000;
    text-decoration: underline;
}

.loading-container {
    text-align: center;
    padding: 30px 20px;
}

.loading-spinner {
    border: 4px solid rgba(255, 68, 68, 0.2);
    border-top: 4px solid #ff4444;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 20px;
}

.loading-container p {
    color: #ff4444;
    font-size: 1.1em;
    margin: 0;
}

.error-container {
    text-align: center;
    padding: 20px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 10px;
    margin: 15px 0;
}

.error-container p {
    color: #ff4444;
    margin: 10px 0;
    font-size: 1em;
}

.account-info {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.account-info-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 68, 68, 0.2);
}

.account-info-line:last-child {
    border-bottom: none;
}

.info-label {
    color: #ff4444;
    font-weight: 600;
}

.info-value {
    color: white;
    font-weight: 500;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.9);
    }
}

.modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.closing .modal-content {
    animation: modalSlideOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

@media (max-width: 768px) {
    .roblox-modal .modal-content {
        width: 95%;
        max-width: none;
        margin: 10% auto;
        padding: 20px;
    }

    .roblox-modal-header {
        margin: -20px -20px 15px -20px;
        padding: 15px;
    }

    .roblox-login-btn {
        padding: 12px;
        font-size: 1em;
    }

    .account-info-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .roblox-modal .modal-content {
        padding: 15px;
    }

    .roblox-modal-header h3 {
        font-size: 1.3em;
    }

    .roblox-login-btn {
        padding: 10px;
        font-size: 0.9em;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}

.modal-overlay {
    backdrop-filter: blur(5px);
}

.roblox-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
}

.success-checkmark {
    color: #5865F2;
    font-size: 3em;
    margin-bottom: 15px;
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #cccccc;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    width: 100%;
    border-top: 1px solid #333344;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #5865F2;
}

.footer-copyright {
    color: #9999aa;
    font-size: 14px;
}

.auth-modal .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #cccccc;
    border: 2px solid #5865F2;
    border-radius: 15px;
    max-width: 400px;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.auth-option-btn {
    background: rgba(88, 101, 242, 0.05);
    border: 1px solid rgba(88, 101, 242, 0.1);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    text-align: left;
    color: #cccccc;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-option-btn:hover {
    background: rgba(88, 101, 242, 0.1);
    transform: translateY(-2px);
}

.auth-icon {
    font-size: 24px;
}

.auth-text {
    display: flex;
    flex-direction: column;
}

.auth-text strong {
    font-size: 14px;
}

.auth-text small {
    font-size: 12px;
    opacity: 0.8;
}

.auth-info {
    background: rgba(88, 101, 242, 0.03);
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
}

.auth-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.access-info {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
}

/* ИСПРАВЛЕНИЯ ДЛЯ МОДАЛЬНОГО ОКНА */
.boost-btn-modal {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
}

.boost-btn-modal:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.boost-btn-modal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.boost-btn-modal.cooldown {
    background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
    color: white;
}

