/* LegoPlayers "Fire Strike" Design System */
:root {
    /* Colors - LegoPlayers Theme */
    --bg-dark: #0a0a0a;
    /* Deepest black */
    --bg-panel: rgba(18, 18, 18, 0.85);
    /* Darker panel for readability */
    --accent-gold: #ff6b35;
    /* LegoPlayers Orange - Primary */
    --accent-blue: #ff9500;
    /* Yellow-Orange - Secondary */
    --accent-red: #e63946;
    /* Vibrant Red - Alerts */
    --text-main: #ffffff;
    --text-muted: #d1d1d1;
    /* Lighter gray for better contrast */
    --border-light: rgba(255, 107, 53, 0.15);
    /* Orange tint */

    /* Fonts */
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --glass-blur: blur(12px);
    --tech-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Base Setup */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    /* Static background fallback */
    background: var(--bg-dark);
}

/* Cinematic Background - Fixed */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('assets/images/legoplayers_bg_final.png') no-repeat center center/cover;
    /* Darken overlay for text readability */
    filter: brightness(0.5) contrast(1.15);
}

/* Noise Overlay for Texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjAzIi8+PC9zdmc+');
    pointer-events: none;
    opacity: 0.4;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header & Nav */
header {
    padding: 40px 0;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    /* Space between logo and content */
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    height: 290px;
    width: auto;
    position: relative;
    top: -18px;
    filter: drop-shadow(0 0 20px rgba(238, 188, 81, 0.4));
    animation: float 6s ease-in-out infinite;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 3.5em;
    /* Adjusted sizing */
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 4px;
    margin: 0;
    text-shadow: 0 0 30px rgba(75, 98, 132, 0.5);
}

.subtitle {
    font-family: var(--font-head);
    color: var(--accent-gold);
    font-size: 1.2em;
    letter-spacing: 2px;
    margin-top: 10px;
    text-transform: uppercase;
    opacity: 0.9;
}

.main-nav {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    background: rgba(13, 15, 22, 0.85);
    /* Slightly darker for contrast */
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--tech-shadow);
}

.nav-link {
    font-family: var(--font-head);
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px 25px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    background: linear-gradient(to top, rgba(238, 188, 81, 0.1), transparent);
    border-bottom: 2px solid var(--accent-gold);
}

.nav-link#nav-login-btn {
    color: var(--accent-gold);
}

.nav-link#nav-logout-btn {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.nav-link#nav-logout-btn:hover {
    background: linear-gradient(to top, rgba(211, 47, 47, 0.1), transparent);
    border-bottom-color: var(--accent-red);
}

/* Sections */
section {
    margin-bottom: 60px;
}

h2 {
    font-family: var(--font-head);
    font-size: 2.5em;
    color: var(--text-main);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

h2::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    display: block;
}

h3 {
    font-family: var(--font-head);
    font-size: 1.5em;
    color: var(--accent-gold);
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Landing Grid (Home Page) */
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.landing-card {
    background: linear-gradient(145deg, rgba(30, 35, 50, 0.6) 0%, rgba(20, 25, 35, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    /* Tech corners */
    padding: 30px;
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0,
            100% 0,
            100% calc(100% - 15px),
            calc(100% - 15px) 100%,
            0 100%);
}

.landing-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 40px rgba(238, 188, 81, 0.1);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(238, 188, 81, 0.4);
}

.landing-card h2 {
    font-size: 1.8em;
    justify-content: center;
}

.landing-card h2::after {
    display: none;
    /* Remove line for cards */
}

.landing-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.card-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1em;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.2);
}

.landing-card:hover .card-btn {
    background: var(--accent-blue);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(75, 98, 132, 0.5);
}

