/* ===== DESIGN TOKENS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #8B2FC9;
    --primary-dark: #6B21A8;
    --primary-light: #C084FC;
    --primary-muted: #F3E8FF;
    --secondary: #EC4899;
    --accent: #2563EB;
    --accent-light: #60A5FA;
    --dark: #0F172A;
    --dark-600: #1E293B;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Category colors */
    --cat-fem-menor: #EC4899;
    --cat-fem-mayor: #D946EF;
    --cat-fem-superior: #A855F7;
    --cat-var-menor: #EAB308;
    --cat-var-mayor: #3B82F6;
    --cat-var-superior: #EF4444;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== NAVBAR - APP-STYLE HEADER ===== */
.navbar {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
}

.nav-brand a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-brand a::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('/assets/voleibol.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav-brand .nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 1;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu a {
    color: var(--gray-300);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: rgba(139, 47, 201, 0.4);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* ===== ALERT BANNERS ===== */
.alert {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    margin: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

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

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

/* ===== HERO BANNER CAROUSEL ===== */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--dark);
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 280px;
}

.hero-banner .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
}

.hero-banner .banner-overlay h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-banner .banner-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.hero-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-placeholder::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -100px;
    right: -80px;
}

.hero-placeholder::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -80px;
    left: -60px;
}

.hero-placeholder-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    padding: 20px;
}

.hero-placeholder-content .hero-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    50% {
        transform: translateY(-8px);
    }
}

.hero-placeholder-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-placeholder-content p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* ===== SPONSOR CAROUSEL ===== */
.sponsor-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    background: var(--white);
}

.sponsor-carousel-inner {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.sponsor-banner {
    width: 100%;
    flex: 0 0 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    min-height: 80px;
}

.sponsor-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 100px;
}

