/* ============================================
   ProdeLibre - Mundial 2026
   Brand: ProdeLibre Identity System
   ============================================ */

:root {
    --primary: #2ECC71;
    --cream: #F0F4F1;
    --black: #1A1A2E;
    --primary-dark: #27AE60;
    --blue: #0485CE;
    --white: #FFFFFF;
    --gray-100: #F5F5F2;
    --gray-200: #E0D8D6;
    --gray-300: #B0A8A6;
    --gray-500: #6B6462;
    --green: #2ECC71;
    --yellow: #F1C40F;
    --font-display: 'Anybody', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(38, 37, 36, 0.08);
    --shadow-lg: 0 8px 24px rgba(38, 37, 36, 0.12);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--black);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.main-content { padding: 30px 0 60px; min-height: calc(100vh - 140px); }

/* ---- Navbar ---- */
.navbar {
    background: var(--black);
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}
.navbar-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 30px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.navbar-brand:hover { color: var(--primary); }
.navbar-logo { height: 28px; width: auto; }
.logo-text { color: var(--white); }
.navbar-links {
    display: flex;
    gap: 2px;
    flex: 1;
    flex-wrap: nowrap;
    align-items: center;
}
.nav-link {
    color: var(--gray-300);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.active {
    color: var(--white);
    background: none;
    border-radius: 0;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 4px;
    right: 4px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Nav dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
    background: none; border: none; cursor: pointer;
    color: var(--gray-300); font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.3px;
    padding: 8px 12px; border-radius: var(--radius);
    transition: all 0.2s; white-space: nowrap;
    display: flex; align-items: center; gap: 4px;
    font-family: var(--font-body);
}
.nav-dropdown-btn:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-dropdown-btn.active { color: var(--white); background: none; }
.nav-dropdown-btn .arrow { font-size: 8px; opacity: 0.6; }
.nav-dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); min-width: 160px;
    padding: 6px 0; z-index: 200; padding-top: 12px;
}
.nav-dropdown-menu::before {
    content: ''; position: absolute; top: -6px; left: 0; right: 0; height: 12px;
}
.nav-dropdown-right { left: auto; right: 0; }
.nav-dropdown-menu a {
    display: block; padding: 8px 16px; color: var(--black);
    font-size: 13px; font-weight: 500; transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--gray-100); color: var(--black); }
.nav-dropdown-menu a.active { color: var(--primary); font-weight: 700; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

/* Right side: bell + user */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.navbar .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.3); }
.navbar .btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* User menu button */
.user-menu-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 4px;
}
.user-name {
    color: var(--gray-300);
    font-size: 13px;
    font-weight: 500;
}

