/* Level Ranks Module Styles */

.level-ranks-section {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.level-ranks-section:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.level-ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.stat-label {
    color: #ccc;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.additional-stats {
    margin-top: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}


.stat-value {
    color: #fff;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-value {
    transform: scale(1.05);
}

.level-progress {
    margin-top: 25px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #4ecdc4);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .level-ranks-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        font-size: 2em;
    }
    
    .stat-number {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .level-ranks-section {
        padding: 20px;
    }
    
    .level-ranks-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-value {
        font-size: 1.2em;
    }
}

/* Loading Animation */
.level-ranks-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.level-ranks-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.level-ranks-error {
    text-align: center;
    color: #ff6b6b;
    padding: 20px;
}

.level-ranks-error i {
    font-size: 2em;
    margin-bottom: 15px;
    display: block;
}

/* Success States */
.level-ranks-success {
    text-align: center;
    color: #4ecdc4;
    padding: 20px;
}

.level-ranks-success i {
    font-size: 2em;
    margin-bottom: 15px;
    display: block;
}

/* CS2 Profile Styles */
.cs2-profile-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cs2-profile-section h2 {
    margin: 0 0 25px 0;
    color: #fff;
    font-size: 2.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cs2-profile-section h3 {
    color: #ff6b35;
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.cs2-profile-section h4 {
    color: #fff;
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Rank Badge */
.rank-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: 2px solid #ff6b35;
    border-radius: 8px;
    padding: 15px 20px;
    display: inline-block;
    text-align: center;
}

.rank-badge .rank-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-badge .rank-points {
    font-size: 0.9em;
    color: #fff;
    opacity: 0.8;
    margin-top: 5px;
}

/* Stats Columns */
.stats-column {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px;
}


/* Weapon Stats */
.weapon-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.weapon-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 10px;
    flex: 1;
    transition: transform 0.3s ease;
}

.weapon-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.4);
}

.weapon-name {
    font-size: 0.8em;
    color: #ccc;
    margin-bottom: 5px;
}

.weapon-kills {
    font-size: 1.2em;
    color: #fff;
    font-weight: bold;
}

/* Weapon List */
.weapon-list {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 10px;
}

/* (deduplicated) weapon-list-header: authoritative version is below with sticky header */

/* (deduplicated) weapon-list-item: authoritative version is below with padding and border */

/* Map Stats */
.map-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.map-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.map-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.4);
}

.map-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff6b35;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
}

.map-name {
    font-size: 0.8em;
    color: #fff;
    margin-top: 15px;
    font-weight: bold;
}

.map-kills {
    font-size: 0.7em;
    color: #ccc;
    margin-top: 5px;
}

/* Leaderboard */
.leaderboard {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 15px;
}

/* (deduplicated) leaderboard-header: authoritative version is below with sticky header */

/* (deduplicated) leaderboard items/place/name/points/rank: authoritative versions are below */

/* Kill Streaks */
.kill-streaks {
    margin-top: 20px;
}

.kill-streak-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.kill-streak-icons { display:flex; align-items:center; margin-right:10px; }
.skull-icon { width:16px; height:16px; margin-right:4px; filter: hue-rotate(10deg) saturate(1.2); }
.kill-streak-label { margin-right: 8px; }