.carousel-controls {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.sponsor-placeholder {
    background: linear-gradient(90deg, var(--primary-muted) 0%, var(--gray-100) 50%, var(--primary-muted) 100%);
    padding: 12px 16px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== DAY TABS ===== */
.day-tabs {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 52px;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.day-tabs::-webkit-scrollbar {
    display: none;
}

.day-tab {
    flex: 0 0 auto;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.day-tab.active {
    color: var(--dark);
    border-bottom-color: var(--dark);
    background: var(--gray-50);
}

.day-tab:hover:not(.active) {
    color: var(--gray-700);
    background: var(--gray-50);
}

.day-tab small {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 2px;
}

/* ===== SEARCH BAR ===== */
.search-section {
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    background: var(--white);
}

.btn-search {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== DATE HEADER ===== */
.date-header {
    text-align: center;
    padding: 28px 16px 8px;
    background: var(--white);
}

.date-header h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-header h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ===== MATCH CARDS - INSPIRED BY REFERENCE ===== */
.matches-feed {
    background: var(--white);
    padding: 0 0 16px;
}

.match-card {
    background: var(--white);
    margin: 0 12px 2px;
    padding: 16px 16px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.match-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    background: var(--gray-500);
}

.category-badge.cat-pending {
    background: var(--warning);
    color: var(--dark);
}

.category-badge.cat-active {
    background: var(--success);
}

.category-badge.cat-completed {
    background: var(--gray-500);
}

.venue-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.match-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.match-team {
    flex: 1;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.3;
}

.match-team.team-home {
    text-align: left;
    padding-right: 12px;
}

.match-team.team-away {
    text-align: right;
    padding-left: 12px;
}

.match-time {
    background: var(--dark);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.match-score .score {
    background: var(--dark);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 900;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    min-width: 36px;
    text-align: center;
}

.match-score .score-divider {
    color: var(--gray-400);
    font-weight: 700;
}

.match-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100);
}

.match-number {
    font-size: 0.72rem;
    color: var(--gray-400);
    font-weight: 600;
}

.match-group {
    font-size: 0.72rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    flex: 1;
}

/* Status badges for match cards */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.status-pending::before {
    background: var(--warning);
}

.status-indicator.status-active::before {
    background: var(--success);
    animation: pulse 1.5s infinite;
}

.status-indicator.status-completed::before {
    background: var(--gray-400);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Category color left-border variants */
.match-card[data-status="pending"] {
    border-left: 4px solid var(--warning);
}

.match-card[data-status="active"] {
    border-left: 4px solid var(--success);
}

.match-card[data-status="completed"] {
    border-left: 4px solid var(--gray-300);
}

/* ===== CATEGORY FILTER MODAL ===== */
.filter-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.filter-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.filter-modal {
    background: var(--white);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 24px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.filter-modal h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-modal .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
    padding: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 4px;
    border-left: 4px solid transparent;
}

.filter-option:hover {
    background: var(--gray-50);
}

.filter-option.active {
    background: var(--dark);
    color: var(--white);
}

.filter-option .filter-color {
    width: 4px;
    height: 100%;
    min-height: 20px;
    border-radius: 2px;
    margin-right: 16px;
}

.filter-option span {
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-option span strong {
    font-weight: 800;
}

/* ===== STANDINGS TABLE (Public) ===== */
.standings-section {
    padding: 24px 16px;
    background: var(--white);
    margin-top: 2px;
}

.standings-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.standings-section h2::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/assets/pelota-de-voleibol.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===== MODERN TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th {
    background: var(--dark);
    color: var(--white);
    padding: 12px 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.72rem;
    text-align: left;
    position: sticky;
    top: 0;
}

th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
    color: var(--gray-700);
}

tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background: var(--gray-50);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.status-pending,
.status-badge[data-status="pending"] {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.status-badge.status-pending::before,
.status-badge[data-status="pending"]::before {
    background: var(--warning);
}

.status-badge.status-active,
.status-badge[data-status="active"] {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.status-badge.status-active::before,
.status-badge[data-status="active"]::before {
    background: var(--success);
    animation: pulse 1.5s infinite;
}

.status-badge.status-completed,
.status-badge[data-status="completed"] {
    background: rgba(107, 114, 128, 0.12);
    color: var(--gray-500);
}

.status-badge.status-completed::before,
.status-badge[data-status="completed"]::before {
    background: var(--gray-500);
}

/* ===== LOGIN FORM ===== */
.login-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    animation: scaleIn 0.4s ease;
}

.login-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 28px;
    color: var(--dark);
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 47, 201, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--dark);
    color: var(--white);
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

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

.btn-secondary {
    background: var(--gray-100);
    color: var(--dark);
    padding: 10px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 8px 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition);
}

.btn-danger:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 8px 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition);
}

.btn-success:hover {
    background: var(--success);
    color: var(--white);
}

/* ===== ADMIN DASHBOARD ===== */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px 16px;
}

.admin-section {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.admin-section:hover {
    box-shadow: var(--shadow-md);
}

.admin-section h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== BANNER MANAGEMENT SECTION ===== */
.banner-management {
    grid-column: 1 / -1;
}

.banner-upload-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 24px;
}

.banner-upload-form .form-group {
    margin-bottom: 0;
}

.banner-upload-form .btn-primary {
    grid-column: 1 / -1;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.banner-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

.banner-card:hover {
    box-shadow: var(--shadow-md);
}

.banner-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.banner-card-info {
    padding: 10px 12px;
    background: var(--white);
}

.banner-card-info .banner-type {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 4px;
}

.banner-card-info .banner-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.banner-card-actions {
    display: flex;
    gap: 6px;
}

.banner-inactive {
    opacity: 0.5;
}

/* ===== SCOREBOARD ===== */
.scoreboard-container {
    background: var(--white);
    padding: 24px 16px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    margin: 20px 16px;
    position: relative;
    overflow: hidden;
}

.scoreboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.scoreboard-container h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 8px;
}

.match-info {
    text-align: center;
    margin-bottom: 24px;
}

.teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 24px 0;
}

.team {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    text-align: center;
    flex: 1;
    line-height: 1.2;
}

.vs {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--white);
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

.details {
    text-align: center;
    margin-top: 12px;
}

.details p {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.sets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.set-card {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.set-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.set-card h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.points {
    display: flex;
    justify-content: space-around;
    margin: 16px 0;
}

.team-points {
    text-align: center;
}

.team-points .team-name {
    display: block;
    font-weight: 700;
    font-size: 0.72rem;
    margin-bottom: 8px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-points input {
    width: 80px;
    padding: 10px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: var(--transition);
    color: var(--dark);
}

.team-points input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 47, 201, 0.1);
    outline: none;
}

.set-completed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
}

.set-completed input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-update-set {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-update-set:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.match-status {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-top: 16px;
}

.match-status h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 8px;
}

/* ===== PAGE HEADERS ===== */
.matches-page h1,
.teams-page h1,
.team-dashboard h1,
.referee-dashboard h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
    padding: 20px 16px 0;
}

/* Empty state */
.no-matches,
.no-teams {
    text-align: center;
    padding: 60px 24px;
    color: var(--gray-400);
}

.no-matches p,
.no-teams p {
    font-size: 1rem;
    font-weight: 500;
}

