/* Dashboard Gamer Theme */
html {
    overflow-y: scroll;
}

:root {
    /* Remappé sur les tokens BrandOS (dist/css/fl-tokens.css). Fallback = ancienne valeur. */
    --gamer-bg: var(--fl-bg, #0f172a);
    --gamer-card-bg: var(--fl-surface, rgba(30, 41, 59, 0.7));
    --gamer-border: var(--fl-border, rgba(255, 255, 255, 0.1));
    --gamer-text: var(--fl-text, #f8fafc);
    --gamer-text-muted: var(--fl-text-muted, #94a3b8);
    --gamer-cyan: var(--fl-primary, #06b6d4);
    /* violet hors-charte -> unifié sur le cyan (action) */
    --gamer-purple: var(--fl-primary, #8b5cf6);
    --gamer-green: var(--fl-success, #10b981);
    --gamer-red: var(--fl-danger, #ef4444);
    /* orange hors-charte -> or premium */
    --gamer-yellow: var(--fl-gold, #f59e0b);
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
}



.dashboard-gamer {
    background-color: var(--gamer-bg);
    color: var(--gamer-text);
    font-family: 'Source Sans Pro', sans-serif;
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Glassmorphism Cards */
.gamer-card {
    background: var(--gamer-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gamer-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gamer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.gamer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gamer-border);
    padding-bottom: 0.5rem;
}

.gamer-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gamer-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
    margin: 0;
}

/* --- NEW GAMER BUTTONS --- */
.btn-gamer {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 0.375rem;
    /* Standard rounded corners like championship */
}

/* Remove clip-path overrides */
.btn-sm.btn-gamer {
    clip-path: none;
}

.btn-gamer:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Primary (Blue/Cyan) - Matches .btn-primary in championship-buttons */
.btn-gamer-primary {
    background: linear-gradient(135deg, var(--gamer-cyan), #3b82f6) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.btn-gamer-primary:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
    color: white !important;
}

/* Success (Green) */
.btn-gamer-success {
    background: linear-gradient(135deg, var(--gamer-green), #059669) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.btn-gamer-success:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    color: white !important;
}

/* Danger (Red) - Matches btn-outline-danger style but filled if needed, or stick to this global class */
.btn-gamer-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.btn-gamer-danger:hover {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    color: white !important;
}

/* Info (Light Blue) */
.btn-gamer-info {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Outline variant for inactive tabs - Matches .btn-group .btn-outline-primary */
.btn-gamer-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--gamer-cyan) !important;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gamer-outline:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--gamer-cyan);
    color: var(--gamer-cyan) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

/* Warning (Yellow) */
.btn-gamer-warning {
    background: linear-gradient(135deg, var(--gamer-yellow), #d97706) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.btn-gamer-warning:hover {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
    color: white !important;
}

/* Discord (Violet/Blue) */
.btn-gamer-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
}

.btn-gamer-discord:hover {
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4752C4, #5865F2) !important;
    color: white !important;
}

.btn-gamer-outline.active,
.btn-gamer-outline:active {
    background: linear-gradient(135deg, var(--gamer-cyan), var(--gamer-purple)) !important;
    color: white !important;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Special Active Tab State - Matches .btn-group .btn-primary */
.btn-gamer-active {
    background: linear-gradient(135deg, var(--gamer-cyan), var(--gamer-purple)) !important;
    color: white !important;
    border: none;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    border-radius: 0.375rem;
    font-weight: 600;
}

.btn-gamer-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
    color: white !important;
}

/* Inputs Inputs */
.form-control-gamer {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--gamer-border) !important;
    color: white !important;
    border-radius: 6px;
    transition: all 0.3s;
}

.form-control-gamer:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--gamer-cyan) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Hero Section (Next Match) */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('../dist/img/stadium-night.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    padding: 1.5rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
    overflow: hidden;
}

.hero-timer {
    font-family: 'Courier New', Courier, monospace;
    /* Monospaced for digital look */
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--gamer-purple);
    margin: 1rem 0;
    letter-spacing: 2px;
}

.hero-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gamer-cyan);
    font-weight: 600;
}

/* New Next Match Layout styles */
.hero-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    width: 100%;
}

.hero-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gamer-cyan);
    font-weight: 700;
}

.hero-help-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #f97316;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.2s;
}

.hero-header .hero-help-btn {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.hero-match-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 1.5rem;
}

.hero-team {
    flex: 1;
    text-align: center;
    max-width: 250px;
}

.hero-team-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.hero-logo-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 0.75rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.hero-team-link:hover .hero-logo-container {
    transform: scale(1.08);
}

.hero-logo-img {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.hero-team-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.hero-team-link:hover .hero-team-name {
    color: var(--gamer-cyan);
}

.hero-center-col {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.hero-timer-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.25);
    margin: 0;
    line-height: 1;
}

.hero-timer-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gamer-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.4rem;
}

.hero-vs-divider {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gamer-text-muted);
    opacity: 0.8;
    margin-top: 1.2rem;
    letter-spacing: 1px;
}

.hero-live-status {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-live-status.pulse-red {
    color: var(--gamer-red);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    animation: gamerPulseRed 1.5s infinite;
}

@keyframes gamerPulseRed {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.hero-cta-btn-container {
    margin-top: 0.75rem;
    text-align: center;
}

/* Reduced size capsule button */
.hero-btn-custom {
    border: 2px solid var(--gamer-cyan) !important;
    background: transparent !important;
    color: var(--gamer-cyan) !important;
    border-radius: 30px !important;
    padding: 0.5rem 1.75rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15) !important;
}

.hero-btn-custom:hover {
    background: var(--gamer-cyan) !important;
    color: #0f172a !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4) !important;
    transform: translateY(-2px);
}

.hero-btn-icon-wrapper {
    background: var(--gamer-cyan);
    color: #0f172a;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.hero-btn-custom:hover .hero-btn-icon-wrapper {
    background: #0f172a;
    color: var(--gamer-cyan);
}

.hero-btn-live {
    border-color: var(--gamer-red) !important;
    color: var(--gamer-red) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.15) !important;
}

