/* ==========================================================================
   NFSRANKSMW - DESIGN SYSTEM: PRO ESPORTS (lokal.gg) + FORMULA 1 (f1.com)
   Estilo visual de competición con acentos de neón iluminados y fibra de carbono.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
    /* Paleta Base Carbono & Obsidiana */
    --bg-carbon: #07080a;
    --bg-surface: #0f1116;
    --bg-surface-elevated: #151821;
    --bg-panel: rgba(16, 19, 26, 0.88);
    --bg-card: rgba(21, 25, 35, 0.75);

    /* Acentos Neón Iluminados */
    --nfs-orange: #ff7700;
    --nfs-orange-bright: #ff8c1a;
    --nfs-orange-glow: 0 0 14px rgba(255, 119, 0, 0.8), 0 0 28px rgba(255, 119, 0, 0.35);
    --nfs-subtle-glow: 0 0 8px rgba(255, 119, 0, 0.45);
    
    /* Acentos Fórmula 1 & Competición */
    --f1-red: #e10600;
    --cyan-electric: #00f0ff;
    --cyan-glow: 0 0 14px rgba(0, 240, 255, 0.7);
    --green-neon: #00ff88;
    --green-glow: 0 0 12px rgba(0, 255, 136, 0.6);

    /* Trofeos & Podios (lokal.gg) */
    --gold: #ffd700;
    --gold-glow: 0 0 22px rgba(255, 215, 0, 0.45);
    --silver: #e2e8f0;
    --silver-glow: 0 0 18px rgba(226, 232, 240, 0.35);
    --bronze: #ff9f43;
    --bronze-glow: 0 0 18px rgba(255, 159, 67, 0.4);

    /* Tipografías */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dimmed: #64748b;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(255, 119, 0, 0.5);

    --font-racing: 'Rajdhani', -apple-system, sans-serif;
    --font-ui: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-carbon);
    color: var(--text-main);
    font-family: var(--font-ui);
    margin: 0;
    padding: 0;
    /* Textura F1 Speedlines + Fondo degradado motorsport */
    background-image: 
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 2px, transparent 2px, transparent 12px),
        radial-gradient(circle at 50% 0%, rgba(255, 119, 0, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 30%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #07080a 0%, #0c0e14 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================================
   HEADER CON ESTILO FÓRMULA 1 (f1.com)
   ========================================================================== */
header {
    background-color: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 2px solid var(--border-subtle);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 8px);
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-racing);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo span.highlight {
    color: var(--nfs-orange);
    text-shadow: var(--nfs-orange-glow);
    margin-left: 6px;
}

.logo img {
    height: 46px;
    vertical-align: middle;
    margin-right: 14px;
    filter: drop-shadow(0 0 8px rgba(255, 119, 0, 0.5));
}

/* Telemetría F1 en tiempo real */
.header-telemetry {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

@media (min-width: 1100px) {
    .header-telemetry { display: flex; }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--green-neon);
    box-shadow: var(--green-glow);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 0.4; transform: scale(0.9); }
}

.menu-toggle { 
    display: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: var(--nfs-orange); 
    user-select: none;
    transition: transform 0.2s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-racing);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.25s ease;
}

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

/* Barra inferior activa estilo F1 / lokal.gg */
nav a.active {
    color: #ffffff;
    font-weight: 800;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--nfs-orange);
    box-shadow: 0 0 12px var(--nfs-orange), 0 0 20px var(--nfs-orange);
    border-radius: 3px 3px 0 0;
}

/* Menús Desplegables en Navegación */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-racing);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}

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

.nav-dropdown-btn.active {
    color: #ffffff;
    font-weight: 800;
}

.nav-dropdown-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--nfs-orange);
    box-shadow: 0 0 12px var(--nfs-orange), 0 0 20px var(--nfs-orange);
    border-radius: 3px 3px 0 0;
}

.dropdown-arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
    color: var(--text-muted);
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--nfs-orange);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: rgba(12, 14, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--nfs-orange);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 119, 0, 0.2);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 1200;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown.open .nav-dropdown-content {
    display: flex;
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-content a {
    padding: 11px 20px;
    color: var(--text-muted);
    font-family: var(--font-racing);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    height: auto;
    display: flex;
    align-items: center;
    width: 100%;
    white-space: nowrap;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-dropdown-content a:hover,
.nav-dropdown-content a.active {
    background: rgba(255, 119, 0, 0.12);
    color: var(--nfs-orange);
    border-left-color: var(--nfs-orange);
    padding-left: 24px;
    text-shadow: var(--nfs-subtle-glow);
}

.nav-dropdown-content a.active::after {
    display: none;
}

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    nav { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 70px; 
        right: 0; 
        background: rgba(10, 12, 16, 0.98); 
        width: 100%; 
        height: auto;
        text-align: center; 
        border-bottom: 2px solid var(--nfs-orange); 
        padding: 15px 0; 
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
    }
    nav.open { display: flex; }
    nav a, .nav-dropdown-btn { 
        margin: 6px 0; 
        padding: 12px 0;
        width: 100%;
        justify-content: center;
        font-size: 16px;
        height: auto;
    }
    nav a.active::after, .nav-dropdown-btn.active::after {
        bottom: 0;
        left: 30%;
        width: 40%;
    }
    .nav-dropdown {
        width: 100%;
        height: auto;
        flex-direction: column;
    }
    .nav-dropdown:hover .nav-dropdown-content {
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-content {
        display: flex;
        position: static;
        width: 100%;
        background: rgba(6, 8, 12, 0.95);
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 6px 0;
    }
    .nav-dropdown-content a {
        justify-content: center;
        padding: 10px 0;
        font-size: 14px;
        border-left: none;
    }
    .nav-dropdown-content a:hover,
    .nav-dropdown-content a.active {
        padding-left: 0;
        background: rgba(255, 119, 0, 0.15);
    }
}

/* ==========================================================================
   HERO BANNER MOTORSPORT & FÓRMULA 1
   ========================================================================== */
/* ==========================================================================
   HERO BANNER MOTORSPORT & FÓRMULA 1
   ========================================================================== */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 480px;
    background: linear-gradient(90deg, rgba(7, 8, 10, 0.96) 0%, rgba(7, 8, 10, 0.8) 50%, rgba(7, 8, 10, 0.35) 100%), 
                url('../img/bmw-m3-gtr.jpg') no-repeat center right / cover;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px 25px;
    gap: 30px;
    border-bottom: 2px solid var(--border-subtle);
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--nfs-orange);
    box-shadow: var(--nfs-orange-glow);
}

@media (min-width: 992px) {
    .hero-banner { 
        min-height: 520px; 
        padding: 40px 60px; 
    }
}

.hero-banner-content {
    max-width: 620px;
    flex: 1 1 550px;
    z-index: 2;
}

/* Panel Archivo Oficial de Tiempos (a la derecha sobre el área del BMW) */
.hero-about-panel {
    max-width: 440px;
    flex: 0 1 420px;
    z-index: 2;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid rgba(255, 119, 0, 0.4);
    border-left: 4px solid var(--nfs-orange);
    border-radius: 12px;
    padding: 24px 26px;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: all 0.3s ease;
}

.hero-about-panel:hover {
    border-color: var(--nfs-orange);
    box-shadow: 0 0 25px rgba(255, 119, 0, 0.25) !important;
    transform: translateY(-2px);
}

.hero-about-panel .about-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 800;
    color: var(--nfs-orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(255, 119, 0, 0.5);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.hero-about-panel h2 {
    font-family: var(--font-racing);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), var(--nfs-subtle-glow);
}

