#stats-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.stats-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(15, 255, 15, 0.5);
}

.stats-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0f0;
}

.stats-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #0f0;
    box-shadow: 0 0 20px rgba(15, 255, 15, 0.5);
}

.stats-modal-user-info h2 {
    color: #0f0;
    margin: 0;
    font-size: 32px;
    text-shadow: 0 0 10px #0f0;
}

.stats-modal-user-info p {
    color: #888;
    margin: 5px 0 0 0;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(15, 255, 15, 0.05);
    border: 1px solid #0f0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(15, 255, 15, 0.1);
    box-shadow: 0 0 20px rgba(15, 255, 15, 0.3);
    transform: translateY(-2px);
}

.stat-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stat-value {
    color: #0f0;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 10px #0f0;
}

.stat-section-title {
    color: #0f0;
    font-size: 24px;
    margin: 30px 0 20px 0;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 10px #0f0;
}

.weapon-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.weapon-card {
    background: rgba(15, 255, 15, 0.05);
    border: 1px solid #0f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.weapon-card:hover {
    background: rgba(15, 255, 15, 0.1);
    box-shadow: 0 0 20px rgba(15, 255, 15, 0.3);
    transform: translateY(-2px);
}

.weapon-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.weapon-name {
    color: #0f0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.weapon-kills {
    color: #0f0;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 10px #0f0;
}

.weapon-kills-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

.stats-modal-close {
    background: #0f0;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
}

.stats-modal-close:hover {
    background: #0a0;
    box-shadow: 0 0 20px rgba(15, 255, 15, 0.5);
    transform: translateY(-2px);
}

/* Scrollbar styling */
.stats-modal-content::-webkit-scrollbar {
    width: 10px;
}

.stats-modal-content::-webkit-scrollbar-track {
    background: rgba(15, 255, 15, 0.1);
    border-radius: 5px;
}

.stats-modal-content::-webkit-scrollbar-thumb {
    background: #0f0;
    border-radius: 5px;
}

.stats-modal-content::-webkit-scrollbar-thumb:hover {
    background: #0a0;
}

/* Leaderboard Modal */
#leaderboard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.leaderboard-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(15, 255, 15, 0.5);
}

.leaderboard-modal-content h2 {
    color: #0f0;
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #0f0;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.leaderboard-table thead th {
    color: #0ff;
    font-size: 18px;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid #0ff;
    text-transform: uppercase;
    font-weight: bold;
}

.leaderboard-table thead th:first-child {
    text-align: center;
    width: 80px;
}

.leaderboard-table thead th:nth-child(3),
.leaderboard-table thead th:nth-child(4) {
    text-align: center;
    width: 120px;
}

.leaderboard-table tbody td {
    padding: 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(15, 255, 15, 0.1);
    color: #fff;
}

.leaderboard-table tbody tr {
    transition: all 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(15, 255, 15, 0.1);
}

.leaderboard-table .rank {
    color: #ff0;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.leaderboard-table .rank.top1 {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.leaderboard-table .rank.top2 {
    color: #c0c0c0;
    text-shadow: 0 0 10px #c0c0c0;
}

.leaderboard-table .rank.top3 {
    color: #cd7f32;
    text-shadow: 0 0 10px #cd7f32;
}

.leaderboard-table .player-name {
    color: #0f0;
    font-weight: bold;
    text-shadow: 0 0 8px #0f0;
}

.leaderboard-table .kills {
    color: #ff0;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 8px #ff0;
}

.leaderboard-table .rounds-won {
    color: #0ff;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 8px #0ff;
}

/* Scrollbar styling for leaderboard modal */
.leaderboard-modal-content::-webkit-scrollbar {
    width: 10px;
}

.leaderboard-modal-content::-webkit-scrollbar-track {
    background: rgba(15, 255, 15, 0.1);
    border-radius: 5px;
}

.leaderboard-modal-content::-webkit-scrollbar-thumb {
    background: #0f0;
    border-radius: 5px;
}

.leaderboard-modal-content::-webkit-scrollbar-thumb:hover {
    background: #0a0;
}