.hero-btn-live:hover {
    background: var(--gamer-red) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

.hero-btn-live:hover .hero-btn-icon-wrapper {
    background: white;
    color: var(--gamer-red);
}

.hero-btn-forfait {
    border-color: var(--gamer-text-muted) !important;
    color: var(--gamer-text-muted) !important;
    box-shadow: none !important;
}

.hero-btn-forfait:hover {
    background: var(--gamer-text-muted) !important;
    color: #0f172a !important;
}

.hero-btn-forfait:hover .hero-btn-icon-wrapper {
    background: #0f172a;
    color: var(--gamer-text-muted);
}

/* Player/Team Card */
.team-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-jersey-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* Clickable */
    transition: transform 0.2s;
}

.team-jersey-container:hover {
    transform: scale(1.05);
}

.jersey-edit-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--gamer-cyan);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.team-jersey-container:hover .jersey-edit-icon {
    opacity: 1;
}

.team-jersey-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

.team-jersey-img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    z-index: 1;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.manager-name {
    color: var(--gamer-text-muted);
    font-size: 0.9rem;
}

/* Stats Strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item:hover {
    border-color: var(--gamer-cyan);
}

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

.stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gamer-text-muted);
    letter-spacing: 1px;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gamer-cyan);
}

/* Objectives (Battle Pass style) */
.objective-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objective-item {
    margin-bottom: 1rem;
}

.objective-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--gamer-text);
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gamer-cyan), var(--gamer-purple));
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.reward-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--gamer-yellow);
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-left: 0.5rem;
}

.objective-item.completed .progress-fill {
    background: var(--gamer-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Infrastructure Cards */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.infra-card {
    display: block;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.infra-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gamer-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.infra-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gamer-text-muted);
    transition: all 0.3s ease;
}

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

.infra-card.active .infra-icon {
    color: var(--gamer-green);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.infra-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gamer-red);
    margin-right: 5px;
}

.infra-card.active .infra-status-dot {
    background-color: var(--gamer-green);
    box-shadow: 0 0 5px var(--gamer-green);
}

/* Streak Buttons */
.streak-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    font-weight: bold;
    margin: 0 1px;
    border-radius: 4px;
    color: #fff;
    border: none;
}

.streak-V {
    background: var(--gamer-green);
    box-shadow: 0 0 5px var(--gamer-green);
}

.streak-N {
    background: var(--gamer-yellow);
}

.streak-D {
    background: var(--gamer-red);
}

/* Objectifs : hauteur minimale uniquement sur desktop */
@media (min-width: 768px) {
    .objectives-card {
        min-height: 300px;
    }
}