/* Notification bell */
.notif-bell { position: relative; }
.notif-bell-btn {
    background: none; border: none; cursor: pointer;
    color: var(--gray-300); padding: 6px; border-radius: var(--radius);
    transition: all 0.2s; position: relative;
    display: flex; align-items: center;
}
.notif-bell-btn:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.notif-badge {
    position: absolute; top: 0; right: -2px;
    background: #e74c3c; color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px; display: flex;
    align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1;
}
.notif-dropdown {
    display: none; position: absolute; top: 100%; right: 0;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); width: 320px;
    z-index: 200; margin-top: 6px; overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
}
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
    display: block; padding: 10px 16px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s; color: var(--black);
    font-size: 13px; line-height: 1.4;
}
.notif-item:hover { background: var(--gray-100); color: var(--black); }
.notif-item.unread { background: #f0faf4; }
.notif-item .notif-time {
    font-size: 11px; color: var(--gray-300); margin-top: 2px;
}
.notif-empty {
    padding: 30px 16px; text-align: center;
    color: var(--gray-300); font-size: 13px;
}
.notif-header-actions { display: flex; gap: 8px; align-items: center; }
.notif-item { position: relative; }
.notif-item-link { color: inherit; display: block; }
.notif-item-link:hover { color: inherit; }
.notif-delete-btn {
    position: absolute; top: 8px; right: 8px;
    background: none; border: none; cursor: pointer;
    color: var(--gray-300); font-size: 18px; line-height: 1;
    padding: 0 4px; border-radius: 3px;
    opacity: 0; transition: opacity 0.15s, color 0.15s;
}
.notif-item:hover .notif-delete-btn { opacity: 1; }
.notif-delete-btn:hover { color: #e74c3c; }

.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.navbar-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--white); margin: 5px 0;
    transition: 0.3s;
}
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* Mobile menu (hidden on desktop) */
/* ---- Mobile group bar ---- */
.mobile-group-bar { display: none; }
@media (max-width: 768px) {
    .mobile-group-bar {
        display: block;
        background: var(--black);
        border-top: 1px solid rgba(255,255,255,0.08);
        position: relative;
    }
    .mobile-group-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 8px 16px;
        background: none;
        border: none;
        color: var(--white);
        font-family: var(--font-body);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
    .mobile-group-current {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        overflow: hidden;
    }
    .mobile-group-icon { font-size: 14px; flex-shrink: 0; }
    .mobile-group-tournament {
        font-size: 11px;
        color: var(--gray-300);
        font-weight: 500;
        flex-shrink: 0;
    }
    .mobile-group-tournament::before { content: '·'; margin: 0 4px; }
    .mobile-group-arrow {
        font-size: 10px;
        color: var(--gray-300);
        transition: transform 0.2s;
        flex-shrink: 0;
    }
    .mobile-group-list {
        display: none;
        background: var(--black);
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .mobile-group-list.open {
        display: block;
    }
    .mobile-group-list.open + .mobile-group-arrow,
    .mobile-group-bar:has(.mobile-group-list.open) .mobile-group-arrow {
        transform: rotate(180deg);
    }
    .mobile-group-option {
        display: flex;
        flex-direction: column;
        padding: 10px 16px 10px 38px;
        color: var(--gray-300);
        font-size: 13px;
        transition: background 0.15s;
    }
    .mobile-group-option:hover { background: rgba(255,255,255,0.05); color: var(--white); }
    .mobile-group-option.active { color: var(--primary); }
    .mobile-group-option strong { font-weight: 700; }
    .mobile-group-option span { font-size: 11px; color: var(--gray-500); margin-top: 1px; }
    .mobile-group-option.active span { color: var(--primary); opacity: 0.7; }
    .mobile-group-add {
        color: var(--primary) !important;
        font-weight: 700;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
}

.mobile-menu { display: none; }
.mobile-menu-link {
    display: block;
    padding: 12px 20px;
    color: var(--gray-300);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.mobile-menu-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.mobile-menu-link.active { color: var(--primary); }
.mobile-menu-sep {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 4px 20px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-black { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-black:hover { background: #3a3938; }
.btn-success { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Cards ---- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    background: var(--black);
    color: var(--white);
    padding: 14px 20px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header .phase-badge {
    background: var(--primary);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-family: var(--font-body);
    font-weight: 700;
}
.card-body { padding: 20px; }

/* ---- Login ---- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='58'%3E%3Ctext x='0' y='52' font-family='Arial Black,sans-serif' font-weight='900' font-size='68' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1' letter-spacing='-2'%3EVAMOSARGENTINA%3C/text%3E%3C/svg%3E");
    background-size: 720px 58px;
    transform: rotate(-15deg) scale(1.5);
    pointer-events: none;
}
.login-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.login-logo {
    text-align: center;
    margin-bottom: 35px;
}
.login-logo svg { color: var(--primary); }
.login-logo h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 32px;
    color: var(--black);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 10px;
}
.login-logo p {
    color: var(--gray-500);
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--black);
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}
select.form-control {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23262524' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ---- Countdown Banner ---- */
.countdown-banner {
    background: linear-gradient(135deg, #75AADB 0%, #75AADB 33%, var(--white) 33%, var(--white) 66%, #75AADB 66%, #75AADB 100%);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    animation: bannerGlow 3s ease-in-out infinite;
}
@keyframes bannerGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(117,170,219,0.3); }
    50% { box-shadow: 0 4px 30px rgba(117,170,219,0.6), 0 0 60px rgba(255,215,0,0.15); }
}
.countdown-inner {
    background: var(--black);
    border-radius: 4px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.countdown-inner::before {
    content: '★ ★ ★';
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(255,215,0,0.3);
    animation: starsPulse 2s ease-in-out infinite;
}
@keyframes starsPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}
.countdown-inner::after {
    content: '🏆🏆🏆';
    position: absolute;
    bottom: 6px;
    right: 16px;
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.2;
}
/* Sparkle particles */
.countdown-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.countdown-sparkles span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #FFD700;
    animation: sparkle 3s ease-in-out infinite;
}
.countdown-sparkles span:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.countdown-sparkles span:nth-child(2) { top: 70%; left: 25%; animation-delay: 0.7s; }
.countdown-sparkles span:nth-child(3) { top: 25%; left: 55%; animation-delay: 1.4s; }
.countdown-sparkles span:nth-child(4) { top: 80%; left: 70%; animation-delay: 0.3s; }
.countdown-sparkles span:nth-child(5) { top: 10%; left: 85%; animation-delay: 1.1s; }
.countdown-sparkles span:nth-child(6) { top: 55%; left: 40%; animation-delay: 1.8s; }
.countdown-sparkles span:nth-child(7) { top: 40%; left: 92%; animation-delay: 0.5s; }
.countdown-sparkles span:nth-child(8) { top: 85%; left: 50%; animation-delay: 2.2s; }
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    20% { opacity: 1; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.5); }
    50% { opacity: 0; transform: scale(0); }
}
.countdown-flag {
    font-size: 52px;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    animation: flagFloat 3s ease-in-out infinite;
}
@keyframes flagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.countdown-info { flex: 1; min-width: 0; }
.countdown-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFD700;
    animation: labelShimmer 3s ease-in-out infinite;
}
@keyframes labelShimmer {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; text-shadow: 0 0 8px rgba(255,215,0,0.4); }
}
.countdown-match {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20px;
    color: var(--white);
    margin-top: 4px;
}
.countdown-date {
    font-size: 13px;
    color: var(--gray-300);
    font-weight: 500;
    margin-top: 4px;
}
.countdown-timer {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.countdown-block {
    background: linear-gradient(180deg, #75AADB 0%, #5a92c4 100%);
    border-radius: var(--radius);
    padding: 10px 8px;
    text-align: center;
    min-width: 56px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.countdown-block:hover {
    transform: translateY(-2px);
}
.cd-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 26px;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cd-unit {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .countdown-banner { padding: 3px; }
    .countdown-inner {
        flex-wrap: wrap;
        padding: 16px;
        gap: 12px;
    }
    .countdown-inner { flex-direction: column; align-items: center; text-align: center; }
    .countdown-flag { font-size: 40px; }
    .countdown-info { text-align: center; width: 100%; }
    .countdown-match { font-size: 16px; }
    .countdown-timer { width: 100%; justify-content: center; }
    .countdown-block { min-width: 48px; padding: 8px 6px; }
    .cd-num { font-size: 22px; }
}

/* ---- Argentina Schedule Toggle ---- */
.arg-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: var(--black);
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.arg-chevron {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.3s;
}
.arg-toggle-btn.open .arg-chevron {
    transform: rotate(180deg);
}
.arg-toggle-btn:hover { background: #333; }
.arg-toggle-btn.open { color: var(--white); }
.arg-schedule-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0,0,0,0.3);
    border-radius: 0 0 4px 4px;
}
.arg-schedule-dropdown.open {
    max-height: 600px;
}
.arg-schedule-dropdown .arg-schedule-table td {
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.arg-schedule-dropdown .arg-day-name { color: var(--white); }
.arg-schedule-dropdown .arg-day-num { color: rgba(255,255,255,0.5); }
.arg-schedule-dropdown .arg-loc { color: rgba(255,255,255,0.4); }
.arg-schedule-dropdown .arg-phase { color: rgba(255,255,255,0.4); }
.arg-schedule-dropdown .arg-finished td { opacity: 0.5; }

/* ---- Argentina Schedule ---- */
.arg-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.arg-schedule-table tr { border-bottom: 1px solid var(--gray-100); }
.arg-schedule-table tr:last-child { border-bottom: none; }
.arg-schedule-table td { padding: 12px 14px; vertical-align: middle; }
.arg-date { white-space: nowrap; }
.arg-day-name {
    font-weight: 700;
    color: var(--black);
    display: block;
    font-size: 13px;
}
.arg-day-num {
    font-size: 12px;
    color: var(--gray-500);
}
.arg-time {
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
}
.arg-vs {
    font-weight: 600;
}
.arg-loc {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
}
.arg-phase {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
}
.arg-result { text-align: center; white-space: nowrap; }
.arg-finished { opacity: 0.6; }
.arg-playing { background: rgba(46, 204, 113, 0.06); }

@media (max-width: 768px) {
    .arg-schedule-table td { padding: 10px 8px; font-size: 12px; }
    .arg-phase { display: none; }
}

/* ---- Upcoming Match Alert ---- */
.upcoming-alert {
    margin-bottom: 20px;
}
.upcoming-alert-inner {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(239, 65, 45, 0.12);
    animation: alertPulse 3s ease-in-out infinite;
}
@keyframes alertPulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(239, 65, 45, 0.12); }
    50% { box-shadow: 0 2px 20px rgba(239, 65, 45, 0.25); }
}
.upcoming-alert-timer {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
}
.upcoming-cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 6px 10px;
    min-width: 46px;
}
.upcoming-cd-num {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}
.upcoming-cd-unit {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    opacity: 0.85;
}
.upcoming-alert-content {
    flex: 1;
    min-width: 0;
}
.upcoming-alert-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 4px;
}
.upcoming-alert-match {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 16px;
    color: var(--black);
}
.upcoming-alert-date {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
    margin-top: 2px;
}
.upcoming-alert-btn {
    flex-shrink: 0;
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.upcoming-alert-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

@media (max-width: 768px) {
    .upcoming-alert-inner {
        flex-wrap: wrap;
        padding: 14px;
        gap: 10px;
    }
    .upcoming-alert-match { font-size: 14px; }
    .upcoming-alert-timer { order: 3; justify-content: center; }
    .upcoming-alert-btn { width: 100%; text-align: center; order: 4; }
}

/* ---- Google Button ---- */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-google:hover {
    border-color: var(--gray-300);
    background: var(--gray-100);
    color: var(--black);
}

/* ---- Alert ---- */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}
.alert-error { background: #FDECEA; color: var(--primary-dark); border-left: 4px solid var(--primary); }
.alert-success { background: #E8F8EF; color: #1B7A3D; border-left: 4px solid var(--green); }

/* ---- Page Header ---- */
.page-header {
    margin-bottom: 30px;
}
.page-header h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 36px;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.1;
}
.page-header p {
    color: var(--gray-500);
    margin-top: 6px;
    font-weight: 500;
}

/* ---- Match Card ---- */
.match-list { display: flex; flex-direction: column; gap: 3px; }
.match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 20px;
    background: var(--white);
    gap: 15px;
    transition: background 0.15s;
}
.match-row:hover { background: var(--gray-100); }
.match-row.finished { opacity: 0.85; }
.match-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}
.match-team.home { justify-content: flex-end; text-align: right; }
.match-team.away { justify-content: flex-start; }
.team-flag { font-size: 22px; line-height: 1; }
.match-center { text-align: center; min-width: 160px; }
.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
}
.match-score .separator { color: var(--gray-300); font-size: 16px; }
.match-score.has-result .score-num { color: var(--black); }
.match-score.no-result .score-num { color: var(--gray-300); }
.match-date {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}
.match-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 4px;
}
.status-pending { background: var(--gray-200); color: var(--gray-500); }
.status-playing { background: var(--green); color: var(--white); animation: pulse 1.5s infinite; }
.status-finished { background: var(--black); color: var(--white); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ---- Prediction Stepper (user fixture) ---- */
.prediction-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.prediction-stepper .stepper-input.saved {
    border-color: var(--green);
    background: #E8F8EF;
}
.prediction-stepper .stepper-input.cleared {
    border-color: var(--gray-300);
    background: var(--gray-100);
}
.prediction-stepper .stepper-input.rejected {
    border-color: var(--primary);
    background: #FDECEB;
}
.pred-error-msg {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 6px;
    text-align: center;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.prediction-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 13px;
    margin-left: 8px;
}
.points-3 { background: var(--green); color: var(--white); }
.points-1 { background: var(--yellow); color: var(--black); }
.points-0 { background: var(--gray-200); color: var(--gray-500); }

/* ---- Prediction Result Box (mis-predicciones) ---- */
.pred-result-box {
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
}
.pred-result-box.pred-result-exact { border-color: var(--green); background: #f0fdf4; }
.pred-result-box.pred-result-ok { border-color: var(--yellow); background: #fefce8; }
.pred-result-box.pred-result-miss { border-color: var(--gray-200); background: var(--gray-100); }
.pred-result-box.pred-result-none { border-color: var(--gray-200); background: var(--gray-100); }
.pred-result-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 2px;
}
.pred-yours {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
    margin-top: 4px;
}
.pred-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-top: 6px;
}
.pred-badge-exact { background: var(--green); color: var(--white); }
.pred-badge-ok { background: var(--yellow); color: var(--black); }
.pred-badge-miss { background: var(--gray-200); color: var(--gray-500); }

/* ---- My Position Banner ---- */
.my-position-banner {
    background: var(--black);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}
.my-pos-rank { text-align: center; flex-shrink: 0; }
.my-pos-number {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 36px;
    color: var(--primary);
    display: block;
    line-height: 1;
}
.my-pos-label {
    font-size: 12px;
    color: var(--gray-300);
    font-weight: 600;
}
.my-pos-info { flex: 1; }
.my-pos-points {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20px;
    color: var(--white);
}
.my-pos-detail {
    font-size: 13px;
    color: var(--gray-300);
    font-weight: 500;
    margin-top: 2px;
}
.my-pos-alert {
    flex-shrink: 0;
}
.my-pos-alert a {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.my-pos-alert a:hover { background: var(--primary-dark); color: var(--white); }

@media (max-width: 768px) {
    .my-position-banner { flex-wrap: wrap; padding: 16px; gap: 14px; }
    .my-pos-number { font-size: 28px; }
    .my-pos-points { font-size: 16px; }
    .my-pos-alert { width: 100%; text-align: center; }
    .my-pos-alert a { width: 100%; display: block; }
}

/* ---- Ranking ---- */
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    padding: 10px 16px;
    border-bottom: 2px solid var(--gray-200);
    font-weight: 700;
}
.ranking-table th.center, .ranking-table td.center { text-align: center; }
.ranking-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
}
.ranking-table tr:hover td { background: var(--gray-100); }
.ranking-pos {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    color: var(--gray-300);
    width: 40px;
}
.ranking-pos.top-1 { color: var(--primary); font-size: 22px; }
.ranking-pos.top-2 { color: var(--black); }
.ranking-pos.top-3 { color: var(--primary-dark); }
.ranking-name {
    font-weight: 700;
    font-size: 15px;
}
.ranking-name.is-me { color: var(--primary); }
.rank-change {
    display: inline-block;
    font-size: 14px;
    font-weight: 900;
    margin-left: 4px;
    vertical-align: baseline;
}
.rank-up { color: var(--green); }
.rank-down { color: var(--primary); }
.rank-same { color: var(--gray-300); font-size: 12px; }
.points-gained {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    margin-left: 6px;
    background: #e8f8ef;
    padding: 1px 6px;
    border-radius: 3px;
}
.ranking-points {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    color: var(--black);
}
.ranking-stat {
    font-size: 13px;
    color: var(--gray-500);
}
.ranking-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    font-size: 14px;
    font-family: var(--font-display);
}

