.leaderboard-page{
    position:relative;
}

.leaderboard-hero{
    text-align:center;
    max-width:850px;
    margin:auto;
    margin-bottom:60px;
}

.leaderboard-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 20px;
    border-radius:999px;
    background:rgba(210,243,65,.08);
    border:1px solid rgba(210,243,65,.12);
    color:#d2f341;
    margin-bottom:25px;
}

.leaderboard-hero h1{
    color:#fff;
    font-size:clamp(34px,5vw,68px);
    font-weight:900;
    margin-bottom:15px;
}

.leaderboard-hero p{
    color:#9ca3af;
    line-height:2;
}

.leaderboard-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:35px;
}

.stat-card{
    text-align:center;
    padding:28px;
    border-radius:24px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(210,243,65,.08);
}

.stat-card strong{
    display:block;
    font-size:32px;
    color:#d2f341;
    margin-bottom:10px;
}

.stat-card span{
    color:#aaa;
}

.my-rank{
    display:flex;
    justify-content:space-between;
    padding:30px;
    border-radius:24px;
    margin-bottom:35px;
    background:rgba(210,243,65,.06);
    border:1px solid rgba(210,243,65,.12);
}

.my-rank small{
    color:#aaa;
}

.my-rank h3{
    color:#fff;
    margin-top:8px;
}

.leaderboard-search{
    display:flex;
    gap:15px;
    margin-bottom:35px;
}

.search-box{
    flex:1;
    position:relative;
}

.search-box i{
    position:absolute;
    right:18px;
    top:50%;
    transform:translateY(-50%);
    color:#888;
}

.search-box input{
    width:100%;
    height:60px;
    border:none;
    outline:none;
    border-radius:18px;
    background:rgba(255,255,255,.04);
    padding:0 20px 0 50px;
    color:#fff;
}

.leaderboard-search button{
    border:none;
    border-radius:18px;
    background:#d2f341;
    color:#111;
    padding:0 25px;
    font-weight:700;
    white-space:nowrap;
}

.leaderboard-tabs{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:60px;
}

.leaderboard-tabs button{
    border:none;
    border-radius:999px;
    background:rgba(255,255,255,.04);
    color:#fff;
    padding:12px 20px;
}

.leaderboard-tabs .active{
    background:#d2f341;
    color:#111;
}

/* ===========================
   TOP 3 LEADERBOARD
=========================== */

.top-three{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    margin-bottom:70px;
}

.top-user{

    position:relative;

    text-align:center;

    padding:35px 25px;

    border-radius:28px;

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,.04),
        rgba(255,255,255,.02)
    );

    border:1px solid rgba(210,243,65,.08);

    transition:.35s ease;

    overflow:hidden;
}

.top-user:hover{

    transform:translateY(-8px);

    border-color:rgba(210,243,65,.18);

}

.top-user.first{

    border-color:rgba(210,243,65,.22);

    box-shadow:
    0 0 35px rgba(210,243,65,.08);

}

/* Avatar */

.top-avatar{

    position:relative;

    display:inline-block;

    margin-bottom:18px;
}

.top-avatar img{

    width:110px;

    height:110px;

    border-radius:50%;

    object-fit:cover;

    border:4px solid rgba(255,255,255,.08);

    transition:.3s ease;
}

/* نفر اول */

.top-user.first .top-avatar img{

    border-color:#d2f341;

    box-shadow:
    0 0 15px rgba(210,243,65,.45),
    0 0 45px rgba(210,243,65,.15);

}

/* رتبه روی عکس */

.top-rank{

    position:absolute;

    top:-6px;

    right:-6px;

    width:42px;

    height:42px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#d2f341;

    color:#111;

    font-weight:900;

    font-size:14px;

    z-index:5;

    animation:rankGlow 3s ease-in-out infinite;
}

/* Glow Animation */

@keyframes rankGlow{

    0%{

        transform:scale(1);

        box-shadow:
        0 0 0 rgba(210,243,65,.2);

    }

    50%{

        transform:scale(1.12);

        box-shadow:
        0 0 12px rgba(210,243,65,.55),
        0 0 30px rgba(210,243,65,.25);

    }

    100%{

        transform:scale(1);

        box-shadow:
        0 0 0 rgba(210,243,65,.2);

    }

}

/* اسم */