/* Bandeau club compact (mobile uniquement, remplace la grande carte club) */
.mobile-club-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 14px 16px;
    margin-bottom: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.mobile-club-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(14, 147, 175, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.mobile-club-logo {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mobile-club-logo:hover {
    transform: scale(1.05);
    border-color: var(--gamer-cyan);
}

.mobile-club-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.mobile-club-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-club-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mobile-club-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mobile-club-level-badge {
    background: linear-gradient(135deg, var(--gamer-purple), #4f46e5) !important;
    color: white !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.4);
}

.mobile-club-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

.mobile-club-rank {
    font-weight: 700;
    color: var(--gamer-yellow);
    background: rgba(245, 158, 11, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.mobile-club-record-text {
    color: var(--gamer-text-muted);
    font-weight: 500;
}

.mobile-club-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.mobile-club-invincible {
    white-space: nowrap;
    margin-left: auto;
    text-align: right;
}

.mobile-club-forme .streak-btn {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    border-radius: 4px;
}

/* Responsive adjustments : tableau de bord compact sur mobile */
@media (max-width: 768px) {

    .content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .dashboard-gamer {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .dashboard-gamer .gamer-card {
        padding: 0.8rem;
    }

    .dashboard-gamer .row > [class*="col-"] {
        margin-bottom: 0.75rem !important;
    }

    .gamer-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .gamer-title {
        font-size: 0.9rem;
    }

    #gazette-title-banner {
        font-size: 0.8rem !important;
    }

    /* Hero "Prochain match" : bandeau compact sur mobile */
    .hero-section {
        display: block !important;
        text-align: center !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-header {
        margin-bottom: 0.5rem !important;
    }

    .hero-title {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
    }

    .hero-match-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0.6rem auto !important;
        gap: 8px !important;
    }

    .hero-team {
        max-width: 100px !important;
    }

    .hero-logo-container {
        width: 55px !important;
        height: 55px !important;
        margin-bottom: 0.4rem !important;
    }

    .hero-logo-img {
        max-width: 55px !important;
        max-height: 55px !important;
    }

    .hero-team-name {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }

    .hero-center-col {
        padding: 0 !important;
    }

    .hero-timer-value {
        font-size: 1.8rem !important;
    }

    .hero-timer-subtitle {
        font-size: 0.6rem !important;
        letter-spacing: 1px !important;
    }

    .hero-vs-divider {
        font-size: 0.85rem !important;
        margin-top: 0.5rem !important;
    }

    .hero-btn-custom {
        padding: 0.4rem 1.2rem !important;
        font-size: 0.8rem !important;
    }

    .hero-btn-icon-wrapper {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.7rem !important;
    }

    #help-trigger-btn {
        top: 10px !important;
        right: 12px !important;
        font-size: 1.1rem !important;
    }

    /* Stats : une ligne de 4 mini-tuiles (le solde est dans le bandeau club) */
    .stats-strip {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
        margin-bottom: 0.6rem;
    }

    .stat-solde {
        display: none;
    }

    .stat-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        padding: 0.5rem 0.25rem !important;
    }

    .stat-icon {
        display: block !important;
        font-size: 1.1rem !important;
        margin-bottom: 0 !important;
    }

    .stat-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .stat-val {
        font-size: 0.95rem;
        line-height: 1.1;
    }

    .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.3px;
        line-height: 1;
        margin-top: 1px;
    }

    /* Objectifs compactés */
    .objective-item {
        margin-bottom: 0.5rem;
    }

    .objective-info {
        font-size: 0.78rem;
        align-items: center;
    }

    .objective-info .reward-badge {
        font-size: 0.65rem;
        padding: 1px 4px;
        margin-left: 0.3rem;
        border-radius: 3px;
    }

    .objective-item .progress-track {
        height: 5px;
    }

    /* Infrastructures : 4 mini-tuiles sur une seule ligne */
    .infra-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.3rem;
    }

    .infra-card {
        padding: 0.5rem 0.15rem;
    }

    .infra-icon {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
}

/* --- GLOBAL GAMER OVERRIDES (AdminLTE) --- */

/* Body Background */
html,
body,
.wrapper {
    overflow-x: clip !important;
}

body,
.wrapper,
.content-wrapper {
    background-color: var(--gamer-bg) !important;
    color: var(--gamer-text);
}

/* Reset any body padding to prevent header shifting in sticky/fixed positioning */
body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Navbar / Header */
.main-header,
.main-header.navbar,
.navbar-dark,
.navbar-light,
.navbar-white {
    background-color: rgba(15, 23, 42, 0.95) !important;
    background-image: none !important;
    border-bottom: 3px solid var(--gamer-cyan) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    /* Sticky Header */
    position: sticky !important;
    top: 0;
    z-index: 1040;
}

.main-header .nav-link,
.navbar-dark .navbar-nav .nav-link {
    color: var(--gamer-text) !important;
}

@media (hover: hover) {
    .main-header .navbar-nav .nav-link:hover {
        color: var(--gamer-cyan) !important;
        text-shadow: 0 0 8px var(--gamer-cyan);
    }
}

/* Header Badges */
.main-header .navbar-nav .badge {
    box-shadow: 0 0 5px currentColor;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-header .navbar-nav .badge-warning {
    background-color: transparent !important;
    color: var(--gamer-yellow) !important;
    border-color: var(--gamer-yellow) !important;
}

.main-header .navbar-nav .badge-success {
    background-color: transparent !important;
    color: var(--gamer-green) !important;
    border-color: var(--gamer-green) !important;
}

.main-header .navbar-nav .badge-info {
    background-color: transparent !important;
    color: var(--gamer-cyan) !important;
    border-color: var(--gamer-cyan) !important;
}

.main-header .navbar-nav .badge-danger {
    background-color: transparent !important;
    color: var(--gamer-red) !important;
    border-color: var(--gamer-red) !important;
}

/* Sidebar */
.main-sidebar {
    background-color: #0b1120 !important;
    /* Darker than bg */
    border-right: 1px solid var(--gamer-border);
    z-index: 1050 !important;
}

.sidebar {
    padding-bottom: 10rem !important;
}

.brand-link {
    border-bottom: 2px solid var(--gamer-purple) !important;
    background-color: #0b1120 !important;
}

.brand-text {
    color: #fff !important;
    font-family: 'Source Sans Pro', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--gamer-purple);
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-dark-primary .nav-treeview>.nav-item>.nav-link.active {
    background-color: var(--gamer-purple) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-sidebar .nav-link p {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-sidebar .nav-link:hover {
    color: var(--gamer-cyan) !important;
}

.user-panel {
    border-bottom: 1px solid var(--gamer-border) !important;
}

.user-panel .info a {
    color: var(--gamer-cyan) !important;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.3);
}

/* Content Header */
.content-header h1 {
    color: var(--gamer-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb-item.active {
    color: var(--gamer-text-muted);
}

/* Footer */
.main-footer {
    background-color: #0b1120 !important;
    border-top: 1px solid var(--gamer-border) !important;
    color: var(--gamer-text-muted) !important;
}

.main-footer a {
    color: var(--gamer-cyan) !important;
    text-decoration: none;
}

.main-footer a:hover {
    text-shadow: 0 0 5px var(--gamer-cyan);
}

/* Level Progress & Rewards */
.level-container {
    width: 100%;
    margin-top: 1rem;
    padding: 0 1rem;
}

.level-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gamer-purple), var(--gamer-cyan));
    width: 0%;
    transition: width 1s ease;
    box-shadow: 0 0 8px var(--gamer-purple);
}

.level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gamer-text-muted);
}

.reward-lock {
    display: inline-flex;
    align-items: center;
    color: var(--gamer-yellow);
    cursor: help;
    transition: transform 0.2s;
}

.reward-lock:hover {
    transform: scale(1.1);
    text-shadow: 0 0 5px var(--gamer-yellow);
}

.reward-lock i {
    margin-right: 4px;
}

