.leaderboard-container {
            max-width: 1000px;
            margin: 2rem auto 4rem;
            padding: 0 1rem;
        }

        /* Podium Styles */
        .podium-section {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            align-items: flex-end;
            margin-bottom: 3rem;
            padding-top: 2rem;
        }

        .podium-card {
            background: #ffffff;
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 2rem 1.5rem;
            text-align: center;
            position: relative;
            box-shadow: var(--shadow-md);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .podium-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: var(--shadow-xl);
            border-color: var(--primary-light);
        }

        .podium-card.rank-1 {
            order: 2;
            padding: 3rem 2rem;
            border-top: 4px solid #f59e0b;
            box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
        }

        .podium-card.rank-2 { order: 1; border-top: 4px solid #94a3b8; }
        .podium-card.rank-3 { order: 3; border-top: 4px solid #d97706; }

        .podium-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--bg-alt);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: 800;
            border: 4px solid white;
            box-shadow: var(--shadow-md);
            overflow: hidden;
            position: relative;
        }

        .rank-1 .podium-avatar { width: 100px; height: 100px; border-color: #fef3c7; }

        .podium-badge {
            position: absolute;
            top: -15px;
            font-size: 2rem;
        }

        .podium-name {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--text-main);
            margin-top: 0.5rem;
        }

        .podium-points {
            font-size: 1.25rem;
            font-weight: 900;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .podium-stats {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* Table Styles */
        .leaderboard-table-card {
            background: #ffffff;
            border-radius: 32px;
            border: 1px solid var(--glass-border);
            padding: 1rem;
            box-shadow: var(--shadow-lg);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th {
            text-align: left;
            padding: 1.25rem 1.5rem;
            color: var(--text-muted);
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            border-bottom: 1px solid var(--glass-border);
        }

        .leaderboard-row {
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .leaderboard-row:hover {
            background: #f8fafc;
        }

        .leaderboard-row:not(:last-child) {
            border-bottom: 1px solid #f1f5f9;
        }

        td {
            padding: 1.25rem 1.5rem;
            color: var(--text-main);
            font-weight: 600;
        }

        .rank-cell {
            font-weight: 800;
            color: var(--text-muted);
            font-size: 0.95rem;
            width: 80px;
        }

        .user-cell {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: var(--primary-light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.85rem;
            border: 2px solid white;
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }

        .points-badge {
            background: #f1f5f9;
            color: var(--text-main);
            padding: 0.4rem 0.8rem;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.9rem;
        }

        .points-badge.high {
            background: var(--primary-light);
            color: var(--primary);
        }

        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 5%;
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--glass-border);
        }

        .back-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-dim);
            text-decoration: none;
            font-weight: 700;
            padding: 0.5rem 1rem;
            border-radius: 10px;
            background: #f1f5f9;
            transition: all 0.2s;
            font-size: 0.9rem;
        }

        .back-btn:hover {
            background: #e2e8f0;
            color: var(--text-main);
        }

        /* Live Indicator */
        .live-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
            padding: 0.4rem 0.8rem;
            border-radius: 99px;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 1rem;
        }

        .live-dot {
            width: 8px;
            height: 8px;
            background: #10b981;
            border-radius: 50%;
            animation: pulse-green 2s infinite;
        }

        @keyframes pulse-green {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }

        @media (max-width: 768px) {
            .podium-section {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            .podium-card.rank-1 { order: 1; }
            .podium-card.rank-2 { order: 2; }
            .podium-card.rank-3 { order: 3; }
        }

        /* Timeframe Buttons */
        .timeframe-selectors {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            margin: 1.5rem 0 2rem;
        }

        .timeframe-btn {
            background: #f1f5f9;
            color: var(--text-muted);
            border: 1px solid var(--glass-border);
            padding: 0.6rem 1.5rem;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .timeframe-btn:hover {
            background: #e2e8f0;
            color: var(--text-main);
        }

        .timeframe-btn.active {
            background: var(--primary) !important;
            color: #ffffff !important;
            border-color: transparent !important;
            box-shadow: 0 4px 12px rgba(88, 80, 236, 0.25);
        }

        /* Modal Preview Overlay */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.55);
            backdrop-filter: blur(8px);
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .modal-card {
            background: #ffffff;
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            width: 90%;
            max-width: 480px;
            padding: 2.5rem 2rem;
            position: relative;
            box-shadow: var(--shadow-xl);
            transform: scale(0.9);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .modal-overlay.active .modal-card {
            transform: scale(1);
        }

        .close-btn {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            background: rgba(15, 23, 42, 0.05);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            font-size: 1.25rem;
            cursor: pointer;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .close-btn:hover {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
        }

        .preview-avatar {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            background: linear-gradient(135deg, #5850ec, #a855f7);
            color: white;
            font-size: 2.5rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 4px solid white;
            box-shadow: var(--shadow-md);
            overflow: hidden;
            margin-bottom: 0.5rem;
        }

        .preview-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .preview-rank-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: #f8fafc;
            padding: 0.4rem 1rem;
            border-radius: 99px;
            font-size: 0.8rem;
            font-weight: 700;
            border: 1px solid var(--glass-border);
        }

        .preview-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            width: 100%;
            margin: 1.5rem 0;
        }

        .preview-stat-item {
            background: #f8fafc;
            border: 1px solid var(--glass-border);
            padding: 0.75rem 0.5rem;
            border-radius: 12px;
            text-align: center;
        }

        .preview-stat-val {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--text-main);
        }

        .preview-stat-label {
            font-size: 0.7rem;
            color: var(--text-muted);
            font-weight: 700;
            text-transform: uppercase;
            margin-top: 0.2rem;
        }

        .recent-solved-list {
            width: 100%;
            text-align: left;
            margin-top: 1rem;
        }

        .recent-solved-title {
            font-size: 0.8rem;
            font-weight: 800;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.5rem;
            border-bottom: 1px solid var(--glass-border);
            padding-bottom: 0.3rem;
        }

        .recent-solved-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
            font-size: 0.85rem;
            border-bottom: 1px dashed rgba(17, 24, 39, 0.05);
        }

        .recent-solved-item:last-child {
            border-bottom: none;
        }