/* ==========================================================================
   VCV PLAY 26/27 — HOJA DE ESTILOS PRINCIPAL (MODULARIZADA)
   Extraida para separar estructura (HTML) de diseno y estetica (CSS).
   ========================================================================== */

/* ==========================================================================
   1. ESTILOS BASE Y OVERLAY DE AUTO-LOGIN
   ========================================================================== */
html {
    background-color: #120517 !important;
    min-height: 100% !important;
    min-height: -webkit-fill-available !important;
  }
  body {
    background-color: #120517 !important;
  }
  html.vcv-auto-logging-in #loginSection {
    display: none !important;
  }
  html.vcv-auto-logging-in #vcvAutoLoginOverlay {
    display: flex !important;
  }
  #vcvAutoLoginOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: -100px;
    width: 100vw;
    height: calc(100% + 100px);
    height: calc(100vh + 100px);
    height: calc(100dvh + 100px);
    min-height: -webkit-fill-available;
    background: #120517 !important;
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

    /* SCROLLBAR ESTILIZADO PARA HISTORICO JORNADAS EN MODAL PERFIL */
    .player-jornadas-scrollable::-webkit-scrollbar {
      width: 5px;
    }
    .player-jornadas-scrollable::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.04);
      border-radius: 4px;
    }
    .player-jornadas-scrollable::-webkit-scrollbar-thumb {
      background: var(--secondary-color, #d4af37);
      border-radius: 4px;
    }
    .mvp-winner-photo {
      position: relative;
    }
    @media (max-width: 380px) {
      .admin-stat-grid {
        grid-template-columns: 1fr !important;
      }
      .mvp-winner-proclaimed-card {
        padding: 8px 6px !important;
        gap: 6px !important;
      }
      .mvp-winner-photo {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
      }
    }

  
    /* PERFIL: GRID DE ESTADÍSTICAS RESPONSIVE (ALTO CONTRASTE Y LEGIBILIDAD) */
    .user-profile-stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        background: #0f0416;
        padding: 12px 8px;
        border-radius: 14px;
        margin-bottom: 20px;
        border: 1px solid rgba(192, 132, 252, 0.16);
        text-align: center;
        box-sizing: border-box;
        width: 100%;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    .user-profile-stat-box {
        min-width: 0;
        overflow: hidden;
        padding: 8px 4px;
        box-sizing: border-box;
        background: #180622;
        border: 1px solid rgba(192, 132, 252, 0.12);
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.15s ease;
    }
    .user-profile-stat-label {
        font-size: 0.68rem;
        color: #bfa9c9;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    .user-profile-stat-val {
        font-weight: 900;
        font-size: 1.15rem;
        font-family: 'Space Grotesk', sans-serif;
        margin-top: 4px;
        line-height: 1.1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    @media (max-width: 520px) {
        .user-profile-stats-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 8px !important;
            padding: 10px 8px !important;
        }
        .user-profile-stat-box {
            background: #180622 !important;
            border: 1px solid rgba(192, 132, 252, 0.15) !important;
            border-radius: 10px !important;
            padding: 10px 6px !important;
        }
        .user-profile-stat-label {
            font-size: 0.70rem !important;
            color: #bfa9c9 !important;
            white-space: normal !important;
            word-break: break-word !important;
        }
        .user-profile-stat-val {
            font-size: 1.35rem !important;
        }
    }

/* ==========================================================================
   2. VARIABLES Y COMPONENTES PRINCIPALES (V1/V2)
   ========================================================================== */
/* ---------------------------------------------------
       1. VARIABLES DE COLOR OFICIALES DEL VCV
       --------------------------------------------------- */
    :root {
      --primary-color: #7b3382;
      --primary-hover: #8e3c96;
      --secondary-color: #d4af37;
      --secondary-hover: #e5bf43;
      --bg-surface: #190c1f;
      --bg-card: #271330;
      --bg-card-alt: #32193d;
      --bg-input: #1f0f26;
      --border-color: #4c2659;
      --border-glow: rgba(212, 175, 55, 0.4);
      --text-main: #f9f5fa;
      --text-muted: #b7a4be;
      --text-gold: #f3ce5e;
      --success: #2ecc71;
      --danger: #e74c3c;
    }

    html { scroll-behavior: smooth; }
    html, body { -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
    a, button, input, select, textarea { touch-action: manipulation; }
    body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif; letter-spacing: -0.01em; background: var(--bg-general); margin: 0; color: var(--vcv-negro); overflow-x: hidden; }

    /* ---------------------------------------------------
       2. TRANSICIONES Y ANIMACIONES (Fade-in)
       --------------------------------------------------- */
    @keyframes fadeScaleIn {
        0% { opacity: 0; transform: scale(0.98) translateY(15px); }
        100% { opacity: 1; transform: none; }
    }
    #loginSection, #appSection, #adminPanelWrapper {
        animation: fadeScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    
    /* ---------------------------------------------------
       3. CABECERAS Y TÍTULOS
       --------------------------------------------------- */
    header { position: relative; background: var(--vcv-morado); color: var(--vcv-blanco); padding: calc(40px + env(safe-area-inset-top, 0px)) 15px 40px; text-align: center; border-bottom: 5px solid var(--vcv-dorado); }
    
    
    h2, h3, h4, h5, .faq-title { font-weight: 600; color: var(--vcv-morado); }
    h2 { margin-bottom: 35px; text-align: center; }

        section { padding: 50px 15px; text-align: center; scroll-margin-top: calc(15px + env(safe-area-inset-top, 0px)); }
    .section-alt { background: #e9ecef; }
    
    /* ---------------------------------------------------
       4. TABLAS Y CAJAS
       --------------------------------------------------- */
    table { width: 100%; max-width: 500px; margin: 0 auto; border-collapse: collapse; background: var(--vcv-blanco); box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; margin-bottom: 30px; }
    th, td { padding: 14px 18px; border-bottom: 1px solid #ddd; text-align: left; }
    thead { background: var(--vcv-morado); color: var(--vcv-blanco); text-align: center; }
    .medal-1 { background: #fff8e1; font-weight: bold; }
    .medal-2 { background: #f8f9fa; font-weight: bold; }
    .medal-3 { background: #fff4e6; font-weight: bold; }

    /* ---------------------------------------------------
       5. BOTONES E INTERACCIONES
       --------------------------------------------------- */
    .btn-primary { background-color: var(--vcv-morado); border-color: var(--vcv-morado); color: var(--vcv-blanco); }
    .btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-color: var(--vcv-dorado); border-color: var(--vcv-dorado); color: var(--vcv-negro); }
    .btn-primary:disabled, .btn-primary.disabled { background-color: var(--vcv-morado); border-color: var(--vcv-morado); color: var(--vcv-blanco); opacity: 0.7; }
    
    .btn-success { background-color: var(--vcv-dorado); border-color: var(--vcv-dorado); color: var(--vcv-negro); }
    .btn-success:hover, .btn-success:focus, .btn-success:active { background-color: #b89c45; border-color: #b89c45; color: var(--vcv-negro); }
    .btn-success:disabled, .btn-success.disabled { background-color: var(--vcv-dorado); border-color: var(--vcv-dorado); color: var(--vcv-negro); opacity: 0.7; }

    .btn-outline-primary { border: 2px solid var(--vcv-morado); color: var(--vcv-morado); }
    .btn-outline-primary:hover { background-color: var(--vcv-morado); color: var(--vcv-blanco); }

    .form-container { max-width: 700px; margin: 0 auto; background: var(--vcv-blanco); padding: 30px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: left; }
    .form-group label { font-weight: bold; color: var(--vcv-morado); }
    
    /* ---------------------------------------------------
       6. ALERTAS Y MENSAJES
       --------------------------------------------------- */
    .alert-box { display: none; padding: 15px; border-radius: 5px; text-align: center; font-weight: bold; margin-bottom: 20px; }
    .alert-success { background: rgba(46, 204, 113, 0.15); color: var(--success); border: 1px solid rgba(46, 204, 113, 0.3); }
    .alert-danger { background: rgba(231, 76, 60, 0.15); color: var(--danger); border: 1px solid rgba(231, 76, 60, 0.3); }
    .alert-warning { background: rgba(243, 156, 18, 0.15); color: #f39c12; border: 1px solid rgba(243, 156, 18, 0.3); }
    .alert-info { background: rgba(52, 152, 219, 0.15); color: #3498db; border: 1px solid rgba(52, 152, 219, 0.3); }

    #loginSection { display: flex; align-items: center; justify-content: center; padding: calc(env(safe-area-inset-top, 50px) + 40px) 20px 40px 20px; flex-direction: column; }
    .login-card { background: var(--vcv-blanco); padding: 40px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); width: 100%; max-width: 400px; text-align: center; margin-bottom: 40px; border-top: 5px solid var(--vcv-dorado); }
    
    .faq-container { width: 100%; max-width: 500px; text-align: left; background: var(--vcv-blanco); padding: 25px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin: 0 auto; border-top: 5px solid var(--vcv-morado); }
    .faq-title { font-weight: bold; color: var(--vcv-morado); margin-bottom: 20px; font-size: 1.3rem; text-align: center; }
    .faq-details { margin-bottom: 12px; border-bottom: 1px solid #e0e0e0; padding-bottom: 12px; }
    .faq-details:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .faq-summary { font-weight: 600; color: var(--vcv-negro); cursor: pointer; padding: 4px 0; outline: none; font-size: 1.05rem; }
    .faq-summary:hover { color: var(--vcv-dorado); }
    .faq-content { font-size: 0.95rem; color: #555; padding: 10px 5px 5px 15px; line-height: 1.6; }
    .faq-email { font-weight: bold; color: var(--vcv-morado); }
    
    footer { background: var(--vcv-negro); color: var(--vcv-blanco); padding: 20px 0; text-align: center; border-top: 3px solid var(--vcv-dorado); }
    
    /* ---------------------------------------------------
       7. ESTILOS DE LOS VERIFICADOS Y TOOLTIP FLOTANTE
       --------------------------------------------------- */
    .badge-icon { width: 16px; height: 16px; margin-left: 4px; vertical-align: middle; cursor: pointer; }
    .badge-header { width: 24px; height: 24px; cursor: pointer; transition: transform 0.2s; }
    .badge-header:hover { transform: scale(1.1); }
    
    .badge-jugador { filter: none; }
    .badge-entrenador { filter: hue-rotate(270deg) saturate(150%); }
    .badge-staff { filter: hue-rotate(180deg) saturate(200%); }
    .badge-admin { filter: hue-rotate(215deg) saturate(200%) brightness(1.2); }
    .badge-exjugador { filter: grayscale(100%) opacity(0.6) brightness(1.2); }

    #mobileTooltip {
        position: fixed;
        background: #1e0e24 !important;
        color: #ffffff !important;
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 0.85rem;
        z-index: 10000;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
        transform: translate(-50%, calc(-100% - 10px));
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0,0,0,0.5);
        white-space: normal;
        max-width: 250px;
        text-align: center;
        font-weight: 700;
        border: 1px solid var(--secondary-color, #d4af37);
        backdrop-filter: none;
    }
    #mobileTooltip.show { opacity: 1; }

    /* ESTILOS DEL LOGO/TEXTO DE LA CATEGORÍA */
    .card-match { position: relative; } 
    .cat-badge-img {
        position: absolute;
        top: 15px;
        right: 15px;
        max-height: 35px;
        max-width: 80px;
        object-fit: contain;
    }
    .cat-badge-text {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 0.75rem;
        font-weight: bold;
        color: #555;
        background: #e9ecef;
        padding: 4px 8px;
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    /* ---------------------------------------------------
       8. BOTÓN FLOTANTE DE RECARGA Y AVISOS
       --------------------------------------------------- */
    
    
    .spin-anim {
        animation: spin 1s linear infinite;
    }
    @keyframes spin { 
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); } 
    }
    #toastNotification {
        position: fixed !important;
        bottom: 72px !important;
        left: 50% !important;
        transform: translate3d(-50%, 15px, 0) !important;
        background: rgba(22, 10, 30, 0.94) !important;
        color: #d1c4d9 !important;
        padding: 7px 18px !important;
        border-radius: 9999px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.2px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s !important;
        pointer-events: none !important;
        z-index: 10005 !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
        max-width: 85vw !important;
        text-align: center !important;
        will-change: transform, opacity;
    }
    #toastNotification.show-toast {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate3d(-50%, 0, 0) !important;
    }

    /* ---------------------------------------------------
       5. BOTON ATRAS (Pestaña flotante)
       --------------------------------------------------- */

    
    @keyframes slideOutRight {
        0% { opacity: 1; transform: none; }
        100% { opacity: 0; transform: translateX(50px); }
    }
    
    @keyframes slideInLeft {
        0% { opacity: 0; transform: translateX(-50px); }
        100% { opacity: 1; transform: none; }
    }
    .slide-in-left {
        animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    .slide-out-right {
        animation: slideOutRight 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    }



    @keyframes goldGlowPulse {
        0% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); border-color: var(--border-color); }
        40% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); border-color: var(--secondary-color); }
        100% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); border-color: var(--border-color); }
    }

    .save-success-glow {
        animation: goldGlowPulse 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }
    /* V2 HEADER */
    
    
    
    
    
    
    
    
    
    
    #appSection {
        padding-top: calc(env(safe-area-inset-top, 0px) + 70px) !important;
        padding-bottom: 0px !important;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    /* V2 HEADER CSS */
    .app-header-v2 {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(22, 10, 25, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid #3e1d45;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        padding: 10px 16px;
        padding-top: calc(env(safe-area-inset-top, 0px) + 18px);
        z-index: 1000;
        box-sizing: border-box;
    }
    .header-container-v2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        flex-wrap: nowrap;
        gap: 8px;
        box-sizing: border-box;
    }
    .header-brand-v2 {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
    }
    .header-logo-circle {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 50%;
        background: linear-gradient(135deg, #7b2cbf 0%, #f5c542 100%);
        padding: 2px;
        box-shadow: 0 0 16px rgba(245, 197, 66, 0.45), 0 0 25px rgba(123, 44, 191, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .header-logo-inner {
        width: 100%;
        height: 100%;
        background: #1f0a2c;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .header-logo-inner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }
    .header-logo-inner svg, .header-logo-inner i {
        width: 16px !important;
        height: 16px !important;
    }
    .header-title-col {
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
    }
    .header-title-row {
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .header-title-text {
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 900;
        font-size: 1.1rem;
        letter-spacing: 0.03em;
        color: #fff;
        margin: 0;
        line-height: 1.1;
        white-space: nowrap;
    }
    .header-title-badge {
        background: rgba(212,175,55,0.2);
        color: #d4af37;
        font-size: 7.5px;
        font-weight: 800;
        padding: 1px 4px;
        border-radius: 4px;
        border: 1px solid rgba(212,175,55,0.3);
        line-height: 1;
        flex-shrink: 0;
        display: inline-block;
    }
    .header-subtitle {
        font-size: 10px;
        color: #a1a1aa;
        font-weight: 500;
        margin: 0;
        margin-top: 1px;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        display: block;
        max-width: 100%;
    }
    .header-right-v2 {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    .header-user-chip {
        display: flex;
        align-items: center;
        gap: 5px;
        background: #221127;
        padding: 5px 10px;
        border-radius: 20px;
        border: 1px solid #3e1d45;
        white-space: nowrap;
    }
    .header-rank {
        font-size: 11px;
        color: #d4af37;
        font-weight: 700;
        white-space: nowrap;
    }
    .header-dot {
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: #71717a;
    }
    .header-pts {
        font-size: 11px;
        font-weight: 600;
        color: #e4e4e7;
        white-space: nowrap;
    }
    .header-bell-btn {
        width: 35px;
        height: 35px;
        min-width: 35px;
        border-radius: 50%;
        background: #221127;
        border: 1px solid #3e1d45;
        color: #d4d4d8;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        cursor: pointer;
        flex-shrink: 0;
    }
    .header-bell-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        background: #e74c3c;
        color: white;
        font-size: 9px;
        font-weight: bold;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #160a19;
        box-shadow: 0 0 8px rgba(231, 76, 60, 0.8);
        animation: pulse-badge 2s infinite;
    }
    @keyframes pulse-badge { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); } 70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); } }

    @media (max-width: 380px) {
        .app-header-v2 {
            padding: 7px 12px;
            padding-top: calc(env(safe-area-inset-top, 0px) + 15px);
        }
        .header-container-v2 {
            gap: 5px;
        }
        .header-brand-v2 {
            gap: 6px;
        }
        .header-logo-circle {
            width: 33px;
            height: 33px;
            min-width: 33px;
        }
        .header-title-text {
            font-size: 1rem;
        }
        .header-title-badge {
            font-size: 7px;
            padding: 1px 3px;
        }
        .header-subtitle {
            font-size: 9.5px;
        }
        .header-user-chip {
            padding: 4px 7px;
            gap: 3px;
        }
        .header-rank, .header-pts {
            font-size: 10px;
        }
        .header-bell-btn {
            width: 32px;
            height: 32px;
            min-width: 32px;
        }
        #appSection {
            padding-top: calc(env(safe-area-inset-top, 0px) + 62px) !important;
        }
    }