/* Header Dropdowns - Gamer Theme */
.navbar .dropdown-menu {
    background-color: rgba(16, 16, 18, 0.95) !important;
    border: 1px solid var(--gamer-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.navbar .dropdown-item {
    color: var(--gamer-text) !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: var(--gamer-cyan) !important;
}

.navbar .dropdown-divider {
    border-top-color: var(--gamer-border) !important;
}

.navbar .dropdown-item-title {
    color: #fff !important;
}

.navbar .dropdown-footer {
    color: var(--gamer-cyan) !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    font-weight: bold;
}

/* User Header Override */
.navbar-nav .user-menu .user-header {
    background-color: transparent !important;
    background: linear-gradient(180deg, rgba(16, 16, 18, 0.95), transparent) !important;
    color: var(--gamer-text) !important;
    border-bottom: 1px solid var(--gamer-border);
}

.navbar-nav .user-menu .user-footer {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-top: 1px solid var(--gamer-border);
}

.navbar-nav .user-menu .user-footer .btn-default {
    background-color: transparent;
    color: var(--gamer-red);
    border: 1px solid var(--gamer-red);
}

.navbar-nav .user-menu .user-footer .btn-default:hover {
    background-color: var(--gamer-red) !important;
    color: #fff !important;
    border-color: var(--gamer-red) !important;
}

/* SweetAlert2 Gamer Theme */
.swal2-popup {
    background: rgba(16, 16, 18, 0.95) !important;
    border: 1px solid var(--gamer-cyan) !important;
    color: var(--gamer-text) !important;
    backdrop-filter: blur(5px);
}

.swal2-title {
    color: var(--gamer-cyan) !important;
}

.swal2-content,
.swal2-html-container {
    color: var(--gamer-text) !important;
}

.swal2-confirm.swal2-styled {
    background-color: var(--gamer-purple) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4) !important;
}

.swal2-cancel.swal2-styled {
    background-color: transparent !important;
    border: 1px solid var(--gamer-red) !important;
    color: var(--gamer-red) !important;
}

/* Gamer Pagination */
.gamer-pagination .page-link {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--gamer-border) !important;
    color: var(--gamer-text-muted) !important;
    margin: 0 2px;
    border-radius: 4px !important;
    transition: all 0.3s ease;
}

.gamer-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--gamer-cyan), var(--gamer-purple)) !important;
    border-color: transparent !important;
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.gamer-pagination .page-link:hover {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: var(--gamer-cyan) !important;
    border-color: var(--gamer-cyan) !important;
    transform: translateY(-2px);
}

.gamer-pagination .page-item.disabled .page-link {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    cursor: not-allowed;
    transform: none !important;
}

/* --- PLAYER CARD OVERRIDES (Ported from joueurs.css for consistency) --- */
.carte_bleue,
.carte_verte,
.carte_bleue_claire,
.carte_rouge {
    background-image: none !important;
    backdrop-filter: blur(4px);
    border-radius: 8px;
    height: 115px;
    width: 100px;
    padding: 4px;
    margin: 0 2px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    position: absolute;
    z-index: 10;
    box-sizing: content-box;
}

.carte_bleue {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%) !important;
    border-top: 5px solid #2563eb !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2) !important;
}

.carte_verte {
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%) !important;
    border-top: 5px solid #16a34a !important;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2) !important;
}

.carte_bleue_claire {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%) !important;
    border-top: 5px solid var(--fl-primary, #06b6d4) !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2) !important;
}

.carte_rouge {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%) !important;
    border-top: 5px solid #dc2626 !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2) !important;
}

.tete {
    position: absolute;
    left: 5px;
    top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-sizing: content-box;
}

.tete img {
    width: 60px;
    height: 70px;
}

.jauge_rouge {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: absolute;
    width: 7px;
    left: 70px;
    top: 20px;
    height: 70px;
    padding: 1px;
    box-sizing: content-box;
}

.jauge_verte {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: absolute;
    width: 7px;
    left: 82px;
    top: 20px;
    height: 70px;
    padding: 1px;
    box-sizing: content-box;
}

.jauge_rouge img,
.jauge_verte img {
    width: 100%;
    display: block;
}

.age {
    position: absolute;
    left: 9px;
    top: 92px;
    width: 36px;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 10px;
}

.points {
    position: absolute;
    width: 62px;
    left: 48px;
    top: 92px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
}

/* --- MOBILE APP SAFE AREA ADAPTATIONS --- */
/* Handle notched phones (iPhone X+, standard Androids with notches/punch-holes) */
@supports (padding-top: env(safe-area-inset-top)) {

    /* Navbar: Add padding to top so content starts below the status bar */
    .main-header.navbar {
        padding-top: var(--safe-area-top) !important;
        /* Adjust height to accommodate the notch + standard navbar height */
        min-height: calc(3.5rem + var(--safe-area-top)) !important;
        /* align items to the bottom so they aren't stuck in the notch area */
        align-items: flex-end !important;
        /* Add a little padding bottom for visual balance */
        padding-bottom: 0.5rem !important;
    }

    /* Sidebar: Push it down or add padding so the logo doesn't hit the notch if sidebar is transparent/full height */
    .main-sidebar .brand-link {
        padding-top: calc(0.8125rem + var(--safe-area-top)) !important;
        /* Adjust brand link height if needed */
        height: auto !important;
    }

    /* Ensure the sidebar content scroller starts at the right place and can be fully scrolled */
    .sidebar {
        margin-top: 0 !important;
        padding-bottom: calc(10rem + var(--safe-area-bottom)) !important;
    }

    /* Bottom Safe Area (Home Indicator) */
    .main-footer {
        padding-bottom: calc(1rem + var(--safe-area-bottom)) !important;
    }

    /* Ensure modal/popups respect safe areas */
    .modal-dialog {
        margin-top: calc(1.75rem + var(--safe-area-top)) !important;
        margin-bottom: calc(1.75rem + var(--safe-area-bottom)) !important;
    }
}