/* Unusual Kills */
.unusual-kills-section { margin-top: 12px; position: relative; z-index: 3; background: rgba(0,0,0,0.25); border-radius: 6px; padding: 10px; color: #fff; }
.unusual-kills-section h4 { color: #ff6b35; margin: 0 0 8px 0; font-size: 1em; text-transform: uppercase; }
.unusual-grid { display:grid; gap:8px; }
.unusual-item { display:flex; justify-content: space-between; align-items:center; padding:8px; background: rgba(0,0,0,0.3); border-radius:4px; }
.unusual-label { color:#ccc; }
.unusual-value { color:#fff; font-weight:700; }
.kill-streak-icons { display:flex; align-items:center; margin-right:10px; }
.skull-icon { width:16px; height:16px; margin-right:4px; filter: hue-rotate(10deg) saturate(1.2); }
.kill-streak-label { margin-right: 8px; }

.kill-streak-label {
    color: #ccc;
    margin-right: 10px;
}

.kill-streak-value {
    color: #fff;
    font-weight: bold;
}

/* CS2 Progress Bar */
.cs2-progress-bar {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.cs2-progress-fill {
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    height: 100%;
    transition: width 0.3s ease;
}

/* CS2 Responsive Design */
@media (max-width: 1200px) {
    .cs2-profile-section {
        padding: 25px;
    }
    
    .stats-column {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .cs2-profile-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .cs2-profile-section h2 {
        font-size: 1.8em;
    }
    
    .cs2-profile-section h3 {
        font-size: 1.1em;
    }
    
    .stats-column {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .weapon-grid {
        flex-direction: column;
        gap: 8px;
    }
    
    .map-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .leaderboard-item {
        font-size: 0.8em;
    }
    
    .leaderboard-name {
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .cs2-profile-section {
        padding: 15px;
    }
    
    .cs2-profile-section h2 {
        font-size: 1.5em;
    }
    
    .map-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .weapon-item {
        padding: 8px;
    }
    
    .map-item {
        padding: 6px;
    }
}

/* Hit Stats Styles */

.hitstats-block .hit_player img {
    filter: brightness(40%);
}

.hitstats-block .hit_player .hit_head:hover,
.hitstats-block .hit_player .hit_neak:hover,
.hitstats-block .hit_player .hit_chest:hover,
.hitstats-block .hit_player .hit_belly:hover,
.hitstats-block .hit_player .hit_left_arm:hover,
.hitstats-block .hit_player .hit_right_arm:hover,
.hitstats-block .hit_player .hit_left_leg:hover,
.hitstats-block .hit_player .hit_right_leg:hover {
    -webkit-filter: none;
    filter: none;
}

/* Части тела теперь позиционируются через hitstats-positions.css */

/* Maps Styles */
.best-maps .map-top img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.best-maps .map-top .map-lower {
    position: absolute;
    max-width: 100%;
    margin-top: -33px;
}

.best-maps .map-top .map-one {
    position: absolute;
    height: 28px;
    width: 25px;
    text-align: center;
    vertical-align: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    background-color: rgba(0, 0, 0, 0.75);
    padding-top: 1px;
    left: 7px;
}

.best-maps .map-top .map-pretty-name {
    position: absolute;
    height: 28px;
    text-align: center;
    vertical-align: center;
    font-weight: 700;
    font-size: 18px;
    color: black;
    background-color: rgba(255, 255, 255, 0.75);
    padding-top: 1px;
    padding-left: 10px;
    padding-right: 10px;
    left: 33px;
}

.best-maps .map-top .map-title-rounds {
    position: absolute;
    height: 28px;
    text-align: center;
    vertical-align: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    background-color: rgba(241, 122, 38, 0.85);
    padding-top: 1px;
    padding-left: 10px;
    padding-right: 10px;
    right: 7px;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c42;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #ffffff rgba(0,0,0,0.3);
}

/* Адаптивность для частей тела теперь настраивается в hitstats-positions.css */

/* Profile Stats Inline Styles - теперь в CSS */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.profile-title {
    flex: 1;
}

.profile-title h2 {
    margin: 0;
    color: #FFF;
    font-size: 22px;
    font-weight: 600;
    border-left: 4px solid #00BFFF;
    padding-left: 10px;
}

.profile-rank-badge {
    text-align: right;
}

/* New Rank Card */
.profile-rank-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 14px 18px;
    color: #fff;
    max-width: 420px;
    width: 260px;
}

.profile-rank-card .avatar {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #ff843f;
}

.profile-rank-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-rank-card .rank-info { flex: 1; }
.profile-rank-card .nickname {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.profile-rank-card .rank { display:flex; align-items:center; margin-bottom:6px; }
.profile-rank-card .rank img { width: 56px; height: auto; }
.profile-rank-card .points { font-size: 14px; color:#00BFFF; font-weight:700; }

.profile-progress-inline { flex: 1; margin-left: auto; max-width: 420px; }

/* Header progress full-width bar */
.header-progress { width: 100%; background: rgba(0, 0, 0, 0.2); border-radius:12px; padding:12px 14px; margin-bottom: 16px; }
.header-progress-top { display:flex; justify-content: space-between; font-size:14px; margin-bottom:8px; }
.progress-label { color:#aaa; }
.progress-value { color:#00BFFF; font-weight:700; }
.header-progress-bar { background:#1c2734; border-radius:8px; height:12px; overflow:hidden; }
.header-progress-fill { background: linear-gradient(90deg, #ff6b35, #ff8c42); height:100%; border-radius:8px; box-shadow: 0 0 12px rgba(255,107,53,0.35); }

/* Rank card polish */
.profile-rank-card { backdrop-filter: blur(4px); }
.profile-rank-card .nickname { text-shadow: 0 0 6px rgba(0,191,255,0.3); }
.profile-rank-card .points { text-shadow: 0 0 6px rgba(0,191,255,0.2); }

.rank-badge-container {
    background: linear-gradient(135deg, var(--rank-color) 0%, var(--rank-color-dd) 100%);
    border: 2px solid var(--rank-color);
    border-radius: 8px;
    padding: 15px 20px;
    display: inline-block;
    position: relative;
}

.rank-badge-icon {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.rank-badge-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--rank-color);
    background: rgba(0,0,0,0.3);
}

.rank-badge-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

.rank-badge-points {
    font-size: 0.9em;
    color: #fff;
    opacity: 0.8;
    margin-top: 5px;
}

/* Main Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* General Stats */
.general-stats h3 {
    color: #ff6b35;
    font-size: 1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #ccc;
}



/* Hit Statistics */
.hit-stats-section {
    margin-top: 20px;
}

.hit-stats-section h4 {
    color: #ff6b35;
    font-size: 1em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hitstats-container {
    height: 390px;
    width: 291px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    margin: 0 auto;
}

.hitstats-background {
    height: 100%;
    width: 100%;
    position: relative;
}

.hitstats-background .back {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Ensure background sits below body parts */
.hitstats-background .back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Overlay for body part images */
.hitstats-background .hit_player {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Kill Streaks */
.kill-streaks-section {
    margin-top: 20px;
}

.kill-streaks-section h4 {
    color: #ff6b35;
    font-size: 1em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.kill-streak-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.kill-streak-item:last-child {
    margin-bottom: 0;
}

.kill-streak-label {
    color: #ccc;
    margin-right: 10px;
}

.kill-streak-value {
    color: #fff;
    font-weight: bold;
}

/* Weapons Section */
.weapons-section h3 {
    color: #ff6b35;
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.top-weapons {
    margin-bottom: 25px;
}

.top-weapons h4 {
    color: #fff;
    font-size: 1em;
    margin-bottom: 15px;
}

.top-weapons-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.top-weapon-item {
    text-align: center;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    padding: 8px;
    flex: 1;
}

.top-weapon-icon {
    margin-bottom: 5px;
}

.top-weapon-icon img {
    width: 80px;
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.top-weapon-name {
    font-size: 0.75em;
    color: #ccc;
    margin-bottom: 3px;
}

.top-weapon-kills {
    font-size: 1.1em;
    color: #fff;
    font-weight: bold;
}

/* Weapon List */
.weapon-list-container {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    padding-bottom:  10px;
    height: 340px;
    overflow-y: auto;
}

.weapon-list-header {
    display: grid;
    grid-template-columns: 1fr 110px;
    column-gap: 8px;
    align-items: center;
    font-size: 0.9em;
    color: #ccc;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 10;
    padding: 0 8px 8px 8px;
}
.weapon-list-header span:nth-child(1) { justify-self: start; }
.weapon-list-header span:nth-child(2) { justify-self: end; }

.weapon-list-item {
    display: grid;
    grid-template-columns: 1fr 110px;
    column-gap: 8px;
    align-items: center;
    padding: 8px 8px;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.weapon-list-item:last-child {
    border-bottom: none;
}

.weapon-item-info { display: flex; align-items: center; justify-self: start; }

.weapon-item-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.weapon-item-name {
    color: #fff;
}

.weapon-item-kills { color: #ccc; justify-self: end; white-space: nowrap; }

/* Leaderboard Section */
.leaderboard-section h3 {
    color: #ff6b35;
    font-size: 1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.leaderboard-container {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    height: 340px;
    overflow-y: auto;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 40px 1fr 90px 100px;
    column-gap: 8px;
    align-items: center;
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding: 0 8px 8px 8px;
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 10;
}

/* Explicit column placement and alignment */
.leaderboard-header span:nth-child(1) { justify-self: start; }
.leaderboard-header span:nth-child(2) { justify-self: start; }
.leaderboard-header span:nth-child(3) { justify-self: end; }
.leaderboard-header span:nth-child(4) { justify-self: end; }

.leaderboard-item {
    display: grid;
    grid-template-columns: 40px 1fr 90px 100px;
    column-gap: 8px;
    align-items: center;
    padding: 8px 8px;
    border-bottom: 1px solid #333;
    font-size: 0.9em;
}
.leaderboard-item .leaderboard-place { grid-column: 1; justify-self: start; }
.leaderboard-item .leaderboard-name { grid-column: 2; justify-self: start; }
.leaderboard-item .leaderboard-points { grid-column: 3; justify-self: end; white-space: nowrap; }
.leaderboard-item .leaderboard-rank { grid-column: 4; justify-self: end; }

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

.leaderboard-place {
    color: #ff6b35;
    font-weight: bold;
}

.leaderboard-name {
    color: #fff;
    margin: 0;
}

.leaderboard-name a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.leaderboard-name a:hover {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.leaderboard-points { color: #ccc; text-align: right; }

.leaderboard-rank { color: #ccc; text-align: right; font-size: 0.8em; }

/* Maps Section */
.maps-section h3 {
    color: #ff6b35;
    font-size: 1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.maps-container {
    height: 400px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.maps-background {
    height: 100%;
    width: 100%;
    position: relative;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.map-top {
    position: relative;
    height: 50%;
    width: 100%;
}

.map-top img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.map-lower {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 10px;
}

.map-one {
    position: absolute;
    height: 28px;
    width: 25px;
    text-align: center;
    vertical-align: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    background-color: rgba(0, 0, 0, 0.75);
    padding-top: 1px;
    left: 7px;
    bottom: 10px;
}

.map-pretty-name {
    position: absolute;
    height: 28px;
    text-align: center;
    vertical-align: center;
    font-weight: 700;
    font-size: 18px;
    color: black;
    background-color: rgba(255, 255, 255, 0.75);
    padding-top: 1px;
    padding-left: 10px;
    padding-right: 10px;
    left: 33px;
    bottom: 10px;
}

.map-title-rounds {
    position: absolute;
    height: 28px;
    text-align: center;
    vertical-align: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    background-color: rgba(241, 122, 38, 0.85);
    padding-top: 1px;
    padding-left: 10px;
    padding-right: 10px;
    right: 7px;
    bottom: 10px;
}

.map-bottom {
    position: relative;
    height: 50%;
    width: 100%;
    padding: 8px;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    height: 100%;
}

.map-grid-item {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
}

.map-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.map-number-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff6b35;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 2;
}

.map-trophy-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: #ff6b35;
    color: #fff;
    border-radius: 3px;
    width: 38px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    z-index: 2;
}

.map-grid-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10px;
    top: 16px;
}

.map-grid-name {
    font-size: 0.8em;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.map-grid-kills {
    font-size: 0.7em;
    color: #ccc;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Progress Bar */
.progress-section {
    margin-top: 25px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-label {
    color: #ccc;
    font-size: 0.9em;
}

.progress-value {
    color: #fff;
    font-size: 0.9em;
}

.progress-bar-container {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    height: 100%;
    transition: width 0.3s ease;
}

/* CSS Variables for dynamic colors */
:root {
    --rank-color: #ff6b35;
    --rank-color-dd: #ff6b35dd;
}

/* Tooltip and Hit Stats */
.tooltip-top {
    position: absolute;
    cursor: pointer;
}

.tooltip-top img {
    filter: brightness(40%);
    transition: filter 0.2s ease;
}

/* Tooltip bubble using data-tooltip attribute */
.tooltip-top::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 55px;
    bottom: -40px;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    z-index: 200;
}

.tooltip-top:hover::after {
    opacity: 1;
    visibility: visible;
}

/* No Data Section */
.no-data-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    color: #fff;
}

.no-data-title {
    margin: 0 0 25px 0;
    color: #fff;
    font-size: 1.8em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-data-icon {
    margin-right: 12px;
    color: #ff6b35;
}

.no-data-content {
    text-align: center;
    color: #ccc;
    padding: 20px;
}

.no-data-db-icon {
    font-size: 2em;
    margin-bottom: 15px;
    color: #ff6b35;
}

/* Main Profile Section */
.main-profile-section {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}