.hero-about-panel p {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

@media (max-width: 991px) {
    .hero-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
    }
    .hero-about-panel {
        max-width: 100%;
        width: 100%;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 800;
    color: var(--nfs-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    background: rgba(255, 119, 0, 0.1);
    border: 1px solid rgba(255, 119, 0, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
    text-shadow: var(--nfs-subtle-glow);
}

.hero-banner-content h1 {
    font-family: var(--font-racing);
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1.5px;
}

.hero-banner-content h1 span.glow-text {
    color: var(--nfs-orange);
    text-shadow: var(--nfs-orange-glow);
}

@media (min-width: 768px) {
    .hero-banner-content h1 { font-size: 56px; }
}

.hero-btn-container {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-explored {
    background: linear-gradient(135deg, var(--nfs-orange) 0%, #d45500 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-family: var(--font-racing);
    font-size: 16px;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(255, 119, 0, 0.4);
}

.btn-explored:hover {
    background: linear-gradient(135deg, #ff8c1a 0%, var(--nfs-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 119, 0, 0.7);
}

.drivers-banner {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(rgba(8, 10, 15, 0.82), rgba(8, 10, 15, 0.95)), 
                url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1400&q=80') no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 2px solid var(--border-subtle);
    padding: 0 15px;
}

.drivers-banner h2 {
    font-family: var(--font-racing);
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 3px;
}

.drivers-banner h3 {
    font-family: var(--font-racing);
    font-size: 32px;
    font-weight: 800;
    color: var(--nfs-orange);
    text-transform: uppercase;
    margin: 4px 0 0 0;
    letter-spacing: 2px;
    text-shadow: var(--nfs-orange-glow);
}

@media (min-width: 768px) {
    .drivers-banner h2 { font-size: 54px; }
    .drivers-banner h3 { font-size: 40px; }
}

/* ==========================================================================
   SECCIONES Y CONTENEDORES
   ========================================================================== */
.view-section {
    display: none;
    padding: 30px 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .view-section { padding: 40px 20px; }
}

.view-section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

.about-section {
    background: var(--bg-surface);
    padding: 35px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.about-section h2 { 
    font-family: var(--font-racing);
    color: var(--nfs-orange); 
    margin-bottom: 12px; 
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: var(--nfs-subtle-glow);
}

.about-section p { 
    max-width: 840px; 
    margin: 0 auto; 
    color: var(--text-muted); 
    line-height: 1.7; 
    font-size: 15px;
}

h2.section-title {
    font-family: var(--font-racing);
    color: #ffffff;
    text-transform: uppercase;
    border-left: 4px solid var(--nfs-orange);
    padding-left: 14px;
    margin-bottom: 24px;
    letter-spacing: 1.5px;
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2.section-title span.glow {
    color: var(--nfs-orange);
    text-shadow: var(--nfs-subtle-glow);
}

/* ==========================================================================
   COMPONENTE: TOP 3 PODIUM CARDS (Inspirado en lokal.gg Ref. 1)
   ========================================================================== */
.podium-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .podium-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: end;
    }
}

.podium-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.podium-card:hover {
    transform: translateY(-4px);
}

/* Oro - 1er Lugar (Centro destacado) */
.podium-card.rank-1 {
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, rgba(16, 19, 26, 0.95) 100%);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.15);
}

@media (min-width: 768px) {
    .podium-card.rank-1 {
        order: 2;
        padding: 30px 22px;
        transform: translateY(-8px);
    }
    .podium-card.rank-1:hover {
        transform: translateY(-12px);
    }
    .podium-card.rank-2 { order: 1; }
    .podium-card.rank-3 { order: 3; }
}

.podium-card.rank-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    box-shadow: var(--gold-glow);
}

/* Plata - 2do Lugar */
.podium-card.rank-2 {
    border-color: rgba(226, 232, 240, 0.3);
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.05) 0%, rgba(16, 19, 26, 0.95) 100%);
    box-shadow: 0 10px 30px rgba(226, 232, 240, 0.1);
}

.podium-card.rank-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    box-shadow: var(--silver-glow);
}

/* Bronce - 3er Lugar */
.podium-card.rank-3 {
    border-color: rgba(255, 159, 67, 0.3);
    background: linear-gradient(180deg, rgba(255, 159, 67, 0.05) 0%, rgba(16, 19, 26, 0.95) 100%);
    box-shadow: 0 10px 30px rgba(255, 159, 67, 0.1);
}

.podium-card.rank-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff9f43;
    box-shadow: var(--bronze-glow);
}

.podium-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.podium-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.podium-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1e2433;
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.rank-1 .podium-avatar {
    border-color: #ffd700;
    box-shadow: var(--gold-glow);
}
.rank-2 .podium-avatar {
    border-color: #e2e8f0;
    box-shadow: var(--silver-glow);
}
.rank-3 .podium-avatar {
    border-color: #ff9f43;
    box-shadow: var(--bronze-glow);
}

.podium-trophy {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.podium-driver-info h4 {
    font-family: var(--font-racing);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.podium-badge-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 3px;
}

.rank-1 .podium-badge-label { color: #ffd700; }
.rank-2 .podium-badge-label { color: #e2e8f0; }
.rank-3 .podium-badge-label { color: #ff9f43; }

.podium-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.podium-time-val {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 800;
    color: var(--nfs-orange);
    text-shadow: var(--nfs-subtle-glow);
}

.podium-metric-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ESTADÍSTICAS TELEMETRÍA (BARRA SUPERIOR DE RUTAS)
   ========================================================================== */
.leaderboard-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border-subtle);
}

.stat-icon {
    font-size: 22px;
    color: var(--nfs-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(255, 119, 0, 0.6));
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   CONTROLES & FILTROS (Pills estilo eSports / F1)
   ========================================================================== */
.controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .controls-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.search-input {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-ui);
    width: 100%;
    outline: none;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .search-input { max-width: 320px; }
}

.search-input:focus {
    border-color: var(--nfs-orange);
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.35);
    background-color: var(--bg-surface-elevated);
}

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-racing);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
}

.filter-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-surface-elevated);
}

.filter-btn.active {
    background: var(--nfs-orange);
    color: #07080a;
    border-color: var(--nfs-orange);
    font-weight: 800;
    box-shadow: var(--nfs-orange-glow);
}

/* ==========================================================================
   GRID DE RUTAS (F1 Telemetry Cards)
   ========================================================================== */