/* Fallback for when env(safe-area-inset-top) is 0 but we know we are in the native app */
/* This class is added by js/mobile-navigation.js */
body.is-native-app .main-header.navbar {
    padding-top: max(var(--safe-area-top), 10px) !important;
    min-height: calc(3.5rem + max(var(--safe-area-top), 10px)) !important;
}

body.is-native-app .main-sidebar .brand-link {
    padding-top: max(var(--safe-area-top), 10px) !important;
}

/* Native/PWA App Bottom Safe Area Fixes */
body.is-native-app .sidebar .nav-sidebar {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
}

body.is-android-app .sidebar .nav-sidebar {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

body.is-android-app .main-footer {
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px)) !important;
}

/* --- GLOBAL MODAL OVERRIDES --- */
.modal-content {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8) !important;
    border-radius: 12px !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.modal-backdrop.show {
    opacity: 0.8 !important;
    backdrop-filter: blur(4px);
}

/* Fix for standard Bootstrap close button colors */
.modal .close {
    color: #fff !important;
    text-shadow: none !important;
    opacity: 0.8;
}

.modal .close:hover {
    opacity: 1;
    color: var(--gamer-cyan) !important;
}

/* --- TABS OVERRIDES --- */
.nav-tabs {
    border-bottom: 2px solid var(--gamer-border) !important;
}

.nav-tabs .nav-link {
    color: var(--gamer-text-muted) !important;
    border: none !important;
    background: transparent !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.nav-tabs .nav-link:hover {
    color: var(--gamer-cyan) !important;
    background: rgba(6, 182, 212, 0.05) !important;
}

.nav-tabs .nav-link.active {
    color: var(--gamer-cyan) !important;
    background: rgba(6, 182, 212, 0.1) !important;
    border-bottom: 3px solid var(--gamer-cyan) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* --- ALERT & CALLOUT OVERRIDES --- */
.alert,
.callout {
    background-color: rgba(30, 41, 59, 0.6) !important;
    border-left-width: 4px !important;
    color: var(--gamer-text) !important;
    border-radius: 8px !important;
}

.alert-info,
.callout-info {
    border-color: var(--gamer-cyan) !important;
    background-color: rgba(6, 182, 212, 0.1) !important;
}

.alert-success,
.callout-success {
    border-color: var(--gamer-green) !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.alert-warning,
.callout-warning {
    border-color: var(--gamer-yellow) !important;
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.alert-danger,
.callout-danger {
    border-color: var(--gamer-red) !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.alert-secondary,
.callout-secondary {
    border-color: var(--gamer-text-muted) !important;
    background-color: rgba(148, 163, 184, 0.1) !important;
}

/* Table Dark Tweak */
.table td,
.table th {
    border-top: 1px solid var(--gamer-border) !important;
    vertical-align: middle !important;
}

.table.table-bordered {
    border: 1px solid var(--gamer-border) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(6, 182, 212, 0.05) !important;
}

/* --- MERCATO OPTIMIZATION STYLES --- */

.gamer-page-header,
.mercato-header {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border-bottom: 2px solid var(--gamer-cyan);
    padding: 10px 15px;
    margin-bottom: 1rem;
    border-radius: 0.75rem 0.75rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sur mobile, ce bandeau coloré n'est pas nécessaire (même traitement que "Mon équipe") */
@media (max-width: 576px) {

    .gamer-page-header,
    .mercato-header {
        background: none;
        border-bottom: none;
        box-shadow: none;
        padding-left: 0;
        padding-right: 0;
    }
}

.gamer-page-header-title,
.mercato-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gamer-page-back-arrow,
.mercato-back-arrow {
    color: var(--gamer-yellow);
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.gamer-page-back-arrow:hover,
.mercato-back-arrow:hover {
    transform: translateX(-3px);
}

.gamer-page-title-text,
.mercato-title-text {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin: 0;
}

.gamer-page-header-actions,
.mercato-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gamer-page-action-btn,
.mercato-action-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gamer-border);
    color: var(--gamer-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.gamer-page-action-btn:hover,
.mercato-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--gamer-cyan);
}

.gamer-page-action-btn.active,
.mercato-action-btn.active {
    color: var(--gamer-cyan);
    border-color: var(--gamer-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Compact Buttons */
.btn-mercato-square {
    width: 54px;
    height: 54px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.65rem;
    gap: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gamer-border);
    color: var(--gamer-text-muted) !important;
    transition: all 0.2s;
}

.btn-mercato-square:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border-color: var(--gamer-cyan);
    transform: translateY(-2px);
}

.btn-mercato-square.active {
    background: linear-gradient(135deg, var(--gamer-cyan), var(--gamer-purple)) !important;
    color: white !important;
    border: none;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-mercato-square i {
    font-size: 1.1rem;
}

.mercato-tabs-container {
    display: flex;
    gap: 10px;
    padding: 10px 10px 15px 10px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}

.mercato-tabs-container::-webkit-scrollbar {
    display: none;
}

/* Filter Modal */
.filter-modal .modal-content {
    background: var(--gamer-bg) !important;
    border: 1px solid var(--gamer-cyan) !important;
    border-radius: 1rem !important;
}

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

.filter-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gamer-cyan);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gamer-border);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.filter-option.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--gamer-cyan);
    color: var(--gamer-cyan);
}

.filter-option i {
    font-size: 1.2rem;
}

/* Toggle Switches */
.mercato-switch-group {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-top: 20px;
}

.mercato-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Info Modal */
.info-modal-section {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.info-modal-section.info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.info-modal-section.advice {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Direct Mercato Highlight */
.nav-link.direct-mercato {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--gamer-yellow) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.nav-link.direct-mercato:hover {
    background: rgba(245, 158, 11, 0.2) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3) !important;
}

.nav-link.direct-mercato.active {
    background: var(--gamer-yellow) !important;
    color: #000 !important;
}

/* Optimisation taille filtres mercato sur mobile */
@media (max-width: 576px) {

    .btn-filter-trigger,
    #dropdownSort,
    #dropdownSortAchat {
        padding-top: 0.45rem !important;
        padding-bottom: 0.45rem !important;
        font-size: 0.8rem !important;
    }
}

/* --- HELP POPUP SYSTEM --- */
#help-trigger-btn:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.swal2-popup.gamer-help-popup {
    background: #070d19 !important;
    /* Midnight dark blue */
    border: 2px solid #0f2b5c !important;
    /* Sleek steel blue frame */
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.8) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
}

