:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --primary: #10b981; /* Verde Esmeralda */
    --primary-hover: #059669;
    --accent: #f59e0b; /* Dourado */
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius: 16px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }

/* REGRA DE OURO - PREVINE VAZAMENTO DE LARGURA */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== MODO MOBILE ORIGINAL (ATÉ 767px) ===== */
@media (max-width: 767px) {
    body {
        background: var(--bg-color);
        color: var(--text);
        min-height: 100vh;
        padding-bottom: 80px; /* Espaço para nav fixa */
        background-image: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 20%),
                          radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 20%);
        display: block;
    }

    #app-container-wrapper {
        width: 100%;
        min-height: 100vh;
        position: relative;
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        transform: none;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--glass-border);
        z-index: 100;
    }

    .auth-container {
        width: 100%;
        border-radius: 0;
        height: 100vh;
    }

    .app-header {
        border-radius: 0;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }
}

/* ===== MODO PC (768px PARA CIMA) - SITE NORMAL ===== */
@media (min-width: 768px) {
    body {
        background: var(--bg-color);
        color: var(--text);
        min-height: 100vh;
        background-image: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 20%),
                          radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 20%);
        padding-bottom: 80px; /* MESMO valor da altura da nav bar */
        display: block;
        position: relative;
    }

    #app-container-wrapper {
        width: 100%;
        min-height: 100vh;
        position: relative;
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        transform: none;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--glass-border);
        z-index: 100;
        height: 80px; /* Altura fixa para a nav bar */
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .auth-container {
        width: 100%;
        border-radius: 0;
        height: 100vh;
    }

    .app-header {
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
        z-index: 200;
    }

    /* Ajustes específicos para PC */
    #main-content {
        max-width: 1200px;
        padding: 40px 20px;
        margin: 0 auto;
        width: 100%;
        min-height: calc(100vh - 80px); /* Garante que o conteúdo ocupe pelo menos a altura total menos a nav */
    }

    .pools-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .glass-card {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Garante que o último elemento não fique atrás da nav */
    .section:last-child,
    .pools-grid:last-child,
    .games-selection-list:last-child,
    .match-card:last-child,
    .stat-box:last-child,
    .stat-box-sm:last-child,
    .saas-dashboard-grid:last-child {
        margin-bottom: 0;
    }

    /* Ajuste para telas de login */
    .auth-container {
        height: calc(100vh - 80px);
        min-height: 600px;
    }

    /* CENTRALIZAÇÃO DA SEÇÃO HERO NO PC */
    .hero-content {
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin-top: 20px;
    }

    /* CENTRALIZAÇÃO ABSOLUTA PARA COMPUTADORES */
    
    /* Centraliza todas as grandes seções (Hero, Jogos, Catálogo) */
    section, .hero, .landing-section, .landing-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    /* Limita e centraliza as caixas de texto para não ficarem gigantes no monitor */
    .hero-content, .section-titles {
        max-width: 800px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Força os textos (Títulos, parágrafos) a ficarem no meio */
    h1, h2, h3, p {
        text-align: center !important;
    }

    /* Centraliza os botões */
    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        width: 100%;
        margin-top: 25px;
    }

    /* Se a grade de ligas/países estiver desalinhada no PC, isso resolve: */
    #lp-leagues-catalog, .leagues-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Centraliza o carrossel de jogos se ele for exibido no PC */
    .lp-games-scroll {
        justify-content: center;
        padding: 20px;
        margin: 0;
        left: auto;
        transform: none;
    }
}

/* --- UTILS (COMUM A AMBOS) --- */
.hidden { display: none !important; }
.btn-primary {
    background: var(--primary); color: white; border: none; padding: 12px 20px;
    border-radius: 12px; font-weight: 600; cursor: pointer; width: 100%;
    transition: transform 0.2s, background 0.2s; font-size: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-primary:active { transform: scale(0.98); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; cursor: pointer; border:none; color: white; background: var(--card-bg); border: 1px solid var(--glass-border); }
.btn-text { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; }
.btn-icon { background: rgba(255,255,255,0.1); border:none; color:white; width:40px; height:40px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:1.1rem; }

/* --- AUTH SCREEN --- */
.auth-container {
    height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px;
    background: linear-gradient(to top right, #0f172a, #1e293b);
}
.logo-area { text-align: center; margin-bottom: 30px; animation: fadeIn 1s ease; }
.logo-area i { font-size: 3rem; color: var(--primary); margin-bottom: 10px; filter: drop-shadow(0 0 10px var(--primary)); }
.logo-area h1 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; }
.logo-area p { color: var(--text-muted); }

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    width: 100%; max-width: 400px;
    animation: slideUp 0.5s ease;
}

.tabs { display: flex; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.tab-btn { flex: 1; background: none; border: none; color: var(--text-muted); padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.3s; position: relative; }
.tab-btn.active { background: var(--bg-color); color: var(--text); shadow: 0 2px 5px rgba(0,0,0,0.2); }

.input-group { margin-bottom: 15px; position: relative; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-group input, .input-group select {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    padding: 14px 14px 14px 45px; border-radius: 12px; color: white; font-size: 1rem; outline: none;
    transition: border 0.3s;
}
.input-group input:focus { border-color: var(--primary); }
.input-group label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 5px; margin-left: 5px; }

.btn-google {
    width: 100%; background: white; color: #333; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px; border-radius: 12px; border: none; cursor: pointer; margin-bottom: 20px;
    transition: 0.2s;
}
.btn-google:active { transform: scale(0.98); background: #f1f1f1; }
.divider { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin: 15px 0; position: relative; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--glass-border); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* --- APP SCREEN --- */
.app-header {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 20px;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.branding-area {
    display: flex; align-items: center; gap: 10px; margin-right: 15px; 
    padding-right: 15px; border-right: 1px solid rgba(255,255,255,0.1);
}
.branding-area img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--primary); }
.branding-area span { font-weight: 700; font-size: 1rem; color: var(--primary); }

.user-details { display: flex; align-items: center; gap: 10px; }

.user-info { display: flex; align-items: center; gap: 10px; }
.avatar-circle { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), #34d399); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #000; font-size: 1.2rem; }
.welcome-text { font-size: 0.8rem; color: var(--text-muted); display: block; }
.role-badge { font-size: 0.65rem; background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- CENTRALIZAÇÃO GERAL --- */
#main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#main-content > section {
    width: 100%; 
}

.pools-grid:empty, .games-selection-list:empty {
    display: none;
}

.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.header-back { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }

/* --- HEADER ACTIONS --- */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-action-header {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-action-header:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-action-header i {
    font-size: 1rem;
    color: var(--primary);
}

.score-config-input {
    background: rgba(0,0,0,0.3) !important;
    text-align: center;
    font-weight: bold;
    color: var(--accent) !important;
}

/* --- POOL CARDS --- */
.pools-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 15px;
    width: 100%;
}

.pool-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 18px 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.pool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.12);
}

.pool-card h3 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pool-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* --- MATCH CARD --- */
.match-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    width: 100%;
    box-sizing: border-box;
}

.match-card-header {
    padding: 12px 16px 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.15);
}

.match-date-badge {
    background: rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.match-live-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--danger);
    animation: pulseRed 2s infinite;
    display: none;
}

.match-main-content {
    padding: 16px;
}

.match-info { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-bottom: 10px; }

.teams-vs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 36%;
    text-align: center;
    gap: 6px;
}

.team img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
    transition: transform 0.2s;
}

.team span {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.score-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-direction: column;
}

.score-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-input {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-input:focus {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.12);
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    outline: none;
}

.score-input:disabled {
    background: rgba(255,255,255,0.05);
    color: #555;
    border-color: transparent;
}

.match-card.selected {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
}

.match-details-toggle {
    width: 100%;
    background: rgba(0,0,0,0.15);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    padding: 9px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.match-details-toggle:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

/* Pasta de Campeonato */
.pool-card.folder-card {
    border-left: 4px solid var(--accent) !important;
    background: linear-gradient(145deg, rgba(245,158,11,0.07) 0%, rgba(15,23,42,0.95) 100%) !important;
}

.pool-card.folder-card .folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pool-card.folder-card .folder-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.pool-card.folder-card .folder-subtitle {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 2px;
}

.pool-card.folder-card .folder-pot {
    text-align: right;
    flex-shrink: 0;
}

.pool-card.folder-card .folder-pot small {
    font-size: 0.72rem;
    color: #aaa;
    display: block;
}

.pool-card.folder-card .folder-pot strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

.match-details-toggle i {
    transition: transform 0.3s ease;
}

.match-details-toggle.active i {
    transform: rotate(180deg);
}

.match-details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0,0,0,0.3);
}

