.leaderboard-main {
    padding-top: 80px;
    /* Reduced from 100px */
    min-height: 100vh;
    background: #0f172a;
}

.leaderboard-header {
    text-align: center;
    padding: 2rem 1rem;
    /* Reduced from 4rem */
}

.leaderboard-header h1 {
    font-size: 3.5rem;
    /* Reduced from 5rem */
    font-family: 'Teko', sans-serif;
    margin-bottom: 0.25rem;
    /* Reduced from 0.5rem */
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-color, #F37021);
    color: white;
    border-color: var(--primary-color, #F37021);
    box-shadow: 0 0 20px rgba(243, 112, 33, 0.3);
}

.leaderboard-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.leaderboard-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
}

.card-header h2 {
    font-size: 2rem;
    font-family: 'Teko', sans-serif;
    margin: 0;
}

.table-container {
    overflow-x: auto;
}

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

.leader-table th {
    text-align: left;
    padding: 1rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leader-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rank-cell {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    color: #94a3b8;
    width: 60px;
}

.rank-1 .rank-cell {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.rank-2 .rank-cell {
    color: #c0c0c0;
}

.rank-3 .rank-cell {
    color: #cd7f32;
}

.manager-info {
    display: flex;
    flex-direction: column;
}

.manager-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #f1f5f9;
}

.team-name {
    font-size: 0.9rem;
    color: #64748b;
}

.points-cell {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color, #F37021);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
}

.event-card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-card-header h3 {
    margin: 0;
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.event-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-open {
    background: #10b981;
    color: white;
}

.status-live {
    background: #ef4444;
    color: white;
    animation: pulse 2s infinite;
}

.status-completed {
    background: #64748b;
    color: white;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.event-meta {
    background: rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.event-prize {
    color: #ffd700;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-timer {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
}

.event-entries {
    padding: 1rem;
}

/* Tier Specific Styles */
.event-card.tier-rookie {
    border-color: rgba(59, 130, 246, 0.3);
}

.event-card.tier-rookie .event-card-header {
    border-bottom: 2px solid #3b82f6;
}

.event-card.tier-pro {
    border-color: rgba(168, 85, 247, 0.3);
}

.event-card.tier-pro .event-card-header {
    border-bottom: 2px solid #a855f7;
}

.event-card.tier-elite {
    border-color: rgba(245, 158, 11, 0.3);
}

.event-card.tier-elite .event-card-header {
    border-bottom: 2px solid #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .leaderboard-header h1 {
        font-size: 3.5rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .leaderboard-tabs {
        flex-wrap: wrap;
    }
}

/* Modal Styles */
.leaderboard-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.leaderboard-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.leaderboard-modal .modal-body {
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.leaderboard-modal .table-container {
    padding: 1rem;
}

.full-width {
    width: 100%;
}

.view-more-hint {
    text-align: center;
    color: var(--primary-color, #F37021);
    font-size: 0.9rem;
    padding: 1rem 0 0;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.event-card:hover .view-more-hint {
    opacity: 1;
}

.status-pending {
    background: #f59e0b;
    color: black;
    font-size: 0.7rem;
    margin-top: 0.2rem;
    display: inline-block;
}

.loading-state,
.error-state {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    font-size: 1.2rem;
}

.error-state {
    color: #ef4444;
}