.gamer-help-popup .swal2-title {
    text-align: left !important;
    width: 100%;
    margin: 0 0 1.25rem 0 !important;
    padding: 0 0 0.75rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 1.25rem !important;
}

.help-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
    color: #fff;
    width: 100%;
}

.help-modal-title i {
    color: #38bdf8;
    /* Glowing light cyan info icon */
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.help-modal-title-text {
    font-family: 'Source Sans Pro', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.help-modal-title-text span.white-text {
    color: #ffffff;
}

.help-modal-title-text span.cyan-text {
    color: #38bdf8;
}

/* Custom Close Button for Swal */
.gamer-help-popup .swal2-close {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.5rem !important;
    transition: all 0.2s !important;
    outline: none !important;
    box-shadow: none !important;
    font-weight: 300 !important;
}

.gamer-help-popup .swal2-close:hover {
    color: #ef4444 !important;
    transform: rotate(90deg);
}

.gamer-help-popup-custom {
    text-align: left;
    margin-top: 1rem;
}

.help-content-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .help-content-container {
        grid-template-columns: 1fr;
    }
}

.help-left-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.help-coach-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.help-coach-title span {
    color: #38bdf8;
}

.help-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.help-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #94a3b8;
}

.help-bullet-item i {
    color: #38bdf8;
    font-size: 1rem;
    margin-top: 3px;
    width: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.help-bullet-item span.highlight {
    color: #38bdf8;
    font-weight: 600;
}

.help-highlight-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 0.5rem;
}

.help-highlight-box i {
    color: #38bdf8;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.help-highlight-box span {
    color: #38bdf8;
    font-weight: bold;
}

.help-right-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-image-box {
    border-radius: 12px;
    border: 2px solid #0f2b5c;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
    overflow: hidden;
    background: #020617;
    transition: transform 0.3s;
}

.help-image-box:hover {
    transform: scale(1.02);
    border-color: #38bdf8;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.4);
}

.help-image-box img {
    max-width: 100%;
    height: auto;
    display: block;
}

.help-discord-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid #0f2b5c;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.help-discord-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}

@media (max-width: 576px) {
    .help-discord-grid {
        grid-template-columns: 1fr;
    }
}

