:root {
            --bg-app: #F1F5F9; 
            --bg-card: #FFFFFF; 
            --bg-input: #F8FAFC;
            --primary: #2563EB; 
            --primary-dark: #1E40AF;
            --success: #10B981; 
            --danger: #EF4444; 
            --warning: #F59E0B;
            --text-main: #0F172A; 
            --text-sub: #64748B;
            --shadow: 0 4px 6px -1px rgba(0,0,0,0.05); 
            --radius-lg: 16px; 
            
            --gold: #FFD700;
            --silver: #C0C0C0;
            --bronze: #CD7F32;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; -webkit-tap-highlight-color: transparent; }
        body { background-color: var(--bg-app); color: var(--text-main); padding-bottom: 90px; overflow-x: hidden; }
        .hidden { display: none !important; }

        /* --- AUTH SCREEN MODERNIZADA --- */
        #auth-screen { 
            position: fixed; 
            top:0; left:0; width:100%; height:100%; 
            /* Gradiente de fundo moderno (Marca) */
            background: linear-gradient(135deg, #0060b1 0%, #004e92 100%); 
            z-index:99; 
            display:flex; 
            flex-direction:column; 
            justify-content:center; 
            align-items: center;
            padding: 20px; 
            overflow-y:auto; 
            transition: 0.3s; 
        }

        .auth-card-container {
            width: 100%;
            max-width: 400px;
            background: #ffffff;
            border-radius: 24px;
            padding: 40px 30px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            text-align: center;
            animation: slideUpFade 0.5s ease-out;
        }

        @keyframes slideUpFade {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Logo flutuante sem fundo */
        .auth-logo { 
            max-width: 250px; 
            width: 100%; 
            height: auto; 
            display: block; 
            margin: 0 auto 10px auto; 
            background-color: transparent; /* Remove o azul duro de trás */
            padding: 0; 
        }

        /* Inputs Modernos */
        .std-input { 
            width: 100%; 
            padding: 0 20px; 
            height: 55px;
            margin-bottom: 15px; 
            background: #F1F5F9; /* Fundo cinza claro */
            border: 2px solid transparent; 
            border-radius: 12px; 
            font-size: 1rem; 
            color: var(--text-main);
            outline: none; 
            transition: 0.3s;
            font-weight: 500;
        }
        
        .std-input:focus {
            background: #ffffff;
            border-color: #0060b1;
            box-shadow: 0 0 0 4px rgba(0, 96, 177, 0.1);
        }

        .auth-title {
            color: var(--text-main);
            font-weight: 800;
            font-size: 1.5rem;
            margin-bottom: 5px;
            letter-spacing: -0.5px;
        }

        .auth-subtitle {
            color: var(--text-sub);
            margin-bottom: 30px;
            font-size: 0.95rem;
        }

        .auth-toggle { 
            text-align: center; 
            margin-top: 25px; 
            color: var(--text-sub); 
            font-size: 0.9rem; 
            cursor: pointer; 
        }
        .auth-toggle strong { color: var(--primary); font-weight: 700; }

        /* HEADER */
        .app-header {
            position: fixed; top: 0; left: 0; right: 0; height: 65px;
            background: #0060b1; z-index: 50; padding: 0 15px; 
            display: flex; align-items: center; justify-content: space-between;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }
        .balance-pill { background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 100px; font-weight: 700; font-size: 0.9rem; color: #fff; border: 1px solid rgba(255,255,255,0.2); }

        /* CARDS GERAIS */
        .market-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03); cursor: pointer; position: relative; overflow: hidden; }
        .market-card:active { transform: scale(0.99); background: #f8fafc; }
        .card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 10px; }
        .card-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 10px; border-radius: 6px; }
        .card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: var(--text-main); margin-bottom: 14px; }

        .probability-bars { display: flex; width: 100%; gap: 6px; height: 44px; margin-top: 10px; }
        .prob-btn { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-radius: 10px; font-weight: 700; font-size: 0.8rem; cursor: pointer; border: 1px solid transparent; white-space: nowrap; overflow: hidden; }
        .prob-info { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
        .prob-pct { font-size: 1.1em; font-weight: 800; }
        .odd-val { font-size: 0.85em; opacity: 0.9; font-weight: 600; }
        .prob-yes { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
        .prob-no { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

        /* DESTAQUE TRENDING */
        .trending-section { margin-bottom: 20px; }
        .section-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; padding-left: 5px; }
        .trending-scroll { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 5px; scrollbar-width: none; margin: 0 -10px; padding: 0 10px 10px 10px; }
        .trending-card { min-width: 280px; background: #1e293b; color: #fff; padding: 18px; border-radius: 16px; position: relative; cursor: pointer; }
        .trending-badge { position: absolute; top: 12px; right: 12px; background: #EF4444; color: white; font-size: 0.65rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; display: flex; align-items: center; gap: 4px; }
        
        /* RANKING STYLES */
        .rank-item { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 15px; margin-bottom: 10px; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05); transition: transform 0.2s; }
        .rank-item:hover { transform: translateY(-2px); }
        .rank-pos { font-size: 1.2rem; font-weight: 800; width: 35px; text-align: center; color: var(--text-sub); display: flex; align-items: center; justify-content: center; }
        .rank-1 { color: var(--gold); font-size: 1.6rem; text-shadow: 0 2px 5px rgba(0,0,0,0.1); }
        .rank-2 { color: var(--silver); font-size: 1.4rem; }
        .rank-3 { color: var(--bronze); font-size: 1.3rem; }
        .rank-info { flex: 1; margin-left: 10px; }
        .rank-name { font-weight: 700; color: var(--text-main); }
        .rank-lbl { font-size: 0.75rem; color: var(--text-sub); }
        
        .sticky-rank-user { 
            position: fixed; 
            bottom: 85px; 
            left: 50%; transform: translateX(-50%);
            width: 95%; max-width: 500px;
            background: #0060b1; color: white; 
            padding: 15px 20px; border-radius: 16px; 
            display: flex; align-items: center; justify-content: space-between; 
            box-shadow: 0 10px 25px rgba(0, 96, 177, 0.4); 
            z-index: 40; 
        }

        /* MISSÕES */
        .goal-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; margin-bottom: 15px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden; }
        .progress-bg { height: 8px; background: #F1F5F9; border-radius: 10px; margin: 15px 0 10px 0; overflow: hidden; position: relative; }
        .progress-fill { height: 100%; background: var(--success); border-radius: 10px; transition: width 1s ease; }
        .btn-claim { background: var(--success); color: white; border: none; padding: 8px 18px; border-radius: 100px; font-weight: 700; font-size: 0.8rem; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }
        .btn-claim:disabled { background: #cbd5e1; cursor: default; box-shadow: none; color: #64748B; }
        .btn-claim:active { transform: scale(0.95); }

        /* WALLET & HISTORY */
        .wallet-card { background: linear-gradient(135deg, #0060b1 0%, #004e92 100%); border-radius: 20px; padding: 25px; color: white; position: relative; overflow: hidden; box-shadow: 0 15px 30px -5px rgba(0, 96, 177, 0.4); margin-bottom: 20px; }
        .wallet-card::before { content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: rgba(255,255,255,0.1); border-radius: 50%; filter: blur(40px); }
        .wallet-balance { font-size: 2.5rem; font-weight: 700; margin: 5px 0 20px 0; letter-spacing: -1px; }
        .wallet-actions { display: flex; gap: 12px; margin-bottom: 25px; }
        .action-btn { flex: 1; padding: 15px; border-radius: 14px; border: none; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.95rem; transition: 0.2s; }
        .action-btn:active { transform: scale(0.97); }
        
        .btn-deposit { background: white; color: #0060b1; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
        .btn-withdraw { background: rgba(255,255,255,0.25); color: #fff; border: 1px solid rgba(255,255,255,0.5); backdrop-filter: blur(5px); }
        .btn-withdraw:hover { background: rgba(255,255,255,0.35); }

        .history-item { background: #fff; padding: 15px; border-radius: 12px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #f1f5f9; cursor: pointer; }
        .history-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-right: 12px; }

        /* PERFIL PROFISSIONAL */
        .profile-header { background: #fff; border-radius: 20px; padding: 30px 20px; text-align: center; margin-bottom: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
        .profile-avatar { width: 90px; height: 90px; background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); color: #4f46e5; border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; border: 4px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
        .profile-stats-row { display: flex; justify-content: space-around; margin-top: 25px; border-top: 1px solid #f1f5f9; padding-top: 20px; }
        .p-stat { text-align: center; }
        .p-stat-val { font-weight: 800; font-size: 1.1rem; color: var(--text-main); }
        .p-stat-lbl { font-size: 0.75rem; color: var(--text-sub); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
        
        .profile-menu { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
        .p-menu-item { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: 0.2s; color: var(--text-main); font-weight: 500; }
        .p-menu-item:last-child { border-bottom: none; }
        .p-menu-item:active { background: #f8fafc; }
        .p-menu-icon { margin-right: 15px; font-size: 1.2rem; color: var(--text-sub); width: 24px; text-align: center; }

        /* MENU & LAYOUT */
        .sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 91; opacity: 0; pointer-events: none; transition: 0.3s; backdrop-filter: blur(4px); }
        .sidebar-overlay.open { opacity: 1; pointer-events: all; }
        .sidebar { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background: #fff; z-index: 92; transform: translateX(-100%); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: 20px 0 50px rgba(0,0,0,0.1); }
        .sidebar.open { transform: translateX(0); }
        .sidebar-header { padding: 40px 25px; border-bottom: 1px solid #f1f5f9; background: var(--bg-app); }
        .user-avatar { width: 60px; height: 60px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 15px; color: var(--primary); }
        .sidebar-menu { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
        .sidebar-link { display: flex; align-items: center; gap: 15px; padding: 14px; border-radius: 12px; color: var(--text-sub); font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.2s; }
        .sidebar-footer { padding: 20px; border-top: 1px solid #f1f5f9; }

        .bottom-nav { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 92%; max-width: 500px; height: 65px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 100px; display: flex; justify-content: space-around; align-items: center; z-index: 80; border: 1px solid rgba(255,255,255,0.5); }
        .nav-item { font-size: 1.5rem; color: #94A3B8; cursor: pointer; padding: 10px; position: relative; transition: 0.3s; display: flex; flex-direction: column; align-items: center; }
        .nav-item.active { color: var(--primary); transform: translateY(-3px); }
        .nav-item.active::after { content:''; position:absolute; bottom:5px; left:50%; transform:translateX(-50%); width:4px; height:4px; background:var(--primary); border-radius:50%; }
        .nav-notification { position: relative; }
        .nav-notification::after { content: ''; position: absolute; top: 10px; right: 8px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid #fff; }

        /* VIEW SECTION */
        .view-section { padding: 0 10px; margin-top: 85px; animation: fadeIn 0.4s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        
       .categories-scroll {
    display: flex;
    gap: 10px; /* Espaço entre os botões */
    padding: 10px 15px 20px 15px; /* Espaço ao redor */
    overflow-x: auto; /* Rolagem lateral */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}
.categories-scroll::-webkit-scrollbar { display: none; }

/* BOTÃO DA CATEGORIA */
.cat-item {
    display: flex;
    align-items: center; /* Ícone e texto alinhados no meio */
    gap: 8px; /* Distância entre ícone e texto */
    
    background: #FFFFFF; /* Fundo Branco */
    color: #64748B; /* Texto Cinza */
    border: 1px solid #E2E8F0; /* Borda fininha */
    
    padding: 10px 20px; /* Tamanho do botão */
    border-radius: 50px; /* Bem arredondado */
    
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap; /* IMPORTANTE: Não deixa o texto quebrar */
    flex-shrink: 0; /* IMPORTANTE: Não deixa o botão espremer */
    
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

/* ÍCONE */
.cat-item span.icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TEXTO */
.cat-item span:not(.icon) {
    display: block;
    margin-top: 1px; /* Ajuste fino de alinhamento */
}

/* --- ESTADO ATIVO (SELECIONADO) --- */
.cat-item.active {
    background: #0060b1; /* Azul da sua marca */
    color: #FFFFFF; /* Texto Branco */
    border-color: #0060b1;
    box-shadow: 0 4px 10px rgba(0, 96, 177, 0.3); /* Sombra azul */
    transform: translateY(-1px);
}

/* Hover (Apenas PC) */
.cat-item:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
}
.cat-item.active:hover {
    border-color: #0060b1;
}

        /* OVERLAYS & MODALS */
        .overlay-view { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-app); z-index: 100; display: flex; flex-direction: column; overflow-y: auto; }
        .detail-nav { padding: 15px; cursor: pointer; font-weight: 600; color: var(--text-sub); display: flex; align-items: center; gap: 8px; }
        .order-slip { background: var(--bg-card); border-radius: 25px 25px 0 0; padding: 30px 25px; box-shadow: var(--shadow); flex: 1; border-top: 1px solid rgba(0,0,0,0.05); }
        .big-input { width: 100%; border: none; background: transparent; font-size: 3rem; font-weight: 800; text-align: center; color: var(--text-main); outline: none; margin: 20px 0; }
        .btn-main { width: 100%; padding: 20px; border-radius: 16px; border: none; font-size: 1.1rem; font-weight: 700; color: white; background: var(--text-main); cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: 0.2s; }
        .btn-main:active { transform: scale(0.98); }
        
        .qr-container { text-align: center; display: none; margin-top: 20px; animation: slideUp 0.3s ease; }
        .qr-img { width: 200px; height: 200px; border-radius: 12px; margin: 0 auto 15px; border: 1px solid #eee; }
        .pix-code-box { width: 100%; background: var(--bg-input); padding: 15px; border-radius: 12px; font-size: 0.8rem; word-break: break-all; margin-bottom: 15px; color: var(--text-sub); border: 1px dashed #cbd5e1; }
        .status-badge { display:inline-block; padding: 5px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
        .status-waiting { background: #FEF3C7; color: #D97706; }

        .receipt-card { background: white; border-radius: 24px; padding: 40px 30px; text-align: center; box-shadow: var(--shadow); position: relative; margin: 30px 24px; }
        .receipt-card::before { content: ""; position: absolute; top: -10px; left: 0; width: 100%; height: 20px; background: radial-gradient(circle, transparent 0.5rem, #fff 0.5rem); background-size: 1.5rem 1.5rem; background-position: 0 1rem; transform: rotate(180deg); }
        .status-icon-large { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
        .receipt-row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px dashed #e2e8f0; color: var(--text-sub); font-size: 0.95rem; }
        .receipt-row strong { color: var(--text-main); font-weight: 700; }
        .std-select { width: 100%; padding: 18px; margin-bottom: 15px; background: var(--bg-input); border: none; border-radius: 16px; font-size: 1rem; color: var(--text-main); outline: none; -webkit-appearance: none; }

        /* BUTTON SHARE */
        .btn-share { width: 100%; background: #25D366; color: white; padding: 15px; border-radius: 12px; border: none; font-weight: 700; font-size: 1rem; margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); transition: 0.2s; }
        .btn-share:active { transform: scale(0.98); }

        /* TIMER E URGÊNCIA */
        .urgent-pulse { color: #EF4444 !important; font-weight: 800 !important; animation: pulseRed 1.5s infinite; }
        @keyframes pulseRed { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

        /* TOAST NOTIFICATION */
        #toast { position: fixed; top: 80px; left: 50%; transform: translate(-50%, -20px); background: #0F172A; color: #fff; padding: 12px 24px; border-radius: 50px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: 0.3s; z-index: 200; opacity: 0; pointer-events: none; }
        #toast.show { transform: translate(-50%, 0); opacity: 1; }

        /* BILHETE OCULTO */
        #hidden-ticket-container { position: fixed; top: -9999px; left: -9999px; z-index: -1; }
        .modern-ticket { width: 380px; background: #0f172a; border-radius: 24px; overflow: hidden; font-family: 'Plus Jakarta Sans', sans-serif; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); color: white; border: 1px solid #1e293b; }
        .ticket-header { background: linear-gradient(135deg, #0060b1 0%, #004e92 100%); padding: 25px; text-align: center; position: relative; }
        .ticket-logo-text { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; margin: 0; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
        .ticket-sub { font-size: 0.85rem; opacity: 0.9; margin-top: 5px; font-weight: 500; }
        .ticket-body { padding: 25px; background: #0f172a; position: relative; }
        .ticket-rip { position: absolute; bottom: -10px; width: 20px; height: 20px; background: #F8FAFC; border-radius: 50%; z-index: 10; }
        .rip-left { left: -10px; }
        .rip-right { right: -10px; }
        .ticket-divider { border-bottom: 2px dashed #334155; margin: 0 -25px 20px -25px; position: relative; top: -10px; }
        .tk-label { color: #94a3b8; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
        .tk-event { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: 20px; color: #fff; }
        .tk-choice-box { display: flex; justify-content: space-between; align-items: center; background: #1e293b; padding: 15px; border-radius: 12px; margin-bottom: 20px; border: 1px solid #334155; }
        .tk-choice-tag { font-size: 1.2rem; font-weight: 800; padding: 6px 16px; border-radius: 8px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
        .tk-values { display: flex; justify-content: space-between; margin-top: 10px; }
        .tk-val-box { text-align: center; flex: 1; }
        .tk-val-big { font-size: 1.2rem; font-weight: 700; display: block; }
        .tk-green { color: #4ade80; text-shadow: 0 0 10px rgba(74, 222, 128, 0.3); }
        .ticket-footer { background: #1e293b; padding: 20px; display: flex; align-items: center; gap: 15px; border-top: 1px solid #334155; }
        .qr-box { background: white; padding: 5px; border-radius: 8px; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; }
        .qr-box img { width: 100%; height: 100%; display: block; }
        .footer-text { flex: 1; }
        .footer-cta { font-weight: 800; color: #fff; font-size: 1rem; line-height: 1.2; margin-bottom: 4px; }
        .footer-link { color: #0060b1; font-weight: 600; font-size: 0.8rem; }
        /* --- ESTILO ESPECÍFICO: ELEIÇÕES --- */

/* Cabeçalho da Eleição (Bandeira) */
.election-header {
    background: #009c3b; /* Verde Brasil */
    padding: 30px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin: -90px -10px 20px -10px; /* Compensa o padding da home */
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
/* Losango Amarelo e Bola Azul (Simulado com CSS para ser leve) */
.election-header::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 200px; height: 200px;
    background: #ffdf00;
    z-index: 0;
}
.election-header::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    background: #002776;
    border-radius: 50%;
    z-index: 1;
    border: 4px solid white;
}
.election-title-box {
    position: relative; z-index: 2; margin-top: 20px;
}
.election-main-title {
    font-size: 1.4rem; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.3); line-height: 1.2;
}
.election-subtitle {
    background: #f1f5f9; color: #334155; display: inline-block;
    padding: 5px 15px; border-radius: 8px; font-size: 0.8rem; font-weight: 700;
    margin-top: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Card do Candidato */
.candidate-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.candidate-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.candidate-img {
    width: 50px; height: 50px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.candidate-name {
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
}

/* Barra de Chance */
.chance-row {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 5px; font-size: 0.9rem; font-weight: 700;
}
.chance-bar-container {
    height: 6px; width: 100%; background: #e2e8f0; border-radius: 10px;
    margin-bottom: 15px; overflow: hidden; display: flex;
}
.chance-fill-yes { height: 100%; background: #10B981; }
.chance-fill-no { height: 100%; background: #EF4444; }

/* Botões Estilo Eleição */
.election-actions {
    display: flex; gap: 10px;
}
.elec-btn {
    flex: 1;
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.1s;
}
.elec-btn:active { transform: scale(0.98); }
.elec-btn-yes { background: #10B981; box-shadow: 0 4px 0 #059669; }
.elec-btn-no { background: #EF4444; box-shadow: 0 4px 0 #b91c1c; }

.elec-odd-badge {
    background: rgba(255,255,255,0.9);
    color: #000;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
}

.elec-price-info {
    display: flex; justify-content: space-between;
    font-size: 0.75rem; font-weight: 600;
    margin-top: 8px; color: #64748B;
    padding: 0 5px;
}
.price-green { color: #059669; }
/* Botão Voltar nas Eleições */
.election-back {
    position: absolute;
    top: 20px; 
    left: 20px;
    background: rgba(255,255,255,0.25);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 10;
    display: flex; 
    align-items: center; 
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: 0.2s;
}
.election-back:active {
    background: rgba(255,255,255,0.4);
    transform: scale(0.95);
}
/* --- BANNER ROTATIVO --- */
.banner-container {
    margin: 15px 0 25px 0;
    width: 100%;
    overflow: hidden; /* Garante que nada vaze */
}

.banner-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px; /* Espaço entre os banners */
    scrollbar-width: none;
    padding: 0 5px; /* Pequeno respiro nas laterais */
}
.banner-wrapper::-webkit-scrollbar { display: none; }

.banner-slide {
    min-width: 100%; /* Ocupa 100% da largura da tela */
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    /* Removemos altura fixa para não esticar nem cortar */
}

.banner-slide img {
    width: 100%;
    height: auto; /* AQUI ESTÁ O SEGREDO: Altura automática */
    display: block;
    object-fit: contain; /* Garante que a imagem apareça inteira */
    border-radius: 16px;
    /* Removemos aspect-ratio forçado para aceitar qualquer formato */
}

/* Bolinhas de navegação */
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1; /* Cinza claro */
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.dot.active {
    background: #0060b1; /* Azul da sua marca */
    width: 24px;
    border-radius: 10px;
    opacity: 1;
}
/* --- CONFIGURAÇÕES BÁSICAS DO MODAL --- */
.overlay-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F1F5F9; /* Fundo base */
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.hidden { display: none !important; }

/* --- CABEÇALHO COM IMAGEM (HEADER) --- */
/* --- CABEÇALHO DA IMAGEM (HEADER) --- */
.detail-header-container {
    position: relative;
    width: 100%;
    height: 300px; /* Altura ideal para mostrar bem a foto */
    background: #000; /* Fundo preto caso a imagem demore a carregar */
    overflow: hidden;
    z-index: 1;
    /* Removemos o border-radius de baixo para o card branco fazer o efeito de encaixe */
    border-radius: 0; 
}

.detail-header-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;       /* Preenche todo o espaço sem esticar */
    object-position: top center; /* IMPORTANTE: Foca no ROSTO (parte de cima) */
    filter: none; /* Remove qualquer filtro escuro para a imagem ficar viva */
    opacity: 1;
}

/* --- BOTÃO VOLTAR (ESTILO BOLINHA BRANCA - VISÍVEL SEMPRE) --- */
.floating-back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 42px;
    height: 42px;
    background: #ffffff; /* Fundo Branco Sólido */
    color: #0F172A;      /* Ícone Preto */
    border-radius: 50%;  /* Redondo */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* Sombra forte para destacar */
    z-index: 50; /* Garante que fique acima de tudo */
    transition: transform 0.2s ease;
    border: none;
}

.floating-back-btn:active {
    transform: scale(0.9);
}

/* --- CARD DE CONTEÚDO (CORPO BRANCO QUE SOBE) --- */
.detail-content-card {
    position: relative;
    margin-top: -30px; /* Sobe levemente sobre a imagem (Efeito moderno) */
    background: #ffffff;
    border-radius: 24px 24px 0 0; /* Arredonda apenas as pontas de cima */
    padding: 25px 20px;
    z-index: 10;
    min-height: calc(100vh - 270px);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1); /* Sombra suave para separar da imagem */
}

/* --- ANIMAÇÃO DE PULSO (BOLINHA AO VIVO) --- */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* --- BOTÕES DE APOSTA (SIM/NÃO) --- */
.btn-neymar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.btn-neymar:active { transform: scale(0.97); }

/* ESTILOS PADRÃO */
.btn-neymar-yes { background: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
.btn-neymar-no { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }

/* ESTILOS QUANDO SELECIONADO */
.btn-neymar-yes.selected {
    background: #16A34A; color: white; border-color: #16A34A;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4); transform: scale(1.02);
}
.btn-neymar-no.selected {
    background: #DC2626; color: white; border-color: #DC2626;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4); transform: scale(1.02);
}

/* ESTILO APAGADO (QUANDO O OUTRO ESTÁ SELECIONADO) */
.btn-neymar.dimmed { opacity: 0.5; filter: grayscale(0.8); transform: scale(0.95); }

.icon-circle-check { font-size: 1.8rem; margin-bottom: 5px; }

.odd-pill-white {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 5px;
}
.btn-neymar:not(.selected) .odd-pill-white { background: rgba(0,0,0,0.05); color: inherit; }

/* --- INPUT DE VALOR --- */
.big-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    color: #0F172A;
    outline: none;
    margin: 20px 0;
}

/* --- BOTÃO PRINCIPAL (CONFIRMAR) --- */
.btn-main {
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: #0F172A;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.btn-main:active { transform: scale(0.98); }

/* --- BOTÕES SECUNDÁRIOS (FAVORITAR/LINK) --- */
.btn-secondary-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    color: #64748B;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}
.btn-secondary-action:active { background: #f8fafc; transform: scale(0.98); }
.btn-secondary-action.active-fav i { color: #F59E0B; }
.btn-secondary-action.active-fav { border-color: #F59E0B; }

/* --- LISTA DE HOLDERS (TITULARES) --- */
.holder-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f8fafc; }
.holder-user { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #334155; font-weight: 600; }
.holder-avatar { width: 24px; height: 24px; border-radius: 50%; }
.avatar-yes { background: #dcfce7; border: 1px solid #86efac; }
.avatar-no { background: #fee2e2; border: 1px solid #fca5a5; }
.holder-val { font-size: 0.85rem; font-weight: 700; }
.val-green { color: #16a34a; }
.val-red { color: #dc2626; }

/* --- FEED DE ATIVIDADE --- */
.activity-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.activity-badge { font-size: 0.7rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; }
.badge-buy-yes { background: #dcfce7; color: #15803d; }
.badge-buy-no { background: #fee2e2; color: #b91c1c; }
/* --- ESTILOS MODERNOS DO DETALHE (TIPO APP DE APOSTAS) --- */

/* Hero Image e Header */
.detail-header-wrapper {
    position: relative;
    width: 100%;
    height: 240px; /* Altura da imagem */
    overflow: hidden;
    background: #000;
}
.detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}
.detail-back-btn {
    position: absolute; top: 20px; left: 20px;
    width: 40px; height: 40px;
    background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10; color: #000;
}
.detail-balance-pill {
    position: absolute; top: 20px; right: 20px;
    background: #fff; padding: 5px 12px 5px 5px;
    border-radius: 50px; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 10; font-size: 0.85rem;
}
.icon-plus {
    width: 24px; height: 24px; background: #2563EB; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1rem;
}

/* Corpo do Conteúdo (Sobe por cima da imagem) */
.detail-content-body {
    position: relative;
    margin-top: -40px; /* Sobe por cima da imagem */
    background: #fff;
    border-radius: 30px 30px 0 0;
    padding: 30px 20px;
    min-height: 500px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}
.detail-main-title {
    font-size: 1.4rem; font-weight: 800;
    line-height: 1.3; margin-bottom: 20px;
    text-align: center; color: #0F172A;
}

/* Cards Sim/Não */
.outcome-selector {
    display: flex; gap: 15px; margin-bottom: 25px;
}
.outcome-card {
    flex: 1; padding: 25px 10px; border-radius: 16px;
    text-align: center; cursor: pointer;
    border: 2px solid transparent; transition