/* ---- Podium ---- */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px 0 0;
}
.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 140px;
}
.podium-medal { font-size: 32px; line-height: 1; }
.podium-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    font-size: 20px;
    font-family: var(--font-display);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.podium-1st .podium-avatar {
    width: 64px;
    height: 64px;
    font-size: 24px;
    border: 3px solid #FFD700;
}
.podium-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--black);
    text-align: center;
}
.podium-points {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 16px;
    color: var(--primary);
}
.podium-1st .podium-points { font-size: 20px; }
.podium-bar {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.podium-1st .podium-bar { background: linear-gradient(180deg, #FFD700 0%, #F0C030 100%); }
.podium-2nd .podium-bar { background: linear-gradient(180deg, #C0C0C0 0%, #A8A8A8 100%); }
.podium-3rd .podium-bar { background: linear-gradient(180deg, #CD7F32 0%, #B87333 100%); }
.podium-pos {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    color: var(--white);
    background: var(--black);
    width: 100%;
    text-align: center;
    padding: 8px 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

@media (max-width: 768px) {
    .podium-container { gap: 8px; padding: 10px 0 0; }
    .podium-item { width: 100px; }
    .podium-avatar { width: 40px; height: 40px; font-size: 16px; }
    .podium-1st .podium-avatar { width: 48px; height: 48px; font-size: 18px; }
    .podium-medal { font-size: 24px; }
    .podium-name { font-size: 13px; }
    .podium-points { font-size: 15px; }
    .podium-1st .podium-points { font-size: 18px; }
    .podium-1st .podium-bar { height: 120px !important; }
    .podium-2nd .podium-bar { height: 90px !important; }
    .podium-3rd .podium-bar { height: 70px !important; }
}

/* ---- Admin ---- */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.admin-section { margin-bottom: 30px; }
.admin-section h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--black);
}
.match-admin-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
}
.match-admin-row .teams {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    min-width: 200px;
}
/* ---- Admin Users Table ---- */
.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-users-table th {
    background: var(--gray-100);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    padding: 10px 16px;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}
.admin-users-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}
.admin-users-table tbody tr:hover {
    background: var(--gray-100);
}
.admin-users-table tbody tr:last-child td {
    border-bottom: none;
}
.admin-users-table .sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.admin-users-table .sort-link:hover {
    color: var(--black);
}
@media (max-width: 768px) {
    .admin-users-table { font-size: 13px; min-width: 700px; }
    .admin-users-table th,
    .admin-users-table td { padding: 8px 10px; }
}

/* ---- Score Stepper ---- */
.score-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stepper-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.stepper-btn {
    width: 44px;
    height: 30px;
    touch-action: manipulation;
    border: 2px solid var(--gray-200);
    background: var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    user-select: none;
    padding: 0;
}
.stepper-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.stepper-btn:active {
    transform: scale(0.95);
}
.stepper-input {
    width: 44px;
    height: 44px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--black);
    -moz-appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.stepper-input:focus {
    outline: none;
    border-color: var(--primary);
}
.stepper-sep {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20px;
    color: var(--gray-300);
    padding: 0 2px;
}
.btn-disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Tabs ---- */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
    overflow-x: auto;
}
.tab {
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-body);
}
.tab:hover { color: var(--black); text-decoration: none; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
a.tab { text-decoration: none; }

/* ---- Stats Row ---- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 32px;
    color: var(--primary);
}
.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    font-weight: 700;
    margin-top: 4px;
}

/* ---- Grid Helpers ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-red { color: var(--primary); }

/* ---- Bonus Predictions ---- */
.bonus-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.bonus-group-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--gray-200);
}
.bonus-group-header {
    background: var(--black);
    color: var(--white);
    padding: 10px 14px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.bonus-group-teams {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bonus-team-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid var(--gray-200);
    transition: all 0.2s;
    user-select: none;
}
.bonus-team-option:hover { border-color: var(--gray-300); }
.bonus-team-option.selected {
    border-color: var(--primary);
    background: #FEF0EE;
}
.bonus-team-option.locked { cursor: not-allowed; opacity: 0.7; }
.bonus-team-option input[type="checkbox"] { display: none; }
.bonus-team-flag { font-size: 22px; line-height: 1; }
.bonus-team-name { font-weight: 600; font-size: 14px; }
.bonus-group-status {
    padding: 6px 14px 10px;
    text-align: center;
    min-height: 28px;
}
.bonus-saved {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green);
    padding: 2px 8px;
    border-radius: 3px;
    background: #E8F8EF;
}
.bonus-save-status {
    margin-top: 10px;
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bonus-saving {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
}

/* Bonus summary in mis-predicciones */
.bonus-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
}
.bonus-summary-row:last-child { border-bottom: none; }
.bonus-summary-label {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    min-width: 100px;
}
.bonus-summary-value {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}
/* ---- Bonus Detail Cards (mis-predicciones) ---- */
.bonus-detail-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
}
.bonus-detail-card:last-child { margin-bottom: 0; }
.bonus-detail-card.bonus-hit { border-color: var(--green); }
.bonus-detail-card.bonus-miss { border-color: var(--gray-200); }
.bonus-detail-header {
    background: var(--gray-100);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--gray-200);
}
.bonus-hit .bonus-detail-header { background: #f0fdf4; }
.bonus-detail-icon { font-size: 18px; }
.bonus-detail-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}
.bonus-detail-max {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
}
.bonus-detail-body { padding: 14px 16px; }
.bonus-detail-pick {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    color: var(--black);
    margin-bottom: 8px;
}
.bonus-groups-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.bonus-group-mini-card {
    background: var(--gray-100);
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 12px;
}
.bonus-group-mini-header {
    font-weight: 900;
    font-family: var(--font-display);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.bonus-group-mini-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 12px;
    padding: 2px 0;
}
.bonus-group-mini-team.team-hit { color: var(--green); }
.bonus-group-mini-team.team-miss { color: var(--gray-300); text-decoration: line-through; }
.bonus-group-mini-check {
    color: var(--green);
    font-weight: 900;
    font-size: 12px;
}
.bonus-group-mini-cross {
    color: var(--primary);
    font-weight: 900;
    font-size: 14px;
}
.bonus-group-mini-pending {
    color: var(--gray-300);
    font-size: 12px;
}