/* ===== TEAM & REFEREE DASHBOARD ===== */
.team-dashboard,
.referee-dashboard {
    padding-bottom: 40px;
}

.team-info {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-xl);
    margin: 0 16px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.team-info h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.team-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.team-info p strong {
    color: var(--dark);
}

.team-players,
.team-matches,
.matches-list {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-xl);
    margin: 0 16px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow-x: auto;
}

.team-players h2,
.team-matches h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark);
}

/* ===== STATS PREVIEW ON HOME ===== */
.stats-preview {
    background: var(--white);
    padding: 20px 16px;
    margin-top: 2px;
}

.stats-preview h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-preview h2::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/assets/pelota-de-voleibol.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===== HERO SECTION (Desktop fallback) ===== */
.hero {
    text-align: center;
    padding: 0;
    position: relative;
}

.hero h1 {
    display: none;
    /* Hidden on mobile app, shown via hero banner */
}

.features {
    display: none;
    /* Only show on desktop */
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
    .navbar .container {
        padding: 12px 24px;
    }

    .nav-brand a {
        font-size: 1.4rem;
    }

    .nav-menu a {
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    .hero h1 {
        display: block;
        font-family: 'Outfit', sans-serif;
        font-size: 2.5rem;
        font-weight: 900;
        color: var(--dark);
        padding: 40px 24px 0;
        background: none;
        -webkit-text-fill-color: var(--dark);
    }

    .features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 24px;
        margin: 0;
    }

    .feature-card {
        background: var(--white);
        padding: 28px 24px;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--gray-200);
        transition: var(--transition);
        text-align: left;
    }

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

    .feature-card h3 {
        font-family: 'Outfit', sans-serif;
        color: var(--primary);
        font-size: 1.2rem;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .feature-card p {
        color: var(--gray-500);
        font-size: 0.9rem;
    }

    .container {
        padding: 0 24px;
    }

    .match-card {
        margin: 0 24px 8px;
        padding: 18px 24px 14px;
    }

    .date-header {
        padding: 32px 24px 12px;
    }

    .date-header h2 {
        font-size: 1.3rem;
    }

    .date-header h3 {
        font-size: 1.1rem;
    }

    .match-team {
        font-size: 1.05rem;
    }

    .scoreboard-container {
        max-width: 900px;
        margin: 24px auto;
        padding: 40px;
    }

    .team {
        font-size: 2rem;
    }

    .teams {
        gap: 48px;
    }

    .login-container {
        margin: 80px auto;
    }

    .day-tabs {
        top: 56px;
    }

    .hero-placeholder {
        height: 300px;
    }

    .hero-placeholder-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
    }

    .nav-menu {
        width: 100%;
        padding-top: 8px;
        justify-content: center;
    }

    .nav-menu a {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .admin-dashboard {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }

    .admin-section {
        padding: 18px;
    }

    .banner-upload-form {
        grid-template-columns: 1fr;
    }

    .banners-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .teams {
        flex-direction: column;
        gap: 16px;
    }

    .team {
        font-size: 1.3rem;
    }

    .login-container {
        margin: 30px 12px;
        padding: 28px 20px;
    }

    .scoreboard-container {
        margin: 12px 8px;
        padding: 16px 12px;
    }

    .sets-container {
        grid-template-columns: 1fr;
    }

    /* Table responsive: card-like on mobile for matches list */
    .matches-list table,
    .team-players table,
    .team-matches table,
    .referee-dashboard table {
        font-size: 0.78rem;
    }

    .matches-list th,
    .team-players th,
    .team-matches th,
    .referee-dashboard th,
    .matches-list td,
    .team-players td,
    .team-matches td,
    .referee-dashboard td {
        padding: 8px 10px;
    }

    .matches-list .btn-primary,
    .referee-dashboard .btn-primary {
        padding: 8px 12px;
        font-size: 0.72rem;
        width: auto;
    }
}

@media (max-width: 480px) {
    .match-card {
        margin: 0 8px 2px;
        padding: 14px 12px 10px;
    }

    .match-team {
        font-size: 0.85rem;
    }

    .match-time {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    .category-badge {
        font-size: 0.62rem;
        padding: 2px 8px;
    }

    .venue-label {
        font-size: 0.68rem;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* ===== FOOTER ===== */
.app-footer {
    flex-shrink: 0;
    background: var(--dark);
    color: var(--gray-400);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.8rem;
    font-weight: 500;
}

.app-footer strong {
    color: var(--white);
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

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

/* ===== PRINT ===== */
@media print {

    .navbar,
    .nav-menu,
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-success {
        display: none;
    }

    body {
        background: white;
    }

    .match-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}