/* ==========================================================================
   CHAMPIONSHIP LEADERBOARD STYLES (WinTradely Arena)
   ========================================================================== */

/* ── Overlay Backdrop ── */
.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9900;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.lb-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Main Modal Container ── */
.lb-modal {
    position: relative;
    width: min(880px, calc(100vw - 60px));
    max-width: min(880px, calc(100vw - 60px));
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(175deg, #0e1526 0%, #090e18 55%, #05080f 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 24px 24px 0;
    box-shadow: 25px 0 80px rgba(0, 0, 0, 0.85), 0 0 70px rgba(0, 229, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    transform: translateX(-100%);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.lb-overlay.show .lb-modal {
    transform: translateX(0);
}

/* ── Ambient Glow Aurora Effects ── */
.lb-ambient-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}
.lb-glow-top {
    top: -100px;
    left: 20%;
    width: 480px;
    height: 240px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.14) 0%, rgba(255, 215, 0, 0.08) 50%, transparent 70%);
}
.lb-glow-bottom {
    bottom: -60px;
    right: 15%;
    width: 400px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(0, 200, 83, 0.07) 50%, transparent 70%);
}

/* ── Grand Championship Header ── */
.lb-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(13, 20, 36, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    box-sizing: border-box;
}

.lb-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.lb-trophy-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(255, 140, 0, 0.12));
    border: 1px solid rgba(255, 215, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
    flex-shrink: 0;
}
.lb-trophy-icon {
    font-size: 22px;
    filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.6));
    animation: lb-trophy-sway 4s ease-in-out infinite;
}
@keyframes lb-trophy-sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.lb-header-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.lb-header-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lb-header-title {
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 45%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.lb-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.lb-live-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: lb-pulse-red 1.6s ease-in-out infinite;
}
@keyframes lb-pulse-red {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.4; }
}

.lb-header-sub {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Filter Tabs ── */
.lb-tabs-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 3px;
    flex-shrink: 0;
}

.lb-period-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.lb-period-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.lb-period-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 149, 255, 0.25), rgba(0, 229, 255, 0.2));
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 2px 12px rgba(0, 229, 255, 0.22);
}
.lb-tab-icon {
    font-size: 12px;
}

/* ── Header Actions (Search, Refresh, Close) ── */
.lb-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lb-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.lb-search-icon {
    position: absolute;
    left: 10px;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s;
}
.lb-search-input {
    width: 140px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 7px 10px 7px 30px;
    font-size: 11.5px;
    color: #ffffff;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.lb-search-input::placeholder {
    color: #64748b;
}
.lb-search-input:focus {
    width: 175px;
    border-color: rgba(0, 229, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.22);
}
.lb-search-wrap:focus-within .lb-search-icon {
    color: #00e5ff;
}

.lb-refresh-btn,
.lb-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    flex-shrink: 0;
}
.lb-refresh-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.4);
    color: #00e5ff;
    transform: rotate(60deg);
}
.lb-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* ── Arena Scrollable Body ── */
.lb-arena-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    box-sizing: border-box;
}
.lb-arena-scroll::-webkit-scrollbar {
    width: 6px;
}
.lb-arena-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.lb-arena-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
.lb-arena-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ── Championship Stage & 3D Podium ── */
.lb-stage-wrapper {
    position: relative;
    border-radius: 18px;
    padding: 24px 20px 14px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.5) 0%, rgba(9, 14, 25, 0.75) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 15px 35px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.lb-stage-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.lb-stage-spotlight {
    position: absolute;
    height: 100%;
    top: -30px;
    filter: blur(40px);
    opacity: 0.55;
    pointer-events: none;
}
.lb-spot-left {
    left: 12%;
    width: 140px;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.25) 0%, transparent 80%);
}
.lb-spot-center {
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.32) 0%, transparent 85%);
}
.lb-spot-right {
    right: 12%;
    width: 140px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.25) 0%, transparent 80%);
}

.lb-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 18px;
    position: relative;
    z-index: 2;
    margin-top: 10px;
}

