/* --- INICIO DEL ARCHIVO style.css (VERSIÓN FINAL CORREGIDA PARA MÓVILES) --- */

/* --- THE BLITZ - NEON STORM THEME --- */

:root {
    /* Primary Palette */
    --neon-cyan: #0A84FF;
    --neon-magenta: #D4A843;
    --neon-yellow: #FFD700;
    --electric-blue: #0066ff;

    /* Compatibilidad */
    --primary-color: var(--neon-cyan);
    --winner-color: var(--neon-yellow);

    /* Backgrounds */
    --background-color: #06060e;
    --bg-deep: #06060e;
    --surface-color: rgba(12, 12, 24, 0.75);
    --bg-surface: rgba(12, 12, 24, 0.75);
    --bg-card: rgba(16, 16, 32, 0.85);

    /* Texto */
    --text-color: #EAEAF0;
    --text-light: #EAEAF0;
    --text-secondary: #8A8A9A;
    --text-accent: var(--neon-cyan);

    /* Bordes */
    --border-color: rgba(255, 255, 255, 0.08);

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0A84FF 0%, #0066ff 100%);
    --gradient-accent: linear-gradient(135deg, #D4A843 0%, #B8892A 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #D4A843 100%);

    /* Efectos Glow */
    --glow-color: rgba(10, 132, 255, 0.5);
    --glow-cyan: 0 0 20px rgba(10, 132, 255, 0.6), 0 0 40px rgba(10, 132, 255, 0.3);
    --glow-magenta: 0 0 20px rgba(212, 168, 67, 0.6), 0 0 40px rgba(212, 168, 67, 0.3);
    --glow-multi: 0 0 30px rgba(10, 132, 255, 0.4), 0 0 60px rgba(212, 168, 67, 0.2);

    /* Tipografía */
    --font-bebas: 'Bebas Neue', sans-serif;
    --font-roboto: 'Inter', sans-serif;
    --font-heading: 'Bebas Neue', 'Oswald', sans-serif;
    --font-body: 'Inter', 'Roboto', sans-serif;
}

@keyframes neon-glow {
    from {
        box-shadow: 0 0 5px var(--glow-color), 0 0 10px var(--glow-color);
    }

    to {
        box-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
    }
}

@keyframes animate-top-bottom {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

@keyframes animate-left-right {
    0% {
        transform: scaleY(0);
    }

    100% {
        transform: scaleY(1);
    }
}


body {
    background-color: #06060e;
    color: var(--text-color);
    font-family: 'Inter', var(--font-body);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

.hidden {
    display: none !important;
}

#app-container,
#draft-container {
    display: none;
    flex-direction: column;
    height: calc(100vh - 40px);
    position: relative;
    z-index: 1;
}

body.draft-view-style #draft-container,
body:not(.draft-view-style) #app-container {
    display: flex;
}


header {
    text-align: center;
    padding: 10px 0 12px 0;
    position: relative;
    margin-bottom: 20px;
    flex-shrink: 0;
    z-index: 100;

    /* Glassmorphism Background */
    background: linear-gradient(to bottom,
            rgba(6, 6, 14, 0.9) 0%,
            rgba(12, 12, 24, 0.75) 100%);
    backdrop-filter: blur(20px) saturate(180%);

    /* Border gradient */
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg,
            transparent 0%,
            var(--neon-cyan) 50%,
            transparent 100%);
    border-image-slice: 1;
}

@keyframes borderFlow {
    0% {
        border-image: linear-gradient(90deg,
                transparent 0%,
                var(--neon-cyan) 25%,
                var(--neon-magenta) 50%,
                var(--neon-cyan) 75%,
                transparent 100%);
        border-image-slice: 1;
    }

    50% {
        border-image: linear-gradient(90deg,
                transparent 0%,
                var(--neon-magenta) 25%,
                var(--neon-cyan) 50%,
                var(--neon-magenta) 75%,
                transparent 100%);
        border-image-slice: 1;
    }

    100% {
        border-image: linear-gradient(90deg,
                transparent 0%,
                var(--neon-cyan) 25%,
                var(--neon-magenta) 50%,
                var(--neon-cyan) 75%,
                transparent 100%);
        border-image-slice: 1;
    }
}

/* Glow Effect debajo del border */
header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    filter: blur(8px);
    opacity: 0.6;
}

.header-content {
    display: grid;
    grid-template-columns: 170px 1fr 170px;
    grid-template-areas: "back main lang";
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

#draft-container .header-content {
    grid-template-areas: "back main session";
}

.back-btn {
    grid-area: back;
    justify-self: start;
}

.header-text {
    grid-area: main;
    text-align: center;
}

.draft-header-session {
    grid-area: session;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.lang-selector {
    grid-area: lang;
    justify-self: end;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: 150;
}

/* Arreglo móvil - evitar texto vertical */
/* Arreglo móvil - GRID DE 2 NIVELES */
@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "back lang"
            "main main";
        gap: 10px;
        padding: 12px 10px;
    }

    #draft-container .header-content {
        grid-template-areas:
            "back session"
            "main main";
    }

    .back-btn {
        font-size: 0.8em;
        padding: 6px 10px;
    }

    .lang-selector {
        grid-area: lang;
        justify-self: end;
    }

    .draft-header-session {
        grid-area: session;
        justify-self: end;
        align-items: flex-end;
    }

    .header-text {
        grid-area: main;
        text-align: center;
        width: 100%;
        margin-top: 5px;
    }

    .header-text h1 {
        font-size: 1.5em !important;
        white-space: normal;
        line-height: 1.2;
    }

    .header-text p {
        font-size: 0.8em;
        white-space: normal;
        margin-top: 4px;
        display: block;
    }

    .status-line-draftview {
        font-size: 0.8em;
    }
}

/* Botón Volver al Dashboard */
.back-btn {
    display: inline-block;
    background: rgba(0, 246, 255, 0.08);
    border: 1.5px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-roboto);
    font-weight: bold;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.back-btn:hover {
    background: rgba(0, 246, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 14px rgba(0, 246, 255, 0.5);
    transform: translateX(-2px);
}

/* Selector de idioma en header */
.lang-selector {
    position: relative;
    display: flex;
    gap: 8px;
    z-index: 150;
}

/* Botones de sesión en el header del draft visualizador */
#draft-container .auth-btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    font-family: var(--font-roboto);
    font-weight: bold;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1.5px solid transparent;
}

#draft-container .auth-btn.login {
    background: rgba(0, 246, 255, 0.08);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

#draft-container .auth-btn.login:hover {
    background: rgba(0, 246, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 246, 255, 0.4);
}

#draft-container .auth-btn.logout {
    background: rgba(255, 0, 229, 0.08);
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
}

#draft-container .auth-btn.logout:hover {
    background: rgba(255, 0, 229, 0.2);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 0, 229, 0.4);
}

#draft-container #user-greeting {
    font-size: 0.8em;
    color: var(--text-secondary);
    display: block;
    text-align: right;
    margin-bottom: 4px;
}

.lang-btn {
    background-color: rgba(255, 156, 0, 0.15);
    border: 2px solid rgba(255, 156, 0, 0.4);
    color: #c5c5c5;
    /* Mejorado de #aaa - WCAG AA */
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-roboto);
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: rgba(255, 156, 0, 0.3);
    border-color: var(--primary-color);
    color: var(--text-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px var(--glow-color);
}

.header-logo {
    height: 110px;
    width: auto;
}

.header-text {
    text-align: left;
}

header h1 {
    font-family: 'Exo 2', var(--font-heading);
    font-size: 3.2em;
    font-weight: 900;
    color: var(--neon-cyan);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow:
        0 0 10px rgba(0, 246, 255, 0.8),
        0 0 20px rgba(0, 246, 255, 0.6),
        0 0 30px rgba(0, 246, 255, 0.4),
        0 0 40px rgba(0, 246, 255, 0.2);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow:
            0 0 10px rgba(0, 246, 255, 0.8),
            0 0 20px rgba(0, 246, 255, 0.6),
            0 0 30px rgba(0, 246, 255, 0.4);
    }

    100% {
        text-shadow:
            0 0 20px rgba(0, 246, 255, 1),
            0 0 30px rgba(0, 246, 255, 0.8),
            0 0 40px rgba(0, 246, 255, 0.6),
            0 0 50px rgba(0, 246, 255, 0.4);
    }
}

header p {
    font-size: 1.1em;
    font-family: 'Rajdhani', var(--font-body);
    color: var(--text-secondary);
    margin: 5px 0 0 0;
    letter-spacing: 1px;
}