.bonus-pending-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--gray-200);
    color: var(--gray-500);
}

/* ---- Confirm Modal ---- */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
    align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--white); border-radius: 12px;
    padding: 28px 24px 20px; max-width: 400px; width: 90%;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.modal-body {
    font-size: 15px; line-height: 1.5; color: var(--black);
    margin-bottom: 24px;
}
.modal-actions {
    display: flex; justify-content: flex-end; gap: 10px;
}

/* ---- PWA Install Prompt ---- */
@keyframes pwaSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.pwa-prompt-inner {
    max-width: 500px;
    margin: 0 auto;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: relative;
}
.pwa-prompt-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}
.pwa-prompt-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}
.pwa-prompt-text span {
    color: var(--gray-300);
}
.pwa-prompt-close {
    background: none;
    border: none;
    color: var(--gray-300);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.pwa-prompt-close:hover {
    color: var(--white);
}
.pwa-prompt-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.pwa-prompt-arrow {
    color: var(--primary);
    font-weight: 700;
}
.pwa-prompt-arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--black);
    position: absolute;
    bottom: -10px;
    right: 30px;
}
.pwa-prompt {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px;
    animation: pwaSlideUp 0.4s ease;
}

/* ---- Footer ---- */
.footer {
    background: var(--black);
    color: var(--gray-500);
    text-align: center;
    padding: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    /* Show 3 main links as compact tabs */
    .navbar-links {
        display: flex;
        flex: 1;
        gap: 0;
        justify-content: center;
    }
    .navbar-links .nav-link {
        padding: 6px 8px;
        font-size: 12px;
        letter-spacing: 0;
    }
    /* Hide desktop-only, show mobile-only */
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    /* Notification bell stays visible */
    .navbar-right {
        display: flex;
        flex-shrink: 0;
    }
    /* Hamburger visible and prominent */
    .navbar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        order: 10;
        background: var(--primary);
        border-radius: var(--radius);
        width: 36px;
        height: 36px;
        padding: 0;
    }
    .navbar-toggle span {
        width: 18px;
        height: 2px;
        background: var(--white);
        margin: 2px 0;
    }
    .navbar-inner { gap: 6px; }
    /* Mobile slide-down menu */
    .mobile-menu {
        display: none;
        background: var(--black);
        padding: 8px 0;
        box-shadow: var(--shadow-lg);
    }
    .mobile-menu.open { display: block; }
    /* Group selector: hide on mobile (accessible from Mis Grupos) */
    .group-selector { display: none; }
    .notif-dropdown { right: -40px; width: 290px; }
    .navbar-brand { flex-shrink: 0; }
    .navbar-brand .logo-icon { font-size: 20px; }
    .navbar-brand .logo-text { display: none; }
    .container { padding: 0 12px; }
    .main-content { padding: 20px 0 40px; }

    /* Base font bump for mobile */
    body { font-size: 16px; }

    /* Match rows */
    .match-row {
        grid-template-columns: 1fr auto 1fr;
        gap: 4px;
        text-align: center;
        padding: 14px 8px;
        align-items: center;
    }
    .match-team {
        font-size: 13px;
        gap: 3px;
    }
    .match-team.home {
        justify-content: flex-end;
        text-align: right;
        flex-direction: row;
    }
    .match-team.away {
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
    }
    .team-flag { font-size: 26px; line-height: 1; }
    .match-team { align-items: center; }
    .match-center {
        min-width: 120px;
    }
    .match-date { font-size: 12px; }

    /* Stepper mobile */
    .stepper-btn { width: 50px; height: 34px; font-size: 18px; }
    .stepper-input { width: 50px; height: 50px; font-size: 24px; }
    .stepper-sep { font-size: 24px; }
    .prediction-stepper { gap: 10px; }

    /* Score display */
    .match-score { font-size: 26px; }

    /* Cards */
    .card-header { padding: 12px 14px; font-size: 14px; }
    .card-body { padding: 14px; }

    /* Tabs scroll */
    .tabs { gap: 0; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
    .tab { padding: 10px 14px; font-size: 14px; }

    /* Stats / dashboard cards */
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 16px 12px; }
    .stat-value { font-size: 30px; }
    .stat-label { font-size: 12px; }

    /* Page header */
    .page-header h1 { font-size: 28px; }
    .page-header p { font-size: 15px; }
    .page-header { margin-bottom: 20px; }

    /* Grid */
    .grid-2 { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }

    /* Login */
    .login-box { margin: 20px; padding: 35px 25px; }

    /* Ranking */
    .ranking-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ranking-table th, .ranking-table td { padding: 12px 10px; font-size: 14px; white-space: nowrap; }
    .ranking-points { font-size: 20px; }
    .ranking-pos { font-size: 18px; }
    .ranking-name { font-size: 14px; }

    /* Alerts */
    .alert { font-size: 15px; }

    /* Forms */
    .form-control { font-size: 16px; }

    /* Buttons */
    .btn { font-size: 14px; }

    /* Members list */
    .member-row { font-size: 14px; }

    /* Groups */
    .group-card-name { font-size: 16px; }
    .group-card-meta { font-size: 13px; }

    /* Bonus */
    .bonus-groups-grid { grid-template-columns: 1fr 1fr; }

    /* Admin stepper */
    .match-admin-row { gap: 8px; }
    .match-admin-row .teams { min-width: auto; font-size: 13px; }
    .score-stepper { gap: 6px; }

    /* Awards */
    .awards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .award-card { padding: 20px 14px; }
    .award-emoji { font-size: 36px; margin-bottom: 8px; }
    .award-name { font-size: 13px; }
    .award-winner { font-size: 13px; }
    .award-stat { font-size: 12px; }
    .office-stat-item { padding: 12px; gap: 12px; }
    .office-stat-icon { font-size: 26px; width: 40px; }
    .office-stat-value { font-size: 13px; }

    /* Bonus */
    .bonus-groups-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
    .bonus-team-option { padding: 8px 10px; gap: 8px; }
    .bonus-team-name { font-size: 13px; }
    .bonus-summary-row { gap: 8px; }
    .bonus-summary-label { min-width: auto; }
    .bonus-summary-value { font-size: 13px; }
}

