/* ===================================
   LAYOUT PROFISSIONAL - CORRIDAS
   Estilo Bet365 / Sites de Apostas
=================================== */

.body-dark {
    background-color: #1a1a1a !important;
    color: #e0e0e0;
}

/* ===================================
   NAVBAR PROFISSIONAL
=================================== */
.navbar-pro {
    background: linear-gradient(180deg, #0a1f14 0%, #0d2818 100%);
    border-bottom: 2px solid #d4af37;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    color: #d4af37;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* ===================================
   LAYOUT PRINCIPAL (3 COLUNAS)
=================================== */
.main-layout {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

/* ===================================
   SIDEBAR ESQUERDA - FILTROS
=================================== */
.sidebar-left {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 15px;
    height: fit-content;
    position: sticky;
    top: 80px;
    border: 1px solid #2a2a2a;
}

/* Desktop: Filtros sempre abertos */
@media (min-width: 769px) {
    .filtros-content {
        display: block !important;
    }
}

.sidebar-header {
    color: #d4af37;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4af37;
}

/* Toggle Filtros */
.filtro-toggle {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    color: #0d2818;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtro-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.filtro-toggle i {
    transition: transform 0.3s;
}

.filtros-content {
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.5px;
}

.form-control-dark {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-size: 0.95rem;
}

.form-control-dark:focus {
    background: #333;
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.btn-refresh {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    color: #0d2818;
    padding: 12px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* ===================================
   CONTEÚDO PRINCIPAL
=================================== */
.content-main {
    min-height: calc(100vh - 120px);
}

.page-header {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #d4af37;
}

.page-title {
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.page-subtitle {
    color: #888;
    margin: 5px 0 0 0;
    font-size: 0.95rem;
}

.corridas-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ===================================
   CARDS DE CORRIDA - ESTILO BET365
=================================== */
.corrida-card-bet {
    background: #1e1e1e;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    overflow: hidden;
    transition: all 0.3s;
}

.corrida-card-bet:hover {
    border-color: #d4af37;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
    transform: translateX(3px);
}

.corrida-card-header-bet {
    background: linear-gradient(90deg, #0d2818 0%, #1a4d3a 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d4af37;
}

.corrida-titulo-bet {
    color: #d4af37;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.corrida-titulo-bet i {
    font-size: 1.2rem;
}

.badge-status-bet {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-aberta {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.badge-ao-vivo {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
    animation: pulse-badge 1.5s ease-in-out infinite;
}

.badge-finalizada {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid #9e9e9e;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.corrida-info-bet {
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #2a2a2a;
    background: rgba(0, 0, 0, 0.2);
}

.info-inline {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-inline i {
    color: #d4af37;
    font-size: 0.85rem;
}

/* Manter os antigos para compatibilidade */
.info-item-bet {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label-bet {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value-bet {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.95rem;
}

.info-value-bet i {
    color: #d4af37;
    margin-right: 5px;
}

.corrida-pilotos-bet {
    padding: 15px;
    width: 100%;
}

.piloto-item-bet {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid #333;
}

.piloto-item-bet:hover {
    background: #333;
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.piloto-header-bet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.piloto-info-bet {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.piloto-numero-bet {
    background: #d4af37;
    color: #0d2818;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.piloto-nome-bet {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.piloto-odds-container {
    display: flex;
    gap: 8px;
}

.odd-box {
    flex: 1;
    background: linear-gradient(135deg, #2f2f2f 0%, #252525 100%);
    border: 2px solid #444;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.odd-box:hover {
    border-color: #d4af37;
    background: linear-gradient(135deg, #353535 0%, #2d2d2d 100%);
    transform: translateY(-2px);
}

.odd-box-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    letter-spacing: 0.5px;
}

.piloto-odd-bet {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0d2818;
    padding: 6px 14px;
    border-radius: 5px;
    font-weight: 900;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    display: inline-block;
}



.piloto-odd-bet.odd-mudou {
    animation: pulseOdd 1s ease-in-out;
    background: #28a745 !important;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.7);
}

@keyframes pulseOdd {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
    }
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .corrida-pilotos-bet {
        grid-template-columns: 1fr;
    }
    
    .piloto-odds-container {
        flex-direction: column;
    }
    
    .odd-box {
        width: 100%;
    }
}

/* ===================================
   SIDEBAR DIREITA - WIDGETS
=================================== */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.saldo-widget {
    background: linear-gradient(135deg, #0d2818 0%, #1a4d3a 100%);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
    position: sticky;
    top: 80px;
}

.saldo-label {
    color: #f4d03f;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.saldo-valor-display {
    color: #d4af37;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.saldo-acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.saldo-acoes .btn {
    font-weight: 700;
    padding: 12px;
    border-radius: 5px;
}

.info-widget {
    background: #1e1e1e;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    overflow: hidden;
}

.info-widget-header {
    background: #2a2a2a;
    color: #d4af37;
    padding: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid #3a3a3a;
}

.info-widget-body {
    padding: 15px;
}

.premio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.premio-item:last-child {
    border-bottom: none;
}

.premio-nome {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.9rem;
}

.premio-valor {
    color: #4caf50;
    font-weight: 700;
    font-size: 0.95rem;
}

.hot-race {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 5px;
}

.hot-race span {
    color: #e0e0e0;
    flex: 1;
}

.badge-hot {
    background: #d4af37;
    color: #0d2818;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===================================
   MODAL DARK
=================================== */
.modal-dark {
    background: #1e1e1e;
    border: 2px solid #d4af37;
}

.modal-header-dark {
    background: linear-gradient(135deg, #0d2818 0%, #1a4d3a 100%);
    border-bottom: 2px solid #d4af37;
    padding: 20px;
}

.modal-title-dark {
    color: #d4af37;
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-body-dark {
    background: #1e1e1e;
    padding: 25px;
    color: #e0e0e0;
}

.modal-body-dark .form-label {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-body-dark .form-select,
.modal-body-dark .form-control {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
}

.modal-body-dark .form-select:focus,
.modal-body-dark .form-control:focus {
    background: #333;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* ===================================
   RESPONSIVO
=================================== */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }
    
    .sidebar-left,
    .sidebar-right {
        position: relative;
        top: auto;
    }
    
    .sidebar-left {
        grid-column: 1;
        grid-row: 1;
    }
    
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile - COMPACTO */
    .navbar-pro {
        position: relative;
    }
    
    .navbar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .logo-link {
        flex-shrink: 0;
    }
    
    .logo-link img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
    
    .nav-links {
        display: flex;
        gap: 6px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        padding: 6px 10px;
        font-size: 0.75rem;
        text-align: center;
        white-space: nowrap;
        border-radius: 4px;
    }
    
    .nav-links a i {
        display: none; /* Esconde ícones para economizar espaço */
    }
    
    /* Layout Principal Mobile */
    .main-layout {
        padding: 8px;
        gap: 10px;
    }
    
    /* Sidebar Filtros Mobile - COMPACTO */
    .sidebar-left {
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .filtro-toggle {
        padding: 10px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .filtro-toggle span {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .filtros-content {
        padding-top: 5px;
    }
    
    .filter-group {
        margin-bottom: 10px;
    }
    
    .filter-group label {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }
    
    .form-control-dark {
        font-size: 14px;
        padding: 8px 10px;
        border-radius: 4px;
    }
    
    .btn-refresh {
        padding: 10px;
        font-size: 0.85rem;
        border-radius: 4px;
    }
    
    /* Page Header Mobile - COMPACTO */
    .page-header {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .page-title i {
        font-size: 1rem;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    /* Cards de Corrida Mobile - COMPACTO */
    .corrida-card-bet {
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .corrida-card-header-bet {
        padding: 10px 12px;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
    }
    
    .corrida-titulo-bet {
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .corrida-titulo-bet i {
        font-size: 0.9rem;
    }
    
    .badge-status-bet {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
    
    .corrida-info-bet {
        padding: 8px 12px;
        gap: 12px;
        flex-direction: column;
    }
    
    .info-inline {
        font-size: 0.8rem;
    }
    
    .info-inline i {
        font-size: 0.75rem;
    }
    
    /* Pilotos Grid Mobile - COMPACTO */
    .corrida-pilotos-bet {
        padding: 10px 12px;
        width: 100%;
    }
    
    .piloto-item-bet {
        padding: 10px;
        border-radius: 6px;
    }
    
    .piloto-numero-bet {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .piloto-nome-bet {
        font-size: 0.85rem;
    }
    
    .piloto-odd-bet {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    /* Baterias Mobile - COMPACTO */
    .baterias-tabs {
        gap: 6px;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }
    
    .bateria-tab {
        padding: 6px 10px;
        font-size: 0.75rem;
        flex: 1;
        text-align: center;
        min-width: 70px;
    }
}

/* Mobile Extra Small (< 480px) - ULTRA COMPACTO */
@media (max-width: 480px) {
    .navbar-content {
        padding: 8px 10px;
    }
    
    .logo-link img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 0.85rem;
    }
    
    .nav-links {
        gap: 4px;
    }
    
    .nav-links a {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    
    .main-layout {
        padding: 6px;
    }
    
    .sidebar-left {
        padding: 8px;
    }
    
    .filtro-toggle {
        padding: 8px 10px;
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .filtro-toggle i {
        font-size: 0.7rem;
    }
    
    .filtros-content {
        padding-top: 4px;
    }
    
    .filter-group {
        margin-bottom: 8px;
    }
    
    .filter-group label {
        font-size: 0.65rem;
    }
    
    .form-control-dark {
        font-size: 13px;
        padding: 7px 8px;
    }
    
    .btn-refresh {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .page-header {
        padding: 10px;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .page-subtitle {
        font-size: 0.75rem;
    }
    
    .corrida-card-header-bet {
        padding: 8px 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .corrida-titulo-bet {
        font-size: 0.85rem;
    }
    
    .badge-status-bet {
        padding: 3px 8px;
        font-size: 0.6rem;
    }
    
    .corrida-info-bet {
        gap: 8px;
        padding: 6px 10px;
        flex-direction: column;
    }
    
    .info-inline {
        font-size: 0.75rem;
    }
    
    .info-inline i {
        font-size: 0.7rem;
    }
    
    .corrida-pilotos-bet {
        padding: 8px 10px;
        width: 100%;
    }
    
    .piloto-item-bet {
        padding: 8px;
    }
    
    .piloto-numero-bet {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .piloto-nome-bet {
        font-size: 0.8rem;
    }
    
    .piloto-odd-bet {
        padding: 5px 8px;
        font-size: 0.85rem;
    }
    
    .bateria-tab {
        font-size: 0.7rem;
        padding: 5px 8px;
        min-width: 60px;
    }
}

/* ===================================
   ODDS DINÂMICAS - ANIMAÇÃO
=================================== */
.badge-cotacao {
    transition: all 0.3s ease;
}

.badge-cotacao.odd-mudou {
    animation: pulseOdd 1s ease-in-out;
    background-color: #28a745 !important;
    transform: scale(1.1);
}

@keyframes pulseOdd {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 15px 5px rgba(40, 167, 69, 0.4);
    }
}

/* Indicador de atualização ao vivo */
.odds-atualizando {
    position: relative;
}

.odds-atualizando::after {
    content: '●';
    position: absolute;
    top: -5px;
    right: -5px;
    color: #28a745;
    animation: blink 1s infinite;
    font-size: 10px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===================================
   MODAL DE APOSTA - LAYOUT COMPACTO
=================================== */
.aposta-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #0d2818 0%, #1a4d3a 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #d4af37;
}

.aposta-corrida-nome {
    color: #d4af37;
    font-weight: 700;
    font-size: 1.1rem;
}

.aposta-corrida-local {
    color: #f4d03f;
    font-size: 0.9rem;
}

.aposta-tipo-box {
    background: #2a2a2a;
    padding: 12px 15px;
    border-radius: 6px;
    color: #d4af37;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #3a3a3a;
}

/* Grid de Pilotos Compacto */
.pilotos-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    max-height: 350px;
    overflow-y: auto;
    padding: 5px;
}

/* Scrollbar customizado */
.pilotos-grid-compact::-webkit-scrollbar {
    width: 8px;
}

.pilotos-grid-compact::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

.pilotos-grid-compact::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

.pilotos-grid-compact::-webkit-scrollbar-thumb:hover {
    background: #f4d03f;
}

.piloto-card-compact {
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.piloto-card-compact:hover {
    background: #333;
    border-color: #d4af37;
    transform: translateY(-2px);
}

.piloto-card-compact.selected {
    background: linear-gradient(135deg, #0d2818 0%, #1a4d3a 100%);
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.piloto-num-compact {
    background: #d4af37;
    color: #0d2818;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
}

.piloto-card-compact.selected .piloto-num-compact {
    background: #f4d03f;
    box-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
}

.piloto-nome-compact {
    flex: 1;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.9rem;
}

.piloto-odd-compact {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0d2818;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Valores lado a lado */
.aposta-valores-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.valor-input-box,
.retorno-box-compact {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 15px;
}

.valor-input-box label,
.retorno-box-compact label {
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.input-valor-compact {
    width: 100%;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.input-valor-compact:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.valor-input-box small {
    color: #888;
    font-size: 0.75rem;
}

.retorno-valor-compact {
    color: #4caf50;
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    padding: 10px 0;
}

/* Botão confirmar */
.btn-confirmar-compact {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    color: #0d2818;
    padding: 16px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-confirmar-compact:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-confirmar-compact:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===================================
   LAYOUT MINI - PILOTO SELECIONADO
=================================== */
.aposta-mini-header {
    background: linear-gradient(135deg, #0d2818 0%, #1a4d3a 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #d4af37;
    text-align: center;
    color: #d4af37;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.piloto-selecionado-box {
    background: linear-gradient(135deg, #0d2818 0%, #1a4d3a 100%);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.piloto-sel-num {
    background: #d4af37;
    color: #0d2818;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.piloto-sel-nome {
    flex: 1;
    color: #e0e0e0;
    font-weight: 700;
    font-size: 1.2rem;
}

.piloto-sel-odd {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0d2818;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.btn-trocar-piloto {
    background: #3a3a3a;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-trocar-piloto:hover {
    background: #d4af37;
    color: #0d2818;
}

/* Inputs Mini */
.valores-mini-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.mini-input-group,
.mini-retorno-group {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.mini-input-group label,
.mini-retorno-group label {
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.mini-input-valor {
    width: 100%;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.mini-input-valor:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.mini-retorno-valor {
    color: #4caf50;
    font-size: 1.5rem;
    font-weight: 900;
}

.btn-confirmar-mini {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    color: #0d2818;
    padding: 15px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-confirmar-mini:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-confirmar-mini:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsivo para modal */
@media (max-width: 768px) {
    /* Modal Mobile - COMPACTO */
    .modal-dialog {
        margin: 8px;
        max-width: calc(100% - 16px);
    }
    
    .modal-header-dark {
        padding: 10px 12px;
    }
    
    .modal-title-dark {
        font-size: 0.95rem;
    }
    
    .modal-title-dark i {
        font-size: 0.9rem;
    }
    
    .modal-body-dark {
        padding: 12px;
    }
    
    /* Header do Modal - COMPACTO */
    .aposta-mini-header {
        flex-direction: row;
        gap: 6px;
        padding: 8px 10px;
        font-size: 0.75rem;
        justify-content: space-between;
    }
    
    .aposta-header-info {
        flex-direction: row;
        gap: 6px;
        text-align: center;
        padding: 8px 10px;
        justify-content: space-between;
        font-size: 0.8rem;
    }
    
    .aposta-corrida-nome {
        font-size: 0.85rem;
    }
    
    /* Grid de Pilotos Mobile - COMPACTO */
    .pilotos-grid-compact {
        grid-template-columns: 1fr;
        max-height: 250px;
        gap: 6px;
    }
    
    .piloto-card-compact {
        padding: 8px 10px;
    }
    
    .piloto-num-compact {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .piloto-nome-compact {
        font-size: 0.8rem;
    }
    
    .piloto-odd-compact {
        padding: 5px 8px;
        font-size: 0.85rem;
    }
    
    /* Piloto Selecionado Mobile - COMPACTO */
    .piloto-selecionado-box {
        padding: 10px;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
    }
    
    .piloto-sel-num {
        width: 35px;
        height: 35px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    
    .piloto-sel-nome {
        font-size: 0.85rem;
        text-align: left;
        flex: 1;
        order: 0;
    }
    
    .piloto-sel-odd {
        font-size: 1rem;
        padding: 6px 12px;
        order: 0;
        flex-shrink: 0;
    }
    
    .btn-trocar-piloto {
        order: 0;
        width: auto;
        padding: 6px 10px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    /* Valores Mobile - COMPACTO */
    .aposta-valores-row,
    .valores-mini-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .mini-input-group,
    .mini-retorno-group {
        padding: 10px;
    }
    
    .mini-input-group label,
    .mini-retorno-group label {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }
    
    .mini-input-valor,
    .input-valor-compact {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 10px;
    }
    
    .mini-retorno-valor,
    .retorno-valor-compact {
        font-size: 1.2rem;
    }
    
    /* Botões Mobile - COMPACTO */
    .btn-confirmar-mini,
    .btn-confirmar-compact {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Modal Extra Small - ULTRA COMPACTO */
@media (max-width: 480px) {
    .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .modal-header-dark,
    .modal-body-dark {
        padding: 10px;
    }
    
    .modal-title-dark {
        font-size: 0.9rem;
    }
    
    .aposta-mini-header {
        font-size: 0.7rem;
        padding: 8px;
    }
    
    .aposta-header-info {
        font-size: 0.75rem;
        padding: 8px;
    }
    
    .pilotos-grid-compact {
        max-height: 200px;
        gap: 5px;
    }
    
    .piloto-card-compact {
        padding: 6px 8px;
    }
    
    .piloto-num-compact {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .piloto-nome-compact {
        font-size: 0.75rem;
    }
    
    .piloto-odd-compact {
        padding: 4px 6px;
        font-size: 0.8rem;
    }
    
    .piloto-selecionado-box {
        padding: 8px;
        gap: 6px;
    }
    
    .piloto-sel-num {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .piloto-sel-nome {
        font-size: 0.8rem;
    }
    
    .piloto-sel-odd {
        font-size: 0.95rem;
        padding: 5px 10px;
    }
    
    .btn-trocar-piloto {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
    
    .valores-mini-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .mini-input-group,
    .mini-retorno-group {
        padding: 8px;
    }
    
    .mini-input-group label,
    .mini-retorno-group label {
        font-size: 0.7rem;
    }
    
    .mini-input-valor {
        font-size: 16px;
        padding: 8px;
    }
    
    .mini-retorno-valor {
        font-size: 1.1rem;
    }
    
    .btn-confirmar-mini {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* ===================================
   MELHORIAS MOBILE TOUCH
=================================== */
@media (max-width: 768px) {
    /* Remove hover effects que não funcionam bem no touch */
    .piloto-item-bet:hover,
    .piloto-card-compact:hover {
        transform: none;
    }
    
    /* Área de toque maior para botões */
    .piloto-item-bet,
    .piloto-card-compact,
    .bateria-tab {
        min-height: 48px; /* Recomendação Apple/Google para touch targets */
    }
    
    /* Feedback visual melhor para toque */
    .piloto-item-bet:active,
    .piloto-card-compact:active {
        background: #333;
        transform: scale(0.98);
        transition: all 0.1s;
    }
    
    .btn-refresh:active,
    .btn-confirmar-mini:active,
    .btn-confirmar-compact:active {
        transform: scale(0.98);
    }
    
    /* Scrolling suave */
    .corridas-container,
    .pilotos-grid-compact,
    .baterias-container {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Evita zoom em inputs no Safari iOS */
    input[type="text"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Melhor legibilidade mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Evita seleção acidental de texto */
    .piloto-item-bet,
    .piloto-card-compact,
    .bateria-tab,
    .btn-refresh,
    .btn-confirmar-mini {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
        user-select: none;
        -webkit-user-select: none;
    }
}

/* ===================================
   TABELA DE PILOTOS E ODDS
=================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-pilotos-bet {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    table-layout: auto;
}

.table-pilotos-bet thead {
    background: linear-gradient(135deg, #0d2818 0%, #1a4d3a 100%);
}

.table-pilotos-bet thead th {
    color: #d4af37;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 12px;
    border-bottom: 2px solid #d4af37;
}

.table-pilotos-bet tbody tr {
    border-bottom: 1px solid #333;
    transition: all 0.3s;
}

.table-pilotos-bet tbody tr:last-child {
    border-bottom: none;
}

.table-pilotos-bet tbody tr:hover {
    background: #333;
}

.piloto-nome-cell {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    width: 50%;
}

.piloto-numero-badge {
    background: #d4af37;
    color: #0d2818;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
}

.odd-cell {
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    width: 25%;
}

.odd-cell:not(.odd-disabled):hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.odd-cell.odd-disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.odd-value {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0d2818;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s;
}

.odd-cell:not(.odd-disabled):hover .odd-value {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.odd-disabled .odd-value {
    background: #555;
    color: #999;
}

.odd-value.odd-mudou {
    animation: pulseOdd 1s ease-in-out;
    background: #28a745 !important;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.7);
}

/* Responsivo Mobile - Tabela */
@media (max-width: 768px) {
    .table-pilotos-bet thead th {
        font-size: 0.7rem;
        padding: 10px 8px;
    }
    
    .piloto-nome-cell {
        padding: 10px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .piloto-numero-badge {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .odd-cell {
        padding: 10px 8px;
    }
    
    .odd-value {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .table-pilotos-bet thead th {
        font-size: 0.65rem;
        padding: 8px 6px;
    }
    
    .piloto-nome-cell {
        padding: 8px 10px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .piloto-numero-badge {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .odd-cell {
        padding: 8px 6px;
    }
    
    .odd-value {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

