[data-place="main"],
[data-place="place"] {
    height: 166px;
    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;
        }
    }
}


.row-for-knife{
	display: flex;
    gap: 15px;
}

.col-card{
		width: 50%;
	
}

[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) {
	.row-for-knife{
		flex-direction: column;
		
	}
	.col-card{
		width: 100%;
	
}
	
    [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;

    .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;
}