/* Banner de torneo finalizado */
.finished-tournament-banner {
    background: linear-gradient(135deg, rgba(0, 246, 255, 0.2) 0%, rgba(0, 246, 255, 0.05) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0, 246, 255, 0.3);
}

.finished-tournament-banner h2 {
    font-family: var(--font-bebas);
    font-size: 2.5em;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px var(--glow-color);
}

.finished-tournament-banner h3 {
    font-family: var(--font-bebas);
    font-size: 2em;
    color: var(--neon-cyan);
    margin: 15px 0 0 0;
    text-shadow: 0 0 10px rgba(0, 246, 255, 0.6);
}

.finished-tournament-banner p {
    color: #ccc;
    font-size: 1.1em;
    margin: 5px 0;
}

#last-pick-banner {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 1.1em;
    margin: 10px auto 0 auto;
    max-width: 500px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

#last-pick-banner.visible {
    opacity: 1;
    pointer-events: auto;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #101010;
    border-top: 2px solid var(--primary-color);
    padding: 8px;
    text-align: center;
    font-family: var(--font-bebas);
    font-size: 1.2em;
    color: #aaa;
    box-shadow: 0 0 10px var(--glow-color);
    z-index: 100;
}

.placeholder {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f1f1f;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #33f7ff;
}

.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    flex-grow: 1;
    overflow: hidden;
    height: calc(100% - 150px);
}

.animated-border {
    position: relative;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    padding: 20px;
}

.animated-border .border-line {
    position: absolute;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--glow-color);
}

.animated-border .border-line.top {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform-origin: left;
    animation: animate-top-bottom 3s ease-in-out infinite alternate;
    animation-delay: 0s;
}

.animated-border .border-line.right {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    transform-origin: top;
    animation: animate-left-right 3s ease-in-out infinite alternate;
    animation-delay: 1.5s;
}

.animated-border .border-line.bottom {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    transform-origin: right;
    animation: animate-top-bottom 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

.animated-border .border-line.left {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100%;
    transform-origin: bottom;
    animation: animate-left-right 3s ease-in-out infinite alternate;
    animation-delay: 4.5s;
}


main#main-panel,
aside#live-match-sidebar {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#main-view-content,
#live-matches-list,
#team-list-container,
#groups-container,
#calendar-container,
#bracket-container {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 10px;
}

.view-pane h2,
aside h2 {
    font-family: var(--font-bebas);
    font-size: 2.2em;
    color: var(--text-color);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.view-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.view-btn {
    font-family: var(--font-bebas);
    font-size: 1.5em;
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    color: #888;
    cursor: pointer;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 3px solid transparent;
}

.view-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.view-pane {
    display: none;
}

.view-pane.active {
    display: block;
}

/* === ESTILOS UNIFICADOS PARA LOGOS === */
.team-logo-small,
.team-logo-large,
.bracket-team-logo {
    object-fit: contain;
    flex-shrink: 0;
}

.team-logo-small {
    width: 36px;
    height: 36px;
}

.team-logo-large {
    width: 50px;
    height: 50px;
}

.bracket-team-logo {
    width: 36px;
    height: 36px;
}

.team-logo-placeholder,
.bracket-team-logo-placeholder {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px dashed var(--border-color);
    border-radius: 50%;
}

/* === CLASIFICACIÓN CON LOGOS === */
.group-container {
    margin-bottom: 40px;
}

.group-title {
    font-family: var(--font-bebas);
    font-size: 2em;
    color: var(--primary-color);
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.team-stat-card {
    background: linear-gradient(145deg, #1f1f1f, #101010);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 10px;
}

.team-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.team-info-classification {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.team-position {
    font-family: var(--font-bebas);
    font-size: 1.8em;
    color: #666;
    width: 30px;
    text-align: center;
}

.team-name-classification {
    font-weight: bold;
    font-size: 1.1em;
}

/* Encabezados de tabla de clasificación */
.classification-table-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(255, 156, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    font-family: var(--font-bebas);
    font-size: 1.1em;
    color: var(--primary-color);
    text-transform: uppercase;
}

.header-team-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-pos {
    width: 30px;
    text-align: center;
}

.header-team-name {
    flex-grow: 1;
}

.header-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    text-align: center;
}

.header-stats-grid.with-bh {
    grid-template-columns: repeat(6, 1fr);
}

.header-stat {
    width: 40px;
    text-align: center;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    text-align: center;
}

.team-stats-grid.with-bh {
    grid-template-columns: repeat(6, 1fr);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.stat-value {
    font-family: var(--font-bebas);
    font-size: 1.5em;
    font-weight: bold;
}

.stat-label {
    font-size: 0.8em;
    color: #a8a8a8;
    /* Mejorado de #888 - WCAG AA */
    text-transform: uppercase;
}

/* === CALENDARIO CON LOGOS === */
.calendar-group h3,
.calendar-round h4 {
    font-family: var(--font-bebas);
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.calendar-round {
    margin-bottom: 25px;
}

.calendar-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

.calendar-match .team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-size: 1.2em;
    font-weight: bold;
}

.calendar-match .left {
    justify-content: flex-end;
}

.calendar-match .right {
    justify-content: flex-start;
}

.match-vs,
.match-result {
    font-family: var(--font-bebas);
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 0 20px;
    text-align: center;
    flex-shrink: 0;
    min-width: 60px;
}

/* === BRACKET CON LOGOS GRANDES === */
#bracket-container {
    display: flex;
    gap: 60px;
    overflow-x: auto;
    padding: 20px;
    align-items: stretch;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex-shrink: 0;
    width: 280px;
}

.bracket-round-title {
    font-family: var(--font-bebas);
    font-size: 2em;
    text-align: center;
    color: var(--text-color);
    text-transform: capitalize;
    margin-bottom: 30px;
}

.bracket-match {
    background-color: var(--surface-color);
    border-radius: 5px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.bracket-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    font-size: 1.1em;
    border-bottom: 1px solid #3a3a3a;
    gap: 10px;
}

.bracket-team:last-child {
    border-bottom: none;
}

.bracket-team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    overflow: hidden;
}

.bracket-team-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bracket-team .score {
    font-family: var(--font-bebas);
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.bracket-match.winner-top .bracket-team:first-child .bracket-team-info span,
.bracket-match.winner-bottom .bracket-team:last-child .bracket-team-info span {
    color: var(--winner-color);
    font-weight: bold;
}

/* === EQUIPOS CON LOGOS GRANDES === */
.team-card-info {
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.team-card-info.is-draft-team {
    cursor: pointer;
}

.team-card-info h3 {
    font-family: var(--font-bebas);
    font-size: 1.8em;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-meta span {
    color: #c5c5c5;
    /* Mejorado de #aaa - WCAG AA */
    margin-right: 20px;
}

.team-meta span::before {
    content: '👑 ';
    color: var(--primary-color);
}

.team-meta span+span::before {
    content: '🤝 ';
}

.team-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.team-link-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--primary-color);
    transition: background-color 0.2s, color 0.2s;
    text-transform: uppercase;
}

.team-link-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* === PARTIDOS EN DIRECTO === */
#live-match-sidebar {
    background-color: rgba(10, 10, 10, 0.9);
}

.live-match-group h4 {
    font-family: var(--font-bebas);
    color: var(--primary-color);
    font-size: 1.5em;
}

.live-match-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-color);
}

.live-match-teams {
    font-weight: bold;
    margin-bottom: 10px;
}

.stream-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* === ORDEN DE PICK DEL DRAFT === */
#round-pick-order {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    margin-top: 15px;
}

.pick-order-item {
    background-color: #333;
    color: #aaa;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.pick-order-item.past-pick {
    background-color: #222;
    color: #666;
    text-decoration: line-through;
}

.pick-order-item.active-pick {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.pick-order-item span {
    font-weight: bold;
    margin-right: 5px;
}

/* === DRAFT VIEW === */
.content-grid-draftview {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    flex-grow: 1;
    overflow: hidden;
}

#teams-container-draftview,
#available-players-container-draftview {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.team-card-draftview {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.team-card-draftview:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.team-card-draftview h3 {
    font-family: var(--font-bebas);
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 0 0 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.team-card-draftview .captain-name {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 10px;
    font-style: italic;
}

.team-roster-compact {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.team-roster-compact li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1em;
}

.team-roster-compact li:last-child {
    border-bottom: none;
}

.pos-badge {
    background-color: rgba(255, 156, 0, 0.2);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.players-table-container,
#teams-grid {
    overflow-y: auto;
    flex-grow: 1;
}

.draft-view-switcher {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-bottom: 20px;
}

.draft-view-btn {
    font-family: var(--font-bebas);
    font-size: 1.6em;
    padding: 10px 25px;
    border: 1px solid #631215;
    background-color: transparent;
    color: #a12327;
    cursor: pointer;
    transition: all 0.2s;
}

.draft-view-btn:hover {
    color: #e62429;
    border-color: #e62429;
}

.draft-view-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.team-card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 15px;
}

