.user-mini-profile {
    border-radius: var(--border1);
    overflow: hidden;
    border: 1px solid var(--transp-1);
    background: radial-gradient(circle, var(--transp-05), var(--transp-1));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);

    &:hover {
        box-shadow: var(--shadow-md);
    }

    &-header {
        @extend .d-flex, .gap-2;
        padding: 1rem;
        border-bottom: 1px solid var(--background-900);

        h5 {
            @extend .d-flex, .align-center, .gap-2;
            margin: 0;
        }
    }

    &-content {
        @extend .d-flex, .flex-column;
    }

    &-main {
        @extend .d-flex, .gap-3, .align-center;
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 1.25rem;
    }

    &-avatar-wrapper {
        position: relative;
        flex-shrink: 0;
        height: 100px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    &-banner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: -1;

        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, var(--background), transparent);
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    &-avatar {
        position: relative;
        width: 72px;
        height: 72px;
        border-radius: 50%;
        flex-shrink: 0;
        display: block;
        transition: transform var(--transition);

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }
    }

    &-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    &-status {
        position: absolute;
        bottom: 2px;
        right: 2px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid var(--background);
        z-index: 1;

        &.online {
            background-color: var(--success);
            box-shadow: 0 0 0 2px var(--success-light);
        }

        &.offline {
            background-color: var(--text-600);
        }
    }

    &-info {
        @extend .d-flex, .flex-column, .gap-1;
        flex-grow: 1;
        min-width: 0;
    }

    &-name {
        @extend .text-truncate;
        margin: 0;
        font-weight: 700;
        font-size: var(--h5);
        color: var(--text);
        text-decoration: none;
        transition: color var(--transition);
        line-height: 1.6;
        width: min-content;

        &:hover {
            color: var(--accent);
        }
    }

    &-details {
        @extend .d-flex, .gap-3, .align-center;
        font-size: 0.875rem;
    }

    &-group {
        @extend .d-flex, .align-center, .gap-1;
        font-weight: 500;
        padding: 0.25rem 0.5rem;
        border-radius: 1rem;
        background-color: var(--background-900);

        svg {
            font-size: 1rem;
        }
    }

    &-balance-card {
        @extend .d-flex, .flex-column;
        background: linear-gradient(135deg, var(--accent-800), var(--accent));
        padding: 1rem;
        margin: var(--space-md) var(--space-md);
        border-radius: var(--border1);
        color: var(--text);
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-sm);

        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.075)' fill-rule='evenodd'/%3E%3C/svg%3E");
            opacity: 0.5;
        }

        .balance-label {
            font-size: var(--p-small);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            opacity: 0.8;
            line-height: 1.5;
            z-index: 2;
        }

        .balance-amount {
            font-size: var(--h3);
            font-weight: 700;
            margin-bottom: 0.25rem;
            z-index: 2;
        }

        .balance-action {
            @extend .btn, .d-flex, .align-center, .gap-1;

            align-self: flex-start;
            background-color: rgba(255, 255, 255, 0.2);
            padding: 0.35rem 0.75rem;
            font-size: var(--small);
            font-weight: 500;
            color: var(--text);
            text-decoration: none;
            transition: background-color var(--transition), transform var(--transition);
            z-index: 2;

            &:hover {
                background-color: rgba(255, 255, 255, 0.4);
            }
        }
    }

    &-roles {
        @extend .d-flex, .flex-wrap, .gap-2;
    }

    &-role {
        @extend .d-flex, .align-center, .blur-bg, .gap-2;

        font-weight: 500;
        font-size: var(--small);
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        background-color: var(--transp-1);

        &-square {
            width: 0.6rem;
            height: 0.6rem;
            border-radius: 50%;
            background-color: var(--role-color);
        }
    }

    &-actions {
        @extend .d-flex, .flex-column, .gap-2;

        border-top: 1px solid var(--transp-1);
        padding-top: var(--space-md);
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        padding-bottom: var(--space-md);

        .user-mini-profile-action {
            width: 100%;
            justify-content: flex-start;
            transition: transform var(--transition), box-shadow var(--transition);
            border: none;
            opacity: 0.8;
            padding: var(--space-xs) var(--space-md);

            &:hover {
                transform: translateY(-2px);
                box-shadow: var(--shadow-sm);
                opacity: 1;
            }

            svg {
                margin-right: 0.5rem;
            }
        }
    }
}

.guest-profile {
    height: 100%;
    padding: var(--space-md);

    .user-mini-profile-content {
        height: 100%;
    }

    .guest-profile-header {
        @extend .d-flex, .align-center, .gap-3, .flex-column;
        margin-bottom: 1.25rem;
    }

    .guest-profile-avatar {
        width: 4.5rem;
        height: 4.5rem;
        @extend .flex-center;
        background-color: var(--transp-1);
        border-radius: 50%;
        flex-shrink: 0;

        svg {
            width: 2.5rem;
            height: 2.5rem;
            color: var(--text-400);
        }
    }

    .guest-profile-info {
        @extend .d-flex, .flex-column, .flex-center;

        h4 {
            margin-bottom: 0.25rem;
            color: var(--text);
        }

        p {
            color: var(--text-500);
            text-align: center;
            font-size: var(--small);
            line-height: 1.5;
            margin: 0;
        }
    }

    .guest-profile-actions {
        @extend .d-flex, .flex-column, .gap-2;
        margin-bottom: 1.25rem;
        margin-top: auto;

        .guest-profile-action {
            width: 100%;
            @extend .d-flex, .align-center, .justify-center, .gap-2;
            transition: transform var(--transition), box-shadow var(--transition);

            &:hover {
                transform: translateY(-2px);
                box-shadow: var(--shadow-sm);
            }

            svg {
                width: 1.25rem;
                height: 1.25rem;
            }
        }
    }

    .guest-profile-socials {
        border-top: 1px solid var(--transp-2);
        padding-top: 1rem;
    }

    .guest-profile-socials-label {
        font-size: var(--small);
        color: var(--text-500);
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .guest-profile-socials-buttons {
        @extend .d-flex, .justify-center, .gap-3;
    }

    .guest-profile-social-btn {
        width: 2.5rem;
        height: 2.5rem;
        @extend .flex-center;
        background-color: var(--transp-1);
        border-radius: 50%;
        transition: all var(--transition);

        svg {
            width: 1.25rem;
            height: 1.25rem;
            color: var(--text-400);
        }

        &:hover {
            background-color: var(--transp-3);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);

            svg {
                color: var(--accent);
            }
        }
    }
}