.routes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .routes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .routes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1250px) {
    .routes-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

.route-card {
    background: linear-gradient(135deg, rgba(17, 21, 30, 0.88) 0%, rgba(10, 13, 19, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 18px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--nfs-orange) 0%, #d97706 100%);
    box-shadow: 0 0 10px rgba(255, 119, 0, 0.4);
    transition: all 0.3s ease;
}

/* Acentos de categoría coherentes con Leaderboards */
.route-card.type-circuito::before {
    background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.route-card.type-sprint::before {
    background: linear-gradient(180deg, #ff7700 0%, #c2410c 100%);
    box-shadow: 0 0 10px rgba(255, 119, 0, 0.4);
}

.route-card.type-drag::before {
    background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.route-card:hover {
    border-color: rgba(255, 119, 0, 0.5);
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(22, 28, 40, 0.95) 0%, rgba(13, 17, 25, 0.98) 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 18px rgba(255, 119, 0, 0.22);
}

.route-card.type-circuito:hover {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 18px rgba(255, 215, 0, 0.2);
}

.route-card.type-drag:hover {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 18px rgba(239, 68, 68, 0.2);
}

.route-card:hover::before {
    width: 5px;
    box-shadow: 0 0 16px rgba(255, 119, 0, 0.75);
}

.route-card.type-circuito:hover::before {
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.75);
}

.route-card.type-drag:hover::before {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.75);
}

.route-icon-container {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.route-icon-box {
    background: rgba(10, 13, 19, 0.95);
    border: 1px solid rgba(255, 119, 0, 0.35);
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--nfs-orange);
    box-shadow: inset 0 0 10px rgba(255, 119, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.type-circuito .route-icon-box {
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.type-drag .route-icon-box {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.12), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.route-card:hover .route-icon-box {
    border-color: var(--nfs-orange);
    box-shadow: inset 0 0 12px rgba(255, 119, 0, 0.25), 0 0 12px rgba(255, 119, 0, 0.3);
}

.route-card.type-circuito:hover .route-icon-box {
    border-color: #ffd700;
    box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.25), 0 0 12px rgba(255, 215, 0, 0.3);
}

.route-card.type-drag:hover .route-icon-box {
    border-color: #ef4444;
    box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.25), 0 0 12px rgba(239, 68, 68, 0.3);
}

.route-badge-letter {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background: linear-gradient(135deg, #ff7700 0%, #b45309 100%);
    color: #ffffff;
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.route-badge-letter.badge-circuito {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #07080a;
    font-weight: 900;
    border-color: rgba(255, 255, 255, 0.4);
}

.route-badge-letter.badge-sprint {
    background: linear-gradient(135deg, #ff7700 0%, #c2410c 100%);
    color: #ffffff;
}

.route-badge-letter.badge-drag {
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
    color: #ffffff;
}

.route-info {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.route-info h3 {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-family: var(--font-racing);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.route-card:hover .route-info h3 {
    color: #ff9933;
}

.route-card.type-circuito:hover .route-info h3 {
    color: #fde047;
}

.route-record-preview {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-time-display {
    font-family: var(--font-mono);
    color: var(--green-neon);
    font-weight: 800;
    font-size: 13px;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.route-record-preview .driver-name {
    font-weight: 700;
    color: #f8fafc;
    font-family: var(--font-racing);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95px;
}

.route-action-icon {
    background: rgba(255, 119, 0, 0.08);
    border: 1px solid rgba(255, 119, 0, 0.25);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9933;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.type-circuito .route-action-icon {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.25);
    color: #ffd700;
}

.type-drag .route-action-icon {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.route-card:hover .route-action-icon {
    background: var(--nfs-orange);
    color: #000000;
    border-color: var(--nfs-orange);
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.5);
    transform: scale(1.05);
}

.route-card.type-circuito:hover .route-action-icon {
    background: #ffd700;
    color: #000000;
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.route-card.type-drag:hover .route-action-icon {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   TABLAS TELEMETRÍA (FÓRMULA 1 + eSPORTS)
   ========================================================================== */
.tabs-group {
    display: none;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tabs-group.active-group {
    display: flex;
}

.tab-btn {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-racing);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s;
}

.tab-btn:hover {
    color: #ffffff;
    background: var(--bg-surface-elevated);
}

.tab-btn.active {
    background: var(--nfs-orange);
    color: #07080a;
    border-color: var(--nfs-orange);
    font-weight: 800;
    box-shadow: var(--nfs-orange-glow);
}

.table-section {
    display: none;
}

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

.table-container {
    background: var(--bg-surface);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    padding: 6px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    text-align: left;
    min-width: 780px;
}

th {
    background-color: transparent;
    color: var(--text-muted);
    font-family: var(--font-racing);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

tbody tr {
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: rgba(255, 119, 0, 0.08);
    box-shadow: inset 3px 0 0 var(--nfs-orange);
}

td {
    padding: 14px 16px;
    font-size: 14px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Ranks con Resplandor Iluminado */
.rank-1 { 
    color: #ffd700; 
    font-family: var(--font-racing);
    font-size: 18px;
    font-weight: 900; 
    text-shadow: var(--gold-glow); 
}
.rank-2 { 
    color: #e2e8f0; 
    font-family: var(--font-racing);
    font-size: 17px;
    font-weight: 800; 
    text-shadow: var(--silver-glow);
}
.rank-3 { 
    color: #ff9f43; 
    font-family: var(--font-racing);
    font-size: 17px;
    font-weight: 800; 
    text-shadow: var(--bronze-glow);
}

/* Pills de Telemetría (Auto, Control, Caja) */
.telemetry-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.btn-youtube {
    background: linear-gradient(135deg, #cc0000 0%, #ff1a1a 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-racing);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(204, 0, 0, 0.4);
    transition: all 0.2s;
}

.btn-youtube:hover {
    background: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    transform: translateY(-1px);
}

/* ==========================================================================
   NOTICIAS & TARJETAS INFORMATIVAS
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .news-grid { grid-template-columns: 1fr 1fr; }
}

.news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--nfs-orange);
    box-shadow: var(--nfs-subtle-glow);
}

.news-card h3 {
    margin-top: 0;
    font-family: var(--font-racing);
    font-size: 20px;
    font-weight: 800;
    color: var(--nfs-orange);
    letter-spacing: 1px;
}

/* ==========================================================================
   FORMULARIO ENVIAR TIEMPO & EXPEDIENTE
   ========================================================================== */
.form-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--nfs-orange);
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row > div {
    flex: 1;
}

.form-label {
    color: var(--text-main);
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: #08090d;
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 14px;
    outline: none;
    transition: all 0.25s;
}

.form-control:focus {
    border-color: var(--nfs-orange);
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.4);
    background: #0c0e14;
}

.btn-submit {
    background: linear-gradient(135deg, var(--nfs-orange) 0%, #d45500 100%);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-family: var(--font-racing);
    font-weight: 800;
    cursor: pointer;
    margin-top: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.25s;
    width: 100%;
    box-shadow: 0 4px 18px rgba(255, 119, 0, 0.4);
}

.btn-submit:hover {
    background: #ff8c1a;
    box-shadow: var(--nfs-orange-glow);
    transform: translateY(-1px);
}

.btn-load-more {
    background: var(--bg-surface);
    color: var(--nfs-orange);
    border: 1px solid var(--nfs-orange);
    padding: 10px 24px;
    font-family: var(--font-racing);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-load-more:hover {
    background: var(--nfs-orange);
    color: #07080a;
    box-shadow: var(--nfs-orange-glow);
}

/* Radio Buttons de Modalidad (Online / Offline) */
.radio-mode-group {
    display: flex;
    gap: 10px;
    height: 44px;
}

.radio-mode-label {
    flex: 1;
    position: relative;
    cursor: pointer;
    margin: 0;
}

.radio-mode-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-mode-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    padding: 8px 14px;
    background: #08090d;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.radio-mode-label input[type="radio"]:checked + .radio-mode-custom {
    background: rgba(255, 119, 0, 0.15);
    border-color: var(--nfs-orange);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 119, 0, 0.35);
}

.radio-mode-label input[type="radio"]:focus + .radio-mode-custom {
    border-color: var(--nfs-orange);
}

/* Inputs con unidad y mono */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-unit {
    position: absolute;
    right: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mono-input {
    font-family: var(--font-mono) !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
}

.highlight-field {
    border-color: rgba(255, 119, 0, 0.45);
    background: rgba(255, 119, 0, 0.04);
}

.field-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

/* Bloque de Telemetría de Video & Marcas */
.telemetry-box {
    background: linear-gradient(180deg, rgba(14, 17, 24, 0.95) 0%, rgba(8, 9, 13, 0.98) 100%);
    border: 1px solid rgba(255, 119, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 22px 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.telemetry-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--nfs-orange);
}

.telemetry-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 8px;
}

.telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-racing);
    font-size: 12px;
    font-weight: 800;
    color: var(--nfs-orange);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.telemetry-helper {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Panel Comparador en Vivo */
.telemetry-comparison-panel {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    margin-top: 14px;
}

.comparison-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.comp-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #08090d;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 8px 12px;
    flex: 1 1 90px;
    text-align: center;
}

.comp-label {
    font-size: 10px;
    font-family: var(--font-racing);
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.comp-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.comp-operator {
    font-family: var(--font-racing);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    padding: 0 4px;
}

.comp-col-diff {
    border-color: rgba(255, 119, 0, 0.4);
    background: rgba(255, 119, 0, 0.08);
}

.comp-col-diff .val-diff {
    color: var(--nfs-orange);
    font-size: 14px;
}

.comp-col-declared {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.05);
}

.comp-col-declared .val-declared {
    color: var(--green-neon);
    font-size: 14px;
}

/* Banner de Estado de Validación */
.validation-status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.val-status-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.val-status-info strong {
    display: block;
    font-family: var(--font-racing);
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.val-status-info p {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.85;
}

.validation-status-banner.state-idle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.validation-status-banner.state-match {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.5);
    color: #e6fff4;
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.2);
}

.validation-status-banner.state-match strong {
    color: var(--green-neon);
}

.validation-status-banner.state-mismatch {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #ffebe9;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.validation-status-banner.state-mismatch strong {
    color: #ff5252;
}

/* Botón Sincronizar */
.btn-sync-diff {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: rgba(255, 119, 0, 0.12);
    border: 1px dashed var(--nfs-orange);
    color: var(--nfs-orange);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-sync-diff:hover {
    background: var(--nfs-orange);
    color: #07080a;
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.4);
}

/* Clases de Error / Aprobado en Inputs */
.field-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35) !important;
}

.field-success {
    border-color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.06) !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.35) !important;
}

/* ==========================================================================
   DESAFÍOS SEMANALES (Inspirado en NightRiderz World)
   ========================================================================== */
.challenges-summary-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) {
    .challenges-summary-bar {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.challenge-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.challenge-summary-icon {
    font-size: 22px;
    color: var(--nfs-orange);
    filter: drop-shadow(0 0 6px rgba(255, 119, 0, 0.5));
}

.challenge-summary-content {
    display: flex;
    flex-direction: column;
}

.challenge-summary-label {
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.challenge-summary-val {
    font-family: var(--font-racing);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Barra de Navegación de Semanas & Filtros */
.challenges-controls-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
}

@media (min-width: 900px) {
    .challenges-controls-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-week-nav {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-week-nav:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--nfs-orange);
    color: var(--nfs-orange);
}

.week-current-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-racing);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-jump-current {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 6px;
    font-family: var(--font-racing);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.btn-jump-current:hover {
    color: #ffffff;
    border-color: var(--nfs-orange);
    background: rgba(255, 119, 0, 0.1);
}

.challenge-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Grid de Desafíos */
.challenges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 680px) {
    .challenges-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1050px) {
    .challenges-grid { grid-template-columns: repeat(3, 1fr); }
}

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

/* Tarjeta individual de Desafío */
.challenge-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.challenge-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 119, 0, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 119, 0, 0.15);
}

.challenge-card.is-completed {
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 136, 0.15);
}

/* Imagen superior con badges flotantes */
.challenge-thumb {
    height: 150px;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.challenge-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 12, 16, 0.4) 0%, rgba(10, 12, 16, 0.85) 100%);
    z-index: 1;
}

.challenge-thumb-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Badges de dificultad */
.difficulty-badge {
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
}

.diff-very-easy {
    background: #00e5ff;
    color: #07080a;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.diff-easy {
    background: #22c55e;
    color: #07080a;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.diff-medium {
    background: #eab308;
    color: #07080a;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.6);
}

.diff-hard {
    background: #f97316;
    color: #07080a;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

.diff-extreme {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
}

.challenge-tier-pill {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    font-family: var(--font-racing);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Estadísticas de comunidad */
.challenge-community-row {
    background: rgba(8, 10, 15, 0.95);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Cuerpo de la tarjeta */
.challenge-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.challenge-mode-label {
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--nfs-orange);
    text-transform: uppercase;
}

.challenge-route-name {
    font-family: var(--font-racing);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.challenge-time-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: 6px;
}

.challenge-time-val {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.challenge-restriction {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Recompensa */
.challenge-reward-bar {
    background: linear-gradient(90deg, #eab308 0%, #f59e0b 100%);
    color: #07080a;
    font-family: var(--font-racing);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
}

/* Botones de acción inferior */
.challenge-actions-row {
    padding: 14px 16px;
    background: rgba(8, 10, 15, 0.7);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-toggle-complete {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-family: var(--font-racing);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-toggle-complete.incomplete {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

.btn-toggle-complete.incomplete:hover {
    background: #dc2626;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.btn-toggle-complete.completed {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.35);
}

.btn-toggle-complete.completed:hover {
    background: #16a34a;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}

.btn-challenge-submit {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-racing);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-challenge-submit:hover {
    color: var(--nfs-orange);
    border-color: var(--nfs-orange);
    background: rgba(255, 119, 0, 0.08);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    margin-top: auto;
    background-color: #060709;
    border-top: 1px solid var(--border-subtle);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-dimmed);
    font-size: 13px;
    line-height: 1.7;
}

footer strong {
    color: var(--text-muted);
}

/* ==========================================================================
   BLACKLIST EVENT // RANKS 2026 (ESTILO MOST WANTED + F1 CYBERPUNK)
   ========================================================================== */

/* Sub-pestañas de alternancia rápida */
.blacklist-subtabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.blacklist-layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 25px;
    margin-top: 25px;
    align-items: start;
}

/* --- FICHA TÁCTICA DE PILOTO (INSPIRADA EN RAZOR NFSMW) --- */
.blacklist-tactical-card {
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(35, 68, 48, 0.45) 0%, rgba(10, 14, 18, 0.95) 75%), #090d10;
    border: 1px solid rgba(80, 140, 95, 0.35);
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), inset 0 0 50px rgba(0, 45, 20, 0.25);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.blacklist-tactical-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700 0%, #39ff14 50%, transparent 100%);
}

.tactical-card-header {
    margin-bottom: 18px;
}

.blacklist-number-title {
    font-family: 'Times New Roman', 'Cloister Black', 'Georgia', serif;
    font-weight: 900;
    font-size: 42px;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(60, 180, 90, 0.5);
    letter-spacing: -1.5px;
    text-transform: lowercase;
    line-height: 1;
}

.blacklist-driver-fullname {
    font-family: var(--font-racing);
    font-size: 22px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* Especificaciones del Auto & Habilidad */
.tactical-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 15px;
}

.spec-label {
    font-family: 'Times New Roman', 'Georgia', serif;
    font-style: italic;
    font-weight: 900;
    color: #e2e8f0;
    font-size: 16px;
}

.spec-value {
    font-family: var(--font-racing);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Caja de Biografía Táctica con marco angular */
.tactical-bio-box {
    position: relative;
    background: rgba(5, 8, 10, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 20px 20px 30px 20px;
    margin-bottom: 20px;
}

/* Marcas de esquinas tipo visor HUD */
.tactical-bio-box::before {
    content: '⌜';
    position: absolute;
    top: 4px;
    left: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 22px;
    font-family: monospace;
    line-height: 1;
}

.tactical-bio-box::after {
    content: '⌟';
    position: absolute;
    bottom: 4px;
    right: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 22px;
    font-family: monospace;
    line-height: 1;
}

.bio-title {
    font-family: 'Times New Roman', 'Georgia', serif;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.bio-text {
    font-family: var(--font-main);
    font-size: 13.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0;
}

.tactical-signature {
    position: absolute;
    right: 25px;
    bottom: 8px;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 26px;
    color: #39ff14;
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.8), 2px 2px 4px #000;
    transform: rotate(-6deg);
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Métricas de Reputación y Puntos */
.tactical-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.metric-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    padding: 12px 14px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.rep-box {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.rep-val {
    color: var(--green-neon);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.pts-box {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.pts-box .metric-value {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Desglose de Podios P1, P2, P3, P4 */
.tactical-podiums-breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.podium-chip {
    padding: 8px 6px;
    border-radius: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid transparent;
}

.chip-pos {
    font-family: var(--font-racing);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.chip-val {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 800;
}

.chip-p1 {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.chip-p2 {
    background: rgba(192, 192, 192, 0.1);
    border-color: rgba(192, 192, 192, 0.4);
    color: #e2e8f0;
}

.chip-p3 {
    background: rgba(205, 127, 50, 0.1);
    border-color: rgba(205, 127, 50, 0.4);
    color: #cd7f32;
}

.chip-p4 {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

/* --- TABLA DE LOS 15 PILOTOS --- */
.blacklist-roster-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.roster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.blacklist-table-wrapper {
    max-height: 640px;
    overflow-y: auto;
}

.blacklist-table {
    width: 100%;
    border-collapse: collapse;
}

.blacklist-table th {
    position: sticky;
    top: 0;
    background: #080a0e;
    z-index: 2;
}

.blacklist-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.blacklist-row:hover {
    background: rgba(255, 119, 0, 0.08) !important;
}

.blacklist-row.active-row {
    background: rgba(255, 119, 0, 0.15) !important;
    border-left: 4px solid var(--nfs-orange);
}

.bl-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-family: var(--font-racing);
    font-size: 15px;
    font-weight: 800;
}

.rank-gold {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-silver {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    color: #000;
}

.rank-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
    color: #fff;
}

.rank-normal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.driver-cell-flex {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.driver-cell-name {
    font-family: var(--font-racing);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.driver-cell-alias {
    font-size: 11px;
    color: var(--nfs-orange);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.rep-money-cell {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--green-neon);
    font-size: 14px;
}

.pts-cell {
    font-family: var(--font-mono);
    font-weight: 800;
    color: #ffd700;
    font-size: 14px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--font-racing);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-leader {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-contender {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   CAMPEONATO BLACKLIST 2026: 4 SEMANAS, 5 GRUPOS DE 3 Y BONOS DE TIEMPO
   ========================================================================== */

/* Selector de Semanas del Campeonato */
.championship-week-selector {
    background: rgba(10, 14, 20, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.championship-week-label {
    font-family: var(--font-racing);
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.championship-week-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.champ-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.champ-pill:hover {
    color: #ffffff;
    border-color: var(--nfs-orange);
    background: rgba(255, 119, 0, 0.08);
}

.champ-pill.active {
    background: var(--nfs-orange);
    color: #000000;
    border-color: var(--nfs-orange);
    font-weight: 800;
    box-shadow: 0 0 15px rgba(255, 119, 0, 0.4);
}

.champ-badge-highlight {
    background: rgba(255, 119, 0, 0.12);
    border: 1px solid var(--nfs-orange);
    color: var(--nfs-orange);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- SECCIÓN: 5 GRUPOS DE 3 PILOTOS --- */
.championship-groups-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-card);
}

.championship-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.champ-group-card {
    background: rgba(6, 9, 13, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.champ-group-card:hover {
    border-color: var(--nfs-orange);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 119, 0, 0.15);
    transform: translateY(-2px);
}

.champ-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.champ-group-name {
    font-family: var(--font-racing);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.champ-group-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    color: var(--green-neon);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
}

.champ-group-pilots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.champ-group-pilot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.champ-group-pilot-item:hover {
    background: rgba(255, 119, 0, 0.1);
}

.champ-group-pilot-item.selected {
    background: rgba(255, 119, 0, 0.18);
    border: 1px solid var(--nfs-orange);
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.35);
}

.pilot-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pilot-item-name {
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.pilot-item-car {
    font-size: 11px;
    color: var(--text-muted);
}

.pilot-item-pts {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    color: #ffd700;
}

/* --- SECCIÓN: LOS 4 DESAFÍOS DE LA SEMANA CON BONOS DE TIEMPO --- */
.championship-challenges-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-card);
}

.championship-challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.champ-challenge-card {
    background: rgba(6, 9, 13, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.champ-challenge-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.champ-ch-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.champ-ch-title {
    font-family: var(--font-racing);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.champ-ch-type {
    font-size: 11px;
    font-weight: 700;
    color: var(--nfs-orange);
    font-family: var(--font-racing);
    letter-spacing: 0.5px;
}

.champ-ch-podiums {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.champ-ch-podium-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.podium-row-1 {
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid #ffd700;
}

.podium-row-2 {
    background: rgba(192, 192, 192, 0.08);
    border-left: 3px solid #c0c0c0;
}

.podium-row-3 {
    background: rgba(205, 127, 50, 0.08);
    border-left: 3px solid #cd7f32;
}

.badge-bonus {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.badge-bonus-100 {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.badge-bonus-50 {
    background: rgba(192, 192, 192, 0.2);
    color: #e2e8f0;
    border: 1px solid rgba(192, 192, 192, 0.4);
}

.badge-bonus-20 {
    background: rgba(205, 127, 50, 0.2);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.4);
}

/* --- BONOS EN FICHA TÁCTICA RAZOR --- */
.tactical-bonuses-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.bonus-chip {
    padding: 8px 6px;
    border-radius: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bonus-tag {
    font-family: var(--font-racing);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.bonus-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
}

.chip-b1 {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.chip-b2 {
    background: rgba(192, 192, 192, 0.1);
    border: 1px solid rgba(192, 192, 192, 0.4);
    color: #e2e8f0;
}

.chip-b3 {
    background: rgba(205, 127, 50, 0.1);
    border: 1px solid rgba(205, 127, 50, 0.4);
    color: #cd7f32;
}

/* Columna de Bonos de Tiempo en Tabla */
.bonus-summary-cell {
    display: flex;
    gap: 4px;
    align-items: center;
}

.mini-bonus-pill {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Sub-Pestañas de Navegación del Torneo (Grupos vs Clasificación) */
.champ-subtabs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    background: rgba(10, 14, 20, 0.85);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    width: fit-content;
}

.champ-subtab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-racing);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.champ-subtab-btn:hover {
    color: #ffffff;
    background: rgba(255, 119, 0, 0.08);
    border-color: rgba(255, 119, 0, 0.3);
}

.champ-subtab-btn.active {
    background: var(--nfs-orange);
    color: #000000;
    border-color: var(--nfs-orange);
    font-weight: 800;
    box-shadow: 0 0 15px rgba(255, 119, 0, 0.4);
}

/* Envoltorio de Ficha Táctica Centrada */
.championship-tactical-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-card);
}

.tactical-card-centered-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.tactical-card-centered-container .blacklist-tactical-card {
    max-width: 580px;
    width: 100%;
}

/* Tabla de Clasificación en Pantalla Completa */
.standings-full-width {
    width: 100%;
}

/* Acciones de Pie en Vista de Grupos */
.championship-actions-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ==========================================================================
   GRID Y FICHAS TÉCNICAS DE LOS 15 PILOTOS (ORDEN BLACKLIST 1 AL 15)
   ========================================================================== */
.pilot-quick-jump-container {
    background: rgba(10, 14, 20, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.quick-jump-title {
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 800;
    color: var(--nfs-orange);
    letter-spacing: 1px;
}

.pilot-quick-jump-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jump-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jump-pill:hover {
    background: var(--nfs-orange);
    color: #000000;
    border-color: var(--nfs-orange);
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.4);
    transform: translateY(-1px);
}

/* Grid de las 15 Fichas Técnicas */
.blacklist-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

.standalone-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.standalone-card:hover {
    transform: translateY(-4px);
    border-color: var(--nfs-orange);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 119, 0, 0.25);
}

.card-highlight-pulse {
    animation: cardPulse 1.5s ease-out;
    border-color: var(--nfs-orange) !important;
}

@keyframes cardPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 119, 0, 0.8);
        transform: scale(1.02);
    }
    50% {
        box-shadow: 0 0 35px 12px rgba(255, 119, 0, 0.7);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 119, 0, 0);
        transform: scale(1);
    }
}

/* Responsive para Blacklist */
@media (max-width: 1080px) {
    .blacklist-layout {
        grid-template-columns: 1fr;
    }
    .blacklist-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =======================================================
   ESTILOS: INSCRIPCIÓN AL CAMPEONATO BLACKLIST 2026
   ======================================================= */
.championship-register-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    margin-top: 25px;
    align-items: start;
}

.register-form-card {
    background: var(--bg-surface, #15151a);
    border: 1px solid rgba(255, 119, 0, 0.25);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.register-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nfs-orange), #ff2200, var(--nfs-orange));
}

.register-card-header {
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.register-badge {
    display: inline-block;
    background: rgba(255, 119, 0, 0.15);
    border: 1px solid var(--nfs-orange);
    color: var(--nfs-orange);
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.register-card-header h3 {
    font-family: var(--font-racing);
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.register-card-header p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, #e0e0e0);
    letter-spacing: 0.3px;
}

.required-star {
    color: var(--nfs-orange);
    font-weight: 800;
}

.optional-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: normal;
}

.form-input {
    background: rgba(8, 8, 12, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 10px 14px;
    color: #ffffff;
    font-family: var(--font-ui, 'Inter', sans-serif);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input:focus {
    border-color: var(--nfs-orange);
    background: rgba(12, 12, 18, 0.95);
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.3);
}

.terms-checkbox-group {
    margin: 20px 0 22px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    border-radius: 6px;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.terms-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--nfs-orange);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.terms-label strong {
    color: #ffffff;
}

.form-actions {
    margin-top: 10px;
}

.btn-register-submit {
    width: 100%;
    background: linear-gradient(135deg, #ff7700 0%, #ff3b00 100%);
    border: none;
    border-radius: 6px;
    padding: 14px 20px;
    color: #ffffff;
    font-family: var(--font-racing);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255, 119, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-register-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(255, 119, 0, 0.6);
    filter: brightness(1.1);
}

.btn-register-submit:active {
    transform: translateY(0);
}

.btn-register-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.register-feedback-msg {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.feedback-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--green-neon, #22c55e);
    color: #4ade80;
}

.feedback-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

/* Panel de Participantes Inscritos */
.registered-participants-panel {
    background: var(--bg-surface, #15151a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.registered-participants-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.panel-header-left h3 {
    font-family: var(--font-racing);
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.panel-header-left p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
}

.slots-pill {
    background: rgba(255, 119, 0, 0.15);
    border: 1px solid var(--nfs-orange);
    color: var(--nfs-orange);
    font-family: var(--font-racing);
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.registered-pilots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.registered-pilot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.registered-pilot-item:hover {
    border-color: rgba(255, 119, 0, 0.4);
    background: rgba(255, 119, 0, 0.05);
    transform: translateX(4px);
}

.registered-pilot-item.is-user {
    border-left: 3px solid var(--nfs-orange);
}

.registered-pilot-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reg-slot-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-racing);
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.slot-gold {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.slot-silver {
    background: linear-gradient(135deg, #e0e0e0, #8a8a8a);
    color: #000;
}

.slot-bronze {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
}

.slot-normal {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.reg-pilot-name {
    font-family: var(--font-racing);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reg-pilot-car {
    font-size: 12px;
    color: var(--nfs-orange);
    display: flex;
    align-items: center;
    gap: 4px;
}

.reg-pilot-schedule {
    font-size: 11px;
    color: var(--text-muted);
}

.registered-pilot-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.btn-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #ff4d4d;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-yt-link:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff2222;
    transform: scale(1.05);
}

.reg-status-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.status-official {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--green-neon);
}

.status-empty {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.empty-participants-msg {
    text-align: center;
    padding: 30px 15px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Enlace a YouTube en Fichas Técnicas */
.tactical-yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #ff5555;
    font-family: var(--font-racing);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.2s, transform 0.2s;
}

.tactical-yt-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff2222;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .championship-register-layout {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =======================================================
   SALÓN HISTÓRICO DE TORNEOS (CHALLONGE HISTORIAL)
   ======================================================= */
.past-tournaments-selector-bar {
    margin-bottom: 25px;
}

.past-tournament-hero-card {
    background: linear-gradient(135deg, rgba(13, 19, 28, 0.95), rgba(20, 29, 44, 0.9));
    border: 1px solid rgba(255, 119, 0, 0.35);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 119, 0, 0.1);
}

.past-hero-content {
    flex: 1;
}

.past-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.past-badge-edition {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    font-family: var(--font-racing);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.past-badge-date, .past-badge-category, .past-badge-format {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
}

.past-hero-title {
    font-family: var(--font-racing);
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(255, 119, 0, 0.3);
}

.past-hero-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.btn-challonge-link-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 119, 0, 0.2), rgba(255, 119, 0, 0.35));
    border: 1px solid var(--nfs-orange);
    color: #ffffff;
    font-family: var(--font-racing);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(255, 119, 0, 0.25);
}

.btn-challonge-link-hero:hover {
    background: var(--nfs-orange);
    color: #000000;
    box-shadow: 0 0 25px rgba(255, 119, 0, 0.6);
    transform: translateY(-2px);
}

.btn-challonge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-challonge-link:hover {
    background: rgba(255, 119, 0, 0.2);
    border-color: var(--nfs-orange);
    color: var(--nfs-orange);
}

/* Selector interno de vista (Brackets / Podio / Roster) */
.past-view-mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 15px;
}

/* Secciones de Brackets */
.bracket-section-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-card);
}

.bracket-section-finals {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
}

.bracket-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bracket-section-header h3 {
    font-family: var(--font-racing);
    font-size: 18px;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.bracket-rounds-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--nfs-orange);
    background: rgba(255, 119, 0, 0.1);
    border: 1px solid rgba(255, 119, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

.bracket-tree-scrollable {
    overflow-x: auto;
    padding-bottom: 12px;
}

.bracket-tree-scrollable::-webkit-scrollbar {
    height: 8px;
}

.bracket-tree-scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.bracket-tree-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 119, 0, 0.4);
    border-radius: 4px;
}

.bracket-tree-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--nfs-orange);
}

.bracket-tree {
    display: flex;
    gap: 24px;
    min-width: max-content;
}

.bracket-round {
    min-width: 270px;
    max-width: 290px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bracket-round-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid var(--nfs-orange);
}

.round-number {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    color: var(--nfs-orange);
}

.bracket-round-header h4 {
    font-family: var(--font-racing);
    font-size: 13px;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.bracket-matches-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Tarjeta individual de Match */
.bracket-match-card {
    background: rgba(10, 15, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.bracket-match-card:hover {
    border-color: rgba(255, 119, 0, 0.5);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 12px rgba(255, 119, 0, 0.2);
}

.match-grand-final {
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(16, 22, 33, 0.95), rgba(30, 25, 10, 0.95));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
}

.match-id-badge {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-weight: 700;
}

.grand-final-badge {
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 800;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 1px 6px;
    border-radius: 3px;
}

.match-competitors {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.15s;
}

.match-player-row.is-winner {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.match-player-row.is-loser {
    opacity: 0.65;
}

.player-seed {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--nfs-orange);
    min-width: 24px;
}

.player-name {
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-crown-icon {
    font-size: 12px;
    margin: 0 4px;
}

.player-score {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 22px;
    text-align: center;
    padding: 1px 5px;
    border-radius: 3px;
}

.score-winner {
    background: rgba(34, 197, 94, 0.25);
    color: var(--green-neon);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.match-row-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 2px 0;
}

.match-status-footer {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 11px;
    display: flex;
    justify-content: flex-end;
}

.match-verdict {
    color: var(--text-muted);
}

/* PODIO DEL TORNEO HISTÓRICO */
.past-podium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.past-podium-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.past-podium-card:hover {
    transform: translateY(-4px);
}

.podium-gold {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, rgba(16, 22, 33, 0.95), rgba(35, 28, 10, 0.95));
}

.podium-silver {
    border-color: rgba(203, 213, 225, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(203, 213, 225, 0.15);
}

.podium-bronze {
    border-color: rgba(205, 127, 50, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(205, 127, 50, 0.15);
}

.podium-honor {
    border-color: rgba(56, 189, 248, 0.4);
}

.podium-place-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.podium-medal {
    font-size: 28px;
}

.podium-rank-text {
    font-family: var(--font-racing);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
}

.podium-gold .podium-rank-text { color: #ffd700; }
.podium-silver .podium-rank-text { color: #e2e8f0; }
.podium-bronze .podium-rank-text { color: #cd7f32; }
.podium-honor .podium-rank-text { color: #38bdf8; }

.podium-seed {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--nfs-orange);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.podium-driver-name {
    font-family: var(--font-racing);
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.podium-driver-note p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.podium-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.podium-event-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* ROSTER DE PARTICIPANTES EN TORNEO */
.past-final-pos {
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.pos-champion {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.pos-silver {
    background: rgba(203, 213, 225, 0.15);
    border: 1px solid rgba(203, 213, 225, 0.4);
    color: #e2e8f0;
}

.pos-bronze {
    background: rgba(205, 127, 50, 0.15);
    border: 1px solid rgba(205, 127, 50, 0.4);
    color: #cd7f32;
}

.crown-badge {
    font-size: 11px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 800;
}

.badge-verified-challonge {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .past-tournament-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .past-view-mode-tabs {
        flex-wrap: wrap;
    }
    .bracket-round {
        min-width: 240px;
    }
}

/* =======================================================
   BANNER OFICIAL DE LA COMUNIDAD DE DISCORD (HOME)
   ======================================================= */
.home-discord-banner {
    position: relative;
    max-width: 1100px;
    margin: 25px auto 10px auto;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.16) 0%, rgba(13, 19, 28, 0.95) 70%);
    border: 1px solid rgba(88, 101, 242, 0.45);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(88, 101, 242, 0.2);
    overflow: hidden;
}

.discord-banner-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.discord-banner-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    z-index: 1;
}

.discord-icon-badge {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.6);
    color: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.35);
}

.discord-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discord-tag {
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 800;
    color: #5865F2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.discord-banner-text h3 {
    font-family: var(--font-racing);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

.discord-banner-text p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.discord-banner-right {
    z-index: 1;
}

.btn-discord-join {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: var(--font-racing);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.btn-discord-join:hover {
    background: linear-gradient(135deg, #6875f5 0%, #5865F2 100%);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.7);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-discord-hero {
    background: rgba(88, 101, 242, 0.15) !important;
    border: 1px solid rgba(88, 101, 242, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.25) !important;
}

.btn-discord-hero:hover {
    background: #5865F2 !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.6) !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .home-discord-banner {
        flex-direction: column;
        align-items: flex-start;
        margin: 15px 12px;
    }
    .discord-banner-right {
        width: 100%;
    }
    .btn-discord-join {
        width: 100%;
        justify-content: center;
    }
}

/* =======================================================
   TABLAS DE LEADERBOARD ADAPTADAS AL ESTILO BLACKLIST
   ======================================================= */
.table-section .blacklist-table-wrapper {
    margin-top: 15px;
    border-radius: 10px;
    background: rgba(10, 14, 20, 0.85);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    overflow-x: auto;
}

.table-section .blacklist-table {
    width: 100%;
    border-collapse: collapse;
}

.table-section .blacklist-table th {
    background: rgba(15, 23, 34, 0.95);
    font-family: var(--font-racing);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 14px 16px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255, 119, 0, 0.35);
    text-align: left;
}

.table-section .blacklist-table td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   PORTAL HOME // DASHBOARD CON MÓDULOS LATERALES (ESPORTS HUB)
   ========================================================================== */
.home-portal-wrapper {
    max-width: 1300px;
    margin: 35px auto 60px auto;
    padding: 0 20px;
}

.home-portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (min-width: 1024px) {
    .home-portal-grid {
        grid-template-columns: 1fr 390px;
    }
}

/* Columna Principal */
.home-main-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Banner Destacado del Campeonato */
.home-competition-card {
    position: relative;
    background: linear-gradient(135deg, rgba(18, 24, 36, 0.95) 0%, rgba(10, 13, 20, 0.98) 100%);
    border: 1px solid rgba(255, 119, 0, 0.3);
    border-radius: 12px;
    padding: 30px 28px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 119, 0, 0.12);
}

.home-card-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 119, 0, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.home-comp-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-racing);
    font-size: 12px;
    font-weight: 800;
    color: var(--nfs-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255, 119, 0, 0.12);
    border: 1px solid rgba(255, 119, 0, 0.35);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.home-competition-card h2 {
    font-family: var(--font-racing);
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 10px 0;
    line-height: 1.15;
}

.home-comp-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 22px 0;
    max-width: 720px;
}

.home-comp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.comp-feature-pill {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comp-feat-icon {
    font-size: 24px;
}

.comp-feature-pill strong {
    display: block;
    font-family: var(--font-racing);
    font-size: 15px;
    color: #ffffff;
}

.comp-feature-pill small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.home-comp-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline-nfs {
    background: rgba(255, 119, 0, 0.1) !important;
    border: 1px solid rgba(255, 119, 0, 0.4) !important;
    color: #ff9933 !important;
    box-shadow: none !important;
}

.btn-outline-nfs:hover {
    background: var(--nfs-orange) !important;
    color: #000000 !important;
    border-color: var(--nfs-orange) !important;
}

/* Tarjetas de Categorías */
.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.home-category-card {
    background: linear-gradient(135deg, rgba(16, 20, 29, 0.9) 0%, rgba(10, 13, 19, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 119, 0, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 119, 0, 0.2);
}

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

.cat-icon {
    font-size: 24px;
}

.cat-badge {
    font-family: var(--font-racing);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.card-circuito .cat-badge { color: #ffd700; background: rgba(255, 215, 0, 0.12); }
.card-sprint .cat-badge { color: #ff7700; background: rgba(255, 119, 0, 0.12); }
.card-drag .cat-badge { color: #f87171; background: rgba(239, 68, 68, 0.12); }

.home-category-card h3 {
    font-family: var(--font-racing);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.home-category-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.cat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    font-size: 12px;
    color: var(--text-dimmed);
}

.cat-arrow {
    font-size: 16px;
    color: var(--nfs-orange);
    transition: transform 0.2s ease;
}

.home-category-card:hover .cat-arrow {
    transform: translateX(4px);
}

/* Caja de Reglas & Integridad */
.home-rules-box {
    background: rgba(14, 18, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.rules-box-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rules-box-content h4 {
    font-family: var(--font-racing);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
}

.rules-box-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.rules-box-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.rules-box-links a {
    color: var(--nfs-orange);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-racing);
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.rules-box-links a:hover {
    color: #ffaa33;
    text-decoration: underline;
}

/* ==========================================================================
   MÓDULOS LATERALES (SIDEBAR DASHBOARD WIDGETS)
   ========================================================================== */
.home-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.home-sidebar-module {
    background: linear-gradient(145deg, rgba(16, 21, 31, 0.95) 0%, rgba(10, 13, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.home-sidebar-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.module-event::before {
    background: linear-gradient(90deg, var(--nfs-orange), #ffd700);
    box-shadow: 0 0 10px rgba(255, 119, 0, 0.5);
}

.module-leaderboard::before {
    background: linear-gradient(90deg, var(--green-neon), #38bdf8);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.module-challenges::before {
    background: linear-gradient(90deg, #38bdf8, var(--nfs-orange));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

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

.module-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-event {
    background: rgba(255, 119, 0, 0.15);
    color: var(--nfs-orange);
    border: 1px solid rgba(255, 119, 0, 0.3);
}

.badge-leaderboard {
    background: rgba(0, 255, 136, 0.12);
    color: var(--green-neon);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-challenges {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.module-tag-year, .module-tag-refresh, .module-tag-dates {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dimmed);
    font-weight: 700;
}

.module-title {
    font-family: var(--font-racing);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.module-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Cuenta Regresiva Digital */
.event-countdown-container {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 119, 0, 0.3);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.countdown-title {
    font-family: var(--font-racing);
    font-size: 10px;
    font-weight: 800;
    color: var(--nfs-orange);
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.cd-number {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 119, 0, 0.6);
}

.cd-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
}

.cd-sep {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 800;
    color: var(--nfs-orange);
    margin-top: -12px;
}

/* Filas de detalles del evento */
.module-event-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 12px;
}

.event-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: var(--text-muted);
}

.detail-val {
    color: #ffffff;
    font-weight: 600;
}

/* Botones de acción dentro de módulos */
.module-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-module-cta {
    background: linear-gradient(135deg, var(--nfs-orange) 0%, #d45500 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: var(--font-racing);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(255, 119, 0, 0.35);
}

.btn-module-cta:hover {
    background: linear-gradient(135deg, #ff8c1a 0%, var(--nfs-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 119, 0, 0.6);
}

.btn-module-sub {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-module-sub:hover {
    background: rgba(255, 119, 0, 0.12);
    border-color: rgba(255, 119, 0, 0.4);
    color: var(--nfs-orange);
}

.btn-cta-leaderboard {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 100, 0.1) 100%);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: var(--green-neon);
    box-shadow: 0 4px 14px rgba(0, 255, 136, 0.15);
}

.btn-cta-leaderboard:hover {
    background: var(--green-neon);
    color: #000000;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.btn-cta-challenges {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
}

.btn-cta-challenges:hover {
    background: #38bdf8;
    color: #000000;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Filas del Mini-Leaderboard en Tiempo Real */
.home-live-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-lb-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

.live-lb-item:hover {
    background: rgba(255, 119, 0, 0.08);
    border-color: rgba(255, 119, 0, 0.35);
    transform: translateX(3px);
}

.live-lb-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.live-lb-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-family: var(--font-racing);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.live-lb-rank-1 { background: linear-gradient(135deg, #ffd700, #b8860b); color: #000; }
.live-lb-rank-2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #000; }
.live-lb-rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }
.live-lb-rank-other { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

.live-lb-info {
    overflow: hidden;
}

.live-lb-driver {
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-lb-track {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-lb-right {
    text-align: right;
    flex-shrink: 0;
}

.live-lb-time {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    color: var(--green-neon);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.live-lb-car {
    font-size: 9px;
    color: var(--text-dimmed);
    text-transform: uppercase;
    font-weight: 600;
}

/* Timeline de Desafíos Semanales */
.home-challenges-timeline {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.timeline-week-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-week-item:hover, .timeline-week-item.active-week {
    background: rgba(255, 119, 0, 0.08);
    border-color: rgba(255, 119, 0, 0.35);
    transform: translateX(3px);
}

.timeline-week-num {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 119, 0, 0.15);
    border: 1px solid rgba(255, 119, 0, 0.3);
    color: var(--nfs-orange);
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-week-info {
    flex-grow: 1;
    overflow: hidden;
}

.timeline-week-title {
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-week-meta {
    font-size: 10px;
    color: var(--text-muted);
}

.timeline-week-status {
    font-family: var(--font-racing);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.status-next {
    background: rgba(255, 119, 0, 0.2);
    color: var(--nfs-orange);
}

.status-locked {
    color: var(--text-dimmed);
}

.status-final {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* =======================================================
   SECCIÓN: DESCARGAS OFICIALES (VIEW-DOWNLOAD)
   ======================================================= */
.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.download-hero-banner {
    text-align: center;
    margin-bottom: 35px;
    background: radial-gradient(circle at center, rgba(255, 119, 0, 0.12) 0%, rgba(13, 17, 23, 0.8) 70%);
    border: 1px solid rgba(255, 119, 0, 0.25);
    border-radius: 12px;
    padding: 35px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.download-badge-tag {
    display: inline-block;
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 800;
    color: var(--nfs-orange);
    letter-spacing: 2px;
    background: rgba(255, 119, 0, 0.15);
    border: 1px solid rgba(255, 119, 0, 0.35);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.download-main-title {
    font-family: var(--font-racing);
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 119, 0, 0.4);
}

.download-subtitle {
    font-size: 14px;
    color: #cbd5e1;
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- CUADRÍCULA DE DESCARGA --- */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    margin-bottom: 35px;
}

.download-card-primary {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.download-card-header {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.download-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: rgba(255, 119, 0, 0.12);
    border: 1px solid rgba(255, 119, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-card-title-group {
    flex-grow: 1;
}

.download-file-tag {
    font-size: 11px;
    font-family: var(--font-racing);
    color: var(--nfs-orange);
    font-weight: 800;
    letter-spacing: 1px;
}

.download-file-name {
    font-family: var(--font-racing);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0;
}

.download-file-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.download-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.feat-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 14px;
}

.feat-icon {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feat-text strong {
    color: #ffffff;
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.feat-text p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.download-action-wrapper {
    margin-top: auto;
}

.btn-download-glow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff7700 0%, #ff4500 100%);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(255, 119, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-download-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(255, 119, 0, 0.65);
    filter: brightness(1.1);
}

.btn-download-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-download-icon {
    font-size: 30px;
}

.btn-download-texts {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-download-main {
    font-family: var(--font-racing);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.btn-download-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

.btn-download-arrow {
    font-size: 22px;
    color: #ffffff;
    transition: transform 0.2s;
}

.btn-download-glow:hover .btn-download-arrow {
    transform: translateX(5px);
}

/* --- BARRA LATERAL --- */
.download-card-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-specs-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 22px;
}

.specs-title {
    font-family: var(--font-racing);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.specs-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 8px;
}

.specs-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.specs-val {
    color: #ffffff;
    font-family: var(--font-mono);
    text-align: right;
}

.code-val {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    word-break: break-all;
    max-width: 180px;
}

.download-support-banner {
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.support-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.support-text strong {
    color: #ffffff;
    font-family: var(--font-racing);
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.support-text p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.btn-discord-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #5865f2;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-racing);
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    margin-top: 10px;
    transition: background 0.2s, transform 0.2s;
}

.btn-discord-link:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* --- GUÍA DE INSTALACIÓN --- */
.instructions-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 26px;
    margin-bottom: 25px;
}

.instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-tag-pill {
    font-size: 11px;
    font-family: var(--font-racing);
    color: var(--nfs-orange);
    font-weight: 800;
    letter-spacing: 1px;
}

.instructions-main-title {
    font-family: var(--font-racing);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0 0 0;
}

.lang-switch-pills {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-racing);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: rgba(255, 119, 0, 0.2);
    color: var(--nfs-orange);
    border: 1px solid rgba(255, 119, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 119, 0, 0.25);
}

.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

.install-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.step-card {
    background: rgba(6, 9, 13, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 119, 0, 0.35);
}

.step-card.highlight-step {
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    position: absolute;
    top: 14px;
    right: 16px;
}

.step-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.step-title {
    font-family: var(--font-racing);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* --- TIPS DE RENDIMIENTO --- */
.download-tips-card {
    background: rgba(255, 119, 0, 0.06);
    border: 1px solid rgba(255, 119, 0, 0.25);
    border-radius: 10px;
    padding: 20px;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.tip-col strong {
    color: #ffffff;
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.tip-col p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* --- RESPONSIVE DOWNLOAD --- */
@media (max-width: 900px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
    .download-features-list {
        grid-template-columns: 1fr;
    }
    .download-main-title {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .download-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-download-content {
        gap: 10px;
    }
    .btn-download-main {
        font-size: 15px;
    }
    .install-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* =======================================================
   SECCIÓN: MAPA EN VIVO DE ROCKPORT (VIEW-MAP)
   ======================================================= */
.map-live-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px;
}

.map-hero-banner {
    text-align: center;
    margin-bottom: 25px;
    background: radial-gradient(circle at center, rgba(255, 119, 0, 0.14) 0%, rgba(13, 17, 23, 0.85) 75%);
    border: 1px solid rgba(255, 119, 0, 0.28);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.map-badge-tag {
    display: inline-block;
    font-family: var(--font-racing);
    font-size: 11px;
    font-weight: 800;
    color: var(--nfs-orange);
    letter-spacing: 2px;
    background: rgba(255, 119, 0, 0.15);
    border: 1px solid rgba(255, 119, 0, 0.35);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.map-main-title {
    font-family: var(--font-racing);
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 1.5px;
    text-shadow: 0 0 20px rgba(255, 119, 0, 0.4);
}

.map-subtitle {
    font-size: 14px;
    color: #cbd5e1;
    max-width: 840px;
    margin: 0 auto;
    line-height: 1.6;
}

.map-telemetry-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 119, 0, 0.2);
}

.map-telemetry-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-family: var(--font-mono);
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-pulse-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-neon);
    box-shadow: 0 0 10px var(--green-neon);
    animation: pulse 1.5s infinite;
}

/* --- BARRA DE CONTROLES DEL MAPA --- */
.map-controls-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 16px;
}

.map-controls-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-map-control {
    background: rgba(255, 119, 0, 0.12);
    border: 1px solid rgba(255, 119, 0, 0.35);
    color: #ffffff;
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-map-control:hover {
    background: rgba(255, 119, 0, 0.3);
    border-color: var(--nfs-orange);
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.35);
    transform: translateY(-2px);
}

.map-districts-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pills-label {
    font-family: var(--font-racing);
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.district-pill {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-family: var(--font-racing);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.district-pill:hover {
    color: #ffffff;
    border-color: rgba(255, 119, 0, 0.4);
}

.district-pill.active {
    background: rgba(255, 119, 0, 0.2);
    color: var(--nfs-orange);
    border-color: var(--nfs-orange);
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.35);
}

/* --- VISOR HUD DEL MAPA --- */
.map-viewport-wrapper {
    position: relative;
    background: #04070a;
    border: 2px solid rgba(255, 119, 0, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    height: 720px;
    margin-bottom: 30px;
}

.hud-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--nfs-orange);
    z-index: 10;
    pointer-events: none;
}

.hud-top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.hud-top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.hud-bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.hud-bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.map-compass-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--font-racing);
    font-weight: 800;
    font-size: 13px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.map-compass-badge small {
    font-size: 9px;
    color: var(--nfs-orange);
    letter-spacing: 1px;
}

.map-zoom-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 119, 0, 0.4);
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--nfs-orange);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 12px;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.map-pan-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(13, 17, 23, 0.9) 0%, rgba(2, 4, 8, 1) 100%);
    scroll-behavior: smooth;
}

.rockport-map-image {
    max-width: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    display: block;
}

/* --- CUADRÍCULA DE DISTRITOS --- */
.map-districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.district-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 22px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.district-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 119, 0, 0.4);
}

.district-card.focused-district {
    border-color: var(--nfs-orange);
    box-shadow: 0 0 25px rgba(255, 119, 0, 0.35);
    background: rgba(255, 119, 0, 0.05);
}

.district-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.district-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    background: rgba(255, 119, 0, 0.1);
    border: 1px solid rgba(255, 119, 0, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.district-tag {
    font-size: 10px;
    font-family: var(--font-racing);
    color: var(--nfs-orange);
    font-weight: 800;
    letter-spacing: 1px;
    display: block;
}

.district-name {
    font-family: var(--font-racing);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 2px 0 0 0;
}

.district-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.district-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.district-feat-item {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 3px 8px;
    color: #cbd5e1;
}

.btn-district-action {
    width: 100%;
    background: rgba(255, 119, 0, 0.12);
    border: 1px solid rgba(255, 119, 0, 0.35);
    color: var(--nfs-orange);
    font-family: var(--font-racing);
    font-size: 13px;
    font-weight: 800;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-district-action:hover {
    background: var(--nfs-orange);
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 119, 0, 0.4);
}

/* --- LEYENDA TÁCTICA DEL MAPA --- */
.map-legend-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 22px;
}

.legend-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.legend-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 12px;
}

.legend-color-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.legend-item strong {
    color: #ffffff;
    font-size: 12px;
    display: block;
    margin-bottom: 2px;
}

.legend-item span {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.4;
    display: block;
}

/* --- RESPONSIVE MAP --- */
@media (max-width: 900px) {
    .map-viewport-wrapper {
        height: 520px;
    }
    .map-main-title {
        font-size: 26px;
    }
    .map-controls-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .map-controls-group {
        justify-content: center;
    }
    .map-districts-pills {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .map-viewport-wrapper {
        height: 420px;
    }
    .map-telemetry-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-map-control {
        font-size: 11px;
        padding: 6px 10px;
    }
}


