.leaderboard-teaser-container {
    background: radial-gradient(1000px 600px at 10% 10%, rgba(124,111,255,0.12), transparent 60%),
                radial-gradient(800px 500px at 90% 0%, rgba(56,189,248,0.10), transparent 60%),
                linear-gradient(135deg,  #bf10e5 0%, #163b97 100%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem;
    color: #e5e7eb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 24px 48px rgba(2,6,23,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
    border: 1px solid rgb(255 255 255 / 62%);
    max-width: 880px;
    margin: 0 auto 2rem auto;
    position: relative;
    overflow: hidden;
}

/* Animated colorful top border */
.leaderboard-teaser-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        #ff7ab6 0%,
        #ffcf6f 16%,
        #a9f4f5 33%,
        #7e6fff 50%,
        #6ee7b7 66%,
        #fca5a5 83%,
        #ff7ab6 100%);
    background-size: 200% 100%;
    animation: leaderboard-border-slide 6s linear infinite;
    box-shadow: 0 0 12px rgba(169, 244, 245, 0.35), 0 2px 12px rgba(0,0,0,0.25);
    z-index: 1;
}

@keyframes leaderboard-border-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.teaser-title {
    text-align: center;
    margin-bottom: 2rem;
}

.title-text {
    color: #a9f4f5 !important;
    font-weight: bold !important;
    margin-bottom: 0.5rem !important;
}

.subtitle-text {
    color: #d5e3f1 !important;
    font-style: italic !important;
}

.top-positions {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.position-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
    box-shadow: 0 12px 32px rgba(2,6,23,0.5);
}

.position-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124,111,255,0.45);
    box-shadow: 0 18px 48px rgba(124,111,255,0.20);
}

.first-place {
    width: 200px;
    height: 280px;
    border-color: rgba(255,215,0,0.45);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.14);
}

.second-place,
.third-place {
    width: 150px;
    height: 230px;
    border-color: rgba(255,255,255,0.08);
}

.second-place {
    border-color: #c0c0c0;
}

.third-place {
    border-color: #cd7f32;
}

.position-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 10px 28px rgba(2,6,23,0.5);
}