#h2-user-badges img { width: 14px; height: 14px; border-radius: 50%; cursor: pointer; }

    .user-badge-chip-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }
    .user-badge-chip-icon img, .user-badge-chip-icon span {
        margin: 0 !important;
        vertical-align: middle !important;
        display: block !important;
    }

    .category-filter-strip { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; -ms-overflow-style: none; max-width: 500px; margin-left: auto; margin-right: auto; cursor: grab; user-select: none; -webkit-user-select: none; }
    .category-filter-strip:empty { display: none !important; margin: 0 !important; padding: 0 !important; }
    .category-filter-strip::-webkit-scrollbar { display: none; }
    .category-filter-strip.is-dragging, #league-slider-container.is-dragging { cursor: grabbing !important; }
    #league-slider-container { cursor: grab; user-select: none; -webkit-user-select: none; }
    .horizontal-drag-scroll {
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
      -webkit-overflow-scrolling: touch;
      user-select: none;
      -webkit-user-select: none;
    }
    .horizontal-drag-scroll::-webkit-scrollbar {
      display: none !important;
    }
    .horizontal-drag-scroll.is-dragging {
      cursor: grabbing !important;
    }
    .horizontal-drag-scroll.is-dragging * {
      cursor: grabbing !important;
      user-select: none !important;
    }
    .ranking-badges-wrap {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      flex: 1 1 auto;
      min-width: 0;
      max-width: none;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 1px 0;
      cursor: grab;
      -webkit-mask-image: none;
      mask-image: none;
      transition: mask-image 0.15s ease, -webkit-mask-image 0.15s ease;
    }
    .ranking-badges-wrap > * {
      flex-shrink: 0 !important;
    }
    .ranking-badge-item {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      cursor: pointer;
      transition: transform 0.12s ease;
    }
    .ranking-badge-item:hover {
      transform: scale(1.15);
    }
    .user-badges-scroll-wrapper {
      position: relative;
      width: 100%;
      max-width: 100%;
      margin-top: 8px;
      min-width: 0;
      overflow: hidden;
    }
    .user-badges-scroll-track {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 2px 2px;
      cursor: grab;
      -webkit-mask-image: none;
      mask-image: none;
      transition: mask-image 0.15s ease, -webkit-mask-image 0.15s ease;
    }
    .user-badges-scroll-track .user-badge-chip-icon {
      flex-shrink: 0 !important;
    }
    .cat-filter-btn { padding: 6px 14px; border-radius: 9999px; background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border-color); font-size: 0.75rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all 0.2s ease; }
    .cat-filter-btn:hover { border-color: var(--secondary-color); color: var(--text-main); }
    .cat-filter-btn.active { background: var(--secondary-color); color: #000; border-color: var(--secondary-color); font-weight: bold; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3); }


    .sign-btn-v2.selected {
      background: var(--secondary-color);
      color: #000;
      border-color: var(--secondary-color);
      box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
      transform: translateY(-2px);
    }

    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    input[type="number"] {
        -moz-appearance: textfield;
    }
    
    
    /* V2 Container Reset */
    #carteleraSection .form-container {
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    
.podium-container {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 8px;
      padding: 24px 4px 12px;
      margin-bottom: 8px;
      width: 100%;
      box-sizing: border-box;
    }

    .podium-slot {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1 1 0;
      min-width: 0;
      max-width: 33.33%;
    }

    .podium-avatar {
      width: 50px;
      height: 50px;
      border-radius: 14px;
      background: var(--bg-card-alt);
      border: 2px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      position: relative;
      margin-bottom: -10px;
      z-index: 2;
      flex-shrink: 0;
    }

    .podium-slot.rank-1 .podium-avatar {
      width: 62px;
      height: 62px;
      border: 3px solid var(--secondary-color);
      box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }

    .crown-icon {
      position: absolute;
      top: -16px;
      color: var(--secondary-color);
    }

    .podium-bar {
      width: 100%;
      background: linear-gradient(180deg, #381b42 0%, #200f25 100%);
      border: 1px solid var(--border-color);
      border-radius: 12px 12px 6px 6px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 14px 4px 8px;
      text-align: center;
      box-sizing: border-box;
      min-width: 0;
    }

    .podium-slot.rank-1 .podium-bar {
      min-height: 120px;
      height: auto;
      border-color: rgba(212, 175, 55, 0.5);
      background: linear-gradient(180deg, #4d235b 0%, #291032 100%);
    }

    .podium-slot.rank-2 .podium-bar { min-height: 98px; height: auto; }
    .podium-slot.rank-3 .podium-bar { min-height: 85px; height: auto; }

    .podium-bar .player-handle {
      font-size: clamp(0.60rem, 2.2vw, 0.72rem);
      font-weight: 700;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      display: block;
      padding: 0 2px;
      box-sizing: border-box;
      line-height: 1.25;
    }

    .podium-bar .player-pts {
      font-size: clamp(0.68rem, 2.4vw, 0.8rem);
      font-weight: 800;
      color: var(--secondary-color);
      white-space: nowrap;
    }

    @media (max-width: 380px) {
      .podium-container {
        gap: 4px;
        padding: 16px 2px 8px;
      }
      .podium-avatar {
        width: 44px;
        height: 44px;
      }
      .podium-slot.rank-1 .podium-avatar {
        width: 52px;
        height: 52px;
      }
      .podium-bar {
        padding: 12px 2px 6px;
      }
      .podium-slot.rank-1 .podium-bar {
        min-height: 105px;
      }
      .podium-slot.rank-2 .podium-bar {
        min-height: 88px;
      }
      .podium-slot.rank-3 .podium-bar {
        min-height: 76px;
      }
    }

    /* TABLA CLASIFICACIÓN */
    .ranking-table-card {
      padding: 0;
      overflow: hidden;
    }

    .ranking-list-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      transition: background 0.15s;
    }

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

    .ranking-list-item.is-current-user {
      background: rgba(106, 44, 112, 0.35);
      border-left: 4px solid var(--secondary-color);
    }

    .rank-left {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      flex: 1 1 auto;
      overflow: hidden;
    }

    .rank-num {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-muted);
      width: 22px;
      text-align: center;
      flex-shrink: 0;
    }

    .rank-user-info {
      min-width: 0;
      flex: 1 1 auto;
      overflow: hidden;
    }

    .rank-user-info .name {
      font-weight: 700;
      font-size: 0.88rem;
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .role-badge {
      font-size: 0.65rem;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 4px;
      background: var(--bg-card-alt);
      color: var(--text-muted);
      border: 1px solid var(--border-color);
      flex-shrink: 0;
    }

    .rank-pts {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1rem;
      font-weight: 800;
      color: var(--secondary-color);
      flex-shrink: 0;
      white-space: nowrap;
    }

    /* PESTAÑA: TOP SECRET */
    
  
/* MVP VOTING STYLES & ANIMATIONS (BANNER ESTILO REFERENCIA VCV) */
    .mvp-candidates-grid {
      display: flex;
      gap: 12px;
      justify-content: space-between;
      align-items: stretch;
      width: 100%;
      position: relative;
    }
    .mvp-card-slot {
      flex: 1 1 0;
      min-width: 0;
      position: relative;
      display: flex;
    }
    .mvp-card-btn {
      width: 100%;
      background: #180922;
      border: 1.5px solid rgba(212, 175, 55, 0.4);
      border-radius: 12px;
      padding: 0 0 10px 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      position: relative;
      box-shadow: 0 4px 14px rgba(0,0,0,0.3);
      box-sizing: border-box;
      overflow: hidden;
      will-change: transform, opacity;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .mvp-card-btn:hover {
      border-color: var(--secondary-color);
      box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
    }
    .mvp-card-btn.is-voted-state {
      border-color: var(--secondary-color);
      box-shadow: 0 0 20px rgba(212, 175, 55, 0.45);
      background: linear-gradient(180deg, #250b36 0%, #170724 100%);
      cursor: default;
    }
    .mvp-photo-wrapper {
      width: 100%;
      aspect-ratio: 1 / 1;
      position: relative;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      background: radial-gradient(circle at 50% 80%, rgba(212, 175, 55, 0.22) 0%, rgba(93, 23, 137, 0.35) 60%, rgba(17, 5, 25, 0.85) 100%);
      border-bottom: 2px solid rgba(212, 175, 55, 0.3);
      overflow: hidden;
      flex-shrink: 0;
    }
    .mvp-valcyl-watermark {
      display: none !important;
    }
    .mvp-photo-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: bottom center;
      display: block;
      filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
      position: relative;
      z-index: 2;
    }
    .mvp-dorsal-tag {
      position: absolute;
      top: 6px;
      right: 6px;
      background: var(--secondary-color);
      color: #000;
      font-size: 0.72rem;
      font-weight: 900;
      padding: 2px 6px;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.4);
      letter-spacing: -0.2px;
    }
    .mvp-name-label {
      font-family: 'Space Grotesk', -apple-system, sans-serif;
      font-size: 0.82rem;
      font-weight: 900;
      color: #f7e7ce;
      text-transform: uppercase;
      letter-spacing: 0.35px;
      text-align: center;
      line-height: 1.18;
      white-space: normal;
      overflow-wrap: normal;
      word-break: normal;
      hyphens: none;
      width: 100%;
      box-sizing: border-box;
      padding: 4px 8px 0 8px;
    }
    .mvp-sub-label {
      font-size: 0.64rem;
      font-weight: 700;
      color: var(--secondary-color);
      text-transform: uppercase;
      letter-spacing: 0.3px;
      text-align: center;
      line-height: 1.2;
      white-space: normal;
      overflow-wrap: normal;
      word-break: normal;
      hyphens: none;
      width: 100%;
      box-sizing: border-box;
      padding: 0 8px;
    }
    .mvp-voted-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      font-weight: 900;
      color: #000;
      background: var(--secondary-color);
      padding: 3px 8px;
      border-radius: 6px;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-top: 2px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }
    .mvp-undo-btn {
      padding: 6px 12px;
      font-size: 0.74rem;
      font-weight: 800;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(212, 175, 55, 0.4);
      color: var(--secondary-color);
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .mvp-undo-btn:hover {
      background: rgba(212, 175, 55, 0.2);
      border-color: var(--secondary-color);
      color: #fff;
    }
    .mvp-voted-detail-panel {
      flex: 2 1 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 8px 14px;
      background: rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(212, 175, 55, 0.2);
      border-radius: 12px;
      opacity: 0;
      transform: translateX(10px);
      transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
    }
    .mvp-voted-detail-panel.visible {
      opacity: 1;
      transform: translateX(0);
    }

    /* ESTILOS DE TRANSICION, ATENUACION Y CENTRADO DE VOTO */
    .mvp-card-btn {
      transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease, filter 0.35s ease, border-color 0.25s, box-shadow 0.25s;
    }
    .mvp-card-slot {
      transition: order 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .mvp-slot-order-1 { order: 1 !important; }
    .mvp-slot-order-2 { order: 2 !important; }
    .mvp-slot-order-3 { order: 3 !important; }

    .mvp-card-btn.is-dimmed-state {
      opacity: 0.35 !important;
      transform: scale(0.92) !important;
      filter: grayscale(45%);
      cursor: pointer;
    }
    .mvp-card-btn.is-dimmed-state:hover {
      opacity: 0.75 !important;
      transform: scale(0.96) !important;
      filter: grayscale(0%);
    }
    .mvp-card-btn.is-voted-state {
      opacity: 1 !important;
      transform: scale(1.05) !important;
      border-color: var(--secondary-color) !important;
      box-shadow: 0 0 22px rgba(212, 175, 55, 0.5) !important;
      background: linear-gradient(180deg, #2a0c3d 0%, #170724 100%) !important;
      cursor: default;
    }
    .mvp-card-btn.is-closed-state {
      cursor: default !important;
      pointer-events: none;
    }
    .mvp-card-btn.is-closed-state:hover {
      transform: none !important;
    }
    .mvp-card-btn.is-dimmed-state.is-closed-state:hover {
      opacity: 0.35 !important;
      transform: scale(0.92) !important;
    }
    .mvp-bottom-confirmation-panel {
      margin-top: 12px;
      padding: 10px 14px;
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(212, 175, 55, 0.3);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      transform: translateY(6px);
      transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
      pointer-events: none;
    }
    .mvp-bottom-confirmation-panel.is-visible {
      opacity: 1;
      max-height: 130px;
      transform: translateY(0);
      pointer-events: auto;
    }

/* ==========================================================================
   3. PALETA OSCURA V2, BOTONES, ALERTAS Y COMPONENTES
   ========================================================================== */
:root {
      --primary-color: #7b2cbf;
      --primary-hover: #9333ea;
      --secondary-color: #f5c542;
      --secondary-hover: #ffd766;
      --bg-general: #0d0314;
      --bg-surface: #12051b;
      --bg-card: #1c0829;
      --bg-card-alt: #260c38;
      --bg-input: #160621;
      --border-color: rgba(192, 132, 252, 0.18);
      --border-glow: rgba(245, 197, 66, 0.4);
      --text-main: #fcfaff;
      --text-muted: #c4b3cf;
      --text-gold: #f5c542;
      --vcv-morado: #7b2cbf;
      --vcv-dorado: #f5c542;
      --vcv-blanco: #ffffff;
      --vcv-negro: #0d0314;
      --success: #10b981;
      --danger: #ef4444;
    }
    
    body {
      background-color: #120517 !important;
      background-image: none !important;
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif !important;
      color: var(--text-main) !important;
      letter-spacing: -0.01em !important;
      -webkit-font-smoothing: antialiased;
      margin: 0;
      overflow-x: hidden;
    }
    

    #prediccionForm button[type="submit"] { display: none !important; }
    /* LOGIN STYLES */
    #loginSection { display: flex; align-items: center; justify-content: center; padding: calc(env(safe-area-inset-top, 50px) + 40px) 20px 40px 20px;
      flex-direction: column;
      background: var(--bg-surface);
      min-height: 100vh;
    }
    .modal-card-v2 {
      background: linear-gradient(to right, rgba(93, 23, 137, 0.3), var(--bg-card), var(--bg-card));
      border: 1px solid var(--border-color);
      border-radius: 20px;
      padding: 24px;
      width: 100%;
      max-width: 500px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.4);
      position: relative;
      margin-bottom: 10px;
    }
    .club-crest-v2 {
      background: var(--primary-color);
      color: var(--secondary-color);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .btn-gold-v2 {
      background: linear-gradient(135deg, var(--secondary-color) 0%, #d4af37 100%);
      color: #000;
      border: none;
      border-radius: 12px;
      padding: 14px;
      font-weight: 800;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }
    .btn-outline-v2 {
      background: transparent;
      border: 1px solid var(--border-color);
      color: var(--text-main);
      border-radius: 12px;
      padding: 10px;
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
    }

    /* CARTELERA STYLES */
    .vcv-card-v2 {
      background: linear-gradient(to right, rgba(93, 23, 137, 0.3), var(--bg-card), var(--bg-card));
      border-radius: 16px;
      padding: 16px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.3);
      border: 1px solid var(--border-color);
      position: relative;
      width: 100%;
      max-width: 500px;
      margin-left: auto;
      margin-right: auto;
      overflow: hidden;
      margin-bottom: 10px;
    }
    
    /* Estilos para prueba interactiva de cabecera: Opcion 1 vs Opcion 4 */
    .match-header-strip-v2.opt1-header {
      display: flex !important;
      flex-direction: row !important;
      justify-content: space-between !important;
      align-items: center !important;
      min-height: 32px;
      gap: 8px;
    }
    .match-header-strip-v2.opt4-header {
      display: flex !important;
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 6px !important;
    }
    .match-footer-pabellon-opt1 {
      margin-top: 12px;
      padding-top: 8px;
      border-top: 1px dashed var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      font-size: 0.73rem;
      color: var(--text-muted);
      text-align: center;
    }

    .match-header-strip-v2 {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.75rem;
      margin-bottom: 14px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--border-color);
      color: var(--text-muted);
    }
    .teams-versus-container-v2 {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    .team-box-v2 {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      text-align: center;
      min-width: 0;
    }
    .team-avatar-v2 {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      padding: 3px;
      box-sizing: border-box;
      background: var(--bg-card-alt);
      border: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 900;
      font-size: 1.1rem;
      color: var(--text-main);
      margin-bottom: 8px;
    }
    .team-avatar-v2.vcv-local {
      background: var(--primary-color);
      color: var(--secondary-color);
      border: 1px solid var(--primary-hover);
    }
    .team-name-v2 {
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--text-main);
      line-height: 1.1;
      margin-bottom: 4px;
    }
    .team-role-v2 {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    .vs-divider-v2 {
      font-weight: 900;
      font-size: 1rem;
      color: var(--text-muted);
      opacity: 0.4;
      padding: 0 10px;
    }
    .sets-grid-label-v2 {
      display: flex;
      justify-content: space-between;
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .sets-selector-grid-v2 {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 6px;
      margin-bottom: 16px;
    }
    .set-option-btn-v2 {
      background: var(--bg-card-alt);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      border-radius: 8px;
      padding: 10px 0;
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .set-option-btn-v2.selected {
      background: var(--secondary-color);
      color: #000;
      border-color: var(--secondary-color);
      box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
      transform: translateY(-2px);
    }
    .points-diff-container-v2 {
      background: var(--bg-card-alt);
      border-radius: 12px;
      padding: 14px;
      border: 1px solid var(--border-color);
    }
    .points-header-v2 {
      display: flex;
      justify-content: space-between;
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 10px;
    }
    .points-controls-row-v2 {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .stepper-container-v2 {
      display: flex;
      align-items: center;
      background: var(--bg-input);
      border-radius: 10px;
      padding: 4px;
      border: 1px solid var(--border-color);
    }
    .btn-step-v2 {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      border: none;
      background: var(--bg-card-alt);
      color: var(--text-main);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
    .stepper-value-v2 {
      min-width: 46px;
      text-align: center;
    }
    .stepper-value-v2 span {
      font-weight: 900;
      font-size: 1.3rem;
      color: var(--secondary-color);
    }
    .stepper-value-v2 small {
      display: block;
      font-size: 0.55rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-top: -2px;
    }
    .sign-selector-v2 {
      display: flex;
      gap: 6px;
      flex: 1;
    }
    .sign-btn-v2 {
      flex: 1;
      border-radius: 10px;
      border: 1px solid var(--border-color);
      background: var(--bg-input);
      color: var(--text-muted);
      font-weight: 700;
      font-size: 0.75rem;
      padding: 10px 0;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

  
    /* FAQ V2 STYLES */
    .vcv-faq-master {
      background: linear-gradient(to right, rgba(93, 23, 137, 0.3), var(--bg-card), var(--bg-card));
      border: 1px solid var(--border-color);
      border-radius: 16px;
      margin-top: 0;
      width: 100%;
      max-width: 500px;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    .vcv-faq-master summary {
      padding: 16px;
      font-weight: 800;
      font-size: 0.95rem;
      color: var(--secondary-color);
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .vcv-faq-master summary::-webkit-details-marker { display: none; }
    .vcv-faq-master summary::after {
      content: '';
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background-color: rgba(245, 197, 66, 0.12);
      border: 1px solid rgba(245, 197, 66, 0.35);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f5c542' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
      background-position: center;
      background-repeat: no-repeat;
      margin-left: 10px;
      flex-shrink: 0;
      transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    }
    .vcv-faq-master[open] summary::after {
      background-color: rgba(245, 197, 66, 0.24);
      border-color: rgba(245, 197, 66, 0.55);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f5c542' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    }
    .vcv-faq-master .faq-content-v2 {
      padding: 0 16px 16px 16px;
      color: var(--text-main);
      font-size: 0.85rem;
      line-height: 1.5;
    }
    .faq-inner-item {
      background: var(--bg-card-alt);
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 12px;
      border: 1px solid var(--border-color);
    }
    .faq-inner-title {
      font-weight: 700;
      color: var(--text-gold);
      margin-bottom: 8px;
      font-size: 0.9rem;
    }
    .faq-inner-item input {
      background: var(--bg-input);
      color: var(--text-main);
      border: 1px solid var(--border-color);
    }

  
    /* BOTTOM NAV V2 - ISLA FLOTANTE (Centrado sin transform para evitar bug de scroll en iOS Safari) */
    .bottom-nav-v2 {
        position: fixed !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        width: calc(100% - 24px) !important;
        max-width: 480px !important;
        background: rgba(30, 11, 43, 0.93) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border: 1px solid rgba(192, 132, 252, 0.28) !important;
        border-radius: 28px !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(123, 44, 191, 0.35), 0 1px 0 rgba(255, 255, 255, 0.15) inset !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 8px 6px !important;
        z-index: 9999 !important;
    }
    .nav-item-v2 {
        background: transparent !important;
        border: none !important;
        color: var(--text-muted) !important;
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 20% !important;
        cursor: pointer !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        padding: 4px 1px !important;
        position: relative !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .nav-item-v2 span {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: clamp(0.55rem, 2.3vw, 0.65rem) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.2px !important;
    }
    .nav-item-v2[style*="display: none"],
    .nav-item-v2[style*="display:none"] {
        display: none !important;
    }
    .nav-item-v2 i {
        width: 22px !important;
        height: 22px !important;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .nav-item-v2.active {
        color: var(--secondary-color) !important;
        font-weight: 800 !important;
    }
    .nav-item-v2.active i {
        transform: translateY(-2px) scale(1.12) !important;
        color: var(--secondary-color) !important;
    }
    .nav-item-v2.active::after {
        content: '' !important;
        position: absolute !important;
        bottom: -2px !important;
        width: 16px !important;
        height: 3px !important;
        border-radius: 3px !important;
        background: var(--secondary-color) !important;
        box-shadow: 0 0 12px rgba(245, 197, 66, 0.9) !important;
    }
    
    /* Hide all sections by default except when active */
    #appSection > section {
        display: none;
        padding-top: 13px;
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }
    /* En cartelera y demás pestañas se mantiene holgura completa para librar la isla flotante */
    #appSection > section#carteleraSection {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }
    #contenedorPartidos { margin-bottom: 0 !important; }
    #appSection > section.active-tab {
        display: block;
        animation: tabFadeSlideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        will-change: opacity, transform;
    }
    @keyframes tabFadeSlideIn {
        0% {
            opacity: 0;
            transform: translateY(14px) scale(0.995);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* PULL TO REFRESH STYLES (MOBILE) */
    #ptrIndicator {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translate3d(-50%, -65px, 0);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, #2b0e3e 0%, #170522 100%);
        border: 2px solid var(--secondary-color);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(212, 175, 55, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10002;
        opacity: 0;
        pointer-events: none;
        will-change: transform, opacity;
        transition: opacity 0.2s ease;
    }
    #ptrIndicator.ptr-active {
        opacity: 1;
    }
    #ptrIndicator.ptr-refreshing {
        transform: translate3d(-50%, 20px, 0) !important;
        opacity: 1;
        transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease;
    }
    #ptrIndicator.ptr-releasing {
        transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s ease;
    }
    #ptrSpinner {
        width: 22px;
        height: 22px;
        border: 2.5px solid rgba(212, 175, 55, 0.25);
        border-top-color: var(--secondary-color);
        border-right-color: var(--secondary-color);
        border-radius: 50%;
        will-change: transform;
    }
    #ptrIndicator.ptr-refreshing #ptrSpinner {
        animation: ptrSpin 0.75s linear infinite;
    }
    @keyframes ptrSpin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

  
    .tied-btn {
        background: var(--secondary-color) !important;
        color: #000 !important;
        border-color: var(--secondary-color) !important;
        opacity: 0.7;
    }

  
    /* STREAMING V2 */
    .btn-streaming-v2 {
        display: flex; align-items: center; justify-content: center; gap: 4px;
        font-size: 0.6rem; font-weight: 800; border-radius: 6px;
        padding: 4px 6px; text-decoration: none; border: none;
        text-transform: uppercase;
        cursor: pointer;
    }
    .btn-streaming-v2.active {
        background: var(--danger); color: #fff;
        box-shadow: 0 2px 8px rgba(231,76,60,0.4);
    }
    .btn-streaming-v2.disabled {
        background: var(--bg-card-alt); color: var(--text-muted); border: 1px solid var(--border-color);
        cursor: not-allowed;
    }

  
    /* MOBILE RESPONSIVENESS */
    @media (max-width: 600px) {
        .form-container {
            padding: 10px !important;
            border-radius: 0px !important;
            border-left: none !important;
            border-right: none !important;
        }
        #carteleraSection .form-container {
            padding: 0 !important;
            margin: 0 !important;
        }
        body {
            padding: 0 !important;
            padding-right: 0px !important;
        }
        .vcv-card-v2 {
            padding: 12px;
            border-radius: 12px;
        }
        .ranking-list-item {
            padding: 10px 12px;
        }
    }

    @media (max-width: 400px) {
      .podium-container {
        gap: 4px;
        padding: 16px 2px 8px;
      }
      .podium-avatar {
        width: 44px;
        height: 44px;
      }
      .podium-slot.rank-1 .podium-avatar {
        width: 54px;
        height: 54px;
      }
      .podium-bar {
        padding: 12px 2px 6px;
      }
      .podium-bar .player-handle {
        font-size: 0.65rem;
      }
      .podium-bar .player-pts {
        font-size: 0.72rem;
      }
      .podium-slot.rank-1 .podium-bar { min-height: 105px; }
      .podium-slot.rank-2 .podium-bar { min-height: 88px; }
      .podium-slot.rank-3 .podium-bar { min-height: 76px; }
      .ranking-list-item {
        padding: 10px 8px;
      }
    }

    @media (max-width: 340px) {
      .podium-container {
        gap: 2px;
      }
      .podium-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
      }
      .podium-slot.rank-1 .podium-avatar {
        width: 46px;
        height: 46px;
      }
      .podium-bar .player-handle {
        font-size: 0.60rem;
      }
      .podium-bar .player-pts {
        font-size: 0.68rem;
      }
      .rank-num {
        font-size: 0.85rem;
        width: 18px;
      }
      .rank-pts {
        font-size: 0.9rem;
      }
    }
  
    /* ========================================================
       OPTIMIZACIONES PARA PANTALLAS ESTRECHAS (320px - 365px)
       ======================================================== */
    @media (max-width: 365px) {
      /* 1. Barra de navegación inferior: Opción B */
      .nav-item-v2 {
        font-size: 0.58rem !important;
        line-height: 1.1 !important;
        padding: 2px 1px !important;
      }
      .nav-item-v2 i {
        width: 20px !important;
        height: 20px !important;
        margin-bottom: 1px !important;
      }
      .nav-item-v2 span {
        text-align: center;
        display: block;
        word-break: normal;
        white-space: normal;
      }

      /* 2. Login, Splash y Preguntas frecuentes */
      #loginSection {
        padding: calc(env(safe-area-inset-top, 50px) + 20px) 12px 24px 12px !important;
      }
      .login-card {
        padding: 24px 14px !important;
        margin-bottom: 24px !important;
      }
      .faq-container {
        padding: 16px 12px !important;
      }
      .faq-title {
        font-size: 1.1rem !important;
        margin-bottom: 14px !important;
      }
      .faq-summary {
        font-size: 0.92rem !important;
        line-height: 1.25 !important;
      }
      .faq-content {
        font-size: 0.85rem !important;
        padding: 8px 4px 4px 8px !important;
      }

      /* 3. Cartelera y Equipos */
      .teams-versus-container-v2 {
        gap: 4px !important;
        margin-bottom: 10px !important;
      }
      .team-avatar-v2 {
        width: 44px !important;
        height: 44px !important;
        border-radius: 11px !important;
      }
      .team-name-v2 {
        font-size: 0.78rem !important;
        line-height: 1.12 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
      }
      .team-role-v2 {
        font-size: 0.60rem !important;
      }
      .vs-divider-v2 {
        padding: 0 2px !important;
      }

      /* 3b. Candidatos MVP en tarjeta */
      .mvp-candidates-grid {
        gap: 6px !important;
      }
      .mvp-card-btn {
        padding: 0 0 6px 0 !important;
        border-radius: 9px !important;
      }
      .mvp-name-label {
        font-size: 0.70rem !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        word-break: break-word !important;
      }
      .mvp-sub-label {
        font-size: 0.58rem !important;
        line-height: 1.1 !important;
      }
      .mvp-dorsal-tag {
        font-size: 0.62rem !important;
        padding: 1px 4px !important;
      }
      .mvp-voted-badge {
        font-size: 0.55rem !important;
        padding: 1px 4px !important;
      }

      /* 4. Ranking y Podio (multilínea sin puntos suspensivos) */
      .podium-container {
        gap: 3px !important;
        padding: 14px 2px 6px !important;
      }
      .podium-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.8rem !important;
      }
      .podium-slot.rank-1 .podium-avatar {
        width: 48px !important;
        height: 48px !important;
      }
      .podium-bar {
        padding: 10px 2px 6px !important;
      }
      .podium-bar .player-handle {
        font-size: 0.58rem !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-overflow: clip !important;
        text-align: center !important;
        max-width: 100% !important;
      }
      .podium-bar .player-pts {
        font-size: 0.68rem !important;
      }
      .podium-slot.rank-1 .podium-bar { min-height: 98px !important; }
      .podium-slot.rank-2 .podium-bar { min-height: 82px !important; }
      .podium-slot.rank-3 .podium-bar { min-height: 72px !important; }

      .ranking-list-item {
        padding: 8px 6px !important;
      }
      .rank-player-name {
        font-size: 0.76rem !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.15 !important;
        max-width: 100% !important;
      }
      .rank-pts {
        font-size: 0.88rem !important;
      }

      /* 5. Mis Predicciones */
      .vcv-card-v2 {
        padding: 12px 10px !important;
      }
      .metric-label {
        font-size: 0.66rem !important;
        line-height: 1.15 !important;
        word-break: break-word !important;
      }
      .metric-val {
        font-size: 1.25rem !important;
      }

      /* 6. Predicción de puntos totales */
      #detailsPrediccionesTotales summary {
        padding: 12px 8px !important;
      }
      #detailsPrediccionesTotales summary span[style*="font-size:1.1rem"] {
        font-size: 0.80rem !important;
        line-height: 1.2 !important;
      }
      #relojTotales {
        font-size: 0.74rem !important;
      }

      /* 7. Modal de Compartir Tarjeta */
      #shareCardModal > div {
        padding: 14px 10px !important;
        max-height: 95vh !important;
      }
      #shareCardCanvas {
        max-height: 48vh !important;
      }
      #btnShareNative {
        padding: 10px 12px !important;
        font-size: 0.88rem !important;
      }
    }