.lb-podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    opacity: 0;
    animation: lb-slide-up 0.5s ease forwards;
}
.lb-podium-card.rank-2 { animation-delay: 0.08s; }
.lb-podium-card.rank-1 { animation-delay: 0.22s; }
.lb-podium-card.rank-3 { animation-delay: 0.15s; }

@keyframes lb-slide-up {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

.lb-podium-card:hover {
    transform: translateY(-5px);
}

/* Avatar Rings */
.lb-avatar-ring {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.lb-podium-card.rank-1 .lb-avatar-ring {
    width: 72px;
    height: 72px;
    background: conic-gradient(from 0deg, #ffd700, #ff8c00, #fff275, #ffd700);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.45);
}
.lb-podium-card.rank-2 .lb-avatar-ring {
    background: conic-gradient(from 0deg, #cbd5e1, #ffffff, #94a3b8, #cbd5e1);
    box-shadow: 0 0 18px rgba(203, 213, 225, 0.3);
}
.lb-podium-card.rank-3 .lb-avatar-ring {
    background: conic-gradient(from 0deg, #d97706, #fbbf24, #92400e, #d97706);
    box-shadow: 0 0 18px rgba(217, 119, 6, 0.3);
}

.lb-avatar-inner {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 50%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    overflow: hidden;
}
.lb-podium-card.rank-1 .lb-avatar-inner {
    font-size: 28px;
}

/* Crown for Rank 1 */
.lb-crown {
    position: absolute;
    top: -16px;
    font-size: 22px;
    filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.65));
    animation: lb-crown-float 2.8s ease-in-out infinite;
    z-index: 5;
}
@keyframes lb-crown-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-4px) rotate(3deg); }
}

.lb-rank-badge {
    position: absolute;
    bottom: -3px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    border: 2px solid #0f172a;
    z-index: 3;
}
.lb-podium-card.rank-1 .lb-rank-badge {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    width: 25px;
    height: 25px;
    font-size: 12px;
}
.lb-podium-card.rank-2 .lb-rank-badge {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}
.lb-podium-card.rank-3 .lb-rank-badge {
    background: linear-gradient(135deg, #d97706, #92400e);
}

/* Podium Card Details */
.lb-podium-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    max-width: 130px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.lb-podium-card.rank-1 .lb-podium-name {
    font-size: 14px;
    font-weight: 800;
}
.lb-podium-flag {
    font-size: 14px;
    flex-shrink: 0;
}
.lb-podium-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-podium-trades {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lb-podium-profit {
    font-size: 13.5px;
    font-weight: 800;
    color: #00e676;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', monospace;
}
.lb-podium-card.rank-1 .lb-podium-profit {
    font-size: 15.5px;
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

/* 3D Podium Pedestal Base */
.lb-podium-base {
    width: 105px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    font-size: 15px;
    font-weight: 800;
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.lb-podium-card.rank-1 .lb-podium-base {
    height: 75px;
    width: 120px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.28) 0%, rgba(255, 140, 0, 0.06) 100%);
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-bottom: none;
    color: #ffd700;
    box-shadow: inset 0 2px 6px rgba(255, 215, 0, 0.35);
}
.lb-podium-card.rank-2 .lb-podium-base {
    height: 55px;
    width: 105px;
    background: linear-gradient(180deg, rgba(203, 213, 225, 0.2) 0%, rgba(148, 163, 184, 0.05) 100%);
    border: 1px solid rgba(203, 213, 225, 0.35);
    border-bottom: none;
    color: #cbd5e1;
}
.lb-podium-card.rank-3 .lb-podium-base {
    height: 42px;
    width: 100px;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.22) 0%, rgba(180, 83, 9, 0.05) 100%);
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-bottom: none;
    color: #f59e0b;
}

/* ── Championship HUD Stat Cards ── */
.lb-stats-hud {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    flex-shrink: 0;
}

.lb-stat-hud-card {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}
.lb-stat-hud-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(17, 24, 39, 0.85);
}