/* ---- Stats Page: Awards ---- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.award-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}
.award-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.award-emoji {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
}
.award-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 16px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.award-winner {
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
    margin-bottom: 4px;
}
.award-stat {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 600;
}
.award-desc {
    font-size: 11px;
    color: var(--gray-300);
    font-weight: 500;
    margin-top: 6px;
    font-style: italic;
    line-height: 1.3;
}
.stats-empty {
    text-align: center;
    color: var(--gray-500);
    font-weight: 500;
    padding: 30px 20px;
    font-size: 14px;
}

/* ---- Stats Page: Office Stats ---- */
.office-stats-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.office-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: var(--radius);
    transition: background 0.15s;
}
.office-stat-item:hover {
    background: var(--gray-200);
}
.office-stat-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}
.office-stat-content {
    flex: 1;
    min-width: 0;
}
.office-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 2px;
}
.office-stat-value {
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
}
.office-stat-detail {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 2px;
}

/* ---- Help Page ---- */
.help-content { padding: 20px; }
.help-content p { margin-bottom: 12px; line-height: 1.6; color: var(--black); font-size: 14px; }
.help-content p:last-child { margin-bottom: 0; }

.help-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.help-points-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
}
.help-points-item.help-points-exact { border-color: var(--green); background: rgba(46, 204, 113, 0.06); }
.help-points-item.help-points-ok { border-color: var(--yellow); background: rgba(241, 196, 15, 0.06); }
.help-points-item.help-points-miss { border-color: var(--gray-300); background: var(--gray-100); }
.help-points-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--black);
}
.help-points-exact .help-points-value { color: #27ae60; }
.help-points-ok .help-points-value { color: #d4a017; }
.help-points-miss .help-points-value { color: var(--gray-300); }
.help-points-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    margin: 4px 0;
}
.help-points-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 12px 0;
}
.help-table th, .help-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}
.help-table th {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    background: var(--gray-100);
}
.help-table td.center, .help-table th.center { text-align: center; }
.help-table tbody tr:last-child td { border-bottom: none; }

