.knife_pigs .knife-pigs-servers .vertical-navigation {
    margin: 0;
    padding: 0;
}

.knife_pigs .knife-pigs-servers .vertical-navigation ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: auto;
}

.knife_pigs .knife-pigs-servers .vertical-navigation ul li {
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 0 !important;
    border-left: 0 !important;
    border-top: 0 !important;
    flex: 0 0 auto;
    display: block !important;
    width: auto !important;
    background: transparent !important;
}

.knife_pigs .knife-pigs-servers .vertical-navigation ul li:hover,
.knife_pigs .knife-pigs-servers .vertical-navigation ul li.active {
    background: transparent !important;
    border: 0 !important;
    border-left: 0 !important;
}

.knife_pigs .knife-pigs-servers .vertical-navigation ul li a {
    display: block;
    text-align: center;
    background-color: var(--PrimaryColor);
    padding: 1rem !important;
    border-radius: 15px !important;
    border: 1px solid var(--PrimaryBorderColor) !important;
    white-space: nowrap;
    text-wrap: nowrap !important;
    height: -webkit-fill-available;
    line-height: normal !important;
    font-size: 14px !important;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease;
    min-width: fit-content;
    border-top: 1px solid var(--PrimaryBorderColor) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
}

.knife_pigs .knife-pigs-servers .vertical-navigation ul li a:hover {
    background-color: var(--PrimaryColor) !important;
    transform: none !important;
    border-radius: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-top: 1px solid var(--PrimaryBorderColor) !important;
}

.knife_pigs .knife-pigs-servers .vertical-navigation ul li.active a,
.knife_pigs .knife-pigs-servers .vertical-navigation ul li a.active {
    background-color: #060606 !important;
    border-color: #060606 !important;
    border-top: 1px solid #060606 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    width: auto !important;
    height: auto !important;
    min-width: fit-content !important;
    max-width: none !important;
    box-sizing: border-box !important;
    line-height: normal !important;
    font-size: 14px !important;
}

.knife_pigs .knife-pigs-servers .vertical-navigation ul li a.active::before {
    display: none !important;
    content: none !important;
}

.knife_pigs table > thead > tr > td:not(:nth-child(3)) {
    max-width: 20px;
    text-align: center;
}

.knife_pigs table > thead > tr > td:nth-child(4) {
    white-space: nowrap !important;
    max-width: 100px;
}

.knife_pigs table > tbody > tr > td:first-child,
.knife_pigs table > tbody > tr > td:nth-child(2) {
    text-align: center;
}

.knife_pigs table > tbody > tr > td:nth-child(2) {
    min-width: 20px;
    max-width: 20px;
}

.knife_pigs table > tbody > tr > td:nth-child(2) > img {
    height: 30px;
    width: auto;
}

.knife_pigs table > tbody > tr > td:nth-child(4) {
    text-align: center;
}

.knife_pigs table > tbody > tr > td:last-child {
    width: 20px;
}

.knife_pigs table.table > tbody > tr > td a[href*="profile"] img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 8px;
}

.knife_pigs .block .block_head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.knife_pigs .block .block_head > img {
    width: 30px;
    height: 30px;
}

.knife-stats-block {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--PrimaryColor) 0%, rgba(0, 0, 0, 0.1) 100%);
    border: 1px solid var(--PrimaryBorderColor);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.knife-stats-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.knife-stats-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.knife-stats-kills {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, var(--PrimaryColor) 100%);
    border-color: rgba(255, 193, 7, 0.3);
}

.knife-stats-kills:hover {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.knife-stats-deaths {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, var(--PrimaryColor) 100%);
    border-color: rgba(255, 20, 147, 0.3);
}

.knife-stats-deaths:hover {
    border-color: rgba(255, 20, 147, 0.5);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.2);
}

.knife-stats-icon {
    flex-shrink: 0;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
}