.help-discord-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.help-discord-item i {
    font-size: 1.1rem;
    color: #38bdf8;
    /* Consistent cyan matching the mockup */
    width: 24px;
    text-align: center;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.help-discord-badge {
    background: #5865F2;
    color: #fff !important;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
    border: none;
    margin-left: 5px;
}

.help-discord-badge:hover {
    transform: scale(1.05);
    background: #4752C4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
}

/* Smartphone & Mobile Adaptations for Help Popup */
@media (max-width: 768px) {
    .swal2-popup.gamer-help-popup {
        padding: 1rem !important;
        border-radius: 12px !important;
        max-width: 95% !important;
    }

    .gamer-help-popup .swal2-title {
        font-size: 1.15rem !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .help-coach-title {
        font-size: 1.3rem !important;
        margin-bottom: 0.75rem !important;
        text-align: center;
    }

    .help-content-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .help-left-col {
        order: 1;
    }

    .help-right-col {
        order: 2;
        margin: 0.5rem 0;
    }

    .help-image-box {
        max-width: 250px;
        margin: 0 auto;
    }

    .help-bullet-list {
        gap: 0.6rem !important;
        margin-bottom: 1rem !important;
    }

    .help-bullet-item {
        font-size: 0.85rem !important;
    }

    .help-bullet-item i {
        font-size: 0.9rem !important;
        margin-top: 2px !important;
    }

    .help-highlight-box {
        font-size: 0.85rem !important;
        padding-top: 0.5rem !important;
    }

    .help-discord-section {
        padding: 0.85rem !important;
        border-radius: 10px !important;
    }

    .help-discord-grid {
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
    }

    .help-discord-item {
        font-size: 0.82rem !important;
    }
}

/* Custom Discord Button for Home Help Modal */
.help-discord-btn {
    background: #007cff;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 124, 255, 0.4);
    cursor: pointer;
}

.help-discord-btn:hover {
    background: #0066d6;
    box-shadow: 0 6px 20px rgba(0, 124, 255, 0.6);
    transform: translateY(-2px);
}

.help-discord-btn:active {
    transform: translateY(0);
}

.help-discord-btn i {
    font-size: 1.25rem;
}

/* ==========================================================================
   SYSTEME D'AFFICHAGE DYNAMIQUE DU CLUB (LOGO & MAILLOT)
   ========================================================================== */
.club-display-showcase {
    position: relative;
    width: 100%;
    max-width: 220px;
    height: 140px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    user-select: none;
}

.club-display-showcase:hover {
    transform: scale(1.05);
}

/* Lueur globale en arrière-plan */
.club-display-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

/* Vues individuelles */
.display-mode-view {
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Sélection du mode via data-mode */
.club-display-showcase[data-mode="1"] .mode-logo-jersey {
    display: flex;
}

.club-display-showcase[data-mode="2"] .mode-logo-only {
    display: flex;
}

.club-display-showcase[data-mode="3"] .mode-jersey-only {
    display: flex;
}

/* Styles Mode 1: Logo + Maillot réduit */
.mini-logo-img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.2s;
}

.mini-jersey-img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s;
}

.display-separator {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    margin: 0 10px;
    align-self: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Styles Mode 2: Logo seul principal */
.main-logo-img {
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
}

/* Styles Mode 3: Maillot seul principal */
.main-jersey-img {
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

/* Boutons d'édition sur hover */
.club-display-showcase .jersey-edit-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 11px;
}

.club-display-showcase:hover .jersey-edit-icon {
    opacity: 1;
}

.club-display-showcase .jersey-edit-icon:hover {
    background: var(--gamer-cyan);
    color: #000;
    border-color: var(--gamer-cyan);
    transform: scale(1.1);
}

/* Bouton raccourci de personnalisation dans le header */
.gamer-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.gamer-header-btn:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--gamer-cyan);
    color: var(--gamer-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
    transform: scale(1.05);
}

.gamer-header-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   AFFICHAGE DYNAMIQUE FICHE EQUIPE (LOGO & MAILLOT - 2 VUES)
   ========================================================================== */
.team-profile-display-showcase {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    user-select: none;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.team-profile-display-showcase:hover {
    transform: scale(1.05);
}

.team-profile-display-showcase[data-mode="1"] .mode-logo-only {
    display: flex;
}

.team-profile-display-showcase[data-mode="2"] .mode-jersey-only {
    display: flex;
}

.profile-logo-img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

.profile-jersey-img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

/* ==========================================================================
   BANDEAU DE MATCH (FEUILLE DE MATCH) - LOGOS ET NOMS RÉDUITS
   ========================================================================== */
.match-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
}

.match-team-name {
    font-size: 1.15rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0.25rem 0;
}

.match-team-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.match-team-name a:hover {
    color: var(--gamer-cyan);
}

.match-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0.5rem 0;
    width: 100%;
}

.match-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.match-logo:hover {
    transform: scale(1.05);
}

.match-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.match-score-value {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    min-width: 100px;
    text-align: center;
}

/* Lightbox pour l'ouverture en grand des logos et maillots */
.gamer-lightbox-popup {
    border: 2px solid var(--gamer-cyan) !important;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.45) !important;
    border-radius: 16px !important;
    background: #0f172a !important;
}

.gamer-lightbox-image {
    max-width: 90% !important;
    height: auto !important;
    max-height: 60vh !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin: 1rem auto !important;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)) !important;
}

.gamer-lightbox-popup .swal2-close {
    color: #94a3b8 !important;
    outline: none !important;
    box-shadow: none !important;
}

.gamer-lightbox-popup .swal2-close:hover {
    color: var(--gamer-red) !important;
}

/* ==========================================================================
   BOTTOM NAVIGATION (MOBILE)
   ========================================================================== */
.bottom-nav-mobile {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--gamer-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    /* Clears the OS home indicator (iOS) / gesture or button bar (Android) so the nav is never covered.
       max() (not sum) so a device that reports a real env() inset doesn't also get the hardcoded
       Android fallback added on top — that double-count left an empty gap below the bar. */
    padding-bottom: max(var(--bottom-nav-safe-extra, 0px), var(--safe-area-bottom, 0px));
}

.bottom-nav-mobile .bottom-nav-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 58px;
}

.bottom-nav-mobile .bottom-nav-list li {
    flex: 1 1 0;
    display: flex;
}

.bottom-nav-mobile .bottom-nav-item {
    flex: 1 1 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--gamer-text-muted);
    text-decoration: none !important;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.bottom-nav-mobile .bottom-nav-item i {
    font-size: 1.15rem;
}

.bottom-nav-mobile .bottom-nav-item.active {
    color: var(--gamer-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.bottom-nav-mobile .bottom-nav-item.active i {
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.6));
}

@media (max-width: 768px) {
    .bottom-nav-mobile {
        display: block;
    }

    .content-wrapper {
        padding-bottom: calc(58px + max(var(--bottom-nav-safe-extra, 0px), var(--safe-area-bottom, 0px))) !important;
    }

    .main-footer {
        display: none !important;
    }

    /* La bottom-nav (z-index 1060) recouvrait le bas du menu latéral ouvert
       (z-index 1050) : on passe le menu au-dessus quand il est ouvert et on
       réserve la hauteur de la barre dans la zone de défilement pour que le
       dernier item reste atteignable. */
    body.sidebar-open .main-sidebar {
        z-index: 1070 !important;
    }

    .sidebar {
        padding-bottom: calc(58px + max(var(--bottom-nav-safe-extra, 0px), var(--safe-area-bottom, 0px)) + 2rem) !important;
    }

    /* Le bouton "Installer" PWA (js/pwa-install.js) est positionné en inline
       style (bottom: 20px), ce qui le fait atterrir sur la bottom-nav. */
    #pwa-install-btn {
        bottom: calc(58px + 20px + max(var(--bottom-nav-safe-extra, 0px), var(--safe-area-bottom, 0px))) !important;
    }
}