.match-details-inner {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.detail-item strong {
    display: block;
    color: var(--accent);
    margin-bottom: 2px;
}

/* --- HOME TABS --- */
.home-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.home-tabs .tab-btn {
    flex: 1;
    border-radius: 40px;
    padding: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.home-tabs .tab-btn.active {
    background: var(--primary);
    color: #000;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- TABLE --- */
.ranking-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.ranking-table th { text-align: left; color: var(--text-muted); padding: 10px; font-size: 0.8rem; border-bottom: 1px solid var(--glass-border); }
.ranking-table td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.rank-1 { color: #ffd700; font-weight: bold; }
.rank-2 { color: #c0c0c0; font-weight: bold; }
.rank-3 { color: #cd7f32; font-weight: bold; }

/* --- BOTTOM NAV --- */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px); display: flex; justify-content: space-around; padding: 15px 10px;
    border-top: 1px solid var(--glass-border); z-index: 100;
}
.nav-item { background: none; border: none; color: var(--text-muted); font-size: 0.7rem; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; transition: 0.2s; }
.nav-item i { font-size: 1.4rem; margin-bottom: 2px; }
.nav-item.active { color: var(--primary); transform: translateY(-2px); }

/* --- MODAL --- */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.85);
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 200; 
    padding: 15px;
    backdrop-filter: blur(8px);
}

.modal-content { 
    position: relative; 
    width: 100%; 
    max-width: 540px; 
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #1e293b;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(16,185,129,0.3) transparent;
}

/* Garante rolagem no modal de config */
#modal-config .modal-content {
    max-height: 85vh;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.modal-content::-webkit-scrollbar {
    width: 4px;
}
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(16,185,129,0.3);
    border-radius: 4px;
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: #1e293b;
    z-index: 10;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.close-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* --- ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulseRed {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1000px); }
}
@keyframes slideInUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- SAAS --- */
.stat-box { 
    background: var(--card-bg); 
    border: 1px solid var(--glass-border); 
    border-radius: var(--radius); 
    padding: 20px; 
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, border-color 0.2s;
}
.stat-box:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}
.stat-box h2 { 
    color: var(--accent); 
    margin-top: 5px; 
    font-size: 2rem;
    font-weight: 700;
}
.stat-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-box-sm {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.stat-box-sm:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.stat-box-sm small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-box-sm div {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}
.stat-box-sm .trend-up {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 5px;
}
.stat-box-sm .trend-down {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
}

.btn-icon-sm { 
    background: linear-gradient(45deg, var(--accent), #f43f5e); 
    border:none; color:white; width:30px; height:30px; border-radius:50%; 
    cursor:pointer; display:flex; align-items:center; justify-content:center; 
    font-size:0.8rem; position: absolute; left: -40px; top: 50%; transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    transition: transform 0.2s;
    z-index: 10;
}
.btn-icon-sm:hover { transform: translateY(-50%) scale(1.1); }

.active-chart-btn {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
    font-weight: bold;
}

.avatar-circle-lg {
    width: 80px; 
    height: 80px; 
    font-size: 2rem;
    background: var(--glass-border);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin: 0 auto 15px auto;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.client-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.client-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.client-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #000;
}

.client-info {
    flex: 1;
}

.client-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.client-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.client-status {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.pct-group input {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
}

#dist-champ-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    align-items: end;
    min-width: 0;
}

@media (max-width: 480px) {
    #dist-champ-container {
        grid-template-columns: 1fr 1fr;
    }
}

.pct-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0 10px;
    height: 45px;
    overflow: hidden;
    min-width: 0;
}

.pct-group input {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    font-size: 1rem;
    text-align: right;
    padding-right: 4px;
    outline: none;
    -moz-appearance: textfield;
}

.pct-group input::-webkit-inner-spin-button,
.pct-group input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pct-group span {
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

#dist-champ-container small,
#dist-unique-container small {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.75rem;
    white-space: nowrap;
}

.helper-text {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
    width: 100%;
}

.modal-section {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    min-width: 0;
}

/* Padding do conteúdo interno do modal (abaixo do header fixo) */
#modal-create-pool .modal-content > form,
#modal-pool-manage .modal-content > *:not(.modal-header),
.modal-content .glass-card {
    padding: 0 20px 20px;
}

#modal-create-pool form {
    padding: 0 20px 20px;
}

.modal-section-title {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 0;
}

.pct-total-display {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: bold;
    transition: color 0.3s;
}
.pct-valid { color: #10b981; }
.pct-invalid { color: #ef4444; }

.badge-count {
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.badge-count.hidden { display: none; }

.rules-card {
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
}

.rule-item {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

.rule-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary);
}

.history-pending {
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.header-balance-box {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--primary);
    padding: 5px 12px;
    border-radius: 8px;
    text-align: right;
    transition: all 0.2s;
}

.header-balance-box:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.header-balance-box:hover small, 
.header-balance-box:hover span {
    color: #000 !important;
}

.header-balance-box small {
    display: block;
    font-size: 0.65rem;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1;
}

.header-balance-box span {
    font-weight: bold;
    color: white;
    font-size: 0.95rem;
}

.header-back {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.btn-back-custom {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-back-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.5);
}

.btn-back-custom i { font-size: 1rem; }

.saas-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.saas-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.saas-card h3 { font-size: 2rem; color: var(--text); margin: 5px 0; }
.saas-card small { color: var(--text-muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }
.saas-card i { position: absolute; top: -10px; right: -10px; font-size: 4rem; opacity: 0.05; color: white; }

.card-revenue { border-bottom: 4px solid #10b981; }
.card-admins { border-bottom: 4px solid #f59e0b; }
.card-players { border-bottom: 4px solid #3b82f6; }

.date-filter-container {
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.date-input {
    background: #222;
    border: 1px solid #444;
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.manual-game-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.btn-icon-action:hover { transform: scale(1.1); }

.btn-icon-action.save {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.btn-icon-action.delete {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- SALES TOAST --- */
.sales-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 12px;
    z-index: 9990;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slideInUp 0.5s ease-out;
    max-width: 250px;
}

/* ==========================================================================
   LANDING PAGE REDESIGN — PREMIUM 2025
   ========================================================================== */

/* LP Typography Override */
#landing-screen h1,
#landing-screen h2,
.lp-hero h1,
.lp-title {
    font-family: 'Syne', sans-serif !important;
    letter-spacing: -0.5px;
}

#landing-screen p,
#landing-screen nav,
.lp-card p,
.step-card p {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

/* NAV — Glassmorphism premium */
.lp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6%;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    background: rgba(10, 17, 35, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
    transition: background 0.3s;
}

.lp-logo {
    font-family: 'Syne', sans-serif !important;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

@media (max-width: 480px) {
    .lp-logo {
        font-size: 1rem;
        gap: 6px;
    }
    .lp-logo img {
        height: 28px !important;
    }
    .lp-nav {
        padding: 12px 4%;
    }
    .lp-nav-actions .btn-sm {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
}

.lp-logo span { color: var(--primary); }
.lp-nav-actions { display: flex; gap: 12px; align-items: center; }

/* NAV Buttons */
.lp-nav-actions .btn-text {
    color: rgba(255,255,255,0.75) !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.lp-nav-actions .btn-text:hover { color: #fff !important; }

.lp-nav-actions .btn-sm {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transition: all 0.2s;
}
.lp-nav-actions .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* HERO — Full redesign with layered effects */
.lp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 80px 5%;
    text-align: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16, 185, 129, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 85% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 10% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

/* Dot grid texture for hero */
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Subtle animated glow orb */
.lp-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.07) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heroOrb 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroOrb {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -53%) scale(1.1); opacity: 0.7; }
}

.lp-hero-content {
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

/* BADGE — premium pill */
.lp-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
}

/* Hero Heading */
.lp-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 22px;
    max-width: 820px;
    color: #fff;
    text-align: center !important;
}

.lp-hero p {
    color: rgba(200, 215, 235, 0.75);
    font-size: 1.1rem;
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.7;
    text-align: center !important;
}

/* CTA Group */
.lp-cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 55px;
}

/* Primary CTA — shimmer effect */
.btn-primary.lp-btn-big {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.2);
    animation: none !important;
    color: #fff;
}

.btn-primary.lp-btn-big::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3.5s infinite;
}

@keyframes shimmer {
    0% { left: -75%; }
    60%, 100% { left: 130%; }
}

.btn-primary.lp-btn-big:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.55);
    animation: none !important;
}

/* Secondary CTA */
.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.lp-btn-big {
    padding: 14px 30px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    text-align: center;
}

/* Mockup card */
.lp-mockup { perspective: 1000px; margin-top: 20px; }
.mockup-card { 
    transform: rotateX(10deg) rotateY(-10deg) rotateZ(2deg); 
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5); 
    border: 1px solid rgba(255,255,255,0.2);
    width: 300px; max-width: 90vw;
    animation: float 6s ease-in-out infinite;
}

@keyframes float { 0%, 100% { transform: rotateX(10deg) rotateY(-10deg) translateY(0); } 50% { transform: rotateX(10deg) rotateY(-10deg) translateY(-15px); } }

/* SECTIONS */
.lp-section { padding: 90px 6%; }

.lp-title {
    text-align: center !important;
    font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
    margin-bottom: 14px;
    color: #fff;
    font-family: 'Syne', sans-serif !important;
}

/* FEATURE CARDS — elevated glass */
.lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-card {
    background: rgba(22, 32, 54, 0.7);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 32px 28px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.lp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.lp-card:hover::before { opacity: 1; }

.lp-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(22, 32, 54, 0.9);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(16,185,129,0.1);
}

.lp-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 18px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(16,185,129,0.4));
}

.lp-card h3 {
    margin-bottom: 10px;
    font-family: 'Syne', sans-serif !important;
    font-size: 1.1rem;
    color: #fff;
}
.lp-card p { color: rgba(180, 200, 220, 0.7); font-size: 0.88rem; line-height: 1.6; }

/* PRICING CARDS */
.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.lp-price-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 34px 28px;
    border-radius: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.lp-price-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16,185,129,0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.lp-price-card.featured {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.06);
    transform: scale(1.04);
    z-index: 2;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
}

.lp-price-card.featured:hover { transform: scale(1.04) translateY(-5px); }

.lp-price-card .badge { 
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%); 
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: black;
    padding: 5px 16px;
    border-radius: 100px; 
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lp-price-card h3 {
    font-family: 'Syne', sans-serif !important;
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.lp-price-card .price { font-size: 2.8rem; font-weight: 800; margin-bottom: 24px; line-height: 1; }
.lp-price-card .price small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.lp-price-card ul { list-style: none; text-align: left; margin-bottom: 30px; flex: 1; }
.lp-price-card ul li { margin-bottom: 12px; color: #ccc; display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.lp-price-card ul li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

/* FOOTER */
.lp-footer {
    text-align: center;
    padding: 50px 5% 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(150,170,190,0.7);
    margin-top: 60px;
    font-size: 0.85rem;
}

/* TESTIMONIAL SLIDER INFINITO — premium */
.testimonial-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 25px 0;
    background: linear-gradient(180deg, rgba(10,17,35,0.6), rgba(10,17,35,0.4));
    position: relative;
}

.testimonial-wrapper::before,
.testimonial-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.testimonial-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-color), transparent);
}
.testimonial-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-color), transparent);
}