/* Team Grid (Roster) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Reusing player-card styles from prototype, adapted for generated content */
.player-card {
    background: linear-gradient(145deg, rgba(30, 35, 50, 0.6) 0%, rgba(20, 25, 35, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    display: flex;
    flex-direction: column;
}

.player-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 40px rgba(238, 188, 81, 0.15);
}

.card-img-container {
    height: 250px;
    width: 100%;
    /* Gradient background for player images if transparent */
    background: radial-gradient(circle at center, #2d3241 0%, #0d0f16 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid var(--accent-blue);
}

.player-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.player-card:hover img {
    transform: scale(1.05);
}

/* Player Overlay (Edit Button) */
.player-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.btn-edit-profile {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 5px 10px;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: bold;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.btn-edit-profile:hover {
    background: var(--accent-gold);
    color: #000;
}

.card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    align-items: center;
}

.card-info h3 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.8em;
    text-transform: uppercase;
    color: var(--text-main);
}

.card-info .role {
    margin-bottom: 15px;
    margin-top: 5px;
    /* Added spacing */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Neon Roles */
/* Neon Roles - Specificity boosted */
.card-info .role.role-arzzreon {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.card-info .role.role-lenoune,
.card-info .role.role-lenounesam,
.card-info .role.role-noune {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

.card-info .role.role-redskull {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.7);
}

.card-info .role.role-romeyy {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.card-info .role.role-saeko {
    color: #9d00ff;
    text-shadow: 0 0 10px rgba(157, 0, 255, 0.7);
}

.player-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: auto;
    padding-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-btn img {
    height: 24px;
    width: auto;
    filter: brightness(0.9);
    /* Almost full brightness by default */
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(238, 188, 81, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-btn:hover img {
    filter: brightness(1.2);
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(238, 188, 81, 0.5));
}

/* Modals */
/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Darker dim */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #161b28 0%, #0d0f16 100%);
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    /* Much wider */
    max-height: 90vh;
    /* Allow it to be tall */
    overflow-y: auto;
    /* Scroll if content overflows screen */
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    color: var(--text-main);
}

.modal-close {
    position: absolute;
    top: 5px;
    /* Closer to top */
    right: 15px;
    /* Closer to right */
    font-size: 2.5em;
    /* Larger */
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-red);
    /* Red on hover */
    transform: scale(1.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(238, 188, 81, 0.2);
}

/* Buttons (Download/Submit) */
/* Navigation */
.main-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Increased gap */
    flex-wrap: wrap;
    padding: 15px 40px;
    /* Increased padding */
    background: rgba(13, 15, 22, 0.6);
    /* Slight background */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    backdrop-filter: blur(10px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    padding: 12px 30px;
    /* Larger click area */
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1em;
    /* Larger text */
    letter-spacing: 1px;
}

/* Add Strategy Button (Centered & Visible) */
.btn-download {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d4a034 100%);
    border: none;
    padding: 15px 40px;
    /* Larger */
    color: #0d0f16;
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.2em;
    cursor: pointer;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    /* More aggressive tactic shape */
    transition: all 0.2s;
    width: auto;
    display: block;
    /* Centering */
    margin: 0 auto;
    /* Centering */
    text-align: center;
    box-shadow: 0 0 20px rgba(238, 188, 81, 0.4);
}

.btn-download:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.2);
    box-shadow: 0 0 30px rgba(238, 188, 81, 0.6);
}

/* Strategy Action Buttons */
.strat-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2em;
}

.btn-icon:hover {
    background: var(--bg-panel);
    color: var(--text-main);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-fullscreen:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 10px rgba(75, 98, 132, 0.5);
}

.btn-edit:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(238, 188, 81, 0.5);
}

.btn-delete:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

.btn-download:hover {
    transform: translateX(2px);
    filter: brightness(1.2);
}

/* Map Grid (Playbook) */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.map-card {
    background: var(--bg-panel);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.map-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.map-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent-gold);
}

.map-card .map-info {
    padding: 20px;
    text-align: center;
}

.map-card .map-title {
    font-family: var(--font-head);
    color: var(--text-main);
    font-size: 1.6em;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.map-link {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.map-card:hover .map-link {
    background: var(--accent-blue);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(75, 98, 132, 0.4);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9em;
}

/* Admin Banner */
.admin-banner {
    text-align: center;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .main-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* --- PLANNING PAGE SPECIFIC STYLES --- */
/* Darker and blurred background for better readability on planning page */
body.planning-page::before {
    filter: brightness(0.3) contrast(1.1) blur(6px);
}

/* --- STRATEGY & PLAYBOOK UI (RESTORED) --- */

/* Controls & Filters */
.strategy-controls {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.strategy-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--bg-panel);
    padding: 10px;
    border-radius: 30px;
    border: 1px solid var(--border-light);
    backdrop-filter: var(--glass-blur);
    align-items: center;
}

.search-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 20px;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(75, 98, 132, 0.3);
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(238, 188, 81, 0.4);
}

/* Strategy Grid */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    /* Larger cards */
    gap: 25px;
}