.team-header {
    font-family: var(--font-bebas);
    font-size: 1.4em;
    color: var(--primary-color);
    border-bottom: 1px solid #555;
    padding-bottom: 8px;
    margin: 0 0 10px 0;
}

.team-roster {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}

.team-roster li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #3a3a3a;
}

.player-pos {
    color: #aaa;
}

#players-table {
    width: 100%;
    border-collapse: collapse;
}

#players-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

#players-table th {
    text-align: left;
    padding: 10px 8px;
    font-family: var(--font-bebas);
    font-size: 1.2em;
    color: var(--primary-color);
    background-color: #1a1a1a;
}

#players-table td {
    padding: 6px 8px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95em;
    vertical-align: middle;
}

.pick-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.pick-btn:hover {
    background-color: #27ae60;
}

.pick-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#pick-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#pick-alert.visible {
    opacity: 1;
}

#pick-alert-content {
    background-color: var(--surface-color);
    padding: 40px 60px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--winner-color);
    font-family: var(--font-bebas);
    animation: neon-glow 1.5s infinite alternate;
}

#pick-alert .pick-number {
    font-size: 2.5em;
    color: #ccc;
}

#pick-alert .player-name {
    font-size: 4em;
    color: var(--winner-color);
}

#pick-alert .team-name {
    font-size: 3em;
    color: #fff;
}

.draft-view-pane {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.draft-view-pane.active {
    display: flex;
}

#roster-management-container {
    overflow-y: auto;
    padding: 10px;
}

.player-management-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #444;
}

.player-management-info h3 {
    margin: 0 0 10px 0;
    color: var(--winner-color);
}

.player-management-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

.player-management-info .strikes {
    color: var(--primary-color);
    font-weight: bold;
}

.management-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.management-actions button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.management-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-strike {
    background-color: #f0ad4e;
    color: black;
}

.btn-kick {
    background-color: #d9534f;
    color: white;
}

#players-table.primary-only .col-secondary,
#players-table.primary-only th.col-secondary {
    display: none;
}

#players-table.secondary-only .col-primary,
#players-table.secondary-only th.col-primary {
    display: none;
}

#position-filters {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #333;
    border: 1px solid #555;
    color: #ccc;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

#filter-column-select {
    display: none;
}

/* Oculto por defecto, se maneja con botones */


/* --- RESPONSIVE --- */
.mobile-view-switcher {
    display: none;
}

@media (max-width: 900px) {
    body {
        padding: 10px;
        overflow-y: auto;
        min-height: 100vh;
    }

    #app-container,
    #draft-container {
        height: auto;
    }

    /* --- Corrección del Header --- */
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    header h1 {
        font-size: clamp(1.8em, 8vw, 2.5em);
        word-break: break-word;
    }

    header p {
        font-size: 1em;
        word-break: break-word;
        /* También para subtítulos */
    }

    .header-logo {
        height: 60px;
    }

    /* --- Corrección de Navegación --- */
    .view-switcher {
        display: none !important;
        /* Esconder la navegación de escritorio con más fuerza */
    }

    .mobile-view-switcher {
        display: block;
        margin: 15px 0;
    }

    #mobile-view-select {
        width: 100%;
        padding: 12px;
        background-color: var(--surface-color);
        color: var(--text-color);
        border: 1px solid var(--border-color);
        border-radius: 5px;
        font-size: 1.2em;
        font-family: var(--font-bebas);
        -webkit-appearance: none;
        appearance: none;
        background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e62429%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: .8em;
    }

    /* --- Corrección del Contenido Principal --- */
    .main-content,
    .content-grid-draftview {
        grid-template-columns: 1fr;
        height: auto;
    }

    main#main-panel {
        padding: 15px;
    }

    aside#live-match-sidebar,
    #teams-container-draftview {
        order: 2;
        margin-top: 20px;
    }

    #available-players-container-draftview {
        order: 1;
    }

    #teams-grid {
        grid-template-columns: 1fr;
    }

    /* --- Corrección del Footer --- */
    footer {
        position: static;
        margin-top: 20px;
    }

    /* --- Corrección para calendario y eliminatorias --- */
    .calendar-match {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .calendar-match .team-info {
        width: 100%;
        justify-content: center;
    }

    .calendar-match .team-info.left,
    .calendar-match .team-info.right {
        justify-content: center;
    }

    .bracket-round {
        width: 250px;
    }

    /* --- NUEVA CORRECCIÓN para tabla móvil con SCROLL HORIZONTAL --- */

    .players-table-container {
        /* La magia sucede aquí: habilitamos el scroll horizontal */
        overflow-x: auto;
        /* Un pequeño detalle visual para indicar que se puede hacer scroll */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #1f1f1f;
    }

    #players-table {
        /* Hacemos que la tabla ocupe un ancho mínimo, 
       forzando el scroll si la pantalla es más pequeña */
        min-width: 450px;
        width: 100%;
        border-collapse: collapse;
    }

    #players-table thead {
        /* Mantenemos las cabeceras visibles en la versión con scroll */
        display: table-header-group;
    }

    #players-table tr,
    #players-table td {
        /* Reseteamos los estilos de "bloque" para que se comporte como tabla */
        display: table-row;
        width: auto;
    }

    #players-table td {
        display: table-cell;
        /* Volvemos a la normalidad */
        padding: 8px 10px;
        border-top: 1px solid var(--border-color);
        font-size: 0.95em;
        vertical-align: middle;
    }

    #players-table td:before {
        /* Ocultamos las etiquetas "data-label" ya que las cabeceras son visibles */
        content: "";
        display: none;
    }

    /* ----------------------------------------------------------------- */
    .pick-btn {
        padding: 12px;
        font-size: 1.1em;
    }

    .player-management-card {
        grid-template-columns: 1fr;
    }

    .draft-view-btn {
        font-size: 1.2em;
        padding: 8px 15px;
    }

    /* --- Corrección para el texto cortado en la tabla móvil --- */
    #players-table td:before {
        flex-shrink: 0;
        /* Evita que la etiqueta se encoja */
        margin-right: 15px;
        /* Añade un poco de espacio */
    }

    .player-data {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* Añade "..." al texto largo */
        display: block;
        /* Asegura que ocupe el espacio disponible */
    }

    /* ----------------------------------------------------------- */
}

.details-btn {
    background-color: #3498db;
    /* Un azul para indicar información */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    /* Espacio extra */
}

.details-btn:hover {
    background-color: #2980b9;
}

/* Estilos para la ventana emergente de detalles del jugador */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#player-details-modal .modal-content {
    background-color: #1a1a1a;
    margin: auto;
    padding: 25px;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

#modal-player-name {
    font-family: var(--font-bebas);
    font-size: 2em;
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#modal-player-details-content p {
    margin: 8px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

#modal-player-details-content .detail-label {
    color: #888;
    font-weight: bold;
}

#modal-player-details-content .detail-value {
    color: #f1f1f1;
    background-color: #2c2c2c;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* --- ESTILOS PARA LA RULETA DE SORTEO --- */
@keyframes roulette-glow {
    from {
        filter: drop-shadow(0 0 8px rgba(230, 36, 41, 0.5));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(230, 36, 41, 1));
    }
}

#roulette-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Diseño de 2 columnas */
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    gap: 20px;
}

#roulette-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#roulette-wrapper {
    position: relative;
    animation: roulette-glow 1.5s infinite alternate;
    /* Efecto de brillo */
}

#roulette-canvas {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

#roulette-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 75px;
    z-index: 3;
}

#roulette-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22%;
    z-index: 2;
    background-color: #1a1a1a;
    border-radius: 50%;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.header-content .header-logo {
    height: 80px;
    width: auto;
    /* Eliminar border naranja */
    border: none !important;
    background: transparent;
    /* Glow cyan neón */
    filter: drop-shadow(0 0 20px rgba(0, 246, 255, 0.7));
}

#spin-button {
    font-family: var(--font-bebas);
    font-size: 2.5em;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#spin-button:hover:not(:disabled) {
    transform: scale(1.05);
    background-color: #ff4d52;
}

