:root { --header-h: 100px; }

        body {
            padding-top: var(--header-h) !important;
            overflow-x: hidden;
        }
        @media (max-width: 1100px) {
            body { padding-top: 40px !important; }
        }

        /* ── HEADER DESKTOP ─────────────────────── */
        .desktop-header {
            position: fixed;
            top: 0; left: 0;
            width: 100%;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.6);
        }

        /* Top tier — barra delgada */
        .top-tier {
            font-weight: 400;
            background: #000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 24px;
            height: 30px;
            border-bottom: 1px solid rgba(255,255,255,0.5);
            font-size: 0.72rem;
            color: rgb(255, 255, 255);
        }
        .top-tier .fw-black { font-size: 0.7rem; letter-spacing: 0.5px; }
        .top-tier-links { display: flex; gap: 24px; }
        .top-tier-links a {
            color: rgb(255, 255, 255);
            text-decoration: none;
            font-size: 0.8rem;
            letter-spacing: 0.3px;
            transition: color 0.2s;
        }
        .top-tier-links a:hover { color: rgba(255,255,255,0.6); }

        .main-tier {
            background: #000000;
            display: flex;
            align-items: center;
            padding: 0 24px;
            height: 70px;
            overflow: visible;
        }
        
        .brand-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            height: 70px;
            margin-right: 24px;
        }

        .logo-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 80px;      
            height: 100px;    
            background: #000;
            z-index: 10;
            display: flex;
            justify-content: center;
            align-items: center;
            /* Redondeamos solo las esquinas de abajo */
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
            padding-bottom: 12px;
        }

        .logo-container img {
            width: 55px;      /* Ajusta según el tamaño de tu imagen */
            height: auto;
            object-fit: contain;
        }

        .logo-text {
            margin-left: 100px; 
            height: 35px;      
            display: flex;
            align-items: center;
        }

        .logo-text img {
            height: 75%;
            width: auto;
            object-fit: contain;
            padding-top: 3px;
        }

        /* Nav links */
        .main-nav-links {
            display: flex;
            gap: 2px;
            flex: 1;
        }
        .main-nav-links a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            font-size: 0.8rem;
            font-weight: 600;
            padding: 6px 11px;
            letter-spacing: 0.3px;
            white-space: nowrap;
            transition: color 0.2s, background 0.2s;
        }
        .main-nav-links a:hover  { color: #fff; background: rgba(255,255,255,0.07); }
        .main-nav-links a.active { color: #fff; }

        /* Sección derecha */
        .right-section {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }
        .user-pill {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(255,255,255,0.05);
            padding: 5px 14px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.1);
            font-size: 0.8rem;
        }
        .user-pill .greeting  { color: rgba(255,255,255,0.5); font-weight: 600; }
        .user-pill .user-name { color: #fff; font-weight: 800; letter-spacing: 0.5px; }

        .btn-admin-custom {
            background: #f1c40f;
            border: none;
            width: 34px; height: 34px;
            border-radius: 6px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            transition: transform 0.2s;
            color: #000; font-size: 0.9rem;
        }
        .btn-admin-custom:hover { transform: scale(1.08); }
        .btn-admin-noticias {
            background: #f1c40f;
            border: none;
            width: 34px; height: 34px;
            border-radius: 6px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            transition: transform 0.2s;
            color: #000; font-size: 0.9rem;
        }
        .btn-admin-noticias:hover { transform: scale(1.08); }
        .btn-logout-elegant {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.35);
            color: #fff;
            padding: 6px 16px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 1px;
            cursor: pointer;
            display: flex; align-items: center; gap: 8px;
            transition: background 0.2s, color 0.2s;
        }
        .btn-logout-elegant:hover { background: #fff; color: #000; }

        /* ── MÓVIL — barra superior ─────────────── */
        .mobile-top-bar {
            background: #0a0a0a;
            height: 60px;
            display: none;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            position: fixed;
            top: 0; left: 0;
            width: 100%;
            z-index: 1000;
            border-bottom: 1px solid #222;
            color: #fff;
        }
        .mobile-top-bar .logo-mobile {
            height: 36px;
            display: flex;
            align-items: center;
        }
        .mobile-top-bar .logo-mobile img {
            height: 100%;
            object-fit: contain;
        }

        /* ── MÓVIL — barra inferior con iconos ─── */
        .mobile-bottom-nav {
            background: #0a0a0a;
            height: 64px;
            display: none;
            align-items: center;
            justify-content: space-around;
            position: fixed;
            bottom: 0; left: 0;
            width: 100%;
            z-index: 1000;
            border-top: 1px solid #1e2d5a;
        }
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: rgba(255,255,255,0.45);
            font-size: 0.6rem;
            gap: 4px;
            cursor: pointer;
            width: 20%;
            text-decoration: none;
            transition: color 0.2s;
        }
        .bottom-nav-item i       { font-size: 1.3rem; }
        .bottom-nav-item.active  { color: #fff; }
        .bottom-nav-item:hover   { color: rgba(255,255,255,0.8); }

        /* Botón central del balón */
        .bottom-nav-item.center-btn i {
            font-size: 2rem;
            color: #fff;
        }

        .menu-icon-circle {
            border-radius: 50%;
            width: 28px; height: 28px;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.9rem;
            color: #fff;
        }

        /* Overlay menú móvil */
        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 60px; bottom: 64px;
            left: 0; width: 100%;
            background: #0a0a0a;
            z-index: 900;
            overflow-y: auto;
            padding: 20px;
        }
        .mobile-menu-overlay.show { display: block; }
        .mobile-menu-list {
            list-style: none;
            padding: 0; margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .mobile-menu-list li {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid #1a1a1a;
            font-weight: 600;
            font-size: 0.95rem;
        }
        .mobile-menu-list li a {
            color: #fff;
            text-decoration: none;
        }
        .mobile-menu-list li i { color: rgba(255,255,255,0.35); }

        /* Mostrar móvil / ocultar desktop en pantallas pequeñas */
        @media (max-width: 1100px) {
            .desktop-header   { display: none !important; }
            .mobile-top-bar   { display: flex; }
            .mobile-bottom-nav{ display: flex; }
            .mobile-top-bar {
                width: 100% !important;
                max-width: 100vw !important;
                overflow: hidden !important;
                box-sizing: border-box !important;
            }
            
            .mobile-top-bar * {
                box-sizing: border-box;
            }
            
            /* El logo móvil no debe desbordar */
            .mobile-top-bar .logo-mobile {
                max-width: 160px;
                overflow: hidden;
                flex-shrink: 1;
            }
            
            .mobile-top-bar .logo-mobile img {
                height: 36px;
                width: auto;
                max-width: 100%;
                object-fit: contain;
                display: block;
            }
            
            /* El contenido de la derecha tampoco */
            .mobile-top-bar .right-section {
                flex-shrink: 0;
                max-width: 50%;
                overflow: hidden;
            }
        }


    .news-hero {
        max-width: 1600px !important;
        width: 100% !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: hidden;
    }
    .news-nav {
        max-width: 1600px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .slide-inner {
        height: 626px;
        max-width: 100%;
        width: 100%;
        align-items: stretch;
        gap: 0 !important;
    }
    
    .slide-img {
        height: 100% !important;
        display: block;
        margin: 0; 
        padding: 0;
    }
    
    .slide-img img {
        width: 100%; 
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }
    
    .slide-text { 
        height: 100%; 
    }

    @media (max-width: 640px) {
        .slide-inner { height: auto !important; }
        .slide-img   { height: 260px !important; }
        .slide-text  { height: auto; }
    }
    /* =====================================================
       PREDICCIONES — GRID 3 COLUMNAS
       ===================================================== */
 
    /* ── HERO ─────────────────────────────────────────── */
    .pred-hero {
        background: #000;
        position: relative;
        overflow: hidden;
        border-bottom: 3px solid var(--fifa-gold, #FFD700);
    }
 
    /* Fondo con patrón de campo */
    .pred-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            repeating-linear-gradient(
                90deg,
                rgba(255,255,255,0.015) 0px,
                rgba(255,255,255,0.015) 1px,
                transparent 1px,
                transparent 60px
            ),
            repeating-linear-gradient(
                0deg,
                rgba(255,255,255,0.015) 0px,
                rgba(255,255,255,0.015) 1px,
                transparent 1px,
                transparent 60px
            );
        pointer-events: none;
    }
 
    .pred-hero-inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 48px 24px 40px;
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 32px;
    }
 
    .pred-hero-left {}
 
    .pred-hero-eyebrow {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
    }
    .pred-hero-eyebrow-line {
        width: 32px;
        height: 2px;
        background: var(--fifa-gold, #FFD700);
    }
    .pred-hero-eyebrow span {
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--fifa-gold, #FFD700);
    }
 
    .pred-hero-title {
        font-size: clamp(36px, 5vw, 72px);
        font-weight: 900;
        color: #fff;
        line-height: 1;
        letter-spacing: -2px;
        text-transform: uppercase;
        margin-bottom: 14px;
    }
    .pred-hero-title em {
        font-style: normal;
        color: var(--fifa-gold, #FFD700);
    }
 
    .pred-hero-sub {
        font-size: 14px;
        color: rgba(255,255,255,0.5);
        line-height: 1.6;
        max-width: 480px;
    }
 
    /* Stats rápidas en el hero */
    .pred-hero-stats {
        display: flex;
        gap: 0;
        margin-top: 28px;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 10px;
        overflow: hidden;
        width: fit-content;
    }
    .pred-hero-stat {
        padding: 14px 24px;
        border-right: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }
    .pred-hero-stat:last-child { border-right: none; }
    .pred-hero-stat-val {
        font-size: 24px;
        font-weight: 900;
        color: #fff;
        line-height: 1;
        display: block;
    }
    .pred-hero-stat-val.gold { color: var(--fifa-gold, #FFD700); }
    .pred-hero-stat-lbl {
        font-size: 10px;
        color: rgba(255,255,255,0.4);
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        display: block;
        margin-top: 4px;
    }
 
    /* Balón decorativo derecha */
    .pred-hero-ball {
        font-size: 120px;
        opacity: 0.06;
        line-height: 1;
        user-select: none;
        animation: spin-slow 20s linear infinite;
    }
    @keyframes spin-slow {
        from { transform: rotate(0deg); }
        to   { transform: rotate(360deg); }
    }
 
    @media (max-width: 700px) {
        .pred-hero-inner {
            grid-template-columns: 1fr;
            padding: 32px 16px 28px;
        }
        .pred-hero-ball { display: none; }
        .pred-hero-stats { flex-wrap: wrap; }
    }
 
    /* ── GRID 3 COLUMNAS ──────────────────────────────── */
    .pred-grid {
        max-width: 1280px;
        margin: 0 auto;
        padding: 28px 16px 48px;
        display: grid;
        grid-template-columns: 240px 1fr 240px;
        grid-template-areas: "izquierda centro derecha";
        gap: 24px;
        align-items: start;
        background: #f4f4f4;
    }
 
    .pred-col-left  { grid-area: izquierda; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
    .pred-col-main  { grid-area: centro;    display: flex; flex-direction: column; gap: 16px; min-width: 0; }
    .pred-col-right { grid-area: derecha;   display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
 
    /* ── WIDGET BASE ──────────────────────────────────── */
    .widget {
        background: #fff;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        border: 1px solid #eee;
    }
    .widget-header {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    .widget-bar {
        width: 3px; height: 14px;
        background: var(--fifa-gold, #FFD700);
        border-radius: 0; flex-shrink: 0;
    }
    .widget-title {
        font-size: 11px; font-weight: 800;
        letter-spacing: 1.5px; text-transform: uppercase;
        color: #0a0a0a; flex: 1; margin: 0;
    }
    .widget-link {
        font-size: 11px; color: #0066CC;
        text-decoration: none; font-weight: 600;
    }
    .widget-body { padding: 14px 16px; }
 
    /* ── TABS ─────────────────────────────────────────── */
    .pred-tabs {
        display: flex;
        gap: 0;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        border: 1px solid #eee;
    }
    .pred-tab-btn {
        flex: 1;
        padding: 14px 16px;
        background: none;
        border: none;
        font-size: 13px;
        font-weight: 700;
        color: #999;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-bottom: 3px solid transparent;
        transition: color 0.2s, border-color 0.2s;
        letter-spacing: 0.3px;
    }
    .pred-tab-btn.active {
        color: #0a0a0a;
        border-bottom-color: var(--fifa-gold, #FFD700);
        background: #fafafa;
    }
    .pred-tab-btn:hover:not(.active) { color: #555; background: #fafafa; }
    .pred-tab-btn i { font-size: 15px; }
 
    /* ── FILTROS ──────────────────────────────────────── */
    .pred-filters {
        background: #fff;
        
        padding: 14px 16px;
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        align-items: flex-end;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        border: 1px solid #eee;
    }
    .pred-filter-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
        flex: 1;
        min-width: 140px;
    }
    .pred-filter-label {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #999;
    }
    .pred-filter-select {
        padding: 8px 12px;
        border: 1px solid #e0e0e0;
        
        font-size: 13px;
        color: #1a1a1a;
        background: #fff;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 28px;
        transition: border-color 0.2s;
    }
    .pred-filter-select:focus {
        outline: none;
        border-color: #0066CC;
    }
 
    /* ── CONTENIDO DE TABS ────────────────────────────── */
    .pred-tab-content { display: none; }
    .pred-tab-content.active { display: flex; flex-direction: column; gap: 12px; }
 
    /* ── MATCHES GRID (hereda predicciones-styles.css) ── */
    /* Solo sobreescribimos el contenedor wrapper */
    #matchesGrid,
    #completedList {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
 
    /* Estado vacío / loading */
    .pred-empty {
        background: #fff;
        
        padding: 48px 24px;
        text-align: center;
        border: 1px solid #eee;
    }
    .pred-empty i {
        font-size: 40px;
        color: #ddd;
        display: block;
        margin-bottom: 12px;
    }
    .pred-empty p { font-size: 13px; color: #aaa; }
 
    /* ── WIDGET: RESUMEN PERSONAL ─────────────────────── */
    .resumen-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #f5f5f5;
    }
    .resumen-row:last-child { border-bottom: none; }
    .resumen-label { font-size: 12px; color: #555; }
    .resumen-val {
        font-size: 14px;
        font-weight: 800;
        color: #0a0a0a;
    }
    .resumen-val.blue { color: #0066CC; }
    .resumen-val.gold { color: #FFC107; }
    .resumen-val.red { color: #cb2126; }
    .resumen-val.purple { color: #7044a0; }
 
    /* ── WIDGET CTA ───────────────────────────────────── */
    .widget-cta-dark {
        background: #0a0a0a !important;
        border-color: #222 !important;
    }
    .widget-cta-dark .widget-header { border-bottom-color: #222; }
    .widget-cta-dark .widget-title  { color: #fff; }
    .cta-text { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; margin-bottom: 14px; }
    .cta-btn {
        display: block; text-align: center;
        padding: 11px; background: var(--fifa-gold, #FFD700);
        color: #000; font-size: 13px; font-weight: 800;
        border-radius: 8px; text-decoration: none;
        transition: background 0.2s;
    }
    .cta-btn:hover { background: #e6c200; }
 
    /* ── WIDGET REGLAS RÁPIDAS ────────────────────────── */
    .rule-item {
        display: flex; align-items: flex-start;
        gap: 10px; padding: 7px 0;
        border-bottom: 1px solid #f5f5f5;
    }
    .rule-item:last-child { border-bottom: none; }
    .rule-dot {
        width: 6px; height: 6px; border-radius: 50%;
        background: #0066CC; flex-shrink: 0; margin-top: 5px;
    }
    .rule-text { font-size: 12px; color: #333; line-height: 1.5; }
 
    /* ── RESPONSIVE ───────────────────────────────────── */
    @media (max-width: 1024px) {
        .pred-grid {
            grid-template-columns: 1fr 220px;
            grid-template-areas:
                "centro derecha"
                "izquierda izquierda";
        }
        .pred-col-left {
            position: static;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
    }
    @media (max-width: 700px) {
        .pred-grid {
            grid-template-columns: 1fr;
            grid-template-areas: "centro" "derecha" "izquierda";
            padding: 16px 12px 40px;
        }
        .pred-col-left,
        .pred-col-right { position: static; }
        .pred-filters { flex-direction: column; }
        .pred-filter-group { min-width: 100%; }
    }
 
    /* Fondo gris para toda la sección del grid */
    .pred-grid-bg {
        background: #f4f4f4;
    }

/* ── GRID DE CARDS (desktop 3 cols, tablet 2, móvil 1) */
#matchesGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: start;
}

@media (max-width: 900px) {
    #matchesGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    #matchesGrid { grid-template-columns: 1fr; }
}

/* ── CARD BASE ─────────────────────────────────────── */
.match-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.match-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.match-card.removing {
    opacity: 0;
    transform: scale(0.96);
    transition: all 0.3s ease;
}

/* ── CABECERA ──────────────────────────────────────── */
.mc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 11px 14px 9px;
    border-bottom: 1px solid #f0f0f0;
}
.mc-competition {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
}
.mc-subtitle {
    font-size: 11px;
    color: #0066CC;
    margin-top: 2px;
}
.mc-date {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

/* ── CUERPO ────────────────────────────────────────── */
.mc-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    gap: 12px;
    flex: 1;
}

/* Equipos + inputs */
.mc-teams-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px; 
    flex: 1;
    min-width: 0;
}

.mc-team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.mc-flag { font-size: 24px; line-height: 1; flex-shrink: 0; }

.mc-name {
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.5px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Input alineado a la derecha de cada equipo */
.mc-goal-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    color: #000000;
    border: 1.5px solid #e0e0e0;
    background: #fafafa;
    flex-shrink: 0;
    -moz-appearance: textfield;
    appearance: textfield;
    transition: border-color 0.2s, background 0.2s;
    padding: 0;
}
.mc-goal-input::-webkit-inner-spin-button,
.mc-goal-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.mc-goal-input:focus {
    outline: none;
    border-color: #0066CC;
    background: #EBF3FF;
}

/* Hora (derecha) */
.mc-hora-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 56px;
}
.mc-hora {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* ── BOTÓN ─────────────────────────────────────────── */
.mc-btn-predict {
    display: block;
    width: calc(100% - 28px);
    margin: 0 14px 12px;
    padding: 11px;
    background: #0066CC;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.1s;
}
.mc-btn-predict:hover   { background: #0052a3; }
.mc-btn-predict:active  { transform: scale(0.98); }
.mc-btn-predict:disabled { background: #ccc; cursor: not-allowed; }

/* REEMPLAZA .mc-score-spinner */
.mc-score-spinner {
    display: flex;
    flex-direction: row;  /* ahora es fila: flechas | número */
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.mc-spin-arrows {
    display: flex;
    flex-direction: column;  /* flechas apiladas verticalmente */
    gap: 2px;
}

.mc-spin-btn {
    width: 36px;
    height: 16px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 8px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}
.mc-spin-btn:hover  { background: #0066CC; color: #fff; border-color: #0066CC; }
.mc-spin-btn:active { transform: scale(0.95); }

.mc-goal-input {
    width: 36px;
    height: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
    cursor: default;
}
.mc-goal-input:focus { outline: none; }

#completedList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: start;
}
@media (max-width: 700px) {
    #completedList { grid-template-columns: 1fr; }
}
 
.pred-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.pred-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
 
.pred-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 11px 14px 9px;
    border-bottom: 1px solid #f0f0f0;
}
.pred-card-competition { font-size: 12px; font-weight: 700; color: #1a1a1a; }
.pred-card-subtitle    { font-size: 11px; color: #0066CC; margin-top: 2px; }
.pred-card-date        { font-size: 11px; color: #999; font-weight: 600; white-space: nowrap; margin-left: 8px; flex-shrink: 0; }
 
.pred-card-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 12px;
    flex: 1;
}
 
.pred-card-teams {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 0;
}
.pred-card-team-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pred-card-flag { font-size: 20px; line-height: 1; flex-shrink: 0; }
.pred-card-name {
    font-size: 12px; font-weight: 600; color: #000000;
    letter-spacing: -0.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
 
.pred-card-scores {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
 
.pred-card-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 52px;
}
 
.pred-card-score-label {
    font-size: 9px; font-weight: 700;
    letter-spacing: -0.5px; text-transform: uppercase;
    white-space: nowrap;
}
.pred-col-pred .pred-card-score-label { color: #0066CC; }
.pred-col-real .pred-card-score-label { color: #16a34a; }
 
.pred-card-result-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.pred-card-result-num {
    font-size: 22px; font-weight: 900; line-height: 1.2;
    min-width: 24px; text-align: center;
}
.pred-card-result-num.pred { color: #0066CC; }
.pred-card-result-num.real { color: #16a34a; }
 
.pred-card-result-line {
    width: 24px; height: 2px;
    background: #e0e0e0; margin: 2px 0;
}
.pred-card-result-line.real-line { background: #bbf7d0; }
 
.pred-card-score-divider {
    width: 1px; height: 52px;
    background: #f0f0f0; flex-shrink: 0;
}
 
.pred-card-pending-text {
    font-size: 10px; color: #bbb; font-weight: 600;
    white-space: nowrap; padding-top: 8px;
}
 
.pred-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px 11px;
    border-top: 1px solid #f5f5f5;
    background: #fafafa;
}
.pred-card-status {
    font-size: 11px; font-weight: 700;
}
.pred-card-status.pendiente  { color: #BA7517; }
.pred-card-status.finalizado { color: #16a34a; }
 
.pred-pts-badge {
    display: inline-block;
    font-size: 12px; font-weight: 900;
    padding: 3px 10px; border-radius: 20px;
    letter-spacing: 0.3px;
}
.pred-pts-badge.pts-9 { background: #D1F2EB; color: #085041; }
.pred-pts-badge.pts-7 { background: #EAF3DE; color: #27500A; }
.pred-pts-badge.pts-5 { background: #FAEEDA; color: #633806; }
.pred-pts-badge.pts-2 { background: #EBF3FF; color: #0C447C; }
.pred-pts-badge.pts-0 { background: #f5f5f5; color: #888;    }

/* ── TOAST ─────────────────── */

#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse; 
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    visibility: hidden;
    opacity: 0;
    width: fit-content;
    min-width: 280px;
    max-width: 450px;
    height: 50px;
    background-color: #000000;
    color: #fff;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: visibility 0s 0.5s;
    pointer-events: auto;
}

.toast-item.show {
    visibility: visible;
    opacity: 1;
    animation: toastFadein 0.5s ease forwards, toastFadeout 0.5s ease 3.5s forwards;
    transition: visibility 0s 0s;
}

.toast-item .toast-icon {
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.toast-item .toast-desc {
    flex: 1;
    color: #fff;
    padding: 0 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.toast-item.success .toast-icon { background-color: #389e36; }
.toast-item.error .toast-icon   { background-color: #cb2126; }
.toast-item.warning .toast-icon { background-color: #f1c40f; }

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

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