.top-user h4{

    color:#fff;

    font-size:20px;

    font-weight:800;

    margin-bottom:8px;
}

/* امتیاز */

.top-user span{

    color:#9ca3af;

    font-size:14px;
}

/* استایل خاص هر رتبه */

.top-user.first{

    transform:translateY(-15px);
}

.top-user.second{

    opacity:.95;
}

.top-user.third{

    opacity:.95;
}

/* موبایل */

@media(max-width:991px){

    .top-three{

        grid-template-columns:1fr;

        gap:18px;
    }

    .top-user.first{

        order:1;

        transform:none;
    }

    .top-user.second{

        order:2;
    }

    .top-user.third{

        order:3;
    }

}

.leaderboard-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.leaderboard-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:22px;
    border-radius:22px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(210,243,65,.08);
}

.leaderboard-rank{
    color:#d2f341;
    font-weight:800;
    font-size:22px;
    min-width:60px;
}

.leaderboard-user{
    display:flex;
    align-items:center;
    gap:15px;
}

.leaderboard-user img{
    width:60px;
    height:60px;
    border-radius:50%;
}

.leaderboard-user h4{
    color:#fff;
    margin-bottom:4px;
}

.user-badge{
    color:#d2f341;
    font-size:13px;
}

.leaderboard-meta{
    display:flex;
    gap:20px;
    color:#aaa;
}

.profile-btn{
    background:#d2f341;
    color:#111;
    text-decoration:none;
    padding:12px 18px;
    border-radius:12px;
    font-weight:700;
}

.load-more{
    text-align:center;
    margin-top:40px;
}

.load-more button{
    border:none;
    border-radius:16px;
    padding:15px 30px;
    background:rgba(210,243,65,.1);
    color:#d2f341;
}

.leaderboard-cta{
    text-align:center;
    margin-top:90px;
    padding:60px;
    border-radius:32px;
    background:rgba(210,243,65,.05);
    border:1px solid rgba(210,243,65,.08);
}

.leaderboard-cta h2{
    color:#fff;
}

.leaderboard-cta p{
    color:#aaa;
    margin:15px 0 25px;
}

.leaderboard-cta a{
    display:inline-block;
    padding:15px 30px;
    border-radius:16px;
    background:#d2f341;
    color:#111;
    text-decoration:none;
    font-weight:700;
}

@media(max-width:991px){

    .leaderboard-stats{
        grid-template-columns:repeat(2,1fr);
    }

    .top-three{
        grid-template-columns:1fr;
    }

    .top-user.first{
        order:1;
    }

    .top-user.second{
        order:2;
    }

    .top-user.third{
        order:3;
    }

    .leaderboard-item{
        flex-direction:column;
        text-align:center;
    }

    .leaderboard-meta{
        flex-wrap:wrap;
        justify-content:center;
    }

    .my-rank{
        flex-direction:column;
        gap:20px;
        text-align:center;
    }

    .leaderboard-search{
        flex-direction:column;
    }

    .leaderboard-search button{
        height:55px;
    }

}

@media(max-width:576px){

    .leaderboard-stats{
        grid-template-columns:1fr;
    }

    .leaderboard-cta{
        padding:35px 20px;
    }

}

.leaderboard-meta{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

    justify-content:center;
}

.meta-item{

    min-width:85px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:4px;

    padding:10px 14px;

    border-radius:14px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(210,243,65,.08);

    transition:.3s ease;
}

.meta-item:hover{

    transform:translateY(-3px);

    border-color:rgba(210,243,65,.25);

    background:rgba(210,243,65,.05);
}

.meta-item i{

    color:#d2f341;

    font-size:16px;
}

.meta-item span{

    color:#fff;

    font-size:16px;

    font-weight:800;

    line-height:1;
}

.meta-item small{

    color:#9ca3af;

    font-size:12px;
}

.leaderboard-stats{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

    margin-bottom:50px;
}

.stat-card{

    position:relative;

    overflow:hidden;

    display:flex;

    align-items:center;

    gap:18px;

    padding:24px;

    border-radius:24px;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.05),
        rgba(255,255,255,.02)
    );

    border:1px solid rgba(210,243,65,.08);

    transition:.35s ease;
}