#spin-button:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}

#roulette-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#finalize-button {
    font-family: var(--font-bebas);
    font-size: 1.8em;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background-color: #e74c3c;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#finalize-button:hover {
    transform: scale(1.05);
    background-color: #c0392b;
}

/* --- PICK ORDER ROULETTE LIST --- */
.pickorder-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.pickorder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    animation: pickSlideIn 0.4s ease-out;
}

.pickorder-number {
    font-family: var(--font-bebas);
    font-size: 1.6em;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.pickorder-name {
    font-size: 1.15em;
    font-weight: bold;
    color: #f1f1f1;
}

@keyframes pickSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#roulette-status {
    font-family: var(--font-bebas);
    font-size: 2.2em;
    color: var(--winner-color);
    text-align: center;
    min-height: 40px;
}

#roulette-sidebar {
    height: 90%;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#roulette-sidebar h2 {
    font-family: var(--font-bebas);
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin: 0 0 20px 0;
}

.roulette-group-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.roulette-group-container:first-of-type {
    margin-bottom: 20px;
}

.roulette-group-container h3 {
    font-family: var(--font-bebas);
    font-size: 1.8em;
    margin: 0 0 10px 0;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

#group-a-list,
#group-b-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#group-a-list li,
#group-b-list li,
#group-c-list li,
#group-d-list li {
    font-size: 1.2em;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* ========================================
   DASHBOARD STYLES - MOBILE FIRST
   ======================================== */

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    padding: 15px;
    border-bottom: 2px solid var(--primary-color);
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://i.imgur.com/Fj4iFjP.png');
    background-size: cover;
    background-position: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    max-width: 200px;
}

.language-selector .lang-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 14px;
    font-family: var(--font-roboto);
}

.language-selector .lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

/* Dashboard Main */
.dashboard-main {
    padding-bottom: 80px;
    /* Espacio para mobile-nav */
}

.view-section {
    display: none;
    padding: 15px;
    animation: fadeIn 0.3s ease;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-section h2 {
    font-family: var(--font-bebas);
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Events Grid - Mobile */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.event-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.event-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-active,
.status-registration_open,
.status-fase_de_grupos {
    background: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.status-completed,
.status-finalizado {
    background: rgba(149, 165, 166, 0.3);
    color: #95a5a6;
}

.event-name {
    font-family: var(--font-bebas);
    font-size: 1.6em;
    margin: 0;
    color: white;
}

.event-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.9);
}

.event-teams {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-progress {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1em;
}

/* Filters */
.filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: var(--surface-color);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.filters select,
.filters input[type="search"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    /* Prevent iOS zoom */
    background: #1a1a1a;
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-roboto);
}

/* History - Mobile Cards */
.mobile-cards {
    display: block;
}

.history-item {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.history-item:active {
    transform: scale(0.98);
}

.history-item.status-completed,
.history-item.status-completed {
    border-left-color: #95a5a6;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-item-header h4 {
    margin: 0;
    font-size: 1.2em;
    color: white;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

.history-item-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #aaa;
}

/* History Table - Hidden on mobile */
.history-table {
    display: none;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-table th {
    font-family: var(--font-bebas);
    font-size: 1.3em;
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.3);
}

.btn-view {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-view:hover {
    background: #ff8800;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
}

.pagination button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-bebas);
    font-size: 1.2em;
    transition: background 0.2s;
}

.pagination button:hover {
    background: #ff8800;
}

/* Bottom Navigation - Mobile Only */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 2px solid var(--primary-color);
    z-index: 90;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.mobile-nav button {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    cursor: pointer;
    font-family: var(--font-roboto);
    transition: color 0.2s;
}

.mobile-nav button.active {
    color: var(--primary-color);
}

.mobile-nav button .icon {
    font-size: 22px;
}

/* Modal - Full Screen on Mobile */
#event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--background-color);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-header {
    position: sticky;
    top: 0;
    background: var(--surface-color);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--primary-color);
    z-index: 10;
}

.modal-close {
    font-size: 28px;
    padding: 8px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-family: var(--font-bebas);
}

.modal-body {
    padding: 20px;
}

.loading-spinner {
    text-align: center;
    padding: 60px;
    font-size: 1.2em;
    color: #888;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    font-size: 1.1em;
}

/* ========================================
   TABLET STYLES (768px+)
   ======================================== */