.testimonial-slider {
    display: inline-block;
    animation: slideInfinite 35s linear infinite;
}

.testimonial-slider:hover { animation-play-state: paused; }

/* Testimonial individual cards */
.testimonial-slider .glass-card {
    background: rgba(22, 32, 54, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px !important;
    max-width: none !important;
    margin: 0 !important;
}

@keyframes slideInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- NOVOS ESTILOS: CATÁLOGO DE LIGAS E TAG DE CUPOM --- */

/* Container de Ligas na Landing Page */
.leagues-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.lp-league-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lp-league-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.lp-league-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.lp-league-card span {
    font-size: 0.8rem;
    color: #eee;
    font-weight: 600;
    line-height: 1.2;
}

/* Tag de Cupom */
.coupon-tag {
    background: var(--accent);
    color: black;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.coupon-tag button {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
}

.coupon-tag button:hover {
    opacity: 1;
}

/* GRID DOS JOGOS DO DIA (CORREÇÃO PARA NÃO QUEBRAR NO PC) */
.daily-games-grid, #lp-daily-games-grid {
    display: grid;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* PC: 3 Colunas e impede o card de esticar */
@media (min-width: 768px) {
    .daily-games-grid, #lp-daily-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Cria grid flexível */
        justify-content: center;
        align-items: stretch;
    }
    
    .lp-game-card {
        width: 100%;
        max-width: 400px; /* Impede que o card fique gigante se tiver poucos jogos */
        margin: 0 auto;
    }
}

/* Grid interno dos jogos (gerado pelo JS) */
.lp-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

@media (max-width: 992px) {
    .lp-games-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 640px) {
    .lp-games-grid { 
        grid-template-columns: 1fr; 
        gap: 12px;
    }
}

/* CARD DO JOGO — espaçamento e logos sem corte */
.glass-card.lp-card {
    max-width: none !important;  /* sobrescreve regra PC que limita glass-card */
    margin: 0 !important;
}

/* Garante logos dos times visíveis no mobile */
.lp-game-team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .lp-game-team-logo {
        width: 28px;
        height: 28px;
    }
}

/* CARD DO JOGO NA LANDING PAGE — premium */
.lp-game-card {
    background: rgba(16, 25, 48, 0.75);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 18px 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
    
    /* Estado inicial da animação */
    opacity: 0;
    transform: translateY(30px);
    animation: cardEntrance 0.6s ease forwards;
}

.lp-game-card:hover {
    background: rgba(22, 34, 65, 0.95);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(16,185,129,0.1);
}

.lp-game-score {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Syne', sans-serif;
    color: white;
    background: rgba(0,0,0,0.35);
    padding: 5px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 50px;
    text-align: center;
}

/* ANIMAÇÃO */
@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delays para efeito cascata nos 9 cards */
.lp-game-card:nth-child(1) { animation-delay: 0.1s; }
.lp-game-card:nth-child(2) { animation-delay: 0.2s; }
.lp-game-card:nth-child(3) { animation-delay: 0.3s; }
.lp-game-card:nth-child(4) { animation-delay: 0.4s; }
.lp-game-card:nth-child(5) { animation-delay: 0.5s; }
.lp-game-card:nth-child(6) { animation-delay: 0.6s; }
.lp-game-card:nth-child(7) { animation-delay: 0.7s; }
.lp-game-card:nth-child(8) { animation-delay: 0.8s; }
.lp-game-card:nth-child(9) { animation-delay: 0.9s; }

/* ==========================================================================
   GRIDS PARA JOGOS E LIGAS (PC E MOBILE)
   ========================================================================== */

/* Grid de Jogos do Dia (3 colunas no PC - 3x4) */
.lp-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: stretch;
}

/* Grid de Ligas por País (4 colunas no PC para preencher a tela) */
.lp-leagues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Cabeçalho de País na listagem de Ligas */
.country-section-title {
    grid-column: 1 / -1; /* Força a ocupar a linha inteira */
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Responsividade (Tablets) */
@media (max-width: 992px) {
    .lp-games-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-leagues-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Responsividade (Celulares - Fica 1 abaixo do outro) */
@media (max-width: 768px) {
    .lp-games-grid { grid-template-columns: 1fr; } 
    .lp-leagues-grid { grid-template-columns: 1fr; }
    .country-section-title { margin-top: 20px; font-size: 1.1rem; }
}

/* --- MOBILE ONLY ADJUSTMENTS (ORIGINAL) --- */
@media (max-width: 767px) {
    .app-header {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .branding-area {
        margin-right: 10px;
        padding-right: 10px;
    }
    
    .branding-area img {
        width: 35px;
        height: 35px;
    }
    
    .branding-area span {
        font-size: 0.9rem;
        display: block;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .welcome-text {
        display: none;
    }
    
    .header-actions {
        gap: 5px;
    }
    
    .btn-action-header {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .btn-action-header span {
        display: none;
    }
    
    .btn-action-header i {
        font-size: 1rem;
        margin: 0;
    }
    
    #dist-champ-container {
        grid-template-columns: 1fr;
    }
    
    #view-financial .glass-card > div[style*="display:flex"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    #view-financial .stat-box-sm div {
        font-size: 1.1rem;
    }
    
    .btn-primary, .btn-sm {
        padding: 12px;
    }
    
    #admin-plan-status {
        display: none !important; 
    }
    
    .header-balance-box {
        padding: 4px 8px;
        margin: 0 5px;
    }
    
    .lp-hero h1 { font-size: 2rem; }
    .lp-price-card.featured { transform: none; }
    .lp-mockup { margin-top: 40px; margin-bottom: 20px; }
    
    .form-grid { grid-template-columns: 1fr; }
    
    /* Modal full-screen no mobile */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .modal-content {
        max-width: 100%;
        max-height: 96vh;
        border-radius: 20px 20px 0 0;
    }
    
    /* CORREÇÃO ITEM 2: Botão WhatsApp acima da Nav Bar no Mobile */
    .whatsapp-float {
        bottom: 95px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    /* Responsividade para o container de ligas no mobile */
    .leagues-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        max-height: 400px;
    }

    /* Ajustes para os cards de pools no mobile */
    .pools-grid {
        gap: 12px;
    }

    .pool-card {
        border-radius: 14px;
        padding: 14px 16px;
    }

    .team img {
        width: 44px;
        height: 44px;
    }

    .score-input {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }
    
    #champ-active-round-container > div {
        gap: 12px;
    }
}

/* Responsividade para o container de resultados - breakpoint adicional */
@media (max-width: 768px) {
    .leagues-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 380px) {
    .teams-vs span {
        font-size: 0.8rem;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .score-inputs {
        gap: 5px;
    }
}

/* ==========================================================================
   MELHORIAS VISUAIS DA LANDING PAGE (ANIMAÇÕES E RESPONSIVIDADE)
   ========================================================================== */

/* Animações Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.6); }
    100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
}

/* Classes Utilitárias de Animação */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.floating-element {
    animation: float 4s ease-in-out infinite;
}

/* Melhorias no Hero (Topo) */
.lp-hero-content {
    z-index: 2;
    padding: 20px;
}

/* Efeitos Hover nos Cards */
.lp-card, .glass-card, .lp-price-card {
    transition: all 0.3s ease;
}

/* Botões CTA */
.btn-primary.lp-btn-big {
    transition: all 0.3s;
}

.btn-primary.lp-btn-big:hover {
    transform: scale(1.05);
    animation: none;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
}

/* STEPS GRID — redesign com linhas conectoras */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 0 20px;
    position: relative;
}

/* Linha conectora entre os passos no desktop */
@media (min-width: 768px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 22px;
        left: calc(16.66% + 20px);
        right: calc(16.66% + 20px);
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(16,185,129,0.4), rgba(16,185,129,0.4), transparent);
        z-index: 0;
    }
}

