/* Reset and base styles with lb_ prefix */
.lb_box-sizing, .lb_box-sizing::before, .lb_box-sizing::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lb_body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7fc;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
}

.lb_container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.lb_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.lb_back {
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
}

.lb_back i {
    margin-right: 5px;
}

.lb_title {
    font-weight: 700;
    font-size: 20px;
}

.lb_settings {
    font-size: 22px;
    color: #888;
    cursor: pointer;
}

/* --- Tabs Styles --- */
.lb_tabs {
    display: flex;
    justify-content: center;
    background-color: #e9ecef;
    border-radius: 25px;
    margin-bottom: 25px;
    padding: 4px;
}

.lb_tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 22px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background-color: transparent;
    color: #555;
    transition: all 0.3s ease;
}

.lb_tab i {
    margin-right: 8px;
}

.lb_tab.active {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* --- Top 3 Podium --- */
.lb_top3 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}

.lb_place {
    text-align: center;
    width: 33.33%;
}

.lb_place.first { order: 2; width: 36%; }
.lb_place.second { order: 1; }
.lb_place.third { order: 3; }

.lb_place .lb_rank {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.lb_place .lb_rank .fa-crown { color: #FFD700; }

.lb_profile-container {
    position: relative;
    margin: 0 auto 10px;
}

.lb_place .lb_profile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid;
    object-fit: cover;
}

.lb_place.first .lb_profile {
    width: 100px;
    height: 100px;
    border-color: #FFD700; /* Gold */
}
.lb_place.second .lb_profile { border-color: #C0C0C0; /* Silver */ }
.lb_place.third .lb_profile { border-color: #CD7F32; /* Bronze */ }

.lb_place .lb_name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    height: 34px; /* Approx 2 lines height */
    overflow: hidden;
    margin-top: 16px;
}

.lb_place .lb_rating-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #007bff, #00d4ff);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.lb_place .lb_rating-badge .fa-star { color: #fff; }

/* --- Rank Change Icons --- */
.lb_rank-change {
    font-size: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.lb_top3 .lb_rank-change {
    background: linear-gradient(45deg, #007bff, #00d4ff);
}

/* --- List (4th place and below) --- */
.lb_list {
    display: flex;
    flex-direction: column;
}

.lb_list .lb_item {
    display: flex;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.lb_list .lb_item:last-child { border-bottom: none; }
.lb_list .lb_item:hover { background-color: #f9f9f9; }

.lb_list .lb_rank {
    font-size: 16px;
    font-weight: 600;
    color: #888;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.lb_list .lb_profile.small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.lb_list .lb_info {
    flex: 1;
}

.lb_list .lb_name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.lb_list .lb_rating-badge {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.lb_list .lb_rank-change {
    margin-left: 10px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
}

/* Back button for your app */
.lb_back-button {
    display: none;
}

/* Month indicator */
.lb_month-indicator {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: #007bff;
}

/* Tab content containers */
.lb_tab-content {
    display: none;
}

.lb_tab-content.active {
    display: block;
}