.knife-stats-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.knife-stats-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.knife-stats-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.knife-stats-value {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.knife-stats-kills .knife-stats-value {
    color: #ffc107;
    text-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.knife-stats-deaths .knife-stats-value {
    color: #ff1493;
    text-shadow: 0 2px 8px rgba(255, 20, 147, 0.4);
}

.knife-stats-suffix {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: lowercase;
    font-weight: 400;
}

[data-place="main"],
[data-place="place"] {
    height: 200px;
    padding: 30px;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    margin-bottom: 1rem;

    & > .place {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        background-image: url('/../modules_extra/knife-pigs/files/img/background.png') !important;
    }

    & > .background {
        border-radius: 15px;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 166px;
        background-image: url(/../modules_extra/knife-pigs/files/img/back_top_profile.png);
        background-size: cover;
        /* border: 1px solid #e3e4e8; */
    }

    & > .info {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateY(5%) translateX(-50%) scale(1.5);
        transition: .5s;
        color: #ff4c4c;
        text-align: center;

        & > .actions {
            opacity: 0;
            transition: 1s;
        }
    }

    &:hover > .info {
        transform: translateY(-25%) translateX(-50%) scale(1.0);

        & > .actions {
            opacity: 1;
        }
    }
}

[data-place="place"] {
    display: block;

    & > .info {
        h5 {
            margin: 0;
        }
    }

    & > .info {
        transform: translateY(30%) translateX(-50%) scale(1.5);
    }

    &:hover > .info {
        transform: translateY(30%) translateX(-50%) scale(1.0);
    }
}

@media only screen and (max-width: 768px) {
    [data-place="main"] {
        height: 250px;

        & > .place {
            background-size: cover;
            filter: opacity(0.2);
        }

        & > .background {
            height: 250px;
        }

        & > .info {
            transform: translateY(-50%) translateX(-50%);
        }

        &:hover > .info {
            transform: translateY(-50%) translateX(-50%);
        }
    }
}

.personal-stats-block {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-bottom: 30px;
}
.stats_pigs .block .block_head > img {
    width: 30px;
    height: 30px;
}

    .user-info {
        display: flex;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);

        .user-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .user-names {
            display: flex;
            flex-direction: column;
            margin-left: 10px;

            .user-login {
                font-weight: bold;
                font-size: 16px;
            }

            .user-nick {
                color: #777;
                font-size: 14px;
                font-style: italic;
            }
        }
    }

    .stats-summary {
        display: flex;
        justify-content: space-around;
        margin-bottom: 30px;

        .stat-item {
            text-align: center;
            padding: 15px 25px;
            background: rgb(205 205 205);
            border-radius: 10px;
            transition: transform 0.3s, background 0.3s;
            flex: 1;
            margin: 0 10px;

            &:hover {
                transform: translateY(-5px);
                background: rgba(255, 255, 255, 0.1);
            }

            .stat-value {
                font-size: 32px;
                font-weight: 700;
                margin-bottom: 5px;
                color: #4cc9f0;
            }

            .stat-label {
                font-size: 14px;
                margin-bottom: 8px;
                text-transform: uppercase;
                letter-spacing: 1px;
            }

            .stat-rank {
                font-size: 12px;
                color: #f72585;
                background: rgba(247, 37, 133, 0.1);
                padding: 3px 8px;
                border-radius: 20px;
                display: inline-block;
            }
        }
    }

    .servers-stats {
        h3 {
            font-size: 18px;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .server-stat {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            margin-bottom: 8px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            transition: background 0.3s;

            &:hover {
                background: rgba(0, 0, 0, 0.3);
            }

            .server-name {
                font-weight: 600;
                flex: 2;
            }

            .server-kills {
                color: #4cc9f0;
                flex: 1;
                text-align: right;
                margin-right: 15px;
            }

            .server-deaths {
                color: #f72585;
                flex: 1;
                text-align: right;
            }
        }
    }

    .reset-stats-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
        justify-content: flex-start;

        .btn {
            flex-shrink: 0;
        }
    }

    .reset-result {
        margin-top: 10px;
        font-size: 14px;
        color: #28a745;
    }

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.personal-stats-block {
    animation: fadeIn 0.6s ease-out forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}
.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.table-adaptive {
    border-radius: 14px;
    color: #5b6b94;
    font-size: 11px;
    font-weight: bold;
}
.table-adaptive .table-row {
    margin-bottom: 9px;
    border-radius: 11px;
    padding: 5px 28px;
    background: #cdcdcd;
    transition: 0.2s;
}
.table-adaptive .table-row > .row {
    height: 50px;
    display: flex
;
    flex-wrap: nowrap;
}
.table-adaptive .table-row > .row > div.with-icon {
    position: relative;
    padding-left: 46px;
}
.table-adaptive .table-row > .row > div {
    padding: 0 16px;
}
.table-adaptive .table-row > .row > div.with-description > p {
    line-height: 22px;
    font-size: 12px;
    margin: 15px 0px 0;
    position: relative;
    top: -7px;
    border: none;
    background: #fff0;
    color: #000000 !important;
    font-weight: 600;
}
.table-adaptive .table-row > .row > div > p {
    width: auto;
    color: #6c6e8100;
    font-weight: 600;
    font-size: 0px;
    line-height: 52px;
}
.table-adaptive .table-row > .row > div > strong, .table-adaptive .table-row > .row > div > p, .table-adaptive .table-row > .row > div > span {
    display: inline-block;
    max-width: 110%;
}
.table-adaptive .table-row > .row > div > strong, .table-adaptive .table-row > .row > div > p, .table-adaptive .table-row > .row > div > span, .table-adaptive .table-row > .row > div > .area-user, .wapper .monitoring .server p, .wapper .monitoring .server strong, .wapper .monitoring .server a, .block .block_head, .vertical-navigation li a, #place_for_messages .dialog > div:nth-child(1) div p, #events .event > a:not(.btn), #events .event > span, #top_users a div > span, #companions a div > span, #last_activity > div > p, #last_activity > span > p, #mybans > div > p, #mybans > span > p, #forum .row .col-lg-8 > div h3, #forum .row .col-lg-4 div p, #forum_topics .row .col-lg-9 h3, #forum_topics .row .col-lg-3 div p, .user a[href^="../profile"]:not(:first-child), .user .btn, .detailed-profile > div:nth-child(1) > div span, .detailed-profile table tr td:nth-child(2) span, .detailed-profile ul li a, #stats tr td, #news a.small-new div p {
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.table-adaptive .table-row > .row > div.with-description > span {
    width: 100%;
    font-weight: 700;
    line-height: 20px;
    font-size: 10.5px;
    top: -18px;
    position: relative;
    color: #6b7aa2;
}

.profile-settingss {
    color: #000000;
    font-weight: bold;
    padding: 0px 20px 0px 8px;
    height: 45px;
    gap: 8px;
    border-radius: 9px;
    font-size: 11px;
    background: #ffffff;
    display: flex;
    transition: .2s all;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.profile-settingss:hover {
    color: #000000;
    font-weight: bold;
    padding: 0px 20px 0px 8px;
    height: 45px;
    gap: 8px;
    border-radius: 9px;
    font-size: 11px;
    background: #bbbbbb;
    display: flex;
    transition: .2s all;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.btn-outline-danger {
    color: #dc3545 !important;
}
.btn-outline-warning {
    color: #ffc107 !important;
}
.btn-outline-dark {
    color: #343a40 !important;
}

.btn-outline-danger:hover {
    color: #ffffff !important;
}
.btn-outline-warning:hover {
    color: #ffffff !important;
}
.btn-outline-dark:hover {
    color: #ffffff !important;
}
