        :root {
            --bg-main: #0b0c10;
            --bg-card: #1f2833;
            --phoenix-orange: #ff4500;
            --phoenix-gold: #ffaa00;
            --neon-cyan: #00f2fe;
            --text-light: #c5a059;
            --text-white: #ffffff;
            --text-muted: #8b9bb4;
            --win-color: #00ff66;
            --loss-color: #ff3333;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Rajdhani', sans-serif;
            background-color: var(--bg-main);
            color: var(--text-white);
            background-image: radial-gradient(circle at 50% 20%, #1a0f2e 0%, var(--bg-main) 70%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header Brand */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid var(--phoenix-orange);
            padding-bottom: 15px;
            margin-bottom: 30px;
            box-shadow: 0 4px 20px rgba(255, 69, 0, 0.1);
        }

        .logo {
            font-family: 'Orbitron', sans-serif;
            font-size: 24px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(45deg, var(--phoenix-orange), var(--phoenix-gold));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-link {
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 600;
            text-transform: uppercase;
            transition: color 0.3s;
        }

        .nav-link:hover {
            color: var(--phoenix-orange);
        }

        /* Profile Layout */
        .profile-grid {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 30px;
        }

        @media (max-width: 900px) {
            .profile-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Sidebar Card */
        .sidebar-card {
            background-color: var(--bg-card);
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            border: 1px solid rgba(255, 69, 0, 0.2);
            position: relative;
            overflow: hidden;
        }

        .sidebar-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--phoenix-orange), var(--phoenix-gold));
        }

        .avatar-container {
            position: relative;
            width: 150px;
            height: 150px;
            margin: 0 auto 20px;
        }

        .avatar {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 4px solid var(--phoenix-orange);
            object-fit: cover;
            box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
        }

        .pro-badge {
            position: absolute;
            bottom: 0;
            right: 10px;
            background: var(--phoenix-gold);
            color: #000;
            font-family: 'Orbitron', sans-serif;
            font-size: 11px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 4px;
            text-transform: uppercase;
        }

        .username {
            font-family: 'Orbitron', sans-serif;
            font-size: 24px;
            color: var(--text-white);
            margin-bottom: 5px;
        }

        .team-tag {
            color: var(--phoenix-gold);
            font-weight: 700;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }

        .bio {
            color: var(--text-muted);
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 25px;
        }

        .quick-stats {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            padding: 15px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .stat-box .label {
            font-size: 12px;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        .stat-box .val {
            font-family: 'Orbitron', sans-serif;
            font-size: 18px;
            font-weight: 700;
            color: var(--phoenix-orange);
        }

        /* Main Content */
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 30px;
            min-width: 0; /* Previene overflow del flex child */
        }

        .section-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-white);
        }

        .section-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
        }

        /* --- NUOVA SEZIONE: BRAWLERS SCROLLING ORIZZONTALE --- */
        .brawlers-slider-container {
            position: relative;
            width: 100%;
        }

        .brawlers-slider {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding-bottom: 15px;
            padding-top: 5px;
            scrollbar-width: thin;
            scrollbar-color: var(--phoenix-orange) var(--bg-card);
        }

        /* Personalizzazione Scrollbar per Webkit (Chrome, Safari, Edge) */
        .brawlers-slider::-webkit-scrollbar {
            height: 8px;
        }

        .brawlers-slider::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
        }

        .brawlers-slider::-webkit-scrollbar-thumb {
            background: linear-gradient(90deg, var(--phoenix-orange), var(--phoenix-gold));
            border-radius: 10px;
        }

        .brawler-card {
            flex: 0 0 240px; /* Dimensione fissa per forzare lo scroll orizzontale */
            background: var(--bg-card);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: 20px;
            transition: transform 0.3s, border-color 0.3s;
            position: relative;
            overflow: hidden;
        }

        .brawler-card:hover {
            transform: translateY(-5px);
            border-color: var(--neon-cyan);
            box-shadow: 0 5px 15px rgba(0, 242, 254, 0.1);
        }

        .brawler-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .brawler-icon-frame {
            width: 55px;
            height: 55px;
            border-radius: 8px;
            background: #111;
            border: 2px solid var(--phoenix-gold);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .brawler-icon-frame span {
            font-size: 24px;
        }

        .brawler-info-meta .brawler-name {
            font-family: 'Orbitron', sans-serif;
            font-size: 18px;
            font-weight: 700;
            color: var(--text-white);
        }

        .brawler-info-meta .brawler-class {
            font-size: 12px;
            color: var(--neon-cyan);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .brawler-stats-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: rgba(0, 0, 0, 0.2);
            padding: 12px;
            border-radius: 8px;
        }

        .brawler-stat-row {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
        }

        .brawler-stat-row .s-label {
            color: var(--text-muted);
        }

        .brawler-stat-row .s-val {
            font-weight: 700;
            color: var(--text-white);
        }

        .brawler-stat-row .s-val.trophies {
            color: var(--phoenix-gold);
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .brawler-card .power-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #7d00ff;
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
        }
	
        /* GRIGLIA BADGE ATTIVI (Gadget, Abilità Stellare, Hypercharge) */
        .brawler-badges-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            background: rgba(0, 0, 0, 0.2);
            padding: 10px;
            border-radius: 8px;
            margin-top: 5px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .badge-slot {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 6px 4px;
            border-radius: 6px;
            text-align: center;
            position: relative;
        }

        /* Icona segnaposto stilizzata per i badge */
        .badge-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
            border-radius: 50%;
            margin-bottom: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        }

        .badge-label {
            font-size: 10px;
            text-transform: uppercase;
            font-weight: 600;
            color: #aaa;
            letter-spacing: 0.5px;
        }

        /* --- FINE SEZIONE BRAWLERS --- */

        /* Match History */
        .history-card {
            background-color: var(--bg-card);
            border-radius: 12px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .match-row {
            display: grid;
            grid-template-columns: auto 1fr auto auto;
            align-items: center;
            gap: 20px;
            padding: 15px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
	
        .match-row2 {
            display: grid;
            grid-template-columns: auto auto auto auto;            
            align-items: center;
            gap: 20px;
            padding: 15px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .match-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .match-row:first-child {
            padding-top: 0;
        }

        .status-indicator {
            width: 8px;
            height: 35px;
            border-radius: 4px;
        }

        .status-indicator.win { background-color: var(--win-color); box-shadow: 0 0 10px var(--win-color); }
        .status-indicator.loss { background-color: var(--loss-color); box-shadow: 0 0 10px var(--loss-color); }

        .game-info .game-mode {
            font-family: 'Orbitron', sans-serif;
            font-size: 16px;
            font-weight: 700;
        }

        .game-info .game-meta {
            font-size: 13px;
            color: var(--text-muted);
        }

        .match-character {
            display: flex;
            align-items: center;
            gap: 10px;                        
        }

        .char-mini {
            width: 32px;
            height: 32px;
            background: #111;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;            
            border: 1px solid var(--phoenix-orange);
        }

        .char-name {
            font-weight: 600;
            font-size: 15px;
        }

        .match-result {
            text-align: right;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            font-size: 15px;
        }

        .match-result.win { color: var(--win-color); }
        .match-result.loss { color: var(--loss-color); }

        .match-result .trophy-change {
            font-size: 12px;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 600;
        }	