/* Assets CSS for Sistema de Quinielas - Modern Sportsbook Design System */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Paleta Oficial de Colores Integrada */
    --color-primary-teal: #16796F;
    --color-medium-teal: #599D9C;
    --color-soft-sage: #B7BDA9;
    --color-forest-green: #148B4B;

    /* Asignación de Variables del Sistema */
    --bg-main: #0c433e;
    --bg-card: #16796F;
    --bg-match: #125b54;
    --bg-match-hover: #1b8a7e;
    --accent-gold: #B7BDA9;
    --accent-gold-glow: rgba(183, 189, 169, 0.3);
    --accent-green: #148B4B;
    --accent-green-dark: #0d6335;
    --accent-green-glow: rgba(20, 139, 75, 0.3);
    --text-light: #ffffff;
    --text-muted: #e2e8f0;
    --border-subtle: rgba(183, 189, 169, 0.25);
    --border-gold: rgba(183, 189, 169, 0.45);
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-title: 'Bebas Neue', cursive;
    --font-body: 'Inter', sans-serif;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 50px;
}

/* Header & Navbar */
.navbar-custom {
    background: var(--navbar-bg, #0f172a);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 24px;
    width: 100%;
}

.nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
}

.social-fb {
    background: #1877f2;
}

.social-fb:hover {
    background: #0d65d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-wa {
    background: #25d366;
}

