 .csg-profile-wrapper{
        max-width:900px;
        margin:30px auto;
        background:#fff;
        border-radius:20px;
        overflow:hidden;
        box-shadow:0 5px 25px rgba(0,0,0,.08);
    }

    .csg-cover{

        height:220px;

        background:linear-gradient(
            180deg,
            #d946ef 0%,
            #6b21a8 100%
        );

        position:relative;
    }

    .csg-profile-photo{

        width:120px;
        height:120px;

        border-radius:50%;
        overflow:hidden;

        background:#fff;

        position:absolute;
        left:30px;
        bottom:-60px;

        border:5px solid #fff;
    }

    .csg-profile-photo img{

        width:100%;
        height:100%;
        object-fit:cover;
    }

    .csg-profile-body{
        padding:80px 30px 30px;
    }

    .csg-profile-name{
        font-size:32px;
        font-weight:700;
        margin-bottom:5px;
    }

    .csg-profile-email{
        color:#666;
        margin-bottom:20px;
    }

    .csg-profile-stats{

        display:grid;
        grid-template-columns:repeat(3,1fr);
        gap:15px;

        margin-bottom:25px;
    }

    .csg-stat-box{

        background:#f8f8f8;
        padding:18px;
        border-radius:12px;
        text-align:center;
    }

    .csg-stat-box strong{
        display:block;
        font-size:24px;
        color:#6b21a8;
    }

    .csg-section{

        margin-top:30px;
        padding:20px;
        border:1px solid #eee;
        border-radius:15px;
    }

    .csg-section h3{
        margin-bottom:15px;
    }

    .csg-subject-list{

        display:flex;
        flex-wrap:wrap;
        gap:10px;
    }

    .csg-subject-badge{

        background:#f3e8ff;
        color:#6b21a8;
        padding:8px 14px;
        border-radius:30px;
        font-size:14px;
        font-weight:600;
    }

    .csg-logout-btn{

        display:inline-block;

        background:#6b21a8;
        color:#fff !important;

        padding:12px 25px;
        border-radius:10px;
        text-decoration:none;

        margin-top:20px;
    }

    @media(max-width:768px){

        .csg-profile-stats{
            grid-template-columns:1fr;
        }

        .csg-profile-name{
            font-size:24px;
        }

        .csg-cover{
            height:180px;
        }

    }

    .csg-edit-profile-btn{

        position:absolute;
        right:20px;
        bottom:20px;

        background:#fff;

        color:#6b21a8;

        padding:10px 18px;

        border-radius:8px;

        text-decoration:none;

        font-weight:600;
    }

#csg-profile-popup{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.6);

    z-index:99999;
}

.csg-profile-popup-inner{

    width:700px;
    max-width:95%;
    max-height:85vh;

    overflow-y:auto;

    background:#fff;
    border-radius:20px;

    padding:30px;

    position:relative;

    margin:40px auto;

    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

.csg-profile-popup-inner h3{

    margin-bottom:25px;
    color:#6b21a8;
    font-size:26px;
}

.csg-profile-popup-inner label{

    display:block;
    margin-bottom:6px;
    font-weight:600;
}

.csg-profile-popup-inner input,
.csg-profile-popup-inner textarea{

    width:100%;
    padding:12px;

    border:1px solid #ddd;
    border-radius:10px;

    margin-bottom:15px;
}

#csg-save-profile{

    width:100%;

    border:none;

    background:linear-gradient(
        90deg,
        #9333ea,
        #6b21a8
    );

    color:#fff;

    padding:14px;

    border-radius:12px;

    font-size:16px;

    cursor:pointer;
}

#csg-close-profile-popup{

    position:absolute;

    right:15px;
    top:10px;

    cursor:pointer;

    font-size:22px;
}


.csg-profile-popup-inner h3{
    margin-bottom:20px;
    color:#6b21a8;
    text-align:center;
}

.csg-profile-popup-inner label{
    display:block;
    margin-top:12px;
    margin-bottom:5px;
    font-weight:600;
}

.csg-profile-popup-inner input{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
    margin-bottom:10px;
}

#csg-save-profile{

    width:100%;
    margin-top:15px;

    background:#6b21a8;
    color:#fff;

    border:none;
    padding:14px;

    border-radius:10px;
    cursor:pointer;

    font-size:16px;
    font-weight:600;
}

.csg-profile-photo{

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:50px;
}


.csg-create-post-box{

    margin-top:25px;
    background:#fff;
    border:1px solid #eee;
    border-radius:15px;
    padding:20px;
}

.csg-create-post-box textarea{

    width:100%;
    min-height:100px;

    border:1px solid #ddd;
    border-radius:10px;

    padding:12px;
}

.csg-create-post-box input[type=file]{

    margin-top:10px;
}

#csg-create-post{

    margin-top:12px;

    background:#6b21a8;
    color:#fff;

    border:none;
    padding:12px 20px;

    border-radius:10px;
}

.csg-profile-tabs{

    display:flex;
    gap:10px;

    margin-top:25px;
    margin-bottom:25px;
}

.csg-profile-tabs button{

    border:none;

    background:#f3f3f3;

    padding:10px 20px;

    border-radius:30px;

    cursor:pointer;
}

.csg-profile-tabs button.active{

    background:#6b21a8;
    color:#fff;
}

.csg-post-card{

    background:#fff;

    border:1px solid #eee;

    border-radius:15px;

    padding:20px;

    margin-bottom:20px;
}

.csg-post-header{

    margin-bottom:15px;
}


.csg-subject-badge{

    display:inline-block;

    background:#f3e8ff;
    color:#6b21a8;

    padding:8px 14px;

    border-radius:30px;

    text-decoration:none;

    font-size:14px;
    font-weight:600;

    transition:.3s;
}

.csg-subject-badge:hover{

    background:#6b21a8;
    color:#fff;

}


/* post */

.csg-post-actions{
    margin:15px 0;
}

#csg-add-media{
    border:none;
    background:#f0f2f5;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
}

#csg-media-preview{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:15px 0;
}

.csg-preview-image{
    width:120px;
    height:120px;
    object-fit:cover;
    border-radius:8px;
}

.csg-preview-video{
    width:180px;
    border-radius:8px;
}

/* display post */

.csg-post-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:12px;
    padding:15px;
    margin-bottom:15px;
}

.csg-post-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
}

.csg-post-date{
    font-size:12px;
    color:#777;
}

.csg-post-content{
    margin-bottom:15px;
}

.csg-post-media{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.csg-post-image{
    width:250px;
    height:250px;
    object-fit:cover;
    border-radius:10px;
}

.csg-post-video{
    width:100%;
    max-width:400px;
    height:250px;
    object-fit:cover;
    border-radius:10px;
}