:root {
    /* Tema Público: Cinza & Verde (Moderno) */
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #252525;
    
    /* Gradiente Verde para Ações Principais */
    --primary-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --primary-color: #10B981;
    --secondary-color: #059669;
    
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    --card-hover-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
    
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    
    --radius: 16px;
}

* { box-sizing: border-box; outline: none; }

body {
    background-color: var(--bg-body);
    background-color: #2b2b2b;
    color: var(--text-main);
    font-family: 'Roboto', 'Inter', sans-serif;
    margin: 0;
    padding-top: 0; /* Espaço ajustado via JS no header.php */
    padding-bottom: 80px; /* Espaço para nav mobile fixa */
    overflow-x: hidden; /* Previne rolagem horizontal */
}

/* Animação Suave de Transição entre Páginas/Sessões */
main {
    animation: fadeEffect 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- Layout & Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin: 30px 0;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--page-title-color);
}

/* --- Cards (O "Corpo do Bagui") --- */
.card, .form-container, .profile-card, .game-card, .compact-game-card, .stat-card, .promo-card, .trans-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover, .game-card:hover, .compact-game-card:hover, .promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(16, 185, 129, 0.3);
}

/* --- Botões --- */
.btn, .btn-primary, .btn-action {
    background: var(--primary-gradient);
    color: #000; /* Texto preto para contraste no verde */
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2), 0 5px 15px rgba(16, 185, 129, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
    width: 100%; /* Mobile first */
}

.btn:hover, .btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2), 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
}
.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--text-main);
    background: rgba(16, 185, 129, 0.1);
}