.lb-stat-hud-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.lb-stat-hud-icon.gold {
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.lb-stat-hud-icon.cyan {
    background: rgba(0, 229, 255, 0.14);
    border: 1px solid rgba(0, 229, 255, 0.3);
}
.lb-stat-hud-icon.purple {
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.lb-stat-hud-icon.green {
    background: rgba(0, 200, 83, 0.14);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.lb-stat-hud-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}
.lb-stat-hud-lbl {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-stat-hud-val {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Inter', monospace;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.lb-stat-hud-val.timer {
    color: #38bdf8;
}
.lb-stat-hud-val.green {
    color: #00e676;
}

/* ── Table Rankings Section ── */
.lb-table-wrapper {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.lb-table-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(15, 23, 42, 0.6);
}
.lb-table-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lb-table-heading {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}
.lb-table-count-badge {
    background: rgba(0, 229, 255, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
}
.lb-table-info-pill {
    font-size: 10.5px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 3px 10px;
}

/* Table List Grid */
.lb-list-section {
    padding: 0;
    overflow: visible;
}

.lb-list-header {
    display: grid;
    grid-template-columns: 60px 1.6fr 140px 95px 120px 140px;
    align-items: center;
    padding: 12px 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 17, 30, 0.7);
    box-sizing: border-box;
}

.col-profit {
    text-align: right;
}

.lb-list-item {
    display: grid;
    grid-template-columns: 60px 1.6fr 140px 95px 120px 140px;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}
.lb-list-item:last-child {
    border-bottom: none;
}
.lb-list-item:hover {
    background: rgba(255, 255, 255, 0.035);
}

/* Top 3 row glow effects in table */
.lb-list-item.top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.06) 0%, transparent 100%);
}
.lb-list-item.top-2 {
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.04) 0%, transparent 100%);
}
.lb-list-item.top-3 {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.04) 0%, transparent 100%);
}

/* Rank column */
.lb-list-rank {
    display: flex;
    align-items: center;
}
.lb-rank-num {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    padding: 3px 8px;
    display: inline-block;
}
.lb-list-item.top-1 .lb-rank-num {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.35);
}
.lb-list-item.top-2 .lb-rank-num {
    background: rgba(203, 213, 225, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(203, 213, 225, 0.35);
}
.lb-list-item.top-3 .lb-rank-num {
    background: rgba(217, 119, 6, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(217, 119, 6, 0.35);
}

/* Trader column */
.lb-list-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.lb-list-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.lb-list-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}
.lb-list-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-trader-badge {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}
.lb-list-item.top-1 .lb-trader-badge { color: #f59e0b; }
.lb-list-item.top-2 .lb-trader-badge { color: #94a3b8; }
.lb-list-item.top-3 .lb-trader-badge { color: #d97706; }

/* Country column */
.lb-list-country {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-country-flag {
    font-size: 14px;
    flex-shrink: 0;
}
.lb-country-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Trades column */
.lb-list-trades {
    font-size: 11.5px;
    color: #94a3b8;
}
.lb-trades-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}
.lb-trades-txt {
    color: #64748b;
    font-size: 10px;
}

/* Performance / Win Rate column */
.lb-list-winrate {
    display: flex;
    align-items: center;
}
.lb-winrate-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(0, 200, 83, 0.12);
    border: 1px solid rgba(0, 200, 83, 0.25);
    color: #00e676;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', monospace;
}
.lb-winrate-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 6px #00e676;
}

/* Profit column */
.lb-list-profit {
    font-size: 13.5px;
    font-weight: 800;
    color: #00e676;
    text-align: right;
    font-family: 'Inter', monospace;
    letter-spacing: 0.3px;
}

/* Empty Search & Empty State */
.lb-empty-search,
.lb-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 20px;
    text-align: center;
    color: #94a3b8;
}
.lb-empty-search-icon {
    font-size: 38px;
    margin-bottom: 12px;
    opacity: 0.6;
}
.lb-empty-search-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}
.lb-empty-search-sub {
    font-size: 12px;
    color: #64748b;
    max-width: 320px;
    line-height: 1.5;
}