.step-card {
    background: rgba(18, 28, 50, 0.75);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 36px 24px 28px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.35s ease;
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(18, 28, 50, 0.95);
    box-shadow: 0 20px 45px rgba(0,0,0,0.3), 0 0 0 1px rgba(245,158,11,0.1);
}

.step-card:hover::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 20px 20px 0 0;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    font-family: 'Syne', sans-serif;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.15), 0 4px 15px rgba(16,185,129,0.4);
}

/* Responsividade Aprimorada */
@media (max-width: 768px) {
    .lp-hero h1 { font-size: 2.2rem !important; line-height: 1.2; }
    .lp-hero p { font-size: 1rem; padding: 0 15px; }
    .lp-cta-group { flex-direction: column; width: 100%; padding: 0 20px; }
    .lp-btn-big { width: 100%; justify-content: center; }
    .steps-grid { grid-template-columns: 1fr; gap: 45px; }
    .lp-grid, .lp-pricing-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 15px; }
    .testimonial-slider { animation: slideInfinite 18s linear infinite; }
    .lp-nav { padding: 14px 5%; }
}

/* ==========================================================================
   CONTAINER DE ROLAGEM DOS JOGOS DO DIA COM EFEITO SNAP
   ========================================================================== */

/* Container do carrossel de jogos */
.lp-games-scroll { 
    display: flex;
    overflow-x: auto;
    gap: 15px;
    width: 100%;
    max-width: 100vw; 
    padding: 15px 50vw 25px 50vw; /* Cria um "respiro" nas bordas para o primeiro e último card ficarem no meio */
    margin: 0 -50vw; /* Compensa o padding para manter alinhado */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    scroll-snap-type: x mandatory; /* Ativa a "trava" magnética */
    scrollbar-width: none; 
}

.lp-games-scroll::-webkit-scrollbar {
    display: none; 
}

/* Os cards individuais dentro da rolagem */
.lp-games-scroll > div,
.lp-game-card {
    scroll-snap-align: center; /* Diz para o card parar sempre no eixo central do celular */
    flex: 0 0 auto; /* Impede o card de espremer */
}

/* =========================================
   CORREÇÕES DE ALINHAMENTO (PC E MOBILE)
   ========================================= */

/* 1. Centralizando Textos e Títulos (Geral) */
.lp-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    width: 100%;
}

.lp-section h2, 
.lp-section h3, 
.lp-section p,
.lp-hero-content {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. Centralizando os Grids e os Cards no meio da tela (PC) */
.steps-grid, 
.lp-grid, 
.lp-pricing-grid {
    justify-content: center !important;
    margin: 0 auto !important;
    width: 100%;
    max-width: 1200px;
}

/* Centraliza os itens DENTRO do próprio card */
.step-card,
.feature-card,
.pricing-card,
.lp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

/* 3. Ajuste fino exclusivo para Mobile */
@media (max-width: 768px) {
    .steps-grid, 
    .lp-grid, 
    .lp-pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .step-card,
    .feature-card,
    .pricing-card,
    .lp-card {
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto 20px auto !important;
    }
}

/* =========================================
   CORREÇÕES DE LAYOUT (JOGOS E COMO FUNCIONA)
   ========================================= */

/* --- 1. CORREÇÃO: COMO FUNCIONA (Evitar ícone sobrepondo texto) --- */
.step-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 40px 20px 30px !important; /* Garante espaço no topo para o ícone */
    gap: 15px !important; /* Espaço obrigatório entre ícone, título e texto */
    height: auto !important; /* Remove alturas fixas que causam sobreposição */
    position: relative;
    z-index: 1;
}

.step-card i,
.step-card .step-icon {
    position: relative !important; /* Tira do position absolute caso exista */
    top: auto !important;
    transform: none !important;
    margin-bottom: 10px !important;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Garante que o texto fique sempre abaixo do ícone e legível */
.step-card h3, 
.step-card p {
    position: relative;
    z-index: 2;
    margin-top: 0 !important;
}

/* --- 2. CORREÇÃO: JOGOS DE HOJE NO PC --- */
@media (min-width: 768px) {
    /* Alinha a lista de jogos em formato de grade no PC */
    #live-games-container,
    .games-grid,
    .matches-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
        gap: 25px !important;
        justify-content: center !important;
        align-items: stretch !important;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto !important;
    }

    /* Trava a largura do card para ele não esticar infinitamente */
    .match-card,
    .game-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 100%; /* Faz todos os cards terem a mesma altura */
    }
}

/* =========================================
   CORREÇÃO DEFINITIVA: COMO FUNCIONA (ÍCONES E TEXTOS)
   ========================================= */
.step-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 45px 25px 30px !important; /* Espaço extra no topo para o número não vazar */
    gap: 15px !important; /* Empurra o título e o texto para baixo do ícone */
    height: auto !important;
    min-height: 250px; /* Garante um tamanho mínimo saudável */
    position: relative;
    z-index: 1;
}

/* Garante que o ícone fique na ordem certa e com margem */
.step-card > i {
    position: relative !important;
    margin-top: 15px !important; /* Afasta o ícone do número que fica no topo */
    margin-bottom: 5px !important;
    display: block;
}

/* Garante que o número flutuante (1, 2, 3) não empurre o conteúdo */
.step-number {
    position: absolute !important;
    top: -22px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10;
}

/* Trava os textos no fluxo normal da página */
.step-card h3, 
.step-card p {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/* =========================================
   CORREÇÕES FINAIS: HERO E COMO FUNCIONA
   ========================================= */

/* --- 1. Centralizar Subtítulo do Hero (PC) --- */
.lp-hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 auto !important; /* Garante que a caixa inteira fique no meio */
}

.lp-hero p {
    margin-left: auto !important;
    margin-right: auto !important; /* Força o parágrafo a se alinhar com o título */
}

/* --- 2. Afastar os cards do "Como Funciona" do subtítulo --- */
/* Forçamos um margin-top maior para ignorar o estilo que está no HTML */
.steps-grid {
    margin-top: 100px !important; /* Desce bem os cards no PC */
}

/* Ajuste proporcional para o celular */
@media (max-width: 768px) {
    .steps-grid {
        margin-top: 80px !important; /* Dá o respiro correto no mobile */
    }
}

/* ==========================================================================
   SPLASH SCREEN & PWA ANIMATIONS
   ========================================================================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-logo {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
    animation: pulseLogo 2s infinite ease-in-out;
}

.splash-title {
    color: white;
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    margin: 0 0 30px 0;
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInText 1s ease-out forwards;
}

/* Animação da bola de futebol quicando */
.soccer-loader {
    position: relative;
    width: 50px;
    height: 60px;
}

.splash-ball {
    font-size: 2.5rem;
    color: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: bounceBall 0.6s infinite alternate cubic-bezier(0.5, 0.05, 1, 0.5), spinBall 1.2s infinite linear;
}

.shadow {
    width: 30px;
    height: 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: scaleShadow 0.6s infinite alternate cubic-bezier(0.5, 0.05, 1, 0.5);
}

@keyframes pulseLogo {
    0% { transform: scale(0.95); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.6)); }
    100% { transform: scale(0.95); opacity: 0.9; }
}

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

@keyframes bounceBall {
    0% { top: 30px; }
    100% { top: 0px; }
}

@keyframes spinBall {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes scaleShadow {
    0% { transform: translateX(-50%) scale(1.2); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(0.5); opacity: 0.2; }
}

/* --- HISTÓRICO DE PARTIDAS MODERNO --- */
.history-match-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 25px 15px 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.history-score-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #334155;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 15px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.history-score-badge.cravada { background: var(--accent); color: black; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4); }
.history-score-badge.vencedor { background: var(--primary); color: black; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4); }
.history-score-badge.zero { background: var(--danger); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4); }