.help-note {
    font-size: 13px !important;
    color: var(--gray-500) !important;
    font-style: italic;
    padding: 10px 14px;
    background: var(--gray-100);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.help-faq-item { padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.help-faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.help-faq-item:first-child { padding-top: 0; }
.help-faq-item h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
}
.help-faq-item p {
    font-size: 13px !important;
    color: var(--gray-500) !important;
    margin-bottom: 0 !important;
}

/* Small phones */
@media (max-width: 380px) {
    .match-team { font-size: 12px; }
    .stepper-btn { width: 44px; height: 30px; }
    .stepper-input { width: 44px; height: 44px; font-size: 20px; }
    .navbar-brand .logo-text { font-size: 16px; }
}

/* ---- Group Selector ---- */
.group-selector {
    position: relative;
    margin-left: 8px;
}
.group-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.group-selector-btn:hover {
    background: rgba(255,255,255,0.18);
}
.group-selector-btn .arrow {
    font-size: 8px;
    opacity: 0.6;
}
.group-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 200;
    overflow: hidden;
}
.group-dropdown.open {
    display: block;
}
.group-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--black);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
}
.group-dropdown a:hover {
    background: var(--gray-100);
}
.group-dropdown a.active {
    color: var(--primary);
    font-weight: 700;
}
.group-dropdown a.group-dropdown-action {
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Groups Page ---- */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.group-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.group-card-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
}
.group-card-meta {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}
.group-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.invite-code-display {
    background: var(--gray-100);
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 16px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--primary);
    cursor: pointer;
    user-select: all;
}
.invite-code-display:hover {
    border-color: var(--primary);
}
.onboarding-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    margin-bottom: 24px;
}
.onboarding-box h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.onboarding-box p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 20px;
}
.members-list {
    border-top: 1px solid var(--gray-200);
}
.member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}
.member-role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
}
.match-locked-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

