
 
/* ==========================================================
   TOP MEMBERS
========================================================== */

.tm-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    margin-bottom:28px;
    padding:32px;
    border-radius:22px;
    background:linear-gradient(135deg,#2563eb,#4f46e5);
    color:#fff;
    overflow:hidden;
    position:relative;
}

.tm-hero::before{
    content:"";
    position:absolute;
    right:-90px;
    top:-90px;
    width:230px;
    height:230px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
}

.tm-hero h1{
    margin:10px 0;
    font-size:34px;
    font-weight:700;
}

.tm-hero p{
    margin:0;
    max-width:620px;
    line-height:1.7;
    opacity:.95;
}

.tm-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(10px);
    font-size:13px;
    font-weight:600;
}

.tm-hero__stats{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.tm-stat{
    min-width:135px;
    text-align:center;
    padding:14px;
    border-radius:16px;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(12px);
}

.tm-stat strong{
    display:block;
    font-size:24px;
    font-weight:700;
}

.tm-stat span{
    font-size:12px;
    opacity:.9;
}

/* ==========================================================
   TOOLBAR
========================================================== */

.tm-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}

.tm-search{
    width:100%;
    max-width:420px;
}

.tm-search input{
    height:48px;
    border-radius:14px;
    border:1px solid #d9e3f5;
    padding:0 18px;
    box-shadow:none;
    transition:.25s;
}

.tm-search input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 .18rem rgba(37,99,235,.15);
}

/* ==========================================================
   GRID
========================================================== */

.tm-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(285px,1fr));
    gap:18px;
}

/* ==========================================================
   CARD
========================================================== */

.tm-card{

    background:#fff;
    border:1px solid #e6ebf5;
    border-radius:18px;

    padding:18px;

    display:flex;
    flex-direction:column;
    gap:14px;

    transition:.25s;

    box-shadow:0 3px 12px rgba(15,23,42,.05);

}

.tm-card:hover{

    transform:translateY(-4px);

    border-color:#bfd4ff;

    box-shadow:0 14px 34px rgba(37,99,235,.10);

}

.tm-card__avatar{

    position:relative;

    text-align:center;

}

.tm-card__avatar img{

    width:58px;
    height:58px;

    border-radius:50%;

    object-fit:cover;

    margin:auto;

    border:3px solid #eef4ff;

}

.tm-card__level{

    display:inline-block;

    margin-top:8px;

    padding:5px 12px;

    border-radius:999px;

    background:#eef4ff;

    color:#2563eb;

    font-size:11px;

    font-weight:700;

}

.tm-card__user{

    text-align:center;

}

.tm-card__name{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:6px;

    font-size:16px;

    font-weight:700;

    color:#1e293b;

}

.tm-card__fullname{

    margin-top:4px;

    font-size:13px;

    color:#64748b;

}

.flag-xs{

    width:18px;
    height:13px;
    object-fit:cover;
    border-radius:2px;

}

/* ==========================================================
   STATS
========================================================== */

.tm-card__stats{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:8px;

}

.tm-card__stats span{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:5px;

    padding:9px;

    border-radius:10px;

    background:#f8fbff;

    border:1px solid #edf2ff;

    font-size:13px;

    font-weight:600;

    color:#475569;

}

/* ==========================================================
   BUTTONS
========================================================== */

.tm-card__actions{

    display:flex;

    gap:10px;

    margin-top:auto;

}

.tm-btn{

    flex:1;

    height:40px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:11px;

    text-decoration:none;

    font-size:13px;

    font-weight:600;

    transition:.25s;

}

.tm-btn--profile{

    background:#f8fbff;

    color:#2563eb;

    border:1px solid #dbeafe;

}

.tm-btn--profile:hover{

    background:#2563eb;

    color:#fff;

}

.tm-btn--follow{

    background:#2563eb;

    color:#fff;

}

.tm-btn--follow:hover{

    background:#1d4ed8;

    color:#fff;

}

.tm-btn--following{

    background:#eef4ff;

    color:#2563eb;

}

.tm-btn--following:hover{

    background:#2563eb;

    color:#fff;

}

/* ==========================================================
   EMPTY
========================================================== */

.tm-empty{

    grid-column:1/-1;

    text-align:center;

    padding:70px 20px;

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:20px;

}

.tm-empty__icon{

    font-size:55px;

    margin-bottom:18px;

}

.tm-empty h4{

    margin-bottom:10px;

    font-size:24px;

}

.tm-empty p{

    color:#64748b;

    margin:0;

}

/* ==========================================================
   PAGINATION
========================================================== */

.tm-pagination-wrapper{

    display:flex;

    justify-content:center;

    margin-top:34px;

}

.tm-pagination{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    list-style:none;

    padding:0;

    margin:0;

}

.tm-page-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    min-width:44px;

    height:44px;

    padding:0 16px;

    border-radius:12px;

    background:#fff;

    border:1px solid #dbeafe;

    color:#2563eb;

    font-size:14px;

    font-weight:600;

    text-decoration:none;

    transition:.25s;

}

.tm-page-btn:hover{

    background:#2563eb;

    color:#fff;

}

.tm-page-btn.active{

    background:#2563eb;

    color:#fff;

    border-color:#2563eb;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:992px){

    .tm-hero{

        flex-direction:column;

        text-align:center;

    }

    .tm-hero__stats{

        justify-content:center;

    }

}

@media(max-width:768px){

    .tm-grid{

        grid-template-columns:1fr;

    }

    .tm-toolbar{

        flex-direction:column;

        gap:16px;

    }

    .tm-search{

        max-width:100%;

    }

}

@media(max-width:576px){

    .tm-hero{
        padding:24px;
    }

    .tm-hero h1{
        font-size:28px;
    }

    .tm-card{
        padding:16px;
    }

    .tm-card__actions{
        display:flex;
        flex-direction:row;
        gap:8px;
    }

    .tm-btn{
        flex:1;
        width:auto;
        height:38px;
        font-size:12px;
        padding:0 10px;
    }

}
    