/* ── Personal User Status Card ── */
.lb-personal-card {
    padding: 12px 24px 16px;
    background: rgba(9, 14, 25, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    z-index: 10;
    box-sizing: border-box;
}

.lb-personal-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 14px;
    transition: all 0.25s ease;
}
.lb-personal-inner.profit {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.12), rgba(0, 229, 255, 0.06));
    border: 1px solid rgba(0, 200, 83, 0.32);
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.12);
}
.lb-personal-inner.loss {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(185, 28, 28, 0.06));
    border: 1px solid rgba(239, 68, 68, 0.32);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
}
.lb-personal-inner.neutral {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-personal-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.lb-personal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.lb-personal-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lb-privacy-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.lb-privacy-badge.public {
    background: rgba(0, 200, 83, 0.2);
    color: #00e676;
    border: 1px solid rgba(0, 200, 83, 0.35);
}
.lb-privacy-badge.private {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.lb-privacy-badge.neutral {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.lb-personal-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.lb-personal-right {
    text-align: right;
    flex-shrink: 0;
}
.lb-personal-val {
    font-size: 16px;
    font-weight: 800;
    font-family: 'Inter', monospace;
    letter-spacing: 0.3px;
}
.lb-personal-right.profit .lb-personal-val { color: #00e676; }
.lb-personal-right.loss .lb-personal-val { color: #f87171; }
.lb-personal-right.neutral .lb-personal-val { color: #94a3b8; }
.lb-personal-lbl {
    font-size: 9.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 1px;
}

/* ── Responsive Queries ── */
@media (max-width: 900px) {
    .lb-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 18px;
    }
    .lb-header-titles {
        flex: 1;
    }
    .lb-header-actions {
        justify-content: flex-end;
    }
    .lb-search-input {
        width: 100%;
    }
    .lb-search-input:focus {
        width: 100%;
    }
    .lb-search-wrap {
        flex: 1;
    }
    .lb-stats-hud {
        grid-template-columns: repeat(2, 1fr);
    }
    .lb-list-header,
    .lb-list-item {
        grid-template-columns: 50px 1.4fr 110px 80px 100px 110px;
        padding: 10px 14px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .lb-overlay {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        left: 0 !important;
        align-items: flex-end !important;
        justify-content: center !important;
        background: rgba(0, 0, 0, 0.75) !important;
    }
    .lb-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 94vh !important;
        border-radius: 24px 24px 0 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        transform: translateY(100%) !important;
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.85) !important;
    }
    .lb-overlay.show .lb-modal {
        transform: translateY(0) !important;
    }
    .lb-arena-scroll {
        padding: 14px 16px;
        gap: 14px;
    }
    .lb-podium {
        gap: 8px;
    }
    .lb-podium-base {
        width: 80px;
    }
    .lb-podium-card.rank-1 .lb-podium-base {
        width: 95px;
        height: 60px;
    }
    .lb-podium-card.rank-2 .lb-podium-base {
        height: 44px;
        width: 85px;
    }
    .lb-podium-card.rank-3 .lb-podium-base {
        height: 34px;
        width: 80px;
    }
    .lb-avatar-ring {
        width: 50px;
        height: 50px;
    }
    .lb-podium-card.rank-1 .lb-avatar-ring {
        width: 62px;
        height: 62px;
    }
    .lb-podium-name {
        font-size: 11px;
        max-width: 85px;
    }
    .lb-podium-profit {
        font-size: 11.5px;
    }
    .lb-podium-card.rank-1 .lb-podium-profit {
        font-size: 13px;
    }
    .lb-stats-hud {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .lb-stat-hud-card {
        padding: 10px 12px;
    }
    .lb-stat-hud-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .lb-stat-hud-val {
        font-size: 13px;
    }
    /* Mobile Table Grid: Rank, Trader, Performance, Profit (Hide Trades and Country to fit cleanly) */
    .lb-list-header,
    .lb-list-item {
        grid-template-columns: 40px 1fr 85px 95px;
        padding: 10px 12px;
        gap: 8px;
    }
    .col-country,
    .col-trades,
    .lb-list-country,
    .lb-list-trades {
        display: none !important;
    }
    .lb-list-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .lb-list-name {
        font-size: 12px;
    }
    .lb-list-profit {
        font-size: 12px;
    }
    .lb-personal-card {
        padding: 10px 16px 14px;
    }
}