@media (min-width: 768px) {
    .dashboard-main {
        padding-bottom: 0;
    }

    .header-top {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

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

    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

    .event-card:active {
        transform: translateY(-2px);
    }

    .filters {
        flex-direction: row;
    }

    .filters select,
    .filters input[type="search"] {
        width: auto;
        flex: 1;
    }

    /* Show table, hide mobile cards */
    .mobile-cards {
        display: none;
    }

    .history-table {
        display: table;
    }

    /* Hide mobile nav */
    .mobile-nav {
        display: none;
    }

    .view-section {
        display: block;
    }

    .view-section.active {
        display: block;
    }
}

/* ========================================
   DESKTOP STYLES (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .event-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    }

    /* Modal - Not full screen */
    #event-modal {
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
    }

    .modal-body {
        background: var(--background-color);
        border-radius: 16px;
        max-width: 1200px;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    }

    .language-selector {
        margin: 0;
    }

    .view-section {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* ========================================
   LARGE DESKTOP (1440px+)
   ======================================== */

@media (min-width: 1440px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch interactions */
@media (hover: none) and (pointer: coarse) {
    .event-card:hover {
        transform: none;
    }

    .event-card:active {
        transform: scale(0.97);
    }

    /* Larger touch targets */
    button,
    .event-card,
    .history-item {
        min-height: 44px;
    }
}

/* ========================================
   USER AUTHENTICATION STYLES (Dashboard)
   ======================================== */

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.user-auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    font-family: var(--font-roboto);
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: #5865F2;
    /* Discord blue */
    color: white;
}

.login-btn svg {
    fill: white;
}

.login-btn:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.logout-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.user-name {
    color: var(--text-color);
    font-weight: bold;
    font-size: 1em;
}

/* Non-Member Warning Banner */
.non-member-warning {
    background: linear-gradient(135deg, rgba(255, 156, 0, 0.2), rgba(255, 156, 0, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.non-member-warning h3 {
    color: var(--primary-color);
    font-family: var(--font-bebas);
    font-size: 1.8em;
    margin: 0 0 10px 0;
}

.non-member-warning p {
    color: #ccc;
    margin: 0 0 15px 0;
}

.join-server-btn {
    display: inline-block;
    background-color: #5865F2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.join-server-btn:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header-controls {
        flex-direction: column;
        gap: 10px;
    }

    .user-auth-section {
        width: 100%;
        justify-content: center;
    }

    .login-btn {
        width: 100%;
        justify-content: center;
    }

    .user-profile {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   USER ROLE BADGE (Tournament Viewer)
   ======================================== */

.user-role-badge {
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-bebas);
    font-size: 0.9em;
    font-weight: bold;
    /* Static positioning within flex header-text */
    margin: 5px auto 0 auto;
    width: fit-content;
    z-index: 50;
    transition: all 0.3s ease;
}

.role-icon {
    font-size: 1.4em;
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-label {
    font-size: 1.1em;
    letter-spacing: 1px;
}

.role-team {
    font-size: 0.85em;
    opacity: 0.9;
    font-family: var(--font-roboto);
    letter-spacing: 0.5px;
}

/* Role-specific colors */
.role-manager {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: #fff;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

.role-admin {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.role-captain,
.role-coCaptain,
.role-extraCaptain,
.role-draftCaptain {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.role-matchGuide {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(161, 140, 209, 0.4);
}

/* Hover animation */
.user-role-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 156, 0, 0.6);
}

/* Mobile responsive */
/* Mobile responsive */
@media (max-width: 768px) {
    .user-role-badge {
        font-size: 0.8em;
        padding: 4px 10px;
        margin: 5px auto 10px auto;
        /* Separación vertical */
    }

    .role-icon {
        font-size: 1em;
    }

    .role-label {
        font-size: 0.85em;
    }

    /* === RESPONSIVE FIXES FOR TOURNAMENT TABLES === */

    /* Ensure text wraps and doesn't overflow */
    .header-text h1 {
        font-size: 1.8em !important;
        line-height: 1.2 !important;
        word-break: break-word;
    }

    .header-text p {
        font-size: 0.9em !important;
    }

    /* Make classification tables responsive */
    .group-table,
    table {
        font-size: 0.85em !important;
        /* Increased from 0.7em for better readability */
        width: 100%;
        display: block;
        overflow-x: auto;
        /* Allow horizontal scroll if needed */
        -webkit-overflow-scrolling: touch;
    }

    .group-table thead,
    .group-table tbody,
    .group-table tr,
    .group-table th,
    .group-table td {
        display: table-cell !important;
        white-space: nowrap;
        /* Prevent text wrapping in cells */
    }

    .group-table th,
    .group-table td {
        padding: 8px 6px !important;
        /* Increased from 6px 4px for better spacing */
        font-size: 0.95em !important;
        /* Increased from 0.85em */
    }

    /* Team logos smaller on mobile */
    .team-logo,
    .team-logo-small {
        width: 24px !important;
        height: 24px !important;
    }

    /* Adjust header for mobile */
    .header-content {
        flex-direction: column !important;
        gap: 10px;
        padding: 10px !important;
    }

    .header-logo {
        width: 80px !important;
        height: auto;
    }

    /* Match cards responsive */
    .match-card {
        padding: 12px !important;
    }

    .team-name {
        font-size: 0.9em !important;
    }

    .score {
        font-size: 1.2em !important;
    }

    /* Bracket view responsive */
    .bracket-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bracket-round {
        min-width: 200px;
    }

    /* Mobile view switcher */
    .mobile-view-switcher {
        display: block !important;
        padding: 10px;
    }

    .view-switcher {
        display: none !important;
        /* Hide desktop tabs on mobile */
    }

    /* Ensure modals are mobile-friendly */
    .modal-content {
        width: 95% !important;
        padding: 15px !important;
        margin: 15% auto !important;
    }

    /* === MOBILE FIXES (CLEAN) === */

    /* 1. Header Layout Fix */
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding-top: 60px;
        /* Space for absolute buttons */
        padding-bottom: 20px;
    }

    .header-logo {
        height: 70px;
    }

    header h1 {
        font-size: 2em;
        line-height: 1.2;
    }

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

    /* Buttons Positioning */
    .back-btn {
        top: 15px;
        left: 15px;
        transform: none;
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .lang-selector {
        top: 15px;
        right: 15px;
        transform: none;
    }

    /* 2. Tables & Grids Horizontal Scroll */
    .group-container {
        width: 100%;
        overflow-x: auto;
        /* Enable horizontal scroll */
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: 20px;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.2);
        /* Visual hint of container */
    }

    /* 3. Perfect Grid Alignment for Standings Table */
    .classification-table-header,
    .team-stat-card {
        display: grid !important;
        grid-template-columns: minmax(130px, 1fr) auto !important;
        gap: 8px;
        padding: 8px 10px !important;
        /* Identical padding guarantees alignment */
        width: 100% !important;
        min-width: 320px;
        box-sizing: border-box;
    }

    .header-team-info,
    .team-info-classification {
        display: flex !important;
        align-items: center;
        gap: 8px;
        min-width: 0;
        /* Crucial for text ellipsis */
    }

    .team-position,
    .header-pos {
        width: 18px;
        font-size: 0.9em;
        text-align: center;
        flex-shrink: 0;
    }

    .team-name-classification,
    .header-team-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.85em;
        flex-grow: 1;
    }

    .header-stats-grid,
    .team-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(5, 28px) !important;
        gap: 5px !important;
        justify-content: end;
        width: auto !important;
    }

    .header-stats-grid.with-bh,
    .team-stats-grid.with-bh {
        grid-template-columns: repeat(6, 28px) !important;
    }

    .header-stat,
    .stat-item {
        width: 100% !important;
        font-size: 0.8em !important;
        text-align: center;
        padding: 0 !important;
        margin: 0 !important;
    }

    table {
        min-width: 100% !important;
        width: max-content;
        font-size: 0.8em !important;
    }

    /* Bracket scroll fix */
    #bracket-container {
        padding: 10px;
        gap: 30px;
        justify-content: flex-start;
        /* Align left to allow scroll */
    }

    /* General Layout */
    #main-panel,
    #app-container,
    main {
        padding: 10px !important;
        width: 100% !important;
        overflow-x: hidden;
        /* Prevent body scroll */
    }

    /* Fix text sizes */
    body {
        font-size: 14px;
        /* Base size */
    }

    h1 {
        font-size: 1.8em !important;
    }

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

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

    /* Hide heavy particles on mobile */
    .particles {
        display: none;
    }
}

/* ========================================
   EPIC ANIMATED BACKGROUND (Global)
   ======================================== */

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;

    .animated-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -2;
        /* Opacidad al 50% como pidió el usuario */
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(26, 10, 0, 0.5) 50%, rgba(10, 10, 10, 0.5) 100%);
        background-size: 400% 400%;
        animation: gradientFlow 15s ease infinite;
    }

    @keyframes gradientFlow {

        0%,
        100% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }
    }

    /* Lightning Flash Effect */
    .animated-background::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(ellipse at 20% 30%, rgba(255, 156, 0, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 70%, rgba(255, 136, 0, 0.1) 0%, transparent 50%);
        animation: lightningPulse 8s ease-in-out infinite;
    }

    @keyframes lightningPulse {

        0%,
        100% {
            opacity: 0.3;
        }

        50% {
            opacity: 0.7;
        }
    }

    /* Overlay for text readability */
    .animated-background::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
    }

    /* Floating Particles */
    .particles {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        overflow: hidden;
        pointer-events: none;
    }

    .particle {
        position: absolute;
        width: 3px;
        height: 3px;
        background: rgba(255, 156, 0, 0.6);
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(255, 156, 0, 0.8);
        animation: float 20s linear infinite;
    }

    @keyframes float {
        0% {
            transform: translateY(100vh) translateX(0);
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            transform: translateY(-100vh) translateX(100px);
            opacity: 0;
        }
    }

    /* Particle positions (10 particles for dashboard/tournament) */
    .particle:nth-child(1) {
        left: 10%;
        animation-delay: 0s;
        animation-duration: 25s;
    }

    .particle:nth-child(2) {
        left: 20%;
        animation-delay: 2s;
        animation-duration: 22s;
    }

    .particle:nth-child(3) {
        left: 30%;
        animation-delay: 4s;
        animation-duration: 28s;
    }

    .particle:nth-child(4) {
        left: 40%;
        animation-delay: 1s;
        animation-duration: 26s;
    }

    .particle:nth-child(5) {
        left: 50%;
        animation-delay: 3s;
        animation-duration: 24s;
    }

    .particle:nth-child(6) {
        left: 60%;
        animation-delay: 5s;
        animation-duration: 27s;
    }

    .particle:nth-child(7) {
        left: 70%;
        animation-delay: 2.5s;
        animation-duration: 23s;
    }

    .particle:nth-child(8) {
        left: 80%;
        animation-delay: 4.5s;
        animation-duration: 25s;
    }

    .particle:nth-child(9) {
        left: 90%;
        animation-delay: 1.5s;
        animation-duration: 29s;
    }

    .particle:nth-child(10) {
        left: 15%;
        animation-delay: 3.5s;
        animation-duration: 21s;
    }

    /* ========================================
   HOME BUTTON IN NAVBAR
   ======================================== */

    .home-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: rgba(255, 156, 0, 0.1);
        border: 1px solid rgba(255, 156, 0, 0.3);
        border-radius: 8px;
        text-decoration: none;
        color: var(--text-light);
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .home-link:hover {
        background: rgba(255, 156, 0, 0.2);
        border-color: var(--primary);
        transform: translateY(-2px);
    }

    .home-icon {
        font-size: 1.2em;
    }

    .home-text {
        font-size: 0.95em;
    }

    @media (max-width: 768px) {
        .home-text {
            display: none;
            /* Only show icon on mobile */
        }

        .home-link {
            padding: 8px 12px;
        }
    }

    /* ========================================
   SKELETON LOADERS - UX Improvements
   ======================================== */

    /* Animación de shimmer para efecto de carga */
    @keyframes shimmer {
        0% {
            background-position: -1000px 0;
        }

        100% {
            background-position: 1000px 0;
        }
    }

    /* Base skeleton con gradiente animado */
    .skeleton {
        background: linear-gradient(90deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0.05) 100%);
        background-size: 1000px 100%;
        animation: shimmer 2s infinite;
        border-radius: 4px;
        pointer-events: none;
    }

    /* Skeleton para cards de eventos */
    .skeleton-event-card {
        height: 200px;
        width: 100%;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    /* Skeleton para filas de tabla */
    .skeleton-table-row {
        height: 50px;
        width: 100%;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    /* Skeleton para cards de equipos */
    .skeleton-team-card {
        height: 120px;
        width: 100%;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    /* Skeleton para avatares circulares */
    .skeleton-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    /* Skeleton para líneas de texto */
    .skeleton-text {
        height: 16px;
        width: 100%;
        margin-bottom: 8px;
        border-radius: 3px;
    }

    .skeleton-text.short {
        width: 60%;
    }

    .skeleton-text.medium {
        width: 80%;
    }

    /* Container para agrupar skeletons */
    .skeleton-container {
        padding: 20px;
    }

    /* ========================================
   MEJORAS DE CONTRASTE WCAG 2.1 AA
   ======================================== */

    /* Placeholder universal con contraste mejorado */
    ::placeholder {
        color: #a8a8a8;
        /* Ratio 5.1:1 - Cumple WCAG AA */
        opacity: 1;
    }

    ::-webkit-input-placeholder {
        color: #a8a8a8;
    }

    ::-moz-placeholder {
        color: #a8a8a8;
    }

    :-ms-input-placeholder {
        color: #a8a8a8;
    }

    /* ===========================================
   FASE 2: UI COMPONENTS GAMER CYBERPUNK
   =========================================== */

    /* --- BOTONES NEÓN CON CLIP-PATH --- */

    button,
    .btn,
    input[type="submit"],
    .action-btn,
    .register-btn {
        position: relative;
        padding: 12px 28px;
        background: transparent;
        border: 2px solid var(--neon-cyan);
        color: var(--neon-cyan);
        font-family: 'Exo 2', var(--font-heading);
        font-weight: 700;
        font-size: 0.95em;
        text-transform: uppercase;
        letter-spacing: 2px;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

        /* Ángulos cortados estilo cyberpunk */
        clip-path: polygon(10px 0%,
                100% 0%,
                100% calc(100% - 10px),
                calc(100% - 10px) 100%,
                0% 100%,
                0% 10px);
    }

    /* Efecto de relleno animado */
    button::before,
    .btn::before,
    input[type="submit"]::before,
    .action-btn::before,
    .register-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--gradient-primary);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
    }

    button:hover,
    .btn:hover,
    input[type="submit"]:hover,
    .action-btn:hover,
    .register-btn:hover {
        box-shadow: var(--glow-cyan);
        transform: translateY(-3px);
        border-color: var(--neon-cyan);
        color: #ffffff;
    }

    button:hover::before,
    .btn:hover::before,
    input[type="submit"]:hover::before,
    .action-btn:hover::before,
    .register-btn:hover::before {
        left: 0;
    }

    button:active,
    .btn:active,
    input[type="submit"]:active,
    .action-btn:active,
    .register-btn:active {
        transform: translateY(-1px);
    }

    button:disabled,
    .btn:disabled,
    input[type="submit"]:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        border-color: #444;
        color: #666;
        box-shadow: none;
    }

    button:disabled:hover,
    .btn:disabled:hover,
    input[type="submit"]:disabled:hover {
        transform: none;
    }

    /* Botones secundarios (magenta) */
    .btn-secondary {
        border-color: var(--neon-magenta);
        color: var(--neon-magenta);
    }

    .btn-secondary::before {
        background: var(--gradient-accent);
    }

    .btn-secondary:hover {
        box-shadow: var(--glow-magenta);
        border-color: var(--neon-magenta);
    }

    /* Botones de acción especial (amarillo/oro) */
    .btn-gold {
        border-color: var(--neon-yellow);
        color: var(--neon-yellow);
    }

    .btn-gold::before {
        background: var(--gradient-gold);
    }

    .btn-gold:hover {
        box-shadow: 0 0 20px rgba(255, 235, 0, 0.6);
    }

    /* --- CARDS GLASSMORPHISM --- */

    .event-card,
    .team-card,
    .tournament-card,
    .card {
        background: rgba(20, 20, 35, 0.6);
        backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(0, 246, 255, 0.2);
        border-radius: 16px;
        padding: 20px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    /* Border superior neón animado en cards */
    .event-card::before,
    .team-card::before,
    .tournament-card::before,
    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient-primary);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .event-card:hover,
    .team-card:hover,
    .tournament-card:hover,
    .card:hover {
        transform: translateY(-8px);
        border-color: rgba(0, 246, 255, 0.5);
        box-shadow:
            0 20px 60px rgba(0, 246, 255, 0.3),
            0 0 80px rgba(0, 246, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .event-card:hover::before,
    .team-card:hover::before,
    .tournament-card:hover::before,
    .card:hover::before {
        opacity: 1;
    }

    /* Card headers con gradiente */
    .card-header,
    .event-card h3,
    .team-card h3 {
        font-family: 'Exo 2', var(--font-heading);
        font-weight: 900;
        font-size: 1.5em;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

    /* --- BACKGROUNDS ANIMADOS --- */

    /* Partículas flotantes hexagonales */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            radial-gradient(circle at 20% 50%, rgba(0, 246, 255, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 30%, rgba(255, 0, 229, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(0, 102, 255, 0.03) 0%, transparent 50%);
        pointer-events: none;
        z-index: -1;
        animation: particleFloat 20s ease-in-out infinite;
    }

    @keyframes particleFloat {

        0%,
        100% {
            background-position: 0% 50%, 100% 30%, 40% 80%;
        }

        50% {
            background-position: 100% 50%, 0% 70%, 60% 20%;
        }
    }

    /* Grid cyberpunk de fondo */
    .dashboard-container::before,
    #app-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            linear-gradient(rgba(0, 246, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 246, 255, 0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        pointer-events: none;
        opacity: 0.3;
    }

    /* --- EFECTOS HOVER AVANZADOS --- */

    /* Links con efecto underline neón */
    a {
        color: var(--neon-cyan);
        text-decoration: none;
        position: relative;
        transition: color 0.3s;
    }

    a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    a:hover {
        color: #ffffff;
    }

    a:hover::after {
        width: 100%;
    }

    /* Input fields con borde neón */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    textarea,
    select {
        background: rgba(20, 20, 35, 0.8);
        border: 2px solid rgba(0, 246, 255, 0.3);
        color: var(--text-color);
        padding: 12px 16px;
        border-radius: 8px;
        font-family: 'Rajdhani', var(--font-body);
        font-size: 1em;
        transition: all 0.3s;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="search"]:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--neon-cyan);
        box-shadow: var(--glow-cyan);
        background: rgba(20, 20, 35, 0.95);
    }

    /* --- SCAN LINES EFFECT (opcional, desactivado por defecto) --- */

    /*
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
}
*/

    /* --- LOGO GLOW EFFECT --- */

    .header-logo,
    .logo {
        filter: drop-shadow(0 0 15px rgba(0, 246, 255, 0.5));
        transition: filter 0.3s;
    }

    .header-logo:hover,
    .logo:hover {
        filter: drop-shadow(0 0 25px rgba(0, 246, 255, 0.8));
        animation: logoGlitch 0.3s;
    }

    @keyframes logoGlitch {

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

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

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

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

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

    /* ===========================================
   PARTÍCULAS HEXAGONALES FLOTANTES VISIBLES
   =========================================== */

    /* Container de partículas */
    .floating-particles {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 2;
        overflow: hidden;
    }

    /* Hexágono individual */
    .hex-particle {
        position: absolute;
        width: 30px;
        height: 30px;
        background: var(--neon-cyan);
        opacity: 0.15;
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        animation: floatHex 20s infinite ease-in-out;
    }

    .hex-particle:nth-child(2n) {
        background: var(--neon-magenta);
        animation-duration: 25s;
    }

    .hex-particle:nth-child(3n) {
        background: var(--electric-blue);
        animation-duration: 18s;
    }

    @keyframes floatHex {
        0% {
            transform: translateY(100vh) rotate(0deg);
            opacity: 0;
        }

        10% {
            opacity: 0.15;
        }

        90% {
            opacity: 0.15;
        }

        100% {
            transform: translateY(-100px) rotate(360deg);
            opacity: 0;
        }
    }

    /* Posiciones aleatorias para hexágonos */
    .hex-particle:nth-child(1) {
        left: 10%;
        animation-delay: 0s;
    }

    .hex-particle:nth-child(2) {
        left: 20%;
        animation-delay: 2s;
    }

    .hex-particle:nth-child(3) {
        left: 30%;
        animation-delay: 4s;
    }

    .hex-particle:nth-child(4) {
        left: 40%;
        animation-delay: 1s;
    }

    .hex-particle:nth-child(5) {
        left: 50%;
        animation-delay: 3s;
    }

    .hex-particle:nth-child(6) {
        left: 60%;
        animation-delay: 5s;
    }

    .hex-particle:nth-child(7) {
        left: 70%;
        animation-delay: 2.5s;
    }

    .hex-particle:nth-child(8) {
        left: 80%;
        animation-delay: 4.5s;
    }

    .hex-particle:nth-child(9) {
        left: 90%;
        animation-delay: 1.5s;
    }

    .hex-particle:nth-child(10) {
        left: 15%;
        animation-delay: 3.5s;
    }

    /* ===========================================
   COLORES ULTRA SATURADOS - MODO AGRESIVO
   =========================================== */

    /* Títulos cyan brillante SIEMPRE visible */
    h1,
    h2,
    h3 {
        color: var(--neon-cyan) !important;
        text-shadow:
            0 0 10px rgba(0, 246, 255, 0.8),
            0 0 20px rgba(0, 246, 255, 0.6),
            0 0 30px rgba(0, 246, 255, 0.4) !important;
    }

    /* Stats y números en amarillo neón */
    .stat-value,
    .score,
    .points {
        color: var(--neon-yellow) !important;
        text-shadow: 0 0 10px rgba(255, 235, 0, 0.7);
        font-weight: 700;
    }

    /* Borders neón permanentes en cards */
    .event-card,
    .team-card,
    .tournament-card {
        border: 2px solid rgba(0, 246, 255, 0.6) !important;
        box-shadow:
            0 0 20px rgba(0, 246, 255, 0.3),
            inset 0 0 20px rgba(0, 246, 255, 0.05) !important;
    }

    /* Separadores con glow */
    hr {
        border: none;
        height: 2px;
        background: var(--gradient-primary);
        box-shadow: 0 0 10px var(--neon-cyan);
    }

    /* Scrollbar neón */
    ::-webkit-scrollbar-thumb {
        background: var(--gradient-primary);
        box-shadow: 0 0 10px var(--neon-cyan);
    }

    /* ===========================================
   EFECTOS PERMANENTES VISIBLES (NO HOVER)
   =========================================== */

    /* Logo con glow permanente */
    .header-logo,
    .logo {
        filter: drop-shadow(0 0 20px rgba(0, 246, 255, 0.7)) !important;
    }

    /* Botones con glow permanente sutil */
    button:not(:disabled),
    .btn {
        box-shadow: 0 0 10px rgba(0, 246, 255, 0.2);
    }

    /* Inputs con borde neón permanente */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    textarea,
    select {
        border: 2px solid rgba(0, 246, 255, 0.4) !important;
        box-shadow: 0 0 5px rgba(0, 246, 255, 0.2);
    }

    /* ===========================================
   OPTIMIZACIÓN MOBILE - RESPONSIVE
   =========================================== */

    @media (max-width: 768px) {

        /* Background menos intenso en móvil */
        body {
            background-size: 250% 250%, 250% 250%, 350% 350%, 100% 100%;
        }

        /* Grid más pequeño y sutil */
        body::before {
            background-size: 30px 30px;
            opacity: 0.2 !important;
        }

        /* Solo 5 hexágonos en móvil (en vez de 10) */
        .hex-particle:nth-child(n+6) {
            display: none;
        }

        /* Hexágonos más pequeños */
        .hex-particle {
            width: 20px;
            height: 20px;
            opacity: 0.1;
        }

        /* Header más compacto */
        header {
            padding: 10px 0 15px 0;
        }

        header h1 {
            font-size: 2.2em !important;
            letter-spacing: 2px;
            text-shadow:
                0 0 8px rgba(0, 246, 255, 0.6),
                0 0 15px rgba(0, 246, 255, 0.4) !important;
        }

        header p {
            font-size: 0.95em;
        }

        /* Logo más pequeño */
        .header-logo,
        .logo {
            max-width: 80px;
            filter: drop-shadow(0 0 15px rgba(0, 246, 255, 0.5)) !important;
        }

        /* Títulos más pequeños */
        h1 {
            font-size: 2em !important;
        }

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

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

        /* Cards con menos padding */
        .event-card,
        .team-card,
        .tournament-card,
        .card {
            padding: 15px;
            border-radius: 12px;
        }

        /* Botones más pequeños y compactos */
        button,
        .btn,
        input[type="submit"],
        .action-btn,
        .register-btn {
            padding: 10px 20px;
            font-size: 0.85em;
            letter-spacing: 1px;
        }

        /* Efectos glow menos intensos en móvil */
        .event-card,
        .team-card,
        .tournament-card {
            border: 1px solid rgba(0, 246, 255, 0.4) !important;
            box-shadow:
                0 0 10px rgba(0, 246, 255, 0.2),
                inset 0 0 10px rgba(0, 246, 255, 0.03) !important;
        }

        /* Header border menos grueso */
        header {
            border-bottom-width: 2px;
        }

        header::after {
            height: 2px;
            filter: blur(6px);
        }

        /* Inputs más compactos */
        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="search"],
        textarea,
        select {
            padding: 10px 14px;
            font-size: 0.95em;
        }

        /* Container principal con menos padding */
        .container {
            padding: 15px;
        }

        /* Botones de idioma más pequeños */
        .lang-btn {
            padding: 5px 10px;
            font-size: 0.85em;
        }

        /* Animaciones más lentas en móvil (mejor performance) */
        body {
            animation: ultraGlow 20s ease infinite;
        }

        body::before {
            animation: gridPulse 12s ease-in-out infinite;
        }

        .hex-particle {
            animation-duration: 25s !important;
        }
    }

    /* Móviles muy pequeños (< 480px) */
    @media (max-width: 480px) {
        body {
            padding: 15px;
        }

        header h1 {
            font-size: 1.8em !important;
            letter-spacing: 1px;
        }

        header p {
            font-size: 0.85em;
        }

        .header-logo,
        .logo {
            max-width: 60px;
        }

        /* Solo 3 hexágonos en móviles pequeños */
        .hex-particle:nth-child(n+4) {
            display: none;
        }

        /* Hexágonos aún más pequeños */
        .hex-particle {
            width: 15px;
            height: 15px;
            opacity: 0.08;
        }

        /* Grid muy sutil */
        body::before {
            background-size: 25px 25px;
            opacity: 0.15 !important;
        }

        /* Botones aún más compactos */
        button,
        .btn {
            padding: 8px 16px;
            font-size: 0.8em;
        }

        /* Cards muy compactas */
        .event-card,
        .team-card,
        .tournament-card,
        .card {
            padding: 12px;
        }

        /* Títulos más pequeños */
        h1 {
            font-size: 1.6em !important;
        }

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

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

    /* Tablets (769px - 1024px) */
    @media (min-width: 769px) and (max-width: 1024px) {

        /* 8 hexágonos en tablets */
        .hex-particle:nth-child(n+9) {
            display: none;
        }

        /* Hexágonos tamaño medio */
        .hex-particle {
            width: 25px;
            height: 25px;
            opacity: 0.12;
        }

        header h1 {
            font-size: 2.8em !important;
        }

        .header-logo,
        .logo {
            max-width: 100px;
        }
    }

    /* Performance: Reducir animaciones si el usuario prefiere */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        .hex-particle {
            display: none;
        }

        body::before {
            animation: none;
            opacity: 0.3;
        }
    }

    /* === MODAL: Equipos Inscritos === */
    .teams-modal-content {
        max-width: 500px;
        margin: 10% auto;
        background: #1a1a2e;
        padding: 2rem;
        border-radius: 12px;
        border: 1px solid rgba(138, 43, 226, 0.5);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .teams-modal-header {
        justify-content: space-between;
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }

    .teams-modal-header h3 {
        margin: 0;
        font-size: 1.5rem;
        color: #fff;
    }

    .teams-list-scroll {
        max-height: 60vh;
        overflow-y: auto;
    }

    /* === MODAL: Reportar Resultado === */
    .report-modal-content {
        max-width: 400px;
        background: #1a1a2e;
        border: 1px solid #444;
    }

    .report-modal-title {
        color: white;
        text-align: center;
    }

    .report-modal-info {
        color: #aaa;
        text-align: center;
        margin-bottom: 1rem;
    }

    /* === MÓVIL: Modales responsivos === */
    @media (max-width: 480px) {

        .teams-modal-content,
        .report-modal-content {
            max-width: 95%;
            margin: 5% auto;
            padding: 1.2rem;
        }
    }

    /* ====================================================
   TARJETAS DE EVENTO (BOTONES)
   ==================================================== */
    .tournament-actions {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }

    .btn-view-event,
    .btn-join-event {
        flex: 1;
        padding: 12px;
        border-radius: 8px;
        font-size: 0.95em;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-view-event {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
    }

    .btn-view-event:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .btn-join-event {
        background: var(--neon-magenta);
        border: 1px solid transparent;
        color: white;
    }

    .btn-join-event:hover {
        background: #FF00FF;
        box-shadow: 0 0 15px var(--neon-magenta);
        transform: translateY(-2px);
    }

    @media (max-width: 500px) {
        .tournament-actions {
            flex-direction: column;
            gap: 10px;
        }

        .btn-view-event,
        .btn-join-event {
            padding: 14px;
            font-size: 1em;
        }
    }
}

/* === M\u00d3VIL: Reducir part\u00edculas (landing page) === */
@media (max-width: 768px) {
    .particles .particle:nth-child(n+7) {
        display: none;
    }
}

/* ====================================================
   DASHBOARD HEADER
   ==================================================== */
.dashboard-header {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(10, 10, 25, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg,
            transparent 0%,
            var(--neon-cyan) 30%,
            var(--neon-magenta) 70%,
            transparent 100%) 1;
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 0 24px;
}

.dash-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    height: 64px;
    gap: 16px;
}

.dash-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.dash-logo {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.dash-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dash-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    background: rgba(0, 246, 255, 0.08);
    border: 1.5px solid rgba(0, 246, 255, 0.4);
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: var(--font-roboto);
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dash-nav-btn:hover {
    background: rgba(0, 246, 255, 0.18);
    border-color: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 246, 255, 0.3);
}

/* =====================================================
   MÓVIL DASHBOARD: Todo en una fila, ultra compacto
   ===================================================== */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 0 8px;
        overflow: visible;
    }

    .dash-header-inner {
        height: 52px;
        gap: 4px;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .dash-logo {
        height: 34px;
    }

    .dash-header-right {
        gap: 4px;
        flex-shrink: 1;
        min-width: 0;
    }

    /* Botón 🏠 Inicio: solo emoji, sin texto */
    .dash-nav-text {
        display: none;
    }

    .dash-nav-btn {
        padding: 5px 8px;
        font-size: 1em;
        min-width: 34px;
        justify-content: center;
    }

    /* Selector de idioma: más pequeño */
    .language-selector {
        display: flex;
        gap: 2px;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 0.75em;
        min-width: 0;
    }

    /* Usuario logueado: ocultar nombre, solo avatar + botones icono */
    .user-name {
        display: none !important;
    }

    .user-avatar {
        width: 28px !important;
        height: 28px !important;
    }

    /* Botones Perfil y Salir: solo emoji */
    .auth-btn.profile-trigger-btn .hide-mobile,
    .auth-btn.logout-btn .hide-mobile {
        display: none !important;
    }

    .auth-btn.profile-trigger-btn,
    .auth-btn.logout-btn {
        padding: 5px 8px;
        font-size: 1em;
        min-width: 34px;
    }

    /* Botón Discord (no logueado): compacto */
    .auth-btn.login-btn {
        padding: 5px 10px;
        font-size: 0.78em;
        gap: 4px;
        white-space: nowrap;
    }

    .auth-btn.login-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    /* Ocultar texto "Iniciar Sesión con Discord", mostrar solo "Discord" */
    .auth-btn.login-btn span[data-i18n="auth.login"] {
        display: none;
    }

    .auth-btn.login-btn::after {
        content: 'Discord';
        font-size: 0.85em;
    }
}

