[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;

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

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