/* ---- Logo Icon ---- */
.logo-icon {
    font-size: 22px;
    line-height: 1;
}

/* ---- Admin toast ---- */
.admin-toast {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease, toastOut 0.4s ease 3.5s forwards;
    max-width: 400px;
}
.toast-success {
    background: var(--primary);
    color: #fff;
}
.toast-error {
    background: var(--red, #e74c3c);
    color: #fff;
}
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}

/* ---- Collapsible match groups ---- */
.match-group.collapsed .match-list {
    display: none;
}
.collapse-arrow {
    font-size: 11px;
    margin-left: 6px;
    transition: transform 0.2s;
    display: inline-block;
}
.match-group.collapsed .collapse-arrow {
    transform: rotate(-90deg);
}
.collapsible-header:hover {
    opacity: 0.8;
}

/* ---- Team Logo (for club tournaments) ---- */
.team-logo-sm {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    object-fit: contain;
    display: inline-block;
}

/* ---- Public nav bar ---- */
.pub-nav { background: var(--black); padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.pub-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.pub-nav .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.pub-nav .logo span { font-size: 28px; }
.pub-nav-links { display: flex; align-items: center; gap: 8px; }
.pub-nav-links a { padding: 8px 18px; border-radius: var(--radius); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s; }
.pub-nav-links .btn-login { color: var(--gray-300); }
.pub-nav-links .btn-login:hover { color: #fff; }
.pub-nav-links .btn-register { background: var(--primary); color: #fff; }
.pub-nav-links .btn-register:hover { background: var(--primary-dark); color: #fff; }

/* ---- Public pages nav menu ---- */
.pub-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pub-nav-menu a {
    color: var(--gray-300);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: color 0.2s;
}
.pub-nav-menu a:hover {
    color: #fff;
}
.pub-nav-menu a.active {
    color: #fff;
}
@media (max-width: 768px) {
    .pub-nav-inner {
        padding: 0 12px;
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 6px;
        gap: 0;
    }
    .pub-nav .logo { font-size: 18px; gap: 6px; }
    .pub-nav .logo span { font-size: 22px; }
    .pub-nav-links a { padding: 6px 10px; font-size: 11px; }
    .pub-nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0;
        margin-top: 4px;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 6px;
    }
    .pub-nav-menu a {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ---- Public pages: steps ---- */
.pub-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    text-align: center;
    margin: 40px 0;
}
.pub-step-num {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    margin: 0 auto 16px;
}
.pub-step h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.pub-step p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.6;
}

/* ---- Public CTA banner ---- */
.pub-cta-banner {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 48px 20px;
    margin: 40px 0 0;
    border-radius: 12px;
}
.pub-cta-banner h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.pub-cta-banner p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}
.pub-cta-banner a {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 14px 36px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.pub-cta-banner a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: var(--primary-dark);
}

/* ---- Public upcoming matches box ---- */
.pub-upcoming-box {
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(46,204,113,0.12);
}
.pub-upcoming-header {
    background: var(--primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
}
.pub-upcoming-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
}
.pub-upcoming-border {
    border-bottom: 1px solid var(--gray-100);
}
.pub-upcoming-info {
    flex: 1;
    min-width: 0;
}
.pub-upcoming-match {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 16px;
    color: var(--black);
}
.pub-upcoming-date {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
    margin-top: 2px;
}
@media (max-width: 768px) {
    .pub-upcoming-item {
        flex-wrap: wrap;
        padding: 14px;
        gap: 10px;
    }
    .pub-upcoming-match { font-size: 14px; }
    .pub-upcoming-item .upcoming-alert-timer { justify-content: center; width: 100%; }
}

/* ---- Public tournament tabs ---- */
.pub-tabs-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.pub-tabs-wrapper::before,
.pub-tabs-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.pub-tabs-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}
.pub-tabs-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}
.pub-tabs-wrapper.fade-left::before { opacity: 1; }
.pub-tabs-wrapper.fade-right::after { opacity: 1; }
.pub-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pub-tabs::-webkit-scrollbar { display: none; }
.pub-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    height: 40px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--gray-100);
    color: var(--gray-500);
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.pub-tab:hover {
    background: var(--gray-200);
    color: var(--black);
}
.pub-tab.active {
    background: var(--primary);
    color: #fff;
}
.pub-tab.active:hover {
    color: #fff;
}

/* ---- Public fixture/results read-only ---- */
.pub-match-center {
    text-align: center;
}
.pub-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pub-match-score .score-num {
    background: var(--black);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 900;
    font-size: 16px;
}
.pub-match-score .separator {
    font-weight: 700;
    color: var(--gray-300);
}

/* ---- Public page section ---- */
.pub-section {
    margin-bottom: 32px;
}
.pub-section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--black);
}

/* ---- Public points grid (for que-es and como-jugar) ---- */
.pub-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.pub-points-item {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.pub-points-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 32px;
    display: block;
    margin-bottom: 4px;
}
.pub-points-label {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.pub-points-desc {
    font-size: 13px;
    color: var(--gray-500);
    display: block;
}
.pub-points-exact .pub-points-value { color: var(--primary); }
.pub-points-ok .pub-points-value { color: #f39c12; }
.pub-points-miss .pub-points-value { color: var(--red, #e74c3c); }