.history-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.03);
}

.history-col { text-align: center; flex: 1; }
.history-col small { display: block; font-size: 0.65rem; color: #aaa; text-transform: uppercase; margin-bottom: 3px; }
.history-col strong { font-size: 1.2rem; color: white; letter-spacing: 1px; }

.history-points {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 15px;
}

/* ==========================================================================
   NOVAS ADIÇÕES: SKELETON LOADER E MELHORIAS NOS INPUTS
   ========================================================================== */

/* Skeleton Loader para percepção de velocidade */
.skeleton-loader {
    width: 100%;
    height: 65px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 12px;
    margin-bottom: 15px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   LAYOUT DE CARDS (PDV E PALPITES)
   ========================================================================== */

/* Container garantindo o Flexbox */
#matches-container, #pdv-games-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: center !important;
}

/* Responsividade dos Cards (PC) - Forçando 2 por linha */
@media (min-width: 992px) { 
    #matches-container .match-card, 
    #pdv-games-container .match-card {
        width: calc(50% - 10px) !important; /* 50% menos metade do gap */
        margin: 0 !important; /* Remove margens antigas para o gap funcionar */
    }
}

/* ==========================================================================
   SALDOS DUPLOS NO TOPO E ORGANIZAÇÃO DOS CARDS (PC)
   ========================================================================== */

/* Container de Saldos no Topo */
.balance-top-container {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 0 auto; /* Centraliza no PC */
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Blocos Individuais de Saldo */
.balance-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Ícones de Saldo */
.balance-block i {
    font-size: 1.2rem;
    color: #f1c40f;
}

/* Valor do Saldo */
.balance-value {
    font-weight: 900;
    font-size: 1.15rem;
    color: #10b981;
    letter-spacing: 0.5px;
}

/* Botões de Ação (Depositar/Sacar) */
.balance-btn {
    background: #10b981;
    border: none;
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.balance-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Observação sobre o Saldo de Saque */
.balance-note {
    font-size: 0.65rem;
    color: #888;
    display: block;
    text-align: right;
    margin-top: 2px;
}

/* CELULAR: Organização do Topo */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column; /* Empilha os itens */
        gap: 15px;
        padding: 15px;
    }
    .user-info {
        width: 100%;
        justify-content: flex-start;
    }
    .header-actions {
        position: absolute;
        top: 15px;
        right: 15px; /* Fixa os botões de sair/config no canto superior direito */
    }
    .balance-top-container {
        width: 100%;
        justify-content: space-between;
        padding: 12px;
        border-radius: 16px; /* Quadrado arredondado fica melhor no mobile */
        gap: 10px;
    }
    .balance-block {
        flex-direction: column; /* Empilha saldo e botão */
        align-items: center;
        text-align: center;
        gap: 8px;
        width: 48%; /* Divide o espaço meio a meio */
        background: rgba(255,255,255,0.03);
        padding: 10px;
        border-radius: 12px;
    }
    .balance-block > div {
        text-align: center !important;
    }
    .balance-value {
        font-size: 1rem;
    }
    .balance-btn {
        width: 100%;
        font-size: 0.75rem;
        padding: 8px;
    }
    .balance-note {
        display: none; /* Esconde o texto extra para poupar espaço */
    }
}

/* =========================================
   ESTILOS DOS CARDS (PADRONIZAÇÃO E TAMANHO)
   ========================================= */

/* O Grid forçará todos os cards da mesma linha a terem a mesma altura */
.pools-grid, .leagues-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    align-items: stretch; /* MÁGICA 1: Estica os cards verticalmente */
}

/* Transformando os cards em Flexbox para empurrar os botões pro fundo */
.pool-card, .glass-card, .match-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* MÁGICA 2: Ocupa toda a altura disponível do Grid */
    justify-content: space-between; /* MÁGICA 3: Espaça os itens internamente */
    transition: transform 0.2s, box-shadow 0.2s;
}

.pool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* PC GRANDÃO: Aproveita melhor a tela */
@media (min-width: 1024px) {
    .pools-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Cards mais largos */
    }
    .pool-card {
        padding: 25px; /* Mais respiro interno */
    }
}

/* CELULAR: Cards uniformes de 1 coluna */
@media (max-width: 768px) {
    .pools-grid {
        grid-template-columns: 1fr; /* 1 card por linha */
    }
    .pool-card {
        min-height: 200px; /* Garante que não fiquem amassados */
    }
}

/* =========================================
   CORREÇÃO DOS CARDS E TEXTOS VAZANDO
   ========================================= */

/* Força os cards a manterem a estrutura sem vazar */
.pool-card, .match-card, .glass-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; 
    overflow: hidden; 
    min-width: 0; 
}

/* Container do Placar e Nomes */
.teams-vs {
    width: 100%;
    min-width: 0;
}

/* Protege o nome do time para não estourar o layout */
.team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    max-width: 40%; /* Evita que o time ocupe mais espaço que o placar */
}

/* Aplica limite de linhas no nome do time */
.team span {
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Máximo de 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    margin-top: 5px;
    line-height: 1.2;
}

/* =========================================
   ESTILOS DE FEEDBACK DE PONTUAÇÃO (MATCH CARD)
   ========================================= */
