* { box-sizing: border-box; }

html {
    background: #0a0a0a;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: transparent;
    color: #fff;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-bottom: 64px;
    min-height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ============================================================
   ESCONDE TODAS AS SCROLLBARS DO APP
   ============================================================ */
::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; background: transparent !important; }
::-webkit-scrollbar-track { background: transparent !important; }
::-webkit-scrollbar-thumb { background: transparent !important; }
* { scrollbar-width: none !important; -ms-overflow-style: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

#app-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #0a0a0a;
    transition: background 0.9s ease;
    will-change: background;
}

#scroll-darkener {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    will-change: opacity;
}

#app-container {
    flex-grow: 1;
    padding-bottom: 32px;
    position: relative;
    z-index: 10;
}

/* ============================================================
   BLOQUEIO INICIAL: nada aparece até o login passar
   ============================================================ */
body:not(.app-ready) #app-container,
body:not(.app-ready) #bottom-nav,
body:not(.app-ready) #main-header,
body:not(.app-ready) #fab-comment { 
    display: none !important; 
}
body:not(.app-ready) #splash-screen { 
    display: flex !important; 
}