/* --- Inputs --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* --- Badges & Status --- */
.badge { padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.status-live { background: #EF4444; color: white; animation: pulse 2s infinite; }
.status-pending { background: rgba(245, 166, 35, 0.15); color: var(--warning); border: 1px solid rgba(245, 166, 35, 0.2); }
.status-won { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-lost { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

/* --- Navegação Interna (Abas/Filtros) --- */
.nav-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 25px;
    overflow: visible;
    border: none;
}
.nav-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 16px;
    color: var(--text-muted);
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
}
.nav-link.active {
    background: var(--primary-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    transform: translateY(-3px);
}

/* --- Odds Box (Estilo Unificado) --- */
.odd-box, .compact-odd-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}
.odd-box:hover, .compact-odd-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
}
.odd-box:hover *, .compact-odd-btn:hover * { color: #000 !important; }

.odd-label, .compact-odd-name { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.odd-value, .compact-odd-val { font-size: 1rem; font-weight: 900; color: var(--text-main); }

/* --- Animações --- */
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

/* --- Responsivo --- */
@media (min-width: 768px) {
    .btn { width: auto; }
    .container { padding: 40px; }
}

/* --- Navegação de Ligas (Estilo Pílula) --- */
.league-nav-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.league-nav-container::-webkit-scrollbar { display: none; }

.league-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-decoration: none;
}

.league-pill.active, .league-pill:hover {
    background: var(--primary-gradient);
    color: #000; /* Contraste */
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.league-pill img { width: 20px; height: 20px; object-fit: contain; }
.league-pill i { font-size: 1rem; }

/* --- Compact Game Card (Mobile Optimized & Aligned) --- */
.compact-game-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px; /* Mais espaço interno */
}

.compact-card-header {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.compact-card-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compact-teams-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espaço entre os times */
    justify-content: center;
    min-width: 0;
}

.compact-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.compact-team-info {
    display: flex;
    align-items: center;
    gap: 10px; /* Espaço entre logo e nome */
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.compact-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.compact-team-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    margin-top: 1px; /* Ajuste ótico */
}

.compact-team-score {
    font-weight: 900;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
    margin-left: 8px;
}

.compact-odds-col {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: 12px; /* Move as odds para a direita */
}

.compact-more-btn {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    min-width: 40px;
    border-left: 1px solid var(--border-color);
}
.compact-more-btn:hover { color: var(--primary-color); }

/* --- Componentes de UI (Slider, Navs) --- */
.league-header { background: #2a2a2a; border-radius: 8px; padding: 12px 15px; margin-top: 30px; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); color: var(--text-main); }
.league-info { display: flex; align-items: center; gap: 12px; }
.league-header img { width: 24px; height: 24px; }
.league-header strong { font-size: 1rem; display: block; font-weight: 800; }

.date-nav { display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 50px; padding: 8px 20px; gap: 20px; margin-bottom: 20px; }
.date-nav a { color: var(--text-main); text-decoration: none; font-size: 1.1rem; transition: 0.2s; display: flex; align-items: center; }
.date-nav a:hover { color: var(--primary-color); }
.date-nav span { font-weight: 900; font-size: 1rem; text-transform: uppercase; min-width: 80px; text-align: center; }

.hero-slider { position: relative; width: 100%; height: 300px; overflow: hidden; border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--card-shadow); }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; background-size: 100% 100%; background-position: center; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.slider-nav { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.slider-dot.active { background: var(--primary-color); transform: scale(1.2); }
@media (max-width: 768px) { .hero-slider { height: 160px; margin-bottom: 20px; margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); border-radius: 0; } }

.filters-wrapper { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; gap: 15px; flex-wrap: wrap; }
 .status-filter-container select { background-color: var(--bg-card); color: var(--text-main); padding: 8px 30px 8px 15px; border-radius: 4px; border: 1px solid var(--border-color); font-weight: 700; cursor: pointer; font-size: 0.9rem; }

/* Ajuste Mobile para Filtros */
@media (max-width: 768px) {
    .filters-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .date-nav { margin-bottom: 0; width: auto; flex: 1; padding: 5px 10px; gap: 10px; font-size: 0.8rem; }
    .date-nav span { min-width: auto; font-size: 0.8rem; }
    .status-filter-container { width: auto; flex: 1; }
    .status-filter-container select { width: 100%; text-align: center; padding: 5px 10px; font-size: 0.8rem; height: 32px; }
}

/* --- Game Details Modal (Themed) --- */
.game-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    justify-content: center;
    align-items: flex-end; /* Mobile bottom sheet */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.game-details-content {
    background: var(--bg-body);
    width: 100%;
    max-width: 600px;
    height: 85vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease-out;
}

.game-details-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
}

.game-details-header h3 { margin: 0; font-size: 1.1rem; color: var(--text-main); font-weight: 800; }
.game-details-body { flex: 1; overflow-y: auto; padding: 20px; }

.close-modal-btn {
    background: rgba(255,255,255,0.1); border: none; color: var(--text-muted);
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.close-modal-btn:hover { background: var(--danger); color: white; }

@media (min-width: 768px) {
    .game-details-modal { align-items: center; }
    .game-details-content { height: auto; max-height: 85vh; border-radius: 20px; }
    .game-details-header { border-radius: 20px 20px 0 0; }
}

/* Market Groups inside Modal */
.market-group { background: var(--bg-card); border-radius: 12px; padding: 15px; margin-bottom: 15px; border: 1px solid var(--border-color); }
.market-title { font-size: 0.9rem; font-weight: 700; color: var(--primary-color); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.market-title::before { content: ''; display: block; width: 4px; height: 14px; background: var(--primary-gradient); border-radius: 2px; }
.market-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.market-options .odd-box { background: var(--bg-input); border: 1px solid var(--border-color); padding: 12px 8px; }

/* --- Live Page Specifics (Centralized) --- */
.live-header-title {
    display: flex; align-items: center; gap: 10px; margin: 30px 0 20px 0;
    font-size: 1.5rem; font-weight: 900; color: var(--text-main);
}
.live-indicator {
    width: 12px; height: 12px; background-color: #EF4444; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.league-games { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; margin-bottom: 20px; transition: all 0.3s ease; }

.odd-box-placeholder {
    background-color: var(--bg-input); border-radius: 6px; min-width: 80px;
    flex: 1; max-width: 120px; height: 65px;
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(90deg, var(--bg-input) 25%, #2c3a4f 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Animações de oscilação de odds */
@keyframes blinkGreen {
    0% { background-color: rgba(16, 185, 129, 0.4); color: #000; }
    100% { background-color: transparent; }
}
@keyframes blinkRed {
    0% { background-color: rgba(239, 68, 68, 0.4); color: #000; }
    100% { background-color: transparent; }
}
.blink-up { animation: blinkGreen 1.5s ease-out; }
.blink-down { animation: blinkRed 1.5s ease-out; }

/* Estilo para Odds Bloqueadas (Simulação) */
.odds-container { position: relative; }
.simulated-lock::after {
    content: "\f023"; /* fa-lock */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; border-radius: 6px; z-index: 10;
}

/* --- Boosted Odds Card (Aposta do Dia) --- */
.boosted-container {
    display: flex;
    flex-wrap: nowrap; /* Garante que fiquem em linha */
    overflow-x: auto;
    gap: 12px;
    padding: 5px 0 15px 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.boosted-container::-webkit-scrollbar { display: none; }

.boosted-card {
    background-color: #313131; /* Fundo Cinza da Referência */
    border: none;
    border-radius: 8px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-family: 'Roboto', sans-serif;
}

.boosted-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 10px;
}
.boosted-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 2px solid var(--secondary-color); /* Linha embaixo */
    padding-bottom: 2px;
    line-height: 1.2;
}

.boosted-fire {
    display: flex; align-items: center; gap: 5px;
    color: #fff; font-size: 0.9rem; font-weight: bold;
}
.boosted-fire img { width: 16px; height: 16px; }

/* Info Section */
.boosted-info {
    padding: 0 15px;
    font-size: 0.75rem;
    color: #a0a0a0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.boosted-match {
    padding: 0 15px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Selections */
.boosted-selections-container {
    padding: 0 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.boosted-selection-item {
    display: flex; flex-wrap: wrap; align-items: center;
    font-size: 0.85rem;
    line-height: 1.3;
}
.boosted-sel-name { font-weight: 600; color: #fff; margin-right: 5px; }
.boosted-sel-market { font-size: 0.8rem; color: #a0a0a0; }

/* Footer / Button */
.boosted-footer {
    padding: 15px;
    margin-top: auto;
}
.boosted-btn {
    width: 100%;
    background: #3e3e3e; /* Cinza um pouco mais claro que o fundo */
    border: 1px solid #555;
    border-radius: 8px;
    padding: 8px 15px;
    height: 45px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.2s;
}
.boosted-btn:hover { background: #4a4a4a; }

.boosted-old-val { 
    color: #888; 
    text-decoration: line-through; 
    font-weight: 600; 
    font-size: 0.9rem; 
}
.boosted-arrow-icon {
    width: 20px; height: 20px;
    background: #555;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.boosted-arrow-icon svg { width: 10px; height: 10px; }
.boosted-new-val { color: var(--secondary-color); font-weight: 900; font-size: 1.2rem; }

/* REMOÇÃO FORÇADA DAS ABAS DE MERCADO (Solicitado) */
.market-tabs-container { display: none !important; }