.stat-card::before{

    content:"";

    position:absolute;

    top:-60px;

    left:-60px;

    width:120px;

    height:120px;

    border-radius:50%;

    background:
    rgba(210,243,65,.05);

    transition:.4s ease;
}

.stat-card:hover{

    transform:translateY(-6px);

    border-color:rgba(210,243,65,.22);

    box-shadow:
    0 10px 30px rgba(0,0,0,.2);
}

.stat-card:hover::before{

    transform:scale(1.5);
}

.stat-icon{

    width:62px;

    height:62px;

    flex-shrink:0;

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:
    rgba(210,243,65,.08);

    border:1px solid rgba(210,243,65,.12);

    color:#d2f341;

    font-size:24px;
}

.stat-content{

    display:flex;

    flex-direction:column;
}

.stat-content strong{

    font-size:32px;

    font-weight:900;

    color:#fff;

    line-height:1.1;
}

.stat-content span{

    color:#9ca3af;

    font-size:14px;

    margin-top:6px;
}

@media(max-width:991px){

    .leaderboard-stats{

        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:576px){

    .leaderboard-stats{

        grid-template-columns:1fr;
    }

}

html {

    scroll-behavior: smooth;

}

.search-result-empty {

    max-width: 600px;

    margin: 40px auto;

    padding: 50px 30px;

    text-align: center;

    border-radius: 28px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .04),
            rgba(255, 255, 255, .02));

    border: 1px solid rgba(210, 243, 65, .08);

    backdrop-filter: blur(14px);

    position: relative;

    overflow: hidden;
}

.search-result-empty::before {

    content: "";

    position: absolute;

    width: 220px;

    height: 220px;

    top: -100px;

    left: -100px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(210, 243, 65, .10),
            transparent 70%);

    animation: emptyFloat 8s ease-in-out infinite;
}

.search-result-empty__icon {

    width: 90px;

    height: 90px;

    margin: 0 auto 25px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 36px;

    color: #d2f341;

    background: rgba(210, 243, 65, .08);

    border: 1px solid rgba(210, 243, 65, .12);
}

.search-result-empty h3 {

    color: #fff;

    font-size: 24px;

    font-weight: 800;

    margin-bottom: 12px;
}

.search-result-empty p {

    color: #9ca3af;

    margin: 0;

    line-height: 2;
}

@keyframes emptyFloat {

    0%,
    100% {

        transform: translate(0, 0);
    }

    50% {

        transform: translate(35px, 20px);
    }

}

.leaderboard-pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 40px;
}

.leaderboard-pagination a {

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    text-decoration: none;

    background: rgba(255,255,255,.05);

    border: 1px solid rgba(255,255,255,.08);

    color: #fff;

    font-weight: 700;

    transition: .25s;
}

.leaderboard-pagination a:hover {

    transform: translateY(-2px);

    border-color: rgba(210,243,65,.5);
}

.leaderboard-pagination a.active {

    background: #d2f341;

    color: #111;

    border-color: #d2f341;
}

.empty-rank{

    padding:40px;

    border-radius:28px;

    text-align:center;

    background:
    linear-gradient(
        135deg,
        rgba(210,243,65,.06),
        rgba(255,255,255,.03)
    );

    border:1px solid rgba(210,243,65,.10);

    position:relative;

    overflow:hidden;
}

.empty-rank::before{

    content:"";

    position:absolute;

    width:220px;

    height:220px;

    top:-100px;

    right:-100px;

    border-radius:50%;

    background:
    radial-gradient(
        circle,
        rgba(210,243,65,.12),
        transparent 70%
    );

    animation:rankGlow 7s ease-in-out infinite;
}

.empty-rank-icon{

    width:90px;

    height:90px;

    margin:0 auto 25px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(210,243,65,.08);

    border:1px solid rgba(210,243,65,.15);

    color:#d2f341;

    font-size:34px;
}

.empty-rank h3{

    color:#fff;

    margin-bottom:15px;

    font-size:26px;

    font-weight:800;
}

.empty-rank p{

    color:#9ca3af;

    max-width:600px;

    margin:0 auto 25px;

    line-height:2;
}

.empty-rank-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 28px;

    border-radius:16px;

    background:#d2f341;

    color:#111;

    text-decoration:none;

    font-weight:800;

    transition:.3s;
}

.empty-rank-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 30px rgba(210,243,65,.25);

    color:#111;
}