/* =====================================================
   RENDIMIENTO MÓVIL: Desactivar animaciones pesadas
   ===================================================== */
@media (max-width: 768px) {

    /* === KILL ALL BACKDROP-FILTER BLUR (biggest perf killer) === */
    *,
    *::before,
    *::after {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Desactivar el fondo animado en móvil */
    .animated-background {
        animation: none !important;
        background: #06060e !important;
    }
    .animated-background::before,
    .animated-background::after {
        display: none !important;
    }

    /* Desactivar partículas en móvil */
    .particles {
        display: none !important;
    }

    /* Replace blur backgrounds with solid opaque ones */
    .view-section {
        background: rgba(12, 12, 24, 0.92) !important;
    }
    .dashboard-header {
        background: rgba(6, 6, 14, 0.95) !important;
    }
    header {
        background: rgba(6, 6, 14, 0.95) !important;
    }
    .modal-content {
        background: rgba(15, 15, 26, 0.98) !important;
    }

    /* Simplify text glow animations (very expensive) */
    header h1,
    .hero-title {
        animation: none !important;
        text-shadow: 0 0 10px rgba(10,132,255,0.5) !important;
    }

    /* Simplify border animations */
    .animated-border .border-line {
        animation: none !important;
    }

    /* Desactivar transiciones de hover en móvil (no hay hover) */
    .dash-nav-btn:hover,
    .lang-btn:hover,
    .auth-btn:hover {
        transform: none !important;
        transition: none !important;
    }

    /* Desactivar animaciones de cards */
    .event-card,
    .history-item {
        animation: none !important;
        transition: none !important;
    }

    /* Reduce box-shadow complexity */
    .event-card,
    .view-section,
    .mobile-nav {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    }
}

/* Footer del dashboard fijo al fondo */
#common-footer,
footer#common-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.95);
    border-top: 1px solid rgba(0, 246, 255, 0.3);
    padding: 8px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85em;
    color: #555;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(10, 132, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#dashboard-app {
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* === DASHBOARD BACKGROUND === */
.animated-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(10,132,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(212,168,67,0.04) 0%, transparent 50%),
        #06060e;
    z-index: 0;
}

