        *, *::before, *::after {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            background-image: var(--site-bg-image, none);
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            background-color: #0b0e14; /* Default fallback */
            overflow-x: hidden;
        }

        /* --- HEADER GLOBAL --- */
        header.site-header {
            width: 100%;
            background: transparent;
            border: none;
            box-shadow: none;
            backdrop-filter: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 20px;
            box-sizing: border-box;
            height: 80px;
        }

        .header-logo {
            max-height: 100%;
            width: auto;
            max-width: 100%;
            object-fit: contain;
        }

        .main-nav {
            display: flex;
            align-items: center;
            gap: 35px;
        }

        .nav-item {
            color: #a0a5ab;
            text-decoration: none;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 15px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            padding: 8px 0;
            transition: all 0.3s ease;
        }

        .nav-item:hover {
            color: #ffffff;
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
        }

        .nav-item.active {
            color: #ffffff;
            text-shadow: 0 0 10px var(--active-game-color, #ffffff);
        }

        .nav-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--active-game-color, #ffffff);
            box-shadow: 0 0 10px var(--active-game-color, #ffffff);
        }

        .nav-item.active::before {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            height: 30px;
            background: linear-gradient(to top, var(--active-game-color, #ffffff), transparent);
            opacity: 0.2;
            pointer-events: none;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .action-icon {
            color: #b4bac2;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            transition: color 0.3s ease;
            outline: none;
        }

        .action-icon:hover {
            color: #ffffff;
        }

        .action-icon svg {
            width: 100%;
            height: 100%;
            fill: currentColor;
        }

        .friends-group {
            display: flex;
            align-items: center;
            color: #b4bac2;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            transition: color 0.3s ease;
            outline: none;
        }

        .friends-group:hover {
            color: #ffffff;
        }

        .friends-group:hover .action-icon {
            color: #ffffff;
        }

        .friends-group .action-icon {
            margin-right: 12px;
        }

        .separator {
            width: 1px;
            height: 20px;
            background-color: rgba(180, 186, 194, 0.3);
            margin-right: 12px;
        }

        .friends-count {
            font-size: 16px;
            font-weight: 600;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin-top: -1px;
        }

        .main-container {
            display: flex;
            flex: 1;
            width: 100%;
            padding-top: 3px;
            padding-bottom: 3px;
        }

        .colonne-partenaire {
            width: 240px;
            flex-shrink: 0;
        }

        .zone-centrale {
            flex-grow: 1;
        }

        /* --- SIDE PANEL --- */
        .side-panel-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: 1999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .side-panel-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .side-panel {
            position: fixed;
            top: 0;
            right: 0;
            width: 320px;
            height: 100vh;
            background: rgba(10, 11, 14, 0.95);
            backdrop-filter: blur(15px);
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
            z-index: 2000;
            transform: translateX(100%);
            transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            display: flex;
            flex-direction: column;
        }
        .side-panel.show {
            transform: translateX(0);
        }

        .side-panel-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            padding: 25px;
        }

        .side-panel-tile {
            aspect-ratio: 1;
            background: #16171a;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 2px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #d1d5db;
            text-decoration: none;
            transition: all 0.2s ease;
            position: relative;
            padding: 10px;
        }

        .tile-accent-line {
            position: absolute;
            top: -1px;
            left: -1px;
            width: 30%;
            height: 2px;
            background: rgba(255, 255, 255, 0.15);
            transition: background 0.3s ease;
        }

        .tile-dots {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 14px;
            height: 10px;
            fill: rgba(255, 255, 255, 0.15);
        }

        .tile-icon {
            width: 56px;
            height: 56px;
            margin-bottom: 12px;
            transition: transform 0.2s ease;
        }

        .side-panel-tile span {
            font-family: 'Orbitron', 'Segoe UI', sans-serif;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            text-align: center;
        }

        .side-panel-tile:hover {
            background: #1e1f23;
            border-color: rgba(255, 255, 255, 0.15);
            color: #ffffff;
        }

        .side-panel-tile:hover .tile-icon {
            transform: scale(1.05);
        }

        .side-panel-tile:hover .tile-accent-line {
            background: var(--active-game-color, rgba(255,255,255,0.4));
        }

        /* --- FOOTER GLOBAL --- */
        footer.site-footer {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2px 30px;
            background: rgba(0, 0, 0, 0.4);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            flex-shrink: 0;
            width: 100%;
            margin-top: auto;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .footer-disclaimer {
            color: rgba(255, 255, 255, 0.4);
            font-size: 11px;
            text-align: left;
            margin: 0;
            line-height: 1.4;
            max-width: 100%;
        }

        .footer-copyright {
            color: rgba(255, 255, 255, 0.4);
            font-size: 11px;
            text-align: right;
            margin: 0;
            line-height: 1.4;
            white-space: nowrap;
        }

        /* Donation Panel */
        .donation-panel {
            position: fixed;
            top: 0;
            right: -450px;
            width: 400px;
            height: 100vh;
            background-color: rgba(18, 20, 24, 0.98);
            backdrop-filter: blur(15px);
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 10001; /* Above the options panel (10000) */
            transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            padding: 30px;
            box-sizing: border-box;
            box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
            overflow-y: auto;
        }

        .donation-panel.show {
            right: 0;
        }

        .donation-header {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
        }

        .btn-back {
            background: none;
            border: none;
            color: #b4bac2;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 600;
            text-transform: uppercase;
            transition: color 0.3s ease;
            padding: 0;
        }

        .btn-back:hover {
            color: #fff;
        }

        .btn-back svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .donation-content {
            color: #b4bac2;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 14px;
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            gap: 15px;
            flex-grow: 1;
        }

        .donation-content h3 {
            color: #fff;
            font-size: 22px;
            font-family: 'Orbitron', sans-serif;
            margin: 0 0 5px 0;
            text-transform: none; /* Keep "Salut les copains !" case */
        }

        .donation-content p {
            margin: 0;
        }

        .donation-highlight {
            color: #ff4d4d;
            font-weight: 700;
        }

        .donation-footer-text {
            color: #fff;
            font-size: 18px;
            font-weight: 700;
            font-family: 'Orbitron', sans-serif;
            margin-top: 5px;
        }

        .donation-action {
            margin-top: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .btn-donate {
            background: #ff4d4d;
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 15px 30px;
            font-size: 18px;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
        }

        .btn-donate:hover {
            background: #ff6666;
            box-shadow: 0 6px 20px rgba(255, 77, 77, 0.6);
            transform: translateY(-2px);
        }

        .stripe-secure {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #7f8487;
            font-size: 12px;
            font-family: 'Segoe UI', sans-serif;
        }

        .stripe-secure svg {
            width: 12px;
            height: 12px;
            fill: currentColor;
        }

        /* SOCIAL TABS */
        .social-container {
            width: 100%;
            max-width: 1000px;
            margin: 40px auto 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding-bottom: 50px;
            box-sizing: border-box;
        }

        .social-tabs {
            display: flex;
            justify-content: center;
            gap: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .social-tab-btn {
            background: none;
            border: none;
            color: #b4bac2;
            font-family: 'Orbitron', sans-serif;
            font-size: 16px;
            text-transform: uppercase;
            padding: 10px 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
            position: relative;
        }

        .social-tab-btn:hover {
            color: #fff;
        }

        .social-tab-btn.active {
            color: #fff;
            border-bottom-color: var(--active-game-color, #ff4d4d);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .social-tab-content {
            display: none;
            color: #fff;
            background: rgba(20, 22, 26, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 25px;
            min-height: 400px;
            box-sizing: border-box;
            overflow-x: hidden;
            width: 100%;
        }

        .social-tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Notifications Container */
        .notif-container {
            position: relative;
            display: inline-flex;
        }

        .action-icon.has-notif {
            color: var(--active-game-color, #fff);
        }

        .notif-panel {
            position: absolute;
            top: calc(100% + 15px);
            right: 0;
            width: 350px;
            background: rgba(20, 22, 26, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            opacity: 0;
            pointer-events: none;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            text-align: left;
        }

        .notif-panel.show {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .notif-header {
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-family: 'Orbitron', sans-serif;
            font-size: 14px;
            color: #fff;
            letter-spacing: 1px;
        }

        .notif-list {
            max-height: 400px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        .notif-item {
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            gap: 15px;
            align-items: flex-start;
            transition: background 0.2s ease;
            cursor: pointer;
        }

        .notif-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

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

        .notif-item-icon {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--active-game-color, #fff);
            margin-top: 5px;
            flex-shrink: 0;
            box-shadow: 0 0 8px var(--active-game-color, #fff);
        }

        .notif-content {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .notif-title {
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            font-family: 'Rajdhani', sans-serif;
        }

        .notif-desc {
            color: #b4bac2;
            font-size: 12px;
            line-height: 1.4;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

.btn-action-friend {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-action-friend:hover {
    background: rgba(255, 153, 0, 0.2);
    border-color: #ff9900;
    color: #ffb84d;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.25);
}

/* --- AUTHENTICATION STYLES (Connexion / Inscription) --- */
.auth-card-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    min-height: calc(100vh - 160px);
}

.auth-card {
    background: rgba(12, 18, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 153, 0, 0.35);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), inset 0 0 25px rgba(255, 153, 0, 0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 45px 40px;
    text-align: center;
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(255, 153, 0, 0.05); }
    100% { box-shadow: 0 0 45px rgba(255, 153, 0, 0.2), inset 0 0 35px rgba(255, 153, 0, 0.12); }
}

.auth-logo {
    width: 90px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.auth-logo:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.auth-title {
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 35px;
    text-shadow: 0 0 15px rgba(255, 153, 0, 0.6);
    background: linear-gradient(90deg, #ffffff, #ffcc80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.auth-tab-btn {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    color: #888d9e;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, #ff9900, #ff4500);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 22px;
    text-align: left;
}

.auth-form.active {
    display: flex;
    animation: fadeInForm 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInForm {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    background: rgba(5, 7, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.form-input:focus {
    border-color: #ff9900;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.4), inset 0 2px 5px rgba(0,0,0,0.5);
    background: rgba(0, 0, 0, 0.9);
}

.form-input::placeholder {
    color: #666a7a;
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
    padding-left: 2px;
}

.form-checkbox {
    accent-color: #ff9900;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox-label {
    color: #a0a5b5;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.4;
}

.form-checkbox-label a {
    color: #ff9900;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-checkbox-label a:hover {
    color: #ff5500;
    text-decoration: underline;
}

.form-forgot {
    text-align: right;
    margin-top: -12px;
}

.form-forgot a {
    color: #ff9900;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.form-forgot a:hover {
    color: #ff5500;
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff9900, #ff4500);
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 17px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 15px;
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.6);
    background: linear-gradient(135deg, #ffaa33, #ff5c1a);
}

.auth-submit-btn:hover::after {
    left: 200%;
}

.auth-footer-text {
    text-align: center;
    margin-top: 25px;
    color: #888d9e;
    font-size: 14px;
}

.auth-footer-text a {
    color: #ff9900;
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.3s ease;
}

.auth-footer-text a:hover {
    color: #ff5500;
    text-decoration: underline;
}

.g_id_signin_wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