.score-feedback {
    text-align: center;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.score-cravada {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-weight: 800;
}

.score-vencedor {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-weight: bold;
}

.score-erro {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* ============================================================
   BOLÃO MASTER — VISUAL UPGRADE v3.0
   Adicionar ao FINAL do style.css existente.
   ============================================================ */

/* ── 1. VARIÁVEIS GLOBAIS APRIMORADAS ─────────────────────── */
:root {
    --bg-color: #070d18;
    --bg-secondary: #0c1526;
    --card-bg: rgba(14, 22, 42, 0.88);
    --card-bg-hover: rgba(18, 29, 55, 0.98);
    --primary: #00d68f;
    --primary-hover: #00b87a;
    --primary-glow: rgba(0, 214, 143, 0.22);
    --primary-subtle: rgba(0, 214, 143, 0.08);
    --accent: #f6c90e;
    --accent-glow: rgba(246, 201, 14, 0.2);
    --text: #eef2ff;
    --text-muted: #6a7fa8;
    --danger: #ff4d6d;
    --glass-border: rgba(255, 255, 255, 0.065);
    --glass-border-active: rgba(0, 214, 143, 0.3);
    --radius: 18px;
    --shadow: 0 10px 45px rgba(0, 0, 0, 0.65);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 8px 30px rgba(0, 214, 143, 0.25);
}

/* ── 2. BASE ───────────────────────────────────────────────── */
* {
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background: var(--bg-color) !important;
    background-image:
        radial-gradient(ellipse 60% 40% at 15% 10%, rgba(0, 214, 143, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 50% 35% at 85% 85%, rgba(246, 201, 14, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 60%) !important;
}

/* ── 3. SPLASH SCREEN — REDESIGN ──────────────────────────── */
#splash-screen {
    background: radial-gradient(circle at 40% 40%, #0d1f3c 0%, #070d18 70%) !important;
}

#splash-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 214, 143, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

#splash-screen::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(0, 214, 143, 0.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: splashRing 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes splashRing {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.15; }
}

.splash-logo {
    width: 110px !important;
    filter: drop-shadow(0 0 28px rgba(0, 214, 143, 0.55)) !important;
    animation: splashLogoPulse 2.5s infinite ease-in-out !important;
}

@keyframes splashLogoPulse {
    0%, 100% { transform: scale(0.97); filter: drop-shadow(0 0 20px rgba(0, 214, 143, 0.4)); }
    50% { transform: scale(1.04); filter: drop-shadow(0 0 40px rgba(0, 214, 143, 0.7)); }
}

.splash-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.2rem !important;
    letter-spacing: -1px !important;
    background: linear-gradient(135deg, #00d68f 0%, #34ffc4 50%, #00d68f 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite !important;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.splash-ball { color: #fff !important; }

/* ── 4. AUTH SCREEN — REFINADO ────────────────────────────── */
.auth-container {
    background:
        radial-gradient(ellipse 70% 50% at 20% 30%, rgba(0, 214, 143, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(246, 201, 14, 0.05) 0%, transparent 55%),
        linear-gradient(160deg, #0c1628 0%, #070d18 100%) !important;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.logo-area h1 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -1.5px !important;
    font-size: 2.4rem !important;
}

.logo-area p {
    color: var(--text-muted) !important;
    font-size: 1rem !important;
    letter-spacing: 0.3px;
}

.glass-card {
    background: rgba(12, 20, 38, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 214, 143, 0.06) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
}

/* Inputs refinados */
.input-group input,
.input-group select {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    color: var(--text) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    padding: 14px 14px 14px 46px !important;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s !important;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary) !important;
    background: rgba(0, 214, 143, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(0, 214, 143, 0.12) !important;
}

/* Google button */
.btn-google {
    background: rgba(255,255,255,0.06) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 14px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.25s !important;
}
.btn-google:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.2) !important;
    transform: translateY(-1px) !important;
}

/* Tabs auth */
.tabs .tab-btn {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.2px !important;
    transition: all 0.25s !important;
    border-radius: 10px !important;
}
.tabs .tab-btn.active {
    background: var(--primary) !important;
    color: #000 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 214, 143, 0.35) !important;
}

/* Submit button auth */
.btn-primary {
    background: linear-gradient(135deg, #00d68f 0%, #00b87a 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 6px 20px rgba(0, 214, 143, 0.3) !important;
    transition: all 0.25s !important;
    color: #000 !important;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: btnShimmer 3s 1.5s infinite;
}
@keyframes btnShimmer {
    0% { left: -75%; }
    60%, 100% { left: 130%; }
}
.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(0, 214, 143, 0.45) !important;
}
.btn-primary:active {
    transform: scale(0.97) !important;
}

/* ── 5. APP HEADER ────────────────────────────────────────── */
.app-header {
    background: rgba(7, 13, 24, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 14px 20px !important;
}

.avatar-circle {
    background: linear-gradient(135deg, #00d68f 0%, #06d6a0 50%, #34ffc4 100%) !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    box-shadow: 0 0 0 2px rgba(0, 214, 143, 0.2), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    flex-shrink: 0;
}

.branding-area img {
    border: 2px solid var(--primary) !important;
    box-shadow: 0 0 12px rgba(0, 214, 143, 0.3) !important;
}

.branding-area span {
    color: var(--primary) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
}

.role-badge {
    background: rgba(0, 214, 143, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(0, 214, 143, 0.2) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
}

.welcome-text {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    font-family: 'Outfit', sans-serif !important;
}

.welcome-text strong {
    color: var(--text) !important;
    font-weight: 700 !important;
}

/* Saldo no header */
.balance-top-container {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    padding: 10px 18px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

.balance-value {
    color: var(--primary) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    letter-spacing: -0.5px !important;
}

.balance-btn {
    background: linear-gradient(135deg, #00d68f, #00b87a) !important;
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 3px 10px rgba(0, 214, 143, 0.3) !important;
    color: #000 !important;
    padding: 7px 16px !important;
    transition: all 0.2s !important;
}
.balance-btn:hover {
    transform: translateY(-1px) scale(1.03) !important;
    box-shadow: 0 5px 15px rgba(0, 214, 143, 0.45) !important;
}

/* Botões do header */
.btn-action-header {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.82rem !important;
    transition: all 0.2s !important;
}
.btn-action-header:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px) !important;
}
.btn-action-header i { color: var(--primary) !important; }

/* ── 6. POOL CARDS — ESTILO PASTA/FOLDER ─────────────────── */
.pool-card {
    background: rgba(10, 18, 36, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.065) !important;
    border-radius: 20px !important;
    padding: 0 !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s !important;
    box-shadow: var(--shadow-card) !important;
    position: relative !important;
}

/* Remove a barra lateral verde original */
.pool-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--primary), #34ffc4, var(--accent)) !important;
    background-size: 200% 100% !important;
    animation: topBarShimmer 4s linear infinite !important;
    border-radius: 0 !important;
}
@keyframes topBarShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.pool-card::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 214, 143, 0.06) 0%, transparent 60%) !important;
    pointer-events: none !important;
    border-radius: 20px !important;
}

.pool-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    border-color: rgba(0, 214, 143, 0.25) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 214, 143, 0.12) !important;
}

/* Inner padding wrapper para os pool cards */
.pool-card > * {
    padding-left: 20px;
    padding-right: 20px;
}
.pool-card h3 {
    padding-top: 20px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    letter-spacing: -0.3px !important;
    color: var(--text) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.pool-card p {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    font-family: 'Outfit', sans-serif !important;
    line-height: 1.5 !important;
}

/* Botão dentro do pool-card */
.pool-card .btn-primary,
.pool-card .btn-sm {
    margin: 0 20px 18px 20px !important;
    width: calc(100% - 40px) !important;
    font-size: 0.9rem !important;
}

/* Tags/badges dentro dos pool-cards */
.pool-card .status-active,
.pool-card .status-inactive,
.pool-card [class*="status-"] {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
}

/* ── 7. MATCH/GAME CARDS — PREMIUM TICKET ────────────────── */
.match-card {
    background: linear-gradient(155deg,
        rgba(12, 20, 40, 0.95) 0%,
        rgba(8, 14, 28, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.065) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s !important;
    position: relative !important;
}

.match-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 214, 143, 0.4) 40%, rgba(246, 201, 14, 0.4) 60%, transparent 100%) !important;
}

.match-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(0, 214, 143, 0.2) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 214, 143, 0.08) !important;
}

.match-card.selected {
    border-color: var(--primary) !important;
    background: linear-gradient(155deg, rgba(0, 214, 143, 0.07) 0%, rgba(8, 14, 28, 0.98) 60%) !important;
    box-shadow: 0 0 0 1px rgba(0, 214, 143, 0.3), 0 8px 30px rgba(0, 214, 143, 0.15) !important;
}

/* Cabeçalho do match card */
.match-card-header {
    padding: 12px 16px 8px !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.match-date-badge {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.68rem !important;
    color: var(--text-muted) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

.match-live-indicator {
    background: var(--danger) !important;
    box-shadow: 0 0 8px var(--danger), 0 0 16px rgba(255, 77, 109, 0.4) !important;
}

/* Times */
.match-main-content { padding: 16px !important; }

.match-info {
    font-size: 0.7rem !important;
    color: var(--text-muted) !important;
    text-align: center !important;
    margin-bottom: 14px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.team img {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)) !important;
    transition: transform 0.2s !important;
}
.match-card:hover .team img {
    transform: scale(1.06) !important;
}

.team span {
    font-size: 0.82rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.2px !important;
}

/* Score inputs — estilo placar de estádio */
.score-input {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    font-family: 'Outfit', sans-serif !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    letter-spacing: -1px !important;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4) !important;
}

.score-input:focus {
    border-color: var(--primary) !important;
    background: rgba(0, 214, 143, 0.08) !important;
    transform: scale(1.2) translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 214, 143, 0.4), inset 0 2px 8px rgba(0,0,0,0.2) !important;
    color: var(--primary) !important;
}

.score-input:disabled {
    background: rgba(255,255,255,0.04) !important;
    color: #444 !important;
    border-color: transparent !important;
}

.score-inputs { gap: 10px !important; }

/* Score vs divider */
.score-inputs span {
    color: var(--text-muted) !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
}

/* Score feedback */
.score-feedback {
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.3px !important;
    margin-top: 14px !important;
    padding: 8px 12px !important;
}

.score-cravada {
    background: rgba(0, 214, 143, 0.12) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(0, 214, 143, 0.3) !important;
    box-shadow: 0 0 12px rgba(0, 214, 143, 0.1) !important;
}

.score-vencedor {
    background: rgba(246, 201, 14, 0.1) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(246, 201, 14, 0.3) !important;
}

/* Detalhes toggle */
.match-details-toggle {
    background: rgba(255,255,255,0.025) !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
    color: var(--text-muted) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    padding: 10px !important;
    transition: all 0.2s !important;
}
.match-details-toggle:hover {
    background: rgba(255,255,255,0.05) !important;
    color: var(--primary) !important;
}

/* ── 8. BOTTOM NAV — FLOATING ISLAND ─────────────────────── */
.bottom-nav {
    background: rgba(8, 14, 26, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.055) !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4) !important;
}

@media (min-width: 480px) {
    .bottom-nav {
        max-width: 560px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        bottom: 14px !important;
        border-radius: 24px !important;
        width: calc(100% - 40px) !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04) !important;
    }

    body, @media (max-width: 767px) body {
        padding-bottom: 100px !important;
    }
}

.nav-item {
    color: var(--text-muted) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.2px !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
    position: relative !important;
    gap: 3px !important;
}

.nav-item i {
    font-size: 1.35rem !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.nav-item.active {
    color: var(--primary) !important;
    transform: translateY(-1px) !important;
}

.nav-item.active i {
    transform: scale(1.2) !important;
    filter: drop-shadow(0 0 6px rgba(0, 214, 143, 0.6)) !important;
}

.nav-item.active::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 24px !important;
    height: 2px !important;
    background: var(--primary) !important;
    border-radius: 0 0 4px 4px !important;
    box-shadow: 0 0 8px var(--primary) !important;
}

/* ── 9. HOME TABS ─────────────────────────────────────────── */
.home-tabs {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 50px !important;
    padding: 5px !important;
}