/* Strategy Card */
.strategy-card {
    background: linear-gradient(145deg, rgba(30, 35, 50, 0.6) 0%, rgba(20, 25, 35, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 25px;
    /* More padding */
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.strategy-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

.strat-header {
    margin-bottom: 20px;
}

/* Action Buttons - positioned relative to the CARD, not the header */
.strat-actions {
    position: absolute;
    top: 25px;
    /* Align with card padding */
    right: 25px;
    /* Align with card padding */
    display: flex;
    gap: 5px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.strategy-title {
    margin: 0;
    font-family: var(--font-head);
    color: var(--text-main);
    font-size: 1.5em;
    line-height: 1.3;
    max-width: calc(100% - 150px);
    /* Reserve space for buttons */
    word-wrap: break-word;
}

.strategy-body {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 20px;
    margin-top: auto;
    /* Push to bottom if needed, but flex-col handles it */
    margin-bottom: 15px;
    max-height: 500px;
    /* Taller content area */
    overflow-y: auto;
    color: var(--text-muted);
    font-size: 1.05em;
    /* Slightly larger text */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) rgba(0, 0, 0, 0.3);
    flex-grow: 1;
    /* Fill remaining space */
}

/* Limit image size in strategy card preview */
.strategy-body img,
.strat-preview img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
    margin: 10px auto;
    border-radius: 4px;
}

/* Hide images when carousel is present in fullscreen */
.hidden-in-carousel {
    display: none !important;
}

/* Stuff Link Buttons - appears in strategy content */
.stuff-link {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px 4px;
    background: linear-gradient(135deg, rgba(238, 188, 81, 0.2) 0%, rgba(238, 188, 81, 0.1) 100%);
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.stuff-link:hover {
    background: linear-gradient(135deg, rgba(238, 188, 81, 0.3) 0%, rgba(238, 188, 81, 0.2) 100%);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(238, 188, 81, 0.4);
    color: #fff;
}

/* Strategy Footer (Tags & Meta) */
.strat-footer-container {
    margin-top: 15px;
    /* Separation from body */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.strat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* Spacing between tags */
}

.tag {
    font-size: 0.85em;
    /* Larger */
    padding: 4px 10px;
    /* Bigger touch target */
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    /* More visible background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* brighter border */
    color: #eee;
    /* Brighter text */
    text-transform: uppercase;
    font-weight: 700;
    /* Bold */
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Slight depth */
}

.tag.tag-side-t {
    color: #ffcc00;
    /* Bright gold */
    background: rgba(255, 204, 0, 0.15);
    border-color: rgba(255, 204, 0, 0.5);
}

.tag.tag-side-ct {
    color: #00d4ff;
    /* Bright blue */
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
}

.tag.tag-site {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

/* Editor & Modal Specifics */
.editor-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.rich-text-toolbar {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#editor-content {
    min-height: 500px;
    /* Much taller for big strategies */
    padding: 15px;
    color: var(--text-main);
    outline: none;
    line-height: 1.6;
}

#editor-content img {
    max-width: 100%;
    border-radius: 4px;
    display: block;
    margin: 10px 0;
}

/* Map Header Specifics - Enhanced */
.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(30, 35, 50, 0.8) 0%, rgba(13, 15, 22, 0.9) 100%);
    border-radius: 8px;
    border: 1px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--accent-gold) 0%,
            var(--accent-blue) 50%,
            var(--accent-gold) 100%);
    animation: shimmer 3s linear infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.map-header-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(238, 188, 81, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.header-content:hover .map-header-image {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(238, 188, 81, 0.8);
}

.header-text h1 {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fff 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(238, 188, 81, 0.3);
    letter-spacing: 2px;
    line-height: 1.1;
}

.header-text .subtitle {
    text-align: center;
    font-size: 1.3em;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

/* Responsive adjustments for Map Header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-text h1,
    .header-text .subtitle {
        text-align: center;
    }
}

/* --- DYNAMIC MODALS (Fullscreen & Confirm) --- */

/* Fullscreen Strategy Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.fullscreen-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-content {
    background: #161b28;
    width: 90%;
    height: 90%;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.fullscreen-body {
    flex: 1;
    overflow-y: auto;
    color: var(--text-main);
    padding: 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

.fullscreen-body img {
    max-width: 100%;
    border-radius: 4px;
    margin: 10px 0;
}

/* Confirm Delete Modal */
.confirm-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.confirm-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirm-content {
    background: var(--bg-panel);
    border: 1px solid var(--accent-red);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(211, 47, 47, 0.3);
}

.confirm-content h3 {
    color: var(--accent-red);
    margin-top: 0;
}

.confirm-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-confirm-yes {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-confirm-no {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-confirm-no:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
    height: 60vh;
    /* Fixed height for carousel area */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.carousel-slide img.zoom-mode {
    cursor: zoom-in;
    transform: none;
    /* Controlled by JS mousemove */
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2em;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--accent-gold);
    box-shadow: 0 0 5px var(--accent-gold);
}

.carousel-controls-extra {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.btn-zoom-toggle {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-light);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

.btn-zoom-toggle.active {
    background: var(--accent-gold);
    color: black;
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

@media (max-width: 768px) {

    /* --- NAVIGATION --- */
    /* Reduce navigation size on mobile */
    .main-nav {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        width: 100%;
        align-items: center;
        /* Center buttons */
    }

    .nav-link {
        padding: 10px 20px;
        /* Reduced side padding */
        font-size: 0.9em;
        width: auto;
        /* Allow auto width */
        min-width: 200px;
        /* Minimum width for consistency */
        text-align: center;
        display: block;
        /* Ensure block behavior */
    }

    /* --- ADMIN BANNER --- */
    .admin-banner {
        padding: 15px;
        margin-bottom: 20px;
    }

    .admin-banner h3 {
        font-size: 1.2em;
        margin-top: 10px;
    }

    /* --- HEADERS & TITLES --- */
    /* Reduce header sizes to save vertical space */
    header h1,
    .hero-title {
        font-size: 1.8em !important;
        margin-bottom: 10px;
    }

    .subtitle,
    .hero-subtitle {
        font-size: 0.95em !important;
    }

    h2 {
        font-size: 1.4em !important;
    }

    h3 {
        font-size: 1.1em !important;
    }

    /* --- STRATEGY FILTERS (CRITICAL FIX) --- */
    /* Make filter buttons touch-friendly (44x44px minimum) */
    .filter-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 12px 16px !important;
        font-size: 0.95em !important;
        margin: 4px !important;
    }

    /* --- STRATEGY CARDS --- */
    /* Make action buttons larger for touch */
    .strategy-actions button,
    .strategy-actions .btn-icon {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 10px !important;
        font-size: 1.2em !important;
    }

    /* Stack strategy cards vertically */
    .strategies-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* --- SEARCH INPUT --- */
    .search-input {
        width: 100% !important;
        font-size: 16px !important;
        /* Prevent zoom on iOS */
    }

    /* --- PLAYER CARDS (MOBILE CAROUSEL) --- */
    .team-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 25px;
        /* Space for scrollbar */
        padding-top: 20px;
        /* Center the first item: 15vw padding on sides (since item is 70vw) */
        padding-left: 15vw;
        padding-right: 15vw;
        margin: 0;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    .team-grid::-webkit-scrollbar {
        height: 4px;
        /* Thinner */
    }

    .team-grid::-webkit-scrollbar-track {
        background: transparent;
        margin: 0 15vw;
    }

    .team-grid::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 4px;
    }

    .player-card {
        min-width: 70vw;
        /* Carousel card width - allows peeking */
        width: 70vw;
        scroll-snap-align: center;
        flex-shrink: 0;
        margin-right: 0;
        max-width: none;

        /* 3D Effect Setup */
        transform: scale(0.9);
        opacity: 0.6;
        transition: all 0.3s ease;
        filter: grayscale(0.5);
    }

    /* Active State (controlled by JS IntersectionObserver) */
    .player-card.active {
        transform: scale(1);
        opacity: 1;
        filter: grayscale(0);
        box-shadow: 0 10px 40px rgba(238, 188, 81, 0.3);
        /* Glow */
        z-index: 5;
        border-color: var(--accent-gold);
    }

    /* Larger social icons for touch */
    .player-socials a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Edit button more visible */
    .btn-edit-profile {
        min-width: 80px !important;
        min-height: 36px !important;
        font-size: 0.9em !important;
    }


    /* Assure que le contenu prend toute la place dispo pour pousser les boutons en bas */
    .card-content-v2 {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        /* CLE : Permet d'occuper l'espace restant */
        padding: 20px;
    }

    .social-buttons-v2 {
        margin-top: auto;
        /* CLE : Pousse les boutons tout en bas */
        display: flex;
        justify-content: center;
        gap: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Spinner de chargement */
    .loading-spinner {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: var(--accent-gold);
        animation: spin 1s ease-in-out infinite;
        margin-right: 8px;
        vertical-align: middle;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    .premier-rating.loading,
    .faceit-elo-v2.loading {
        color: var(--text-muted);
        font-style: italic;
        display: flex;
        align-items: center;
        font-size: 0.9em;
    }

    /* --- PLAYBOOK MAP CARDS --- */
    .map-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .map-card {
        min-height: auto;
    }

    /* --- PLANNING PAGE --- */
    /* Reduce timeline marker size */
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .timeline-item {
        padding-left: 60px;
    }

    /* Stack defaut cards */
    .defaut-container {
        grid-template-columns: 1fr !important;
    }

    /* Stack legend items */
    .legend-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- MODAL & FULLSCREEN --- */
    .modal-content {
        max-width: 95%;
        padding: 20px;
        max-height: 95vh;
    }

    .fullscreen-content {
        padding: 15px;
    }

    .modal-close {
        font-size: 1.5em;
        top: 10px;
        right: 15px;
    }

    /* --- TABLES --- */
    /* Make tables scrollable if too wide */
    .table-wrapper {
        overflow-x: auto;
    }

    table {
        font-size: 0.85em;
    }

    th,
    td {
        padding: 10px 12px;
    }

    /* --- GENERAL SPACING --- */
    /* Reduce padding on mobile */
    .container {
        padding: 15px;
    }

    section {
        margin-bottom: 30px;
    }

    /* --- LANDING CARDS --- */
    .landing-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- BUTTONS --- */
    /* Ensure all interactive elements are touch-friendly */
    button,
    .btn,
    .card-btn,
    .nav-link,
    a[role="button"] {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* Extra small devices (phones in portrait, less than 375px) */
@media (max-width: 374px) {
    header h1 {
        font-size: 1.5em !important;
    }

    .filter-btn {
        padding: 10px 12px !important;
        font-size: 0.85em !important;
    }

    .nav-link {
        font-size: 0.85em;
        padding: 8px 12px;
    }
}

/* --- Editor Dropdown Fix --- */
.toolbar-dropdown {
    position: absolute;
    z-index: 2000;
    /* Above modal (1000) */
    background: #161b28;
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 5px;
    max-height: 300px;
    overflow-y: auto;
    color: var(--text-main);
    min-width: 150px;
}

.toolbar-dropdown .dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.toolbar-dropdown .dropdown-item:hover {
    background: rgba(238, 188, 81, 0.2);
    color: var(--accent-gold);
}

/* --- FACEIT ELO BADGE --- */
.faceit-stats-container {
    margin: 10px 0;
    min-height: 38px;
    /* Reserve space */
    display: flex;
    justify-content: center;
}

.faceit-badge {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.faceit-badge:hover {
    border-color: #ff5500;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.2);
}

.player-card .faceit-logo-icon {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
    margin-right: 6px;
    border-bottom: none;
    /* specific override just in case */
    border-radius: 0;
}

/* Loader */
.faceit-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-badge {
    opacity: 0.7;
    cursor: wait;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.faceit-level-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: #000;
    font-size: 0.9em;
    font-family: var(--font-head);
    background: #eee;
}

.faceit-elo {
    color: #fff;
    font-weight: 600;
    font-family: var(--font-head);
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* Faceit Level Colors */
/* Levels 1-3 (Grey/White) */
.level-1,
.level-2,
.level-3 {
    background-color: #EEEEEE;
    color: #111;
}

/* Levels 4-7 (Yellow) */
.level-4,
.level-5,
.level-6,
.level-7 {
    background-color: #FFD700;
    color: #111;
}

/* Levels 8-9 (Orange) */
.level-8,
.level-9 {
    background-color: #FF8C00;
    color: #fff;
}

/* Level 10 (Red) */
.level-10 {
    background-color: #FE3131;
    color: #fff;
}

/* ================================================
   LEETIFY STATS BADGE STYLES
   ================================================ */

.leetify-stats-container {
    margin: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.leetify-badge {
    background: linear-gradient(135deg, rgba(28, 28, 32, 0.95) 0%, rgba(18, 18, 22, 0.98) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    max-width: 280px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(139, 92, 246, 0.1);
}

.leetify-badge:hover {
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.2);
}

.leetify-badge.loading-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    opacity: 0.8;
}

.leetify-badge.leetify-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.1);
}

.leetify-logo-icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
    border-radius: 4px;
}

.leetify-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top: 2px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.leetify-no-data {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    font-family: var(--font-body);
}

/* Header */
.leetify-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leetify-title {
    font-family: var(--font-head);
    font-size: 0.95em;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Premier Rank */
.leetify-premier-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.premier-title {
    font-family: var(--font-head);
    font-size: 0.7em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.premier-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.premier-steam-icon {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain;
    border-radius: 50%;
}

.premier-icon {
    font-size: 1.1em;
}

.premier-rating {
    font-family: var(--font-head);
    font-size: 1.3em;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.premier-label {
    font-size: 0.75em;
    color: rgba(255, 215, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Win Rate Circle */
.leetify-win-rate {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.win-rate-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.win-rate-circle.rating-excellent {
    border-color: #00ff88;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.2) 0%, transparent 70%);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.win-rate-circle.rating-good {
    border-color: #00d4ff;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.win-rate-circle.rating-average {
    border-color: #ffaa00;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.2) 0%, transparent 70%);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

.win-rate-circle.rating-poor {
    border-color: #ff4444;
    background: radial-gradient(circle, rgba(255, 68, 68, 0.2) 0%, transparent 70%);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.win-rate-value {
    font-family: var(--font-head);
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
}

.win-rate-label {
    font-size: 0.75em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Grid */
.leetify-skills {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-item {
    display: grid;
    grid-template-columns: 20px 50px 1fr 28px;
    align-items: center;
    gap: 15px;
    padding: 6px 0;
    margin-bottom: 2px;
}

.skill-icon {
    font-size: 0.85em;
    text-align: center;
}

.skill-name {
    font-family: var(--font-body);
    font-size: 0.75em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.skill-fill.rating-excellent {
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 100%);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.skill-fill.rating-good {
    background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.skill-fill.rating-average {
    background: linear-gradient(90deg, #ffaa00 0%, #cc8800 100%);
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.5);
}

.skill-fill.rating-poor {
    background: linear-gradient(90deg, #ff4444 0%, #cc3333 100%);
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.skill-value {
    font-family: var(--font-head);
    font-size: 0.8em;
    font-weight: 600;
    color: #fff;
    text-align: right;
}

/* Rating neutral state */
.rating-neutral {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments for Leetify badge */
@media (max-width: 768px) {
    .leetify-badge {
        max-width: 100%;
        padding: 10px;
    }

    .skill-item {
        grid-template-columns: 18px 50px 1fr 25px;
        gap: 4px;
    }

    .skill-name {
        font-size: 0.7em;
    }

    .win-rate-circle {
        width: 50px;
        height: 50px;
    }

    .win-rate-value {
        font-size: 1em;
    }

    .premier-rating {
        font-size: 1.1em;
    }
}

/* Win Rate Title */
.win-rate-title {
    font-family: var(--font-head);
    font-size: 0.7em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

/* Relative Rating Stats (Duels, Clutch) */
.skill-item.skill-relative {
    grid-template-columns: 20px 55px 1fr;
}

.skill-value-relative {
    font-family: var(--font-head);
    font-size: 0.9em;
    font-weight: 700;
    text-align: right;
    padding: 2px 6px;
    border-radius: 4px;
}

.skill-value-relative.positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
}

.skill-value-relative.negative {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

/* Relative Rating Wrapper (Duels/Clutch) */
.relative-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.relative-rating-label {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================
   VALVE PREMIER RANK COLORS
   ================================================ */

/* Grey: 0-4999 */
.leetify-premier-rank.premier-grey {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.2) 0%, rgba(100, 100, 100, 0.15) 100%);
    border-color: rgba(160, 160, 160, 0.4);
}

.premier-grey .premier-rating {
    color: #b0b0b0;
    text-shadow: 0 0 8px rgba(160, 160, 160, 0.4);
}

.premier-grey .premier-label {
    color: rgba(160, 160, 160, 0.8);
}

/* Light Blue/Cyan: 5000-9999 */
.leetify-premier-rank.premier-cyan {
    background: linear-gradient(135deg, rgba(0, 200, 220, 0.2) 0%, rgba(0, 180, 200, 0.15) 100%);
    border-color: rgba(0, 220, 240, 0.4);
}

.premier-cyan .premier-rating {
    color: #00dce8;
    text-shadow: 0 0 10px rgba(0, 220, 232, 0.5);
}

.premier-cyan .premier-label {
    color: rgba(0, 220, 240, 0.8);
}

/* Blue: 10000-14999 */
.leetify-premier-rank.premier-blue {
    background: linear-gradient(135deg, rgba(50, 100, 220, 0.2) 0%, rgba(40, 80, 200, 0.15) 100%);
    border-color: rgba(70, 130, 255, 0.4);
}

.premier-blue .premier-rating {
    color: #5090ff;
    text-shadow: 0 0 10px rgba(80, 144, 255, 0.5);
}

.premier-blue .premier-label {
    color: rgba(80, 144, 255, 0.8);
}

/* Purple: 15000-19999 */
.leetify-premier-rank.premier-purple {
    background: linear-gradient(135deg, rgba(150, 50, 200, 0.2) 0%, rgba(130, 40, 180, 0.15) 100%);
    border-color: rgba(180, 80, 255, 0.4);
}

.premier-purple .premier-rating {
    color: #b050ff;
    text-shadow: 0 0 10px rgba(176, 80, 255, 0.5);
}

.premier-purple .premier-label {
    color: rgba(176, 80, 255, 0.8);
}

/* Pink: 20000-24999 */
.leetify-premier-rank.premier-pink {
    background: linear-gradient(135deg, rgba(255, 100, 150, 0.2) 0%, rgba(240, 80, 130, 0.15) 100%);
    border-color: rgba(255, 120, 170, 0.4);
}

.premier-pink .premier-rating {
    color: #ff78aa;
    text-shadow: 0 0 10px rgba(255, 120, 170, 0.5);
}

.premier-pink .premier-label {
    color: rgba(255, 120, 170, 0.8);
}

/* Red: 25000-29999 */
.leetify-premier-rank.premier-red {
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.2) 0%, rgba(230, 40, 40, 0.15) 100%);
    border-color: rgba(255, 80, 80, 0.4);
}

.premier-red .premier-rating {
    color: #ff5050;
    text-shadow: 0 0 10px rgba(255, 80, 80, 0.5);
}

.premier-red .premier-label {
    color: rgba(255, 80, 80, 0.8);
}

/* Gold: 30000+ */
.leetify-premier-rank.premier-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 180, 0, 0.15) 100%);
    border-color: rgba(255, 215, 0, 0.5);
}

.premier-gold .premier-rating {
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.premier-gold .premier-label {
    color: rgba(255, 215, 0, 0.9);
}

/* ===============================================
   PLAYER CARD V2 - MODERN GAMING DESIGN
   =============================================== */
:root {
    --accent-cyan: #00d4ff;
    --accent-orange: #ff6b35;
    --accent-purple: #8b5cf6;
    --font-gaming: 'Orbitron', sans-serif;
    --glow-orange: 0 0 20px rgba(255, 107, 53, 0.5);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.5);
    --bg-card: rgba(15, 20, 30, 0.9);
}

.player-card-v2 {
    position: relative;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.player-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-orange), var(--accent-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s;
    pointer-events: none;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.player-card-v2:hover::before {
    opacity: 1;
}

.player-card-v2:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--glow-cyan), var(--glow-orange);
}

.card-image-section {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1f2e 0%, #0d1117 100%);
}

.card-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.player-card-v2:hover .card-image-section img {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.2);
}

.card-image-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 50%, rgba(255, 107, 53, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.player-card-v2:hover .card-image-section::after {
    opacity: 1;
}

.player-name-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.player-card-v2 .player-name {
    font-family: var(--font-gaming);
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8), 0 0 20px rgba(255, 107, 53, 0.4);
}

.player-card-v2:hover .player-name {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    60% {
        transform: translate(-1px, -1px);
    }

    80% {
        transform: translate(1px, 1px);
    }
}

.player-card-v2 .player-role {
    font-family: var(--font-head);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-top: 3px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.card-content-v2 {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Premier Badge V2 */
.premier-badge-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.premier-badge-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s;
}

.player-card-v2:hover .premier-badge-v2::before {
    left: 100%;
}

.premier-badge-v2 .premier-title {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premier-badge-v2 .premier-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.premier-badge-v2 .premier-value img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.premier-badge-v2 .premier-rating {
    font-family: var(--font-gaming);
    font-size: 1.3em;
    font-weight: 700;
}

/* Premier V2 Colors */
.premier-badge-v2.premier-grey {
    background: linear-gradient(135deg, rgba(160, 160, 160, 0.15) 0%, rgba(100, 100, 100, 0.08) 100%);
    border-color: rgba(160, 160, 160, 0.3);
}

.premier-badge-v2.premier-grey .premier-rating {
    color: #b0b0b0;
    text-shadow: 0 0 10px rgba(160, 160, 160, 0.4);
}

.premier-badge-v2.premier-cyan {
    background: linear-gradient(135deg, rgba(0, 220, 240, 0.15) 0%, rgba(0, 180, 200, 0.08) 100%);
    border-color: rgba(0, 220, 240, 0.4);
}

.premier-badge-v2.premier-cyan .premier-rating {
    color: #00dce8;
    text-shadow: 0 0 10px rgba(0, 220, 232, 0.5);
}

.premier-badge-v2.premier-blue {
    background: linear-gradient(135deg, rgba(70, 130, 255, 0.15) 0%, rgba(40, 80, 200, 0.08) 100%);
    border-color: rgba(70, 130, 255, 0.4);
}

.premier-badge-v2.premier-blue .premier-rating {
    color: #5090ff;
    text-shadow: 0 0 10px rgba(80, 144, 255, 0.5);
}

.premier-badge-v2.premier-purple {
    background: linear-gradient(135deg, rgba(180, 80, 255, 0.15) 0%, rgba(130, 40, 180, 0.08) 100%);
    border-color: rgba(180, 80, 255, 0.4);
}

.premier-badge-v2.premier-purple .premier-rating {
    color: #b050ff;
    text-shadow: 0 0 10px rgba(176, 80, 255, 0.5);
}

.premier-badge-v2.premier-pink {
    background: linear-gradient(135deg, rgba(255, 120, 170, 0.15) 0%, rgba(240, 80, 130, 0.08) 100%);
    border-color: rgba(255, 120, 170, 0.4);
}

.premier-badge-v2.premier-pink .premier-rating {
    color: #ff78aa;
    text-shadow: 0 0 10px rgba(255, 120, 170, 0.5);
}

.premier-badge-v2.premier-red {
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.15) 0%, rgba(230, 40, 40, 0.08) 100%);
    border-color: rgba(255, 80, 80, 0.4);
}

.premier-badge-v2.premier-red .premier-rating {
    color: #ff5050;
    text-shadow: 0 0 10px rgba(255, 80, 80, 0.5);
}

.premier-badge-v2.premier-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 180, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.5);
}

.premier-badge-v2.premier-gold .premier-rating {
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

/* Leetify Section V2 */
.leetify-section-v2 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(100, 60, 200, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
}

.leetify-header-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leetify-header-v2 img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.leetify-header-v2 span {
    font-family: var(--font-head);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* Win Rate V2 */
.win-rate-row-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.win-rate-circle-v2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--accent-cyan) 0% var(--win-percent, 50%), rgba(255, 255, 255, 0.1) var(--win-percent, 50%) 100%);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.win-rate-circle-v2::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: linear-gradient(180deg, #15171f 0%, #0d0f14 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.win-rate-value-v2 {
    position: relative;
    z-index: 1;
    font-family: var(--font-gaming);
    font-size: 0.95em;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    text-shadow: 0 0 10px currentColor;
}

.win-rate-info-v2 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.win-rate-label-v2 {
    font-size: 0.65em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.win-rate-status-v2 {
    font-family: var(--font-head);
    font-size: 0.75em;
    text-transform: uppercase;
}

/* Win Rate Colors */
.win-rate-excellent .win-rate-circle-v2 {
    background: conic-gradient(#00ff88 0% var(--win-percent, 50%), rgba(255, 255, 255, 0.1) var(--win-percent, 50%) 100%);
}

.win-rate-excellent .win-rate-value-v2,
.win-rate-excellent .win-rate-status-v2 {
    color: #00ff88;
}

.win-rate-good .win-rate-circle-v2 {
    background: conic-gradient(#00d4ff 0% var(--win-percent, 50%), rgba(255, 255, 255, 0.1) var(--win-percent, 50%) 100%);
}

.win-rate-good .win-rate-value-v2,
.win-rate-good .win-rate-status-v2 {
    color: #00d4ff;
}

.win-rate-average .win-rate-circle-v2 {
    background: conic-gradient(#ffaa00 0% var(--win-percent, 50%), rgba(255, 255, 255, 0.1) var(--win-percent, 50%) 100%);
}

.win-rate-average .win-rate-value-v2,
.win-rate-average .win-rate-status-v2 {
    color: #ffaa00;
}

.win-rate-poor .win-rate-circle-v2 {
    background: conic-gradient(#ff4444 0% var(--win-percent, 50%), rgba(255, 255, 255, 0.1) var(--win-percent, 50%) 100%);
}

.win-rate-poor .win-rate-value-v2,
.win-rate-poor .win-rate-status-v2 {
    color: #ff4444;
}

/* Stats V2 */
.stats-grid-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row-v2 {
    display: grid;
    grid-template-columns: 22px 55px 1fr 30px;
    align-items: center;
    gap: 10px;
}

.stat-icon-v2 {
    font-size: 0.85em;
    text-align: center;
}

.stat-name-v2 {
    font-size: 0.7em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-bar-v2 {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill-v2 {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.player-card-v2:hover .stat-fill-v2 {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    }
}

.stat-value-v2 {
    font-family: var(--font-head);
    font-size: 0.8em;
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

.stat-row-v2.relative {
    grid-template-columns: 22px 55px 1fr;
}

.stat-relative-v2 {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.stat-relative-value {
    font-family: var(--font-head);
    font-size: 0.8em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.stat-relative-value.positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
}

.stat-relative-value.negative {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.stat-relative-label {
    font-size: 0.6em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Faceit Badge V2 */
.faceit-badge-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.12) 0%, rgba(200, 60, 0, 0.08) 100%);
    border: 1px solid rgba(255, 85, 0, 0.35);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.faceit-badge-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 85, 0, 0.15), transparent);
    transition: left 0.5s;
}

.player-card-v2:hover .faceit-badge-v2::before {
    left: 100%;
}

.faceit-badge-v2>img {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 85, 0, 0.4));
}

.faceit-level-v2 {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-gaming);
    font-weight: 700;
    font-size: 1em;
    background: linear-gradient(135deg, #ff5500, #ff8800);
    color: #000;
    box-shadow: 0 0 12px rgba(255, 85, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    margin-left: auto;
}

.faceit-elo-v2 {
    flex-shrink: 0;
    font-family: var(--font-gaming);
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 1px;
    text-shadow: 0 0 8px currentColor;
    margin-right: auto;
}

/* Faceit Level Colors */
.faceit-level-1 {
    background: linear-gradient(135deg, #eee, #ccc);
    color: #333;
}

.faceit-level-2,
.faceit-level-3 {
    background: linear-gradient(135deg, #1ce400, #0da800);
    color: #fff;
}

.faceit-level-4,
.faceit-level-5,
.faceit-level-6,
.faceit-level-7 {
    background: linear-gradient(135deg, #ffc800, #e6a800);
    color: #333;
}

.faceit-level-8,
.faceit-level-9 {
    background: linear-gradient(135deg, #ff6309, #e65000);
    color: #fff;
}

.faceit-level-10 {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
}

.faceit-elo-1 {
    color: #999;
}

.faceit-elo-2,
.faceit-elo-3 {
    color: #1ce400;
}

.faceit-elo-4,
.faceit-elo-5,
.faceit-elo-6,
.faceit-elo-7 {
    color: #ffc800;
}

.faceit-elo-8,
.faceit-elo-9 {
    color: #ff6309;
}

.faceit-elo-10 {
    color: #ff0000;
}

/* Player Bio V2 */
.player-bio-v2 {
    font-size: 0.8em;
    color: var(--text-muted);
    line-height: 1.4;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Buttons V2 */
.social-buttons-v2 {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn-v2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn-v2 img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: all 0.3s;
}

.social-btn-v2:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.social-btn-v2:hover img {
    filter: brightness(1.2);
}

.player-card-v2.loaded .stat-fill-v2 {
    width: var(--fill-width);
}

/* Scan Line Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    z-index: 10;
}

.player-card-v2:hover .scan-line {
    opacity: 1;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* Team Grid V2 */
.team-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}