/* ==========================================================================
   4. REGLAS BASE, GRID DE PERFIL Y MODERNIZACIÓN UNIVERSAL
   ========================================================================== */
/* ============================================================================
       REGLAS BASE Y MODERNIZACIÓN UNIVERSAL (Móvil y Escritorio)
       ============================================================================ */
    .perfil-dashboard-grid {
      display: flex;
      flex-direction: column;
      width: 100%;
    }
    .perfil-col-left, .perfil-col-right {
      display: flex;
      flex-direction: column;
      width: 100%;
    }
    .guest-benefits-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .enlaces-grid {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    /* Inputs y controles con brillo suave y moderno al enfocar en cualquier dispositivo */
    .form-control, input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
      transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease !important;
    }
    .form-control:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
      border-color: rgba(212, 175, 55, 0.65) !important;
      box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16) !important;
      outline: none !important;
    }

    /* Modales con desenfoque de fondo moderno */
    [id$="Modal"] {
      backdrop-filter: blur(8px) !important;
      -webkit-backdrop-filter: blur(8px) !important;
    }

    /* ============================================================================
       ADAPTACIÓN MODERNA PARA ORDENADORES Y TABLETS (>= 800px)
       ============================================================================ */
    @media (min-width: 800px) {
      /* Expansión armónica del contenedor principal en monitores */
      #appSection {
        max-width: 1040px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
      }
      .header-container-v2 {
        max-width: 1040px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
      }
      #carteleraSection .form-container {
        max-width: 100% !important;
      }

      /* Cartelera de Partidos: Cuadrícula responsive de 2 columnas */
      #contenedorPartidos {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)) !important;
        gap: 18px !important;
        align-items: stretch !important;
      }
      #contenedorPartidos .vcv-card-v2 {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      #contenedorPartidos .vcv-card-v2.is-hidden,
      #contenedorPartidos .vcv-card-v2[style*="display: none"],
      #contenedorPartidos .vcv-card-v2[style*="display:none"],
      #contenedorPartidos .card.mb-3[style*="display: none"],
      #contenedorPartidos .card.mb-3[style*="display:none"] {
        display: none !important;
      }

      /* Filtro de categorías centrado en pantallas grandes */
      .category-filter-strip {
        max-width: 100% !important;
        justify-content: center !important;
      }

      /* Expansión coordinada de todas las pestañas en escritorio */
      #enlacesRfevbSection,
      #calendarioSection,
      #historialSection,
      #guestInfoSection {
        max-width: 1040px !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }
      #clasificacionesSection {
        max-width: 920px !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }

      /* PESTAÑA PERFIL: Dashboard de 2 columnas elegante */
      .perfil-dashboard-grid {
        display: grid !important;
        grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.25fr) !important;
        gap: 24px !important;
        align-items: start !important;
      }
      .perfil-col-left {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
      }
      .perfil-col-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
      }

      /* PESTAÑA CALENDARIO: Cuadrícula responsive de 2 columnas y enlaces en 2 columnas */
      #calendarResults,
      #resultadosList {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)) !important;
        gap: 18px !important;
        align-items: stretch !important;
      }
      #calendarResults .vcv-card-v2,
      #resultadosList .vcv-card-v2 {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      #calendarResults .vcv-card-v2.is-hidden,
      #calendarResults .vcv-card-v2[style*="display: none"],
      #calendarResults .vcv-card-v2[style*="display:none"],
      #resultadosList .vcv-card-v2.is-hidden,
      #resultadosList .vcv-card-v2[style*="display: none"],
      #resultadosList .vcv-card-v2[style*="display:none"] {
        display: none !important;
      }
      .calendar-date-separator,
      .resultados-date-separator {
        grid-column: 1 / -1 !important;
        width: 100% !important;
      }
      #enlacesOficialesBlock .enlaces-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
      }

      /* PESTAÑA MIS PREDICCIONES / HISTORIAL: Métricas en 4 columnas y partidos en 2 columnas */
      .historial-metrics-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px !important;
      }
      .historial-matches-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)) !important;
        gap: 18px !important;
        align-items: stretch !important;
      }
      .historial-matches-grid .vcv-card-v2 {
        max-width: 100% !important;
        margin-bottom: 0 !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      .historial-matches-grid .vcv-card-v2.is-hidden,
      .historial-matches-grid .vcv-card-v2[style*="display: none"],
      .historial-matches-grid .vcv-card-v2[style*="display:none"] {
        display: none !important;
      }

      /* PESTAÑA CLASIFICACIONES: Podio con mayor presencia y centrado */
      .podium-container {
        max-width: 520px !important;
        margin: 0 auto 18px auto !important;
        gap: 16px !important;
      }
      .podium-avatar {
        width: 60px !important;
        height: 60px !important;
      }
      .podium-slot.rank-1 .podium-avatar {
        width: 76px !important;
        height: 76px !important;
      }
      .podium-slot.rank-1 .podium-bar {
        min-height: 140px !important;
      }
      .podium-slot.rank-2 .podium-bar {
        min-height: 112px !important;
      }
      .podium-slot.rank-3 .podium-bar {
        min-height: 98px !important;
      }

      /* PESTAÑA MODO INVITADO: Ventajas en cuadrícula 2x2 */
      .guest-benefits-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
      }
      .guest-benefits-grid .vcv-card-v2 {
        height: 100% !important;
        margin-bottom: 0 !important;
      }

      /* Barra de navegación flotante dock estilo macOS centrado */
      .bottom-nav-v2 {
        max-width: 560px !important;
        padding: 10px 16px !important;
        border-radius: 36px !important;
        bottom: 22px !important;
      }
      .nav-item-v2 span {
        font-size: 0.74rem !important;
      }
      .nav-item-v2 i {
        width: 24px !important;
        height: 24px !important;
      }

      /* Modales proporcionados en escritorio */
      .modal-card-v2, [id$="Modal"] > div[style*="background"] {
        max-width: 520px !important;
        margin: auto !important;
        border-radius: 18px !important;
      }
    }

    /* ============================================================================
       MICRO-INTERACCIONES Y DETALLES MODERNOS PARA PC (Ratón / Hover / Scroll)
       ============================================================================ */
    @media (hover: hover) and (pointer: fine) {
      .vcv-card-v2 {
        transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
      }
      .vcv-card-v2:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 18px rgba(123, 44, 191, 0.2) !important;
        border-color: rgba(192, 132, 252, 0.35) !important;
      }

      .nav-item-v2:hover {
        color: #fff !important;
        transform: translateY(-1.5px) !important;
      }

      /* Filas de la tabla de clasificación con iluminación suave al pasar el ratón */
      .ranking-list-item {
        transition: background-color 0.18s ease, transform 0.18s ease !important;
      }
      .ranking-list-item:hover {
        background-color: rgba(192, 132, 252, 0.08) !important;
      }
      .ranking-list-item.is-current-user:hover {
        background-color: rgba(106, 44, 112, 0.55) !important;
      }

      /* Botones con sutil micro-interacción */
      .btn, button {
        transition: filter 0.2s ease, transform 0.15s ease, background 0.2s ease, border-color 0.2s ease !important;
      }
      .btn:hover:not(:disabled), button:hover:not(:disabled) {
        filter: brightness(1.08) !important;
      }
      .btn:active:not(:disabled), button:active:not(:disabled) {
        transform: scale(0.98) !important;
      }
    }

    /* Scrollbars modernos oscuros estilo VCV Play */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    ::-webkit-scrollbar-track {
      background: #140718;
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(192, 132, 252, 0.25);
      border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(212, 175, 55, 0.5);
    }
    html {
      scrollbar-color: rgba(192, 132, 252, 0.25) #140718;
      scrollbar-width: thin;
    }

  @keyframes vcvBounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
  }