.home-tabs .tab-btn {
    border-radius: 40px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: all 0.25s !important;
}

.home-tabs .tab-btn.active {
    background: linear-gradient(135deg, #00d68f, #00b87a) !important;
    color: #000 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(0, 214, 143, 0.35) !important;
}

/* Badge count */
.badge-count {
    background: var(--accent) !important;
    color: #000 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(246, 201, 14, 0.3) !important;
}

/* ── 10. SECTION TITLES ───────────────────────────────────── */
.section-title h2 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.5px !important;
    color: var(--text) !important;
}

.header-back {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.055) !important;
    border-radius: 14px !important;
    padding: 10px 14px !important;
}

.header-back h2 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    letter-spacing: -0.3px !important;
}

.btn-text {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
}

/* ── 11. MODAL — REFINADO ─────────────────────────────────── */
.modal-content {
    background: #0b1425 !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7) !important;
}

.modal-header {
    background: #0b1425 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 20px 22px 16px !important;
}

.modal-header h2,
.modal-header h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
}

.modal-section {
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(255,255,255,0.055) !important;
    border-radius: 14px !important;
}

.modal-section-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
}

.close-btn {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    transition: all 0.2s !important;
}
.close-btn:hover {
    background: rgba(255,77,109,0.15) !important;
    border-color: rgba(255,77,109,0.3) !important;
    color: var(--danger) !important;
}

/* ── 12. RANKING TABLE ────────────────────────────────────── */
.ranking-table th {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
}

.ranking-table td {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.9rem !important;
    padding: 13px 10px !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

.rank-1 { color: #ffd700 !important; text-shadow: 0 0 12px rgba(255,215,0,0.4) !important; }
.rank-2 { color: #c0c0c0 !important; text-shadow: 0 0 10px rgba(192,192,192,0.3) !important; }
.rank-3 { color: #cd7f32 !important; text-shadow: 0 0 10px rgba(205,127,50,0.3) !important; }

/* ── 13. SAAS DASHBOARD CARDS ─────────────────────────────── */
.saas-card {
    background: linear-gradient(145deg, rgba(14, 22, 44, 0.95), rgba(8, 14, 28, 0.98)) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 18px !important;
    padding: 22px !important;
    transition: all 0.3s !important;
}
.saas-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4) !important;
}
.saas-card h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.1rem !important;
    letter-spacing: -1px !important;
}
.saas-card small {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
}
.card-revenue { border-bottom: 3px solid var(--primary) !important; }
.card-admins { border-bottom: 3px solid var(--accent) !important; }
.card-players { border-bottom: 3px solid #6366f1 !important; }

/* ── 14. HISTORY CARDS ────────────────────────────────────── */
.history-match-card {
    background: linear-gradient(155deg, rgba(12, 20, 40, 0.95) 0%, rgba(8, 14, 28, 0.98) 100%) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4) !important;
}

.history-score-badge {
    background: #1e2d4a !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    letter-spacing: 1px !important;
    border-radius: 10px !important;
}
.history-score-badge.cravada { background: var(--accent) !important; color: #000 !important; }
.history-score-badge.vencedor { background: var(--primary) !important; color: #000 !important; }

.history-points {
    color: var(--primary) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    text-shadow: 0 0 15px rgba(0, 214, 143, 0.4) !important;
}

/* ── 15. STAT BOXES ───────────────────────────────────────── */
.stat-box {
    background: rgba(10, 18, 36, 0.92) !important;
    border: 1px solid rgba(255,255,255,0.065) !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow-card) !important;
    transition: all 0.3s !important;
}
.stat-box:hover {
    border-color: var(--primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,214,143,0.1) !important;
}
.stat-box h2 {
    color: var(--accent) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.2rem !important;
    letter-spacing: -1px !important;
}

.stat-box-sm {
    background: rgba(10, 18, 36, 0.92) !important;
    border: 1px solid rgba(255,255,255,0.065) !important;
    border-radius: 14px !important;
    transition: all 0.25s !important;
}
.stat-box-sm:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
}
.stat-box-sm small {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
}
.stat-box-sm div {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

/* ── 16. LP NAV — UPGRADE ─────────────────────────────────── */
.lp-nav {
    background: rgba(7, 13, 24, 0.7) !important;
    border-bottom: 1px solid rgba(0, 214, 143, 0.1) !important;
    backdrop-filter: blur(20px) !important;
}

.lp-logo {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.35rem !important;
    letter-spacing: -0.5px !important;
}

.lp-nav-actions .btn-sm {
    background: linear-gradient(135deg, #00d68f, #00b87a) !important;
    color: #000 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(0, 214, 143, 0.35) !important;
    transition: all 0.25s !important;
}
.lp-nav-actions .btn-sm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 214, 143, 0.5) !important;
}

/* ── 17. LP HERO — UPGRADE ────────────────────────────────── */
.lp-hero {
    background:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(0, 214, 143, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 85% 80%, rgba(246, 201, 14, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 10% 60%, rgba(99, 102, 241, 0.05) 0%, transparent 50%) !important;
}

.lp-hero h1 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -2px !important;
}

.lp-badge {
    background: rgba(0, 214, 143, 0.1) !important;
    border: 1px solid rgba(0, 214, 143, 0.3) !important;
    color: #34ffc4 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
}

.btn-primary.lp-btn-big {
    background: linear-gradient(135deg, #00d68f 0%, #00b87a 100%) !important;
    color: #000 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 6px 24px rgba(0, 214, 143, 0.4), 0 0 0 1px rgba(0, 214, 143, 0.15) !important;
    border-radius: 16px !important;
}

.btn-secondary.lp-btn-big {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.88) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 16px !important;
    padding: 14px 30px !important;
}

/* ── 18. LP CARDS ─────────────────────────────────────────── */
.lp-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
}

.lp-card {
    background: rgba(10, 18, 36, 0.75) !important;
    border: 1px solid rgba(255,255,255,0.065) !important;
    border-radius: 22px !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.lp-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(0, 214, 143, 0.2) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,214,143,0.08) !important;
}
.lp-card i { color: var(--primary) !important; filter: drop-shadow(0 0 10px rgba(0,214,143,0.4)) !important; }
.lp-card h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
}

/* Step cards */
.step-card {
    background: rgba(10, 18, 36, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.065) !important;
    border-radius: 22px !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.step-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(246, 201, 14, 0.25) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(246,201,14,0.08) !important;
}
.step-number {
    background: linear-gradient(135deg, #00d68f, #00b87a) !important;
    box-shadow: 0 0 0 4px rgba(0, 214, 143, 0.15), 0 4px 15px rgba(0, 214, 143, 0.4) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    color: #000 !important;
}

/* Pricing cards */
.lp-price-card {
    background: rgba(10, 18, 36, 0.85) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}
.lp-price-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(0,214,143,0.25) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4) !important;
}
.lp-price-card.featured {
    background: rgba(246, 201, 14, 0.05) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 12px 40px rgba(246, 201, 14, 0.12) !important;
}
.lp-price-card .badge {
    background: linear-gradient(135deg, var(--accent), #d97706) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
}
.lp-price-card h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
}
.lp-price-card .price {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -1.5px !important;
}
.lp-price-card ul li i { color: var(--primary) !important; }

/* LP game cards */
.lp-game-card {
    background: rgba(10, 18, 36, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.lp-game-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(0, 214, 143, 0.25) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,214,143,0.08) !important;
}
.lp-game-score {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    background: rgba(0,0,0,0.45) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
}

/* League cards */
.lp-league-card {
    background: rgba(10, 18, 36, 0.75) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 14px !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.lp-league-card:hover {
    background: rgba(18, 30, 60, 0.95) !important;
    border-color: var(--primary) !important;
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,214,143,0.1) !important;
}
.lp-league-card span {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
}

/* ── 19. WHATSAPP FLOAT ───────────────────────────────────── */
.whatsapp-float {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.whatsapp-float:hover {
    transform: scale(1.12) rotate(-5deg) !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55) !important;
}

/* ── 20. SPINNER GLOBAL ───────────────────────────────────── */
.spinner {
    border-color: rgba(0, 214, 143, 0.15) !important;
    border-top-color: var(--primary) !important;
}

/* ── 21. HEADER BACK BUTTON ───────────────────────────────── */
.btn-back-custom {
    background: linear-gradient(135deg, #00d68f, #00b87a) !important;
    color: #000 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 14px rgba(0, 214, 143, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.btn-back-custom:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 22px rgba(0, 214, 143, 0.5) !important;
}

/* ── 22. CLIENT ITEMS ─────────────────────────────────────── */
.client-item {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255,255,255,0.065) !important;
    border-radius: 14px !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.client-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--primary) !important;
    transform: translateX(4px) !important;
}
.client-avatar {
    background: linear-gradient(135deg, var(--primary), #34ffc4) !important;
    box-shadow: 0 4px 12px rgba(0, 214, 143, 0.3) !important;
}
.client-info h4 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
}