.particles { display: none; }

/* === DASHBOARD SECTIONS === */
.view-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background: rgba(12, 12, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    backdrop-filter: blur(12px);
}

.view-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
    text-shadow: 0 0 7px #fff, 0 0 15px rgba(10,132,255,0.6), 0 0 30px rgba(10,132,255,0.3);
}

/* === EVENTS GRID === */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.event-card {
    background: rgba(16, 16, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    border-color: rgba(10, 132, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(10, 132, 255, 0.1);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* === FILTERS === */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filters select,
.filters input {
    padding: 10px 16px;
    background: rgba(12, 12, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #EAEAF0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    flex: 1;
    min-width: 180px;
    transition: border-color 0.3s;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(10, 132, 255, 0.2);
}

/* === HISTORY TABLE === */
.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 16px;
    background: rgba(10, 132, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.history-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
}

.history-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination button {
    background: rgba(12, 12, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #EAEAF0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.pagination button:hover,
.pagination button.active {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: #000;
}

/* === MOBILE NAV === */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 6, 14, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    z-index: 200;
    justify-content: space-around;
    padding: 8px 0;
}

.mobile-nav button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.mobile-nav button .icon { font-size: 1.3rem; }

.mobile-nav button.active {
    color: var(--neon-cyan);
}

@media (max-width: 768px) {
    .mobile-nav { display: flex; }
    #dashboard-app { padding-bottom: 70px; }
    .view-section { padding: 20px 16px; margin-bottom: 24px; }
    .events-grid { grid-template-columns: 1fr; }
    .history-table { display: none !important; }
}

/* === MATCH STATS MODAL (EA) === */
.lineups-container { display: flex; gap: 20px; flex-wrap: nowrap; }
.lineup-box { flex: 1; background: rgba(0,0,0,0.3); border-radius: 8px; padding: 15px; }
.lineups-container .history-table { display: table !important; }
.stat-bar-container { display: flex; align-items: center; margin-bottom: 10px; font-size: 0.9rem; }
.stat-bar-label { flex: 0 0 100px; text-align: center; font-weight: bold; color: #aaa; }
.stat-bar-value { flex: 0 0 40px; text-align: center; font-weight: bold; }
.stat-bar-track { flex: 1; height: 8px; background: #222; border-radius: 4px; display: flex; overflow: hidden; margin: 0 10px; }
.stat-bar-fill-a { background: #0A84FF; height: 100%; transition: width 0.5s ease; }
.stat-bar-fill-b { background: #D4A843; height: 100%; transition: width 0.5s ease; }
.table-responsive { overflow-x: auto; }
@media (max-width: 768px) {
  .lineups-container { flex-direction: column; }
  .stat-bar-label { flex: 0 0 80px; font-size: 0.8rem; }
  .stat-bar-value { flex: 0 0 30px; font-size: 0.8rem; }
  #ms-score { font-size: 1.8rem !important; padding: 0 10px !important; }
}