/* ==========================================================================
   5. INTRANET ADMIN: ACORDEONES, TABS Y RESPONSIVIDAD MÓVIL
   ========================================================================== */
details#adminMainDetails summary::-webkit-details-marker { display: none; }
            details#adminMainDetails[open] summary .admin-main-arrow { transform: rotate(180deg); }
            details.admin-collapsible summary {
              list-style: none;
            }
            details.admin-collapsible summary::-webkit-details-marker {
              display: none;
            }
            details.admin-collapsible summary::after {
              content: '▼';
              font-size: 0.65rem;
              transition: transform 0.2s ease;
              color: var(--text-muted);
              margin-left: 8px;
            }
            details.admin-collapsible[open] summary::after {
              transform: rotate(180deg);
            }

            /* --- RESPONSIVIDAD INTRANET / ADMIN PARA MÓVILES ESTRECHOS --- */
            #adminPanelWrapper, #adminPanelWrapper * {
              box-sizing: border-box;
              max-width: 100%;
            }
            #adminPanelWrapper {
              word-break: break-word;
              overflow-wrap: anywhere;
            }
            #adminPanelWrapper input,
            #adminPanelWrapper select,
            #adminPanelWrapper button,
            #adminPanelWrapper textarea {
              max-width: 100%;
              box-sizing: border-box;
            }
            .admin-match-box {
              word-break: break-word;
              overflow-wrap: anywhere;
              max-width: 100%;
              box-sizing: border-box;
            }
            .admin-collapsible > div {
              overflow-x: hidden;
            }
            @media (max-width: 440px) {
              #adminPanelWrapper details#adminMainDetails > summary {
                padding: 12px 14px !important;
              }
              #adminPanelWrapper details#adminMainDetails > div {
                padding: 0 10px 16px 10px !important;
              }
              details.admin-collapsible > summary {
                padding: 10px 12px !important;
                font-size: 0.82rem !important;
              }
              details.admin-collapsible > div {
                padding: 10px 10px 14px 10px !important;
              }
              .admin-stat-grid {
                grid-template-columns: 1fr !important;
              }
            }

            /* --- NAVEGACIÓN Y PESTAÑAS TEMÁTICAS ADMIN --- */
            .admin-tab-nav {
              display: flex;
              gap: 6px;
              overflow-x: auto;
              padding: 4px 2px 10px 2px;
              scrollbar-width: none;
              -webkit-overflow-scrolling: touch;
            }
            .admin-tab-nav::-webkit-scrollbar {
              display: none;
            }
            .admin-tab-btn {
              display: inline-flex;
              align-items: center;
              gap: 6px;
              padding: 8px 14px;
              font-size: 0.8rem;
              font-weight: 700;
              color: var(--text-muted);
              background: rgba(255, 255, 255, 0.05);
              border: 1px solid rgba(255, 255, 255, 0.12);
              border-radius: 20px;
              cursor: pointer;
              white-space: nowrap;
              transition: all 0.2s ease;
              user-select: none;
              flex-shrink: 0;
            }
            .admin-tab-btn:hover {
              background: rgba(230, 126, 34, 0.15);
              color: var(--text-main);
              border-color: rgba(230, 126, 34, 0.4);
            }
            .admin-tab-btn.active {
              background: linear-gradient(135deg, rgba(230, 126, 34, 0.35) 0%, rgba(230, 126, 34, 0.18) 100%);
              color: #f39c12;
              border-color: #f39c12;
              box-shadow: 0 2px 8px rgba(243, 156, 18, 0.25);
            }
            .admin-category-panel {
              display: none;
            }
            .admin-category-panel.active-cat {
              display: block;
            }
            .admin-category-header {
              display: none;
              align-items: center;
              justify-content: space-between;
              padding: 8px 12px;
              margin: 16px 0 10px 0;
              background: rgba(230, 126, 34, 0.1);
              border-left: 3px solid #e67e22;
              border-radius: 6px;
              font-size: 0.78rem;
              font-weight: 800;
              color: #e67e22;
              text-transform: uppercase;
              letter-spacing: 0.5px;
            }
            .admin-category-header.show-header {
              display: flex !important;
            }