/* ── 23. RULES CARD ───────────────────────────────────────── */
.rules-card {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.055) !important;
    border-radius: 12px !important;
}
.rule-item strong {
    color: var(--primary) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
}

/* ── 24. HEADER BALANCE BOX ───────────────────────────────── */
.header-balance-box {
    background: rgba(0, 214, 143, 0.08) !important;
    border: 1px solid rgba(0, 214, 143, 0.2) !important;
    border-radius: 10px !important;
    transition: all 0.2s !important;
}
.header-balance-box:hover {
    background: var(--primary) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(0, 214, 143, 0.3) !important;
}
.header-balance-box small {
    color: var(--primary) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
}
.header-balance-box span {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
}

/* ── 25. BTN SM ───────────────────────────────────────────── */
.btn-sm {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: var(--text) !important;
    transition: all 0.2s !important;
}
.btn-sm:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px) !important;
}

/* ── 26. PALPITES/BOLÃO DETAIL ────────────────────────────── */
#view-pool-details .glass-card {
    border-radius: 20px !important;
}

/* ── 27. SKELETON LOADER ──────────────────────────────────── */
.skeleton-loader {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(0, 214, 143, 0.06) 50%,
        rgba(255,255,255,0.03) 75%) !important;
    background-size: 200% 100% !important;
    border-radius: 14px !important;
}

/* ── 28. SCROLLBAR GLOBAL ─────────────────────────────────── */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 214, 143, 0.25) transparent;
}
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: rgba(0, 214, 143, 0.25);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 214, 143, 0.45);
}

/* ── 29. SWEETALERT OVERRIDE ──────────────────────────────── */
.swal2-popup {
    background: #0c1526 !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 22px !important;
    font-family: 'Outfit', sans-serif !important;
}
.swal2-title {
    color: var(--text) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}
.swal2-html-container {
    color: var(--text-muted) !important;
    font-family: 'Outfit', sans-serif !important;
}
.swal2-confirm {
    background: linear-gradient(135deg, #00d68f, #00b87a) !important;
    color: #000 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0, 214, 143, 0.35) !important;
}
.swal2-cancel {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: var(--text) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}
.swal2-input, .swal2-select, .swal2-textarea {
    background: rgba(0,0,0,0.4) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    font-family: 'Outfit', sans-serif !important;
}
.swal2-input:focus, .swal2-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 214, 143, 0.15) !important;
}

/* ── 30. SALES TOAST ──────────────────────────────────────── */
.sales-toast {
    background: rgba(10, 18, 36, 0.97) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,214,143,0.1) !important;
}

/* ── 31. MOBILE: bottom nav padding fix ───────────────────── */
@media (min-width: 480px) {
    body { padding-bottom: 100px !important; }
    #app-container-wrapper { padding-bottom: 0; }
}
@media (max-width: 479px) {
    .bottom-nav {
        border-radius: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ── 32. COUPON TAG ───────────────────────────────────────── */
.coupon-tag {
    background: linear-gradient(135deg, var(--accent), #d97706) !important;
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(246, 201, 14, 0.3) !important;
}

/* ── 33. LANDING PAGE h1/h2/h3 FONT FIX ──────────────────── */
#landing-screen h1,
#landing-screen h2,
#landing-screen h3,
.lp-hero h1,
.lp-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
}

/* ── 34. ANIMAÇÕES GERAIS ─────────────────────────────────── */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(0, 214, 143, 0); }
}

.nav-item.active i {
    animation: softPulse 2s infinite;
}

/* ============================================================
   CORREÇÕES DE LAYOUT — CARDS DE JOGO E PASTAS
   ============================================================ */

/* PC: Match cards em coluna única, largos e sem cortes */
#matches-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
}

#matches-container .match-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* PC: Nomes dos times sem corte */
#matches-container .team span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word !important;
    font-size: 0.88rem !important;
    max-width: 100% !important;
}

/* PC: Logos maiores aproveitando o espaço */
@media (min-width: 768px) {
    #matches-container .team img {
        width: 64px !important;
        height: 64px !important;
    }

    #matches-container .team span {
        font-size: 0.95rem !important;
    }

    #matches-container .score-input {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.6rem !important;
    }
}

/* Mobile: Pasta de campeonato sem espaço vazio */
@media (max-width: 767px) {
    .pool-card {
        min-height: unset !important;
    }

    /* Pasta (folder-card): compacta, só o necessário */
    .pool-card.folder-card {
        padding: 14px 16px !important;
    }

    /* Rodadas dentro da pasta: mais espaço entre elas */
    #champ-active-round-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
    }

    #champ-active-round-container .pool-card {
        min-height: unset !important;
        margin-bottom: 0 !important;
    }
}

/* Rodadas anteriores dentro da pasta: espaço maior entre elas */
#champ-active-round-container > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

#champ-active-round-container > div .pool-card {
    margin-bottom: 0 !important;
}

/* Garante que todos os containers de grid de bolões 
   nunca criem 2 colunas na tela de detalhes */
#view-pool-details .pools-grid,
#view-championship .pools-grid {
    grid-template-columns: 1fr !important;
}

/* ============================================================
   AJUSTES SOLICITADOS: PONTOS CORTADOS E ESPAÇAMENTO LOGIN
   ============================================================ */

/* --- 1. AJUSTE DOS PONTOS CORTADOS NO CARD --- */
.points-badge, 
.match-points,
.score-feedback {
    min-width: 40px !important;
    height: auto !important;
    padding: 4px 8px !important;
    white-space: nowrap !important; /* Impede que o número quebre de linha */
    overflow: visible !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* --- 2. MELHORIA DO ESPAÇAMENTO NA TELA DE LOGIN --- */
#auth-section, 
.auth-container {
    gap: 15px !important; /* Reduz o espaço geral entre os elementos */
    padding: 25px 20px !important;
}

#auth-section input {
    margin-bottom: 12px !important; /* Aproxima os campos de texto */
}

#auth-section h2 {
    margin-bottom: 16px !important; /* Reduz o espaço abaixo do título */
}

#auth-section button {
    margin-top: 5px !important;
}

/* --- LAYOUT DE SETORES (CRIAÇÃO DE JOGOS) --- */
.form-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-section {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

/* --- BOTÃO FLUTUANTE DE COMPARTILHAR (FAB) --- */
.fab-btn {
    position: fixed;
    bottom: 85px; /* Fica logo acima do chat/whatsapp se houver */
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.2s;
}

.fab-btn:hover {
    transform: scale(1.1);
}

/* --- CAIXA DO LINK DE INDICAÇÃO --- */
.ref-link-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ref-link-box input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
    color: var(--text);
    text-align: center;
}

/* ==========================================
   ORGANIZAÇÃO DOS BOTÕES FLUTUANTES          
   ========================================== */

/* 1. Botão do WhatsApp (Mais abaixo, logo acima do menu) */
.whatsapp-float {
    position: fixed !important;
    bottom: 85px !important;
    right: 20px !important;
    z-index: 9997 !important;
}

/* 2. Botão de Compartilhar / Indicar (No meio) */
#fab-share {
    position: fixed !important;
    bottom: 150px !important;
    right: 20px !important;
    z-index: 9997 !important;
}

/* 3. Botão da Inteligência Artificial (Mais acima) */
#btn-ai-predict {
    position: fixed !important;
    bottom: 215px !important;
    right: 20px !important;
    z-index: 9997 !important;
}

/* ============================================================
   ADMIN EXTRACT TABLE — VISUAL MODERNO
   ============================================================ */

.admin-extract-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.extract-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
    font-size: 0.9rem;
}

.extract-table th, .extract-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.extract-table th {
    color: var(--text-muted);
    font-weight: 600;
}

.badge-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.type-deposit { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.type-withdraw { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.type-bet { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.type-prize { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

/* ============================================================
   NOVAS ADIÇÕES: ESTILOS PARA BOTÃO TOGGLE E MODAIS
   ============================================================ */

/* Estilo do botão de Toggle */
.btn-toggle-pote {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-toggle-pote.desmarcado {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ccc;
}
.btn-toggle-pote.marcado {
    background-color: #ffc107; /* Amarelo indicando que está em "espera" */
    color: #333;
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.3);
}

/* Estrutura dos Modais */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}
.modal.hidden {
    display: none;
    opacity: 0;
}
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Estilo específico do Ganhador */
.destaque-campeao {
    background: linear-gradient(135deg, #fff, #fff9e6);
    border: 2px solid #ffc107;
}
.trofeu-animado {
    font-size: 60px;
    margin-bottom: 15px;
    animation: pular 2s infinite ease-in-out;
}
@keyframes pular {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.premio-texto {
    font-size: 1.2rem;
    color: #28a745;
    margin-top: 15px;
}