.social-wa:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.brand-icon {
    font-size: 1.4rem;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: rgba(12, 67, 62, 0.95);
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.nav-btn {
    padding: 8px 14px;
    border-radius: 8px;
    color: #ffffff !important;
    background: rgba(22, 121, 111, 0.85);
    border: 1px solid rgba(183, 189, 169, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-btn:hover {
    color: #ffffff !important;
    background: #148B4B !important;
    border-color: #B7BDA9 !important;
    box-shadow: 0 4px 12px rgba(20, 139, 75, 0.4);
}

.nav-btn.active {
    color: #ffffff !important;
    background: #148B4B !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 0 12px rgba(20, 139, 75, 0.6);
    font-weight: 800;
}

/* Admin Navigation Tabs */
.admin-nav-tabs {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: rgba(12, 67, 62, 0.95);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.admin-nav-tabs .admin-tab-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Sportsbook Header Banner */
.sports-banner {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px 0;
    border-radius: 0;
    background: var(--banner-bg, #0f172a);
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 3px solid var(--border-gold);
    padding: 12px 24px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.sports-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 50%);
    pointer-events: none;
}

.banner-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.live-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.jornada-chip {
    background: rgba(248, 232, 0, 0.555);
    color: #1a1c18;
    border: 1px solid var(--border-gold);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 2px;
}

.banner-subtitle {
    color: #facc15 !important;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

/* Soccer Board & Matches list */
.soccer-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 10px;
}

.soccer-board {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 20px rgba(2, 6, 23, 0.08);
    overflow: hidden;
    color: #0f172a;
}

.soccer-legend {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    padding: 8px 12px;
    background: linear-gradient(135deg, #0f172a, #022c22);
    color: #facc15;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
    text-align: center;
}

.soccer-legend span:first-child { text-align: left; }
.soccer-legend span:last-child { text-align: right; }

.match-list {
    display: flex;
    flex-direction: column;
    padding: 8px;
    background-color: var(--match-list-bg, #17796c);
    /*background-image: 
        radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.08) 0%, rgba(2, 44, 34, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 200 200' opacity='0.07'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='%23ffffff' stroke-width='4'/%3E%3Ccircle cx='100' cy='100' r='25' fill='none' stroke='%23ffffff' stroke-width='3'/%3E%3Cline x1='20' y1='100' x2='180' y2='100' stroke='%23ffffff' stroke-width='3'/%3E%3Cpath d='M40 60 A60 60 0 0 1 40 140' fill='none' stroke='%23ffffff' stroke-width='3'/%3E%3Cpath d='M160 60 A60 60 0 0 1 160 140' fill='none' stroke='%23ffffff' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");*/
    background-repeat: repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.match-list::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    max-width: 85%;
    max-height: 85%;
    background-image: var(--logo-watermark-url, url('../img/logo.png'));
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.2));
}

.match-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease;
}

.match-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.team-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    min-height: 36px;
}

.team-option--away {
    justify-content: flex-end;
    flex-direction: row;
}

.team-option--away .team-name {
    text-align: right;
}

.draw-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    margin: 0 auto;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.team-badge {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #14532d;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: all 0.2s ease;
    overflow: hidden;
    z-index: 1;
}

.team-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2314532d' opacity='0.25' d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm-12.5-356.7l-71.1 51.7 27.2 83.6h87.8l27.2-83.6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: -1;
}

.team-crest {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
}

/* Selection radio & checkbox inputs */
.match-card input[type="radio"],
.match-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Checked States - Solo ilumina la insignia (span .team-badge) */
.match-card input[value="L"]:checked + .team-option .team-badge,
.match-card input[value="V"]:checked + .team-option .team-badge {
    background: #facc15 !important;
    color: #052e16 !important;
    border-color: #eab308 !important;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}

.match-card input[value="E"]:checked + .draw-option .team-badge {
    background: #facc15 !important;
    color: #052e16 !important;
    border-color: #eab308 !important;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}

/* Bottom Actions & Cost Display */
.cost-display-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(135deg, #020617, #0f172a);
    color: #facc15;
    font-weight: 700;
    font-size: 0.78rem;
    border-top: 1px solid var(--border-gold);
}

.cost-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cost-amount {
    color: var(--accent-gold);
    font-size: 0.95rem;
    font-weight: 800;
}

.deadline-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
}

.user-inputs-bar {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.alias-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alias-input-group label {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-input {
    width: 100%;
    padding: 8px 12px;
    height: 38px;
    background: #0f172a;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-input:focus {
    border-color: var(--accent-gold);
}

.actions-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, auto) 1fr;
    gap: 8px;
    align-items: center;
}

.btn-action {
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-action:hover {
    transform: translateY(-1.5px);
}

.btn-random {
    background: #947d18;
    color: #ffffff;
}

.btn-random:hover {
    background: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-clear {
    background: #dc2626;
    color: #ffffff;
}

.btn-clear:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.btn-add {
    background: #067ad9;
    color: #ffffff;
}

.btn-add:hover {
    background: #b45309;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-submit-wa {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn-submit-wa:hover {
    background: linear-gradient(135deg, #15803d, #16a34a);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.5);
}

/* Added Tickets Container & Cards */
.added-tickets-wrapper {
    margin-top: 10px;
    background: #0f172a;
    border: 1.5px solid var(--border-gold);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.added-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--accent-gold);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.added-tickets-total {
    font-size: 1.1rem;
    font-weight: 800;
}

.added-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.added-ticket-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #182234;
    border: 1px solid var(--border-subtle);
    padding: 8px 10px;
    border-radius: 8px;
    gap: 10px;
}

.added-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.added-ticket-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #fff;
}

.added-ticket-alias {
    color: var(--accent-gold);
    font-weight: 700;
}

.added-ticket-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.added-pick-chip {
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.added-ticket-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.added-ticket-price {
    font-weight: 800;
    color: var(--accent-gold);
    font-size: 0.88rem;
}

.btn-delete-added {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.4);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-delete-added:hover {
    background: #dc2626;
    color: #fff;
}

@media (max-width: 540px) {
    .inputs-row {
        grid-template-columns: 1fr;
    }
    .actions-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .btn-submit-wa {
        grid-column: 1 / -1;
    }
}

/* Standings Table & Views */
.view-section {
    display: none;
}

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

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.soccer-container.full-width-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.soccer-board.full-width-board {
    padding: 4px 0 !important;
    background: #ffffff !important;
    border-radius: 0 !important;
    border: none !important;
    width: 100% !important;
}

/* Standings Table Base (12 o menos partidos: Ajuste 100% en pantalla sin scroll) */
.official-standings-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #ffffff;
    font-size: clamp(0.68rem, 2vw, 0.85rem);
    text-align: center;
    border: 1px solid #cbd5e1;
}

.official-standings-table th,
.official-standings-table td {
    padding: 3px 1px;
    border: 1px solid #cbd5e1;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.official-head-num {
    background: #0f2a23 !important;
    color: #facc15 !important;
    font-family: var(--font-heading);
    font-size: clamp(0.6rem, 1.8vw, 0.78rem) !important;
    font-weight: 800;
    text-align: center;
    width: clamp(18px, 4vw, 24px) !important;
    padding: 3px 1px !important;
}

.official-head-label {
    background: #0f2a23 !important;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: clamp(0.6rem, 1.8vw, 0.78rem) !important;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

.official-pts-col {
    width: clamp(20px, 4.5vw, 28px) !important;
    padding: 2px 1px !important;
    text-align: center;
}

.official-goals-col {
    min-width: 80px !important;
    width: 80px !important;
    padding: 3px 4px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.official-match-col {
    background: #ffffff;
    text-align: center;
}

.official-team-crest {
    width: clamp(22px, 4.2vw, 34px);
    height: clamp(22px, 4.2vw, 34px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.official-score-text {
    font-family: var(--font-heading);
    font-size: clamp(0.6rem, 1.7vw, 0.82rem);
    font-weight: 800;
    color: #0f172a;
}

.official-head-sub {
    background: #0f2a23 !important;
    color: #ffffff !important;
    font-size: clamp(0.6rem, 1.8vw, 0.78rem) !important;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 1px !important;
}

.official-res-chip {
    background: #1e293b;
    color: #facc15;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 3px;
    font-size: clamp(0.65rem, 1.8vw, 0.82rem);
}

.official-pts-chip {
    padding: 3px 7px;
    border-radius: 6px;
    font-size: clamp(0.7rem, 2vw, 0.88rem);
    display: inline-block;
    line-height: 1;
    text-align: center;
    min-width: 22px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.official-row-num {
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
    text-align: center;
    font-size: clamp(0.65rem, 1.8vw, 0.8rem);
    padding: 3px 1px !important;
}

.official-row-alias {
    text-align: left !important;
    font-weight: 800;
    color: #0f172a;
    background: #ffffff !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    padding-left: 8px !important;
    padding-right: 12px !important;
    font-size: clamp(0.72rem, 2.2vw, 0.85rem) !important;
    min-width: 130px !important;
    width: max-content !important;
    max-width: none !important;
}

.official-row-alias small {
    display: block;
    color: #64748b;
    font-size: clamp(0.5rem, 1.3vw, 0.65rem);
    font-weight: 600;
}

/* Modo Scroll Horizontal Activo (11 o Más Partidos en la Jornada) */
.official-standings-table.table-scroll-mode {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.official-standings-table.table-scroll-mode th,
.official-standings-table.table-scroll-mode td {
    padding: 6px 4px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Columna 1: # (Folio) STICKY LEFT */
.official-standings-table.table-scroll-mode th:nth-child(1),
.official-standings-table.table-scroll-mode td:nth-child(1) {
    position: sticky !important;
    left: 0 !important;
    z-index: 25 !important;
    min-width: 32px !important;
    width: 32px !important;
    max-width: 32px !important;
    background: #0f2a23 !important;
    color: #facc15 !important;
    font-size: 0.78rem !important;
    text-align: center !important;
}

.official-standings-table.table-scroll-mode td:nth-child(1) {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-right: 1px solid #cbd5e1 !important;
}

/* Columna 2: LOCAL / VISITA / ALIAS / RESULTADOS / Participantes STICKY LEFT */
.official-standings-table.table-scroll-mode th:nth-child(2),
.official-standings-table.table-scroll-mode td:nth-child(2) {
    position: sticky !important;
    left: 32px !important;
    z-index: 20 !important;
    min-width: 130px !important;
    max-width: none !important;
    width: max-content !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    background: #0f2a23 !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    text-align: left !important;
    box-shadow: 4px 0 10px rgba(0,0,0,0.22) !important;
}

.official-standings-table.table-scroll-mode td:nth-child(2) {
    background: #ffffff !important;
    color: #0f172a !important;
    border-right: 2.5px solid #cbd5e1 !important;
}

.official-standings-table.table-scroll-mode .official-pts-col {
    min-width: 46px !important;
    width: 46px !important;
}

.official-standings-table.table-scroll-mode .official-match-col {
    min-width: 38px !important;
}

.official-standings-table.table-scroll-mode .pick-cell {
    min-width: 38px !important;
}

.pick-cell {
    font-weight: 900;
    font-size: clamp(0.72rem, 2.2vw, 0.9rem);
    text-align: center;
}

.pick-cell.hit {
    background: #dcfce7 !important;
    color: #15803d !important;
}

.pick-cell.miss {
    background: #ffe4e6 !important;
    color: #be123c !important;
}

.pick-cell.pending {
    background: #f8fafc !important;
    color: #334155 !important;
}

/* Simulator Cycle Header Button (Mobile Optimized) */
.sim-cycle-btn {
    width: clamp(22px, 4.5vw, 30px);
    height: clamp(22px, 4.5vw, 30px);
    border-radius: 5px;
    border: 1px solid #475569;
    background: #1e293b;
    color: #facc15;
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 2vw, 0.92rem);
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
}

.sim-cycle-btn:hover {
    transform: scale(1.08);
}

.sim-cycle-btn.state-L,
.sim-cycle-btn.state-V {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #15803d !important;
    box-shadow: 0 0 6px rgba(22, 163, 74, 0.4);
}

.sim-cycle-btn.state-E {
    background: #facc15 !important;
    color: #052e16 !important;
    border-color: #ca8a04 !important;
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.5);
}

.sim-cycle-btn.state-none {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #475569 !important;
}

/* Floating Reset Button for Simulator */
.floating-reset-btn {
    position: fixed;
    bottom: 24px;
    right: 18px;
    z-index: 999;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 8px 14px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.floating-reset-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.floating-reset-btn:active {
    transform: scale(0.96);
}

/* Participant Authorization Badges & Table Buttons */
.btn-auth-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-auth-status.state-authorized {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
}

.btn-auth-status.state-authorized:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.5);
}

.btn-auth-status.state-pending {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
}

.btn-auth-status.state-pending:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.btn-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.btn-action-icon.wa-btn {
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    margin-right: 4px;
}

.btn-action-icon.wa-btn:hover {
    background: #1da851;
    transform: scale(1.1);
}

.btn-action-icon.view-picks-btn {
    background: rgba(250, 204, 21, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(250, 204, 21, 0.3);
    margin-right: 4px;
}

.btn-action-icon.view-picks-btn:hover {
    background: var(--accent-gold);
    color: #0f172a;
    transform: scale(1.1);
}

.btn-action-icon.del-btn {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-action-icon.del-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.1);
}

/* Mobile Responsive Participant Cards */
.admin-ticket-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.admin-ticket-card:hover {
    border-color: var(--border-gold);
}

.ticket-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-code-badge {
    background: rgba(250, 204, 21, 0.12);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-gold);
    letter-spacing: 0.5px;
}

.ticket-alias-text {
    font-weight: 800;
    color: #ffffff;
    font-size: 1rem;
}

.ticket-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
}

.ticket-phone-info {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.ticket-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

@media (max-width: 480px) {
    .ticket-card-body {
        flex-direction: column;
        align-items: flex-start;
    }
    .ticket-card-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.rank-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
}

.rank-1 { background: #facc15; color: #000; }
.rank-2 { background: #e2e8f0; color: #000; }
.rank-3 { background: #b45309; color: #fff; }

.pick-pill {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.pick-L { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.pick-E { background: rgba(250, 204, 21, 0.2); color: #fde047; }
.pick-V { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

/* Modal & Ticket Receipt */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #0f172a;
    border: 1.5px solid var(--border-gold);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    position: relative;
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #dc2626;
    border-color: #ef4444;
    color: #ffffff;
}

.ticket-receipt {
    background: #0f172a;
    border: 1.5px solid var(--accent-gold);
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
    position: relative;
}

.ticket-header {
    border-bottom: 2px dashed var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.ticket-folio {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--accent-gold);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    background: rgba(250, 204, 21, 0.15);
}

/* Responsiveness */
@media (max-width: 768px) {
    .navbar-custom {
        padding: 10px 16px;
    }
    .nav-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .nav-left {
        order: 1;
        gap: 10px;
    }
    .hamburger-btn {
        display: flex;
        order: 2;
    }
    .nav-tabs {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        background: #0f172a;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid var(--border-gold);
        margin-top: 6px;
        gap: 6px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        overflow: hidden;
    }
    .nav-tabs.open {
        display: flex !important;
    }
    .nav-tabs .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 700;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .soccer-container {
        padding: 0 4px;
    }
    .soccer-board {
        border-radius: 10px;
    }
    .soccer-legend {
        grid-template-columns: 1fr 34px 1fr;
        padding: 5px 6px;
        font-size: 0.68rem;
    }
    .match-list {
        padding: 4px;
        gap: 4px;
    }
    .match-card {
        grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
        gap: 3px;
        padding: 4px 6px;
    }
    .team-option {
        min-height: 32px;
        padding: 2px 4px;
        gap: 4px;
    }
    .team-name {
        font-size: clamp(0.6rem, 2.6vw, 0.76rem) !important;
    }
    .team-crest {
        width: 22px !important;
        height: 22px !important;
    }
    .team-badge {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.62rem !important;
        border-radius: 5px !important;
    }
    .draw-option {
        width: 32px !important;
        height: 32px !important;
    }
    .cost-display-bar {
        padding: 5px 8px;
        font-size: 0.65rem;
    }
    .cost-amount {
        font-size: 0.78rem;
    }
    .deadline-info {
        font-size: 0.65rem;
    }
    .banner-title {
        font-size: 1.2rem;
    }
    .banner-subtitle {
        font-size: 0.8rem;
    }
}

/* Footer Styles */
.app-footer {
    margin-top: 40px;
    background: #064647;
    border-top: 1px solid var(--border-subtle);
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-container {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-brand {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

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

.footer-links {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.footer-links a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* Hamburger Button & Admin Mobile Navigation */
.hamburger-btn {
    display: none;
    background: #1e293b;
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
    font-size: 1.2rem;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    .hamburger-btn {
        display: inline-flex;
    }
    .nav-tabs {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: #0f172a !important;
        flex-direction: column !important;
        padding: 10px !important;
        border-radius: 12px !important;
        border: 1.5px solid var(--border-gold) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.8) !important;
        z-index: 9999 !important;
        gap: 8px !important;
    }
    .nav-tabs.open {
        display: flex !important;
    }
    .nav-tabs .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* Botón Premium Campeón (Ver Ganadores) */
.btn-winner-championship {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #091024 !important;
    background: linear-gradient(135deg, #fef08a 0%, #facc15 35%, #eab308 70%, #ca8a04 100%);
    border: 1.5px solid #ffffff;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.6), 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: winnerBtnGlow 2s infinite alternate;
}

.btn-winner-championship:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.9), 0 6px 20px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 40%, #facc15 80%);
}

.btn-winner-championship:active {
    transform: translateY(0) scale(0.98);
}

@keyframes winnerBtnGlow {
    0% {
        box-shadow: 0 0 12px rgba(250, 204, 21, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
        border-color: #fef08a;
    }
    100% {
        box-shadow: 0 0 24px rgba(250, 204, 21, 0.95), 0 6px 18px rgba(0, 0, 0, 0.6);
        border-color: #ffffff;
    }
}

/* Forzar Scroll Horizontal en Móvil para Evitar Amontonamientos (<= 768px) */
@media (max-width: 768px) {
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .official-standings-table {
        width: max-content !important;
        min-width: 100% !important;
        table-layout: auto !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    .official-standings-table th,
    .official-standings-table td {
        padding: 6px 4px !important;
        border-right: 1px solid #cbd5e1 !important;
        border-bottom: 1px solid #cbd5e1 !important;
    }

    .official-standings-table th:nth-child(1),
    .official-standings-table td:nth-child(1) {
        position: sticky !important;
        left: 0 !important;
        z-index: 25 !important;
        min-width: 32px !important;
        width: 32px !important;
        max-width: 32px !important;
        background: #0f2a23 !important;
        color: #facc15 !important;
        font-size: 0.78rem !important;
        text-align: center !important;
    }

    .official-standings-table td:nth-child(1) {
        background: #f8fafc !important;
        color: #0f172a !important;
        border-right: 1px solid #cbd5e1 !important;
    }

    .official-standings-table th:nth-child(2),
    .official-standings-table td:nth-child(2) {
        position: sticky !important;
        left: 32px !important;
        z-index: 20 !important;
        min-width: 130px !important;
        max-width: none !important;
        width: max-content !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        background: #0f2a23 !important;
        color: #ffffff !important;
        font-size: 0.82rem !important;
        text-align: left !important;
        box-shadow: 4px 0 10px rgba(0,0,0,0.22) !important;
    }

    .official-standings-table td:nth-child(2) {
        background: #ffffff !important;
        color: #0f172a !important;
        border-right: 2.5px solid #cbd5e1 !important;
    }

    .official-standings-table .official-pts-col {
        min-width: 44px !important;
        width: 44px !important;
    }

    .official-standings-table .official-match-col,
    .official-standings-table .pick-cell {
        min-width: 36px !important;
        width: 36px !important;
        text-align: center !important;
    }
}