.first-place .position-number {
    background: linear-gradient(145deg, #ffd700, #ffed4e);
    color: #1a2a3a;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.35);
}

.second-place .position-number {
    background: linear-gradient(145deg, #c0c0c0, #e0e0e0);
    color: #1a2a3a;
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.third-place .position-number {
    background: linear-gradient(145deg, #cd7f32, #daa520);
    color: white;
    box-shadow: 0 8px 25px rgba(205, 127, 50, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.profile-section {
    margin-top: 3rem;
}

.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid;
}

.first-place .profile-picture {
    width: 100px;
    height: 100px;
    border-color: #ffd700;
}

.second-place .profile-picture {
    border-color: #c0c0c0;
}

.third-place .profile-picture {
    border-color: #cd7f32;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #4a90e2, #357abd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.user-info {
    text-align: center;
}

.name-flag-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.username {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.first-place .username {
    max-width: 160px;
}

.country-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid #3a4a5a;
}

.first-place .username {
    font-size: 1.2rem;
    color: #ffd700;
}

.points {
    font-size: 0.9rem;
    color: #7e6fff;
    font-weight: 500;
}

.first-place .points {
    color: #ffd700;
    font-size: 1rem;
}

.view-full-leaderboard {
    text-align: center;
    margin-top: 2rem;
}

.view-leaderboard-btn {
    background: linear-gradient(145deg, #7e6fff, #6a5ff5) !important;
    border-radius: 25px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 8px 25px rgba(124, 111, 255, 0.35) !important;
    transition: all 0.3s ease !important;
}

.view-leaderboard-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(124, 111, 255, 0.4) !important;
    background: linear-gradient(145deg, #8a7fff, #786ff7) !important;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #6a7a8a;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4a90e2;
}

.no-data p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media(max-width: 768px) {
        .leaderboard-teaser-container {
            padding: 1rem;
        }

        .top-positions {
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .first-place,
        .second-place,
        .third-place {
            width: 100%;
            max-width: 300px;
            height: auto;
            min-height: 200px;
        }

        .username {
            max-width: 120px;
        }

        .first-place .username {
            max-width: 140px;
        }

        .name-flag-container {
            flex-direction: column;
            gap: 0.25rem;
        }
    }

    /* Animation for loading */
    @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .position-card {
            animation: fadeInUp 0.6s ease-out;
        }

        .position-card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .position-card:nth-child(2) {
            animation-delay: 0.2s;
        }

        .position-card:nth-child(3) {
            animation-delay: 0.3s;
        }

        .leaderboard-container {
            background: radial-gradient(900px 500px at 12% 10%, rgba(124,111,255,0.14), transparent 60%),
                        radial-gradient(700px 420px at 88% 6%, rgba(56,189,248,0.12), transparent 60%),
                        linear-gradient(135deg,  #bf10e5 0%, #163b97 100%);
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            border-radius: 20px;
            padding: 2rem;
            color: #e5e7eb;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            box-shadow: 0 24px 48px rgba(2,6,23,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
            border: 1px solid rgb(255 255 255 / 62%);
            max-width: 880px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }

        /* Animated colorful top border */
        .leaderboard-container::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg,
                #ff7ab6 0%,
                #ffcf6f 16%,
                #a9f4f5 33%,
                #7e6fff 50%,
                #6ee7b7 66%,
                #fca5a5 83%,
                #ff7ab6 100%);
            background-size: 200% 100%;
            animation: leaderboard-border-slide 6s linear infinite;
            box-shadow: 0 0 10px rgba(169, 244, 245, 0.28), 0 2px 10px rgba(0,0,0,0.22);
            z-index: 1;
        }
  
        .top-positions {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 1rem;
            margin-bottom: 2rem;
            position: relative;
        }
    
        .position-card {
            background: linear-gradient(145deg, #2a3a4a 0%, #1a2a3a 100%);
            border-radius: 15px;
            padding: 1.5rem;
            text-align: center;
            position: relative;
            border: 2px solid transparent;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
    
        .position-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }
    
        .first-place {
            width: 200px;
            height: 280px;
            border-color: #ffd700;
            background: linear-gradient(145deg, #3a4a5a 0%, #2a3a4a 100%);
            box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
        }
    
        .second-place,
        .third-place {
            width: 150px;
            height: 230px;
            border-color: #c0c0c0;
        }
    
        .second-place {
            border-color: #c0c0c0;
        }
    
        .third-place {
            border-color: #cd7f32;
        }
    
        .position-number {
            position: absolute;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            z-index: 3;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }
    
        .first-place .position-number {
            background: linear-gradient(145deg, #ffd700, #ffed4e);
            color: #1a2a3a;
            box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
        }
    
        .second-place .position-number {
            background: linear-gradient(145deg, #c0c0c0, #e0e0e0);
            color: #1a2a3a;
            box-shadow: 0 8px 25px rgba(192, 192, 192, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
        }
    
        .third-place .position-number {
            background: linear-gradient(145deg, #cd7f32, #daa520);
            color: white;
            box-shadow: 0 8px 25px rgba(205, 127, 50, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
        }
    
    
    
        .profile-section {
            margin-top: 3rem;
        }
    
        .profile-picture {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 1rem;
            overflow: hidden;
            border: 3px solid;
        }
    
        .first-place .profile-picture {
            width: 100px;
            height: 100px;
            border-color: #ffd700;
        }
    
        .second-place .profile-picture {
            border-color: #c0c0c0;
        }
    
        .third-place .profile-picture {
            border-color: #cd7f32;
        }
    
        .profile-picture img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    
        .default-avatar {
            width: 100%;
            height: 100%;
            background: linear-gradient(145deg, #4a90e2, #357abd);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            font-weight: bold;
            color: white;
        }
    
        .user-info {
            text-align: center;
        }
    
        .name-flag-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }
    
        .name-flag-container-grid {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
    
        .username {
            font-size: 0.9rem;
            font-weight: 600;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 140px;
        }
    
        .first-place .username {
            max-width: 160px;
        }
    
        .country-flag {
            width: 20px;
            height: 15px;
            border-radius: 2px;
            object-fit: cover;
            border: 1px solid #3a4a5a;
        }
    
        .country-flag-small {
            width: 16px;
            height: 12px;
            border-radius: 2px;
            object-fit: cover;
            border: 1px solid #3a4a5a;
        }
    
        .first-place .username {
            font-size: 1.2rem;
            color: #ffd700;
        }
    
        .points {
            font-size: 0.9rem;
            color: #4a90e2;
            font-weight: 500;
        }
    
        .first-place .points {
            color: #ffd700;
            font-size: 1rem;
        }
    
        .leaderboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }
    
        .grid-item {
            background: linear-gradient(145deg, #2a3a4a 0%, #1a2a3a 100%);
            border-radius: 12px;
            padding: 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            border: 1px solid #3a4a5a;
            transition: all 0.3s ease;
        }
    
        .grid-item:hover {
            transform: translateX(5px);
            border-color: #4a90e2;
            box-shadow: 0 5px 20px rgba(74, 144, 226, 0.2);
        }
    
        .rank-number {
            font-size: 1.5rem;
            font-weight: bold;
            color: #4a90e2;
            min-width: 40px;
            text-align: center;
        }
    
        .user-details {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex: 1;
        }
    
        .profile-picture-small {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            overflow: hidden;
            border: 2px solid #3a4a5a;
        }
    
        .profile-picture-small img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    
        .default-avatar-small {
            width: 100%;
            height: 100%;
            background: linear-gradient(145deg, #4a90e2, #357abd);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            font-weight: bold;
            color: white;
        }
    
        .user-info-grid {
            flex: 1;
        }
    
        .user-info-grid .username {
            font-size: 0.85rem;
            margin-bottom: 0.25rem;
        }
    
        .user-info-grid .points {
            font-size: 0.8rem;
        }
    
        .no-data {
            text-align: center;
            padding: 3rem;
            color: #6a7a8a;
        }
    
        .no-data i {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #4a90e2;
        }
    
        .no-data p {
            font-size: 1.1rem;
            margin: 0;
        }
    
        /* Responsive Design */
        @media(max-width: 768px) {
                .leaderboard-container {
                    padding: 1rem;
                }
    
                .top-positions {
                    flex-direction: column;
                    align-items: center;
                    gap: 1rem;
                }
    
                .first-place,
                .second-place,
                .third-place {
                    width: 100%;
                    max-width: 300px;
                    height: auto;
                    min-height: 200px;
                }
    
                .leaderboard-grid {
                    grid-template-columns: 1fr;
                }
    
                .grid-item {
                    padding: 0.75rem;
                }
    
                .username {
                    max-width: 120px;
                }
    
                .first-place .username {
                    max-width: 140px;
                }
    
                .name-flag-container {
                    flex-direction: column;
                    gap: 0.25rem;
                }
    
                .name-flag-container-grid {
                    flex-direction: column;
                    gap: 0.25rem;
                }
            }
    
            /* Animation for loading */
            @keyframes fadeInUp {
                    from {
                        opacity: 0;
                        transform: translateY(20px);
                    }
    
                    to {
                        opacity: 1;
                        transform: translateY(0);
                    }
                }
    
                .position-card,
                .grid-item {
                    animation: fadeInUp 0.6s ease-out;
                }
    
                .position-card:nth-child(1) {
                    animation-delay: 0.1s;
                }
    
                .position-card:nth-child(2) {
                    animation-delay: 0.2s;
                }
    
                .position-card:nth-child(3) {
                    animation-delay: 0.3s;
                }
    
                .grid-item:nth-child(1) {
                    animation-delay: 0.4s;
                }
    
                .grid-item:nth-child(2) {
                    animation-delay: 0.5s;
                }
    
                .grid-item:nth-child(3) {
                    animation-delay: 0.6s;
                }
    
                .grid-item:nth-child(4) {
                    animation-delay: 0.7s;
                }
    
                .grid-item:nth-child(5) {
                    animation-delay: 0.8s;
                }
    
                .grid-item:nth-child(6) {
                    animation-delay: 0.9s;
                }
    
                .grid-item:nth-child(7) {
                    animation-delay: 1.0s;
                }