@keyframes rankGlow{

    0%,100%{

        transform:scale(1);
    }

    50%{

        transform:scale(1.15);
    }

}

.my-rank-empty{

    position:relative;

    overflow:hidden;

    display:flex;
    align-items:center;
    gap:24px;

    padding:32px;

    border-radius:28px;

    margin-bottom:40px;

    background:
    linear-gradient(
        135deg,
        rgba(210,243,65,.06),
        rgba(255,255,255,.02)
    );

    border:1px solid rgba(210,243,65,.08);
}

.my-rank-empty__glow{

    position:absolute;

    width:280px;
    height:280px;

    top:-120px;
    left:-120px;

    border-radius:50%;

    background:
    radial-gradient(
        rgba(210,243,65,.08),
        transparent 70%
    );

    animation:rankGlow 8s ease-in-out infinite;
}

@keyframes rankGlow{

    0%,100%{

        transform:scale(1);
        opacity:.5;
    }

    50%{

        transform:scale(1.15);
        opacity:1;
    }
}

.my-rank-empty__icon{

    position:relative;
    z-index:2;

    width:78px;
    height:78px;

    flex-shrink:0;

    border-radius:22px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(210,243,65,.08);

    border:1px solid rgba(210,243,65,.1);

    color:#d2f341;

    font-size:30px;
}

.my-rank-empty__content{

    position:relative;
    z-index:2;

    flex:1;
}

.my-rank-empty__content h3{

    color:#fff;

    font-size:30px;

    font-weight:900;

    margin-bottom:10px;
}

.my-rank-empty__content p{

    color:#9ca3af;

    margin:0;

    line-height:1.9;
}

.my-rank-empty__btn{

    position:relative;
    z-index:2;

    height:54px;

    padding:0 24px;

    border-radius:16px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    background:#d2f341;

    color:#111;

    font-weight:800;

    flex-shrink:0;
}

.my-rank-empty__btn,
.my-rank-empty__btn:hover,
.my-rank-empty__btn:focus{

    color:#111;
    text-decoration:none;
}

@media(max-width:768px){

    .my-rank-empty{

        flex-direction:column;

        text-align:center;
    }

    .my-rank-empty__btn{

        width:100%;
    }

    .my-rank-empty__content h3{

        font-size:24px;
    }
}
.my-rank-card{

    position:relative;

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:30px;

    padding:32px;

    margin-bottom:45px;

    border-radius:28px;

    background:
    linear-gradient(
        135deg,
        rgba(210,243,65,.08),
        rgba(255,255,255,.02)
    );

    border:1px solid rgba(210,243,65,.10);
}

.my-rank-card__glow{

    position:absolute;

    top:-100px;
    left:-100px;

    width:250px;
    height:250px;

    border-radius:50%;

    background:
    radial-gradient(
        rgba(210,243,65,.10),
        transparent 70%
    );

    animation:rankGlow 8s ease-in-out infinite;
}

@keyframes rankGlow{

    0%,100%{

        transform:scale(1);
    }

    50%{

        transform:scale(1.2);
    }
}

.my-rank-card__left{

    position:relative;
    z-index:2;
}

.rank-label{

    display:block;

    color:#9ca3af;

    margin-bottom:8px;
}

.rank-number{

    font-size:58px;

    font-weight:900;

    color:#d2f341;

    line-height:1;
}

.my-rank-card__center{

    position:relative;
    z-index:2;
}

.rank-score{

    text-align:center;
}

.rank-score span{

    display:block;

    color:#9ca3af;

    margin-bottom:8px;
}

.rank-score strong{

    font-size:34px;

    color:#fff;

    font-weight:800;
}

.my-rank-card__right{

    position:relative;
    z-index:2;

    display:flex;
    align-items:center;
    gap:12px;

    color:#d2f341;

    font-weight:800;
}

.my-rank-card__right i{

    font-size:30px;

    animation:firePulse 2s infinite;
}

@keyframes firePulse{

    0%,100%{

        transform:scale(1);
    }

    50%{

        transform:scale(1.15);
    }
}

@media(max-width:768px){

    .my-rank-card{

        flex-direction:column;

        text-align:center;

        gap:20px;
    }

    .rank-number{

        font-size:48px;
    }

    .rank-score strong{

        font-size:28px;
    }
}