/* Mobile Landscape - Forçar visualização completa v3 */
@media screen and (max-height: 500px) and (orientation: landscape),
       screen and (max-device-height: 500px) and (orientation: landscape) {
    html, body {
        zoom: 0.8 !important;
    }
    
    /* Esconder área do histórico/lots para gráfico ocupar mais */
    .lots {
        display: none !important;
    }
    
    /* Gráfico ocupar altura total */
    .center, .chart_window, #placeholder_1, #placeholder_2,
    .tradingview-widget-container, .TVChartContainer {
        height: calc(100dvh - 60px) !important;
        max-height: calc(100dvh - 60px) !important;
    }
    
    /* Área central ocupar mais */
    .centroJal {
        height: calc(100dvh - 60px) !important;
    }
    
    /* Main sem espaço para lots */
    .main {
        height: 100dvh !important;
        padding-bottom: 0 !important;
    }
}

@media screen and (max-height: 450px) and (orientation: landscape) {
    html, body {
        zoom: 0.75 !important;
    }
}

@media screen and (max-height: 400px) and (orientation: landscape) {
    html, body {
        zoom: 0.7 !important;
    }
}


/* PATCH 2026-07-13: Fix Safari mobile - faixa branca em iPhone Pro Max */
@media screen and (orientation: landscape) {
    html, body {
        /* Usar dvh ao inves de vh - resolve toolbar dinamica Safari */
        min-height: 100dvh !important;
        height: 100dvh !important;
        overflow: hidden !important;
    }
    
    /* Safe area pra notch/home indicator */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        box-sizing: border-box;
    }
    
    /* Forcar background escuro caso apareca faixa */
    html {
        background: #0f1420 !important;
    }
}