/* Android's WebView usually reports 0 for env(safe-area-inset-bottom) even with an on-screen
   gesture/button nav bar, so this fixed bar needs its own hardcoded clearance (same reasoning
   already applied to .main-footer / .sidebar above for body.is-android-app). */
body.is-android-app {
    --bottom-nav-safe-extra: 24px;
}

/* Logos miniatures dans le tableau des statistiques */
.stats-table-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.stats-table-logo:hover {
    transform: scale(1.1);
}

.stats-table-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Optimisation de l'espace sur mobile pour le header */
@media (max-width: 576px) {
    .main-header .navbar-nav .nav-link {
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
    .main-header .navbar-nav .badge {
        padding: 0.3em 0.5em !important;
        font-size: 85% !important;
    }
}

/* Différenciation des 3 cadres principaux du Tableau de Bord */

/* 1. Cadre OBJECTIFS DU JOUR (Thématique Or/Orange) */
.card-objectifs {
    border-left: 4px solid var(--fl-gold, #f59e0b) !important;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 50%), var(--gamer-card-bg) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 10px rgba(245, 158, 11, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.card-objectifs:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(245, 158, 11, 0.08) !important;
}
.card-objectifs .gamer-title {
    color: var(--fl-gold, #f59e0b) !important;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}
.card-objectifs .objective-item {
    border-left: 2px solid rgba(245, 158, 11, 0.2) !important;
    padding-left: 10px !important;
}
.card-objectifs .objective-item.completed {
    border-left-color: var(--gamer-green) !important;
}

/* 2. Cadre ENTRAÎNEMENTS (Thématique Cyan/Sport) */
.card-entrainements {
    border-left: 4px solid var(--fl-primary, #06b6d4) !important;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 50%), var(--gamer-card-bg) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 10px rgba(6, 182, 212, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.card-entrainements:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(6, 182, 212, 0.08) !important;
}
.card-entrainements .gamer-title {
    color: var(--fl-primary, #06b6d4) !important;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

/* Style de Timeline pour la liste d'entraînements */
.training-timeline {
    position: relative;
    list-style: none;
    padding: 0 0 0 20px !important;
    margin: 0;
}
.training-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 7px;
    width: 2px;
    background: rgba(6, 182, 212, 0.15);
}
.training-timeline-item {
    position: relative;
    margin-bottom: 12px;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.training-timeline-item::before {
    content: '';
    position: absolute;
    top: 14px;
    left: -17px;
    width: 10px;
    height: 10px;
    background: var(--gamer-card-bg);
    border: 2px solid var(--fl-primary, #06b6d4);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 5px rgba(6, 182, 212, 0.5);
}
.training-timeline-item.active-now::before {
    background: var(--fl-primary, #06b6d4);
    animation: pulse-glow 1.5s infinite alternate;
}
@keyframes pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 4px var(--fl-primary, #06b6d4); }
    100% { transform: scale(1.3); box-shadow: 0 0 10px var(--fl-primary, #06b6d4); }
}

/* 3. Cadre INFRASTRUCTURES (Thématique Violet/Prestige) */
.card-infrastructures {
    border-left: 4px solid var(--fl-primary, #6366f1) !important;
    background: radial-gradient(circle at top right, rgba(14, 147, 175, 0.08), transparent 50%), var(--gamer-card-bg) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 10px rgba(14, 147, 175, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.card-infrastructures:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(14, 147, 175, 0.08) !important;
}
.card-infrastructures .gamer-title {
    color: var(--fl-primary-text, #818cf8) !important;
    text-shadow: 0 0 8px rgba(14, 147, 175, 0.2);
}
.card-infrastructures .infra-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
}
.card-infrastructures .infra-card:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 147, 175, 0.3) !important;
    background: rgba(14, 147, 175, 0.04) !important;
}
.card-infrastructures .infra-card.active {
    border-color: rgba(14, 147, 175, 0.2) !important;
}

/* 4. Cadre FINANCES (Thématique Verte) */
.card-finances {
    border-left: 4px solid var(--gamer-green) !important;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 50%), var(--gamer-card-bg) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 10px rgba(16, 185, 129, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.card-finances:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(16, 185, 129, 0.08) !important;
}
.card-finances .gamer-title {
    color: var(--gamer-green) !important;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}


/* Styles pour le SVG Stade réutilisable */
.infra-icon svg {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    --stadium-bg: #151e2b; /* Assorti à la couleur de fond de la tuile active du tableau de bord */
}

.nav-link svg.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
    --stadium-bg: #343a40; /* Assorti au fond de la sidebar latérale d'AdminLTE */
}

.nav-link.active svg.nav-icon {
    --stadium-bg: #3f474e; /* Fond de la sidebar quand active */
}

/* Masquer l'espace pub s'il est vide pour éviter un grand espace vide en bas de la page */
.large_pub:empty {
    height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Responsive Boutique Illustration */
.boutique-illu {
    max-height: 180px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .boutique-illu {
        max-height: 120px !important;
    }
    
    /* Clearance for PWA Installer button in dashboard pages on mobile */
    .dashboard-gamer {
        padding-bottom: 95px !important;
    }
}

/* Stadium Responsive Stat Cards */
.stade-stat-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.stade-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--gamer-cyan) !important;
}