/* =========================================================
   GUIA RÁPIDO DO PLANTONISTA - STYLE.CSS (V8.0)
   ========================================================= */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } -->
:root {
    --cor-principal: #0052cc;
    --cor-principal-suave: #eef4ff;
    /* ALTERAÇÃO: Fundo agora é Branco Puro para sumir com as divisões */
    --cor-fundo: #ffffff; 
    --cor-surface: #ffffff;
    
   --cor-texto: #1f2937;
    --cor-borda: #e2e8f0;
  --cor-sucesso: #10b981;

  /* Cores de Badges/Alertas */
  --bg-dose: #e0f2fe; --txt-dose: #0369a1;
  --bg-alerta: #fffbeb; --txt-alerta: #92400e; 
  --bg-perigo: #fef2f2; --txt-perigo: #991b1b;
  --bg-ev: #fee2e2;   --txt-ev: #b91c1c;
  
  /* Filtros para SVG */
  --filter-icon-primary: invert(21%) sepia(93%) saturate(1832%) hue-rotate(203deg) brightness(91%) contrast(101%);
  --filter-icon-gray: invert(48%) sepia(12%) saturate(568%) hue-rotate(182deg) brightness(93%) contrast(87%);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; outline: none; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--cor-fundo); 
    color: var(--cor-texto); 
    line-height: 1.6; 
    padding-bottom: 80px; /* Espaço Bottom Bar */
}/* Configurações para o tema escuro */
body.dark-mode {
    --cor-principal: #60a5fa; /* Azul mais claro */
    --cor-principal-suave: #1e293b;
    --cor-fundo: #0f172a; /* Fundo muito escuro (quase preto) */
    --cor-surface: #1e293b; /* Cartões em cinza escuro */
    --cor-texto: #f1f5f9;
    --cor-borda: #334155;
    
    /* Ajuste de cores de badges para não doer o olho */
    --bg-dose: #1e3a8a; --txt-dose: #bae6fd;
    --bg-alerta: #451a03; --txt-alerta: #fcd34d;
    --bg-perigo: #450a0a; --txt-perigo: #fca5a5;
}

/* Ícones brancos no modo escuro */
body.dark-mode .nav-icon-btn svg { stroke: #94a3b8; }
body.dark-mode .nav-icon-btn.active svg { stroke: #60a5fa; color: #60a5fa; }
body.dark-mode .calc-input {
    background: #334155; color: white; border-color: #475569;
}

/* SPLASH SCREEN */
#splash-screen {
  position: fixed; inset: 0; background: var(--cor-surface); z-index: 9999; 
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
#splash-screen.hide { opacity: 0; pointer-events: none; }
.progress-bar { width: 200px; height: 4px; background: var(--cor-borda); overflow: hidden; border-radius: 2px; }
.progress-bar::after { content: ""; display: block; width: 50%; height: 100%; background: var(--cor-principal); animation: loading 1s infinite ease-in-out; }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

/* --- HEADER --- */
.header { 
    background: var(--cor-surface); padding: 10px 20px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; 
}
.logo-img { max-height: 80px; width: auto; display: block; cursor: pointer; }

/* --- HOME NAVIGATION & BUSCA --- */
.main-content { padding: 20px; max-width: 800px; margin: 0 auto; width: 100%; }
.content-wrapper { 
    background: var(--cor-surface); border-radius: 16px; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); padding: 20px; 
    animation: fadeIn 0.3s ease; position: relative; 
}

.home-search input {
    width: 100%; padding: 14px 15px 14px 45px; border-radius: 12px; border: 1px solid var(--cor-borda);
    font-size: 1rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' /%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 12px center; background-size: 20px;
}
/* Remove X do search no Chrome */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { display: none; }

.home-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.5rem; }
.home-nav-btn {
    background: #fff; border: 1px solid var(--cor-borda); border-radius: 12px; padding: 1.5rem 1rem;
    display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); font-weight: 600; color: var(--cor-principal); transition: 0.2s;
}
.home-nav-btn:active { transform: scale(0.98); background: var(--cor-principal-suave); }
.icon-svg { width: 32px; height: 32px; filter: var(--filter-icon-primary); object-fit: contain; }

/* --- CATEGORIAS & ACORDEÃO --- */
.category-group { margin-bottom: 12px; border: 1px solid var(--cor-borda); border-radius: 12px; overflow: hidden; background: #fff; }
.botao-categoria {
    width: 100%; padding: 16px; border: none; background: transparent; text-align: left;
    display: flex; align-items: center; justify-content: space-between; cursor: pointer;
    font-weight: 600; font-size: 1rem; color: var(--cor-texto);
}
.botao-categoria:active { background-color: var(--cor-fundo); }
.botao-categoria::after {
  content: none !important;; font-size: 1.5rem; color: #9ca3af; transition: 0.3s; line-height: 0; }
.category-group.open .botao-categoria::after { transform: rotate(90deg); color: var(--cor-principal); }
.category-group.open .botao-categoria { background-color: var(--cor-principal-suave); }

.cat-icon { width: 24px; height: 24px; margin-right: 10px; filter: var(--filter-icon-primary); }
.painel-itens { display: none; background-color: #fff; border-top: 1px solid var(--cor-borda); }
.category-group.open .painel-itens { display: block; }

.item-btn {
    display: block; width: 100%; padding: 14px 20px; border: none; background: transparent;
    text-align: left; font-size: 0.95rem; border-bottom: 1px solid #f1f5f9; cursor: pointer; color: #4b5563;
}
.item-btn:last-child { border-bottom: none; }
.item-btn:hover { color: var(--cor-principal); background-color: #f8fafc; }

/* --- BULAS E PROTOCOLOS --- */
.drug-section { margin-bottom: 20px; }
.drug-label { 
    font-size: 0.8rem; font-weight: 700; color: var(--cor-texto-suave); 
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { 
    background: #f1f5f9; color: #334155; padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; border: 1px solid #e2e8f0; 
}

/* Alerts */
.alerta { 
    display: flex; align-items: start; gap: 12px; padding: 12px; margin: 10px 0; 
    border-radius: 8px; font-size: 0.95rem; border-left: 4px solid transparent; 
}
.alerta-aviso { background: var(--bg-alerta); border-left-color: #f59e0b; color: var(--txt-alerta); }
.alerta-perigo { background: var(--bg-perigo); border-left-color: #ef4444; color: var(--txt-perigo); }
.alerta-icone-svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }

/* Badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; margin: 0 2px; }
.badge-dose { background: var(--bg-dose); color: var(--txt-dose); }
.badge-ev { background: var(--bg-ev); color: var(--txt-ev); }
.badge-cat { background: #eef2ff; color: #4f46e5; font-size: 0.75rem; margin-left: 5px; }

/* Segurança Grid */
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.safety-item { border: 1px solid #bbf7d0; background: #f0fdf4; padding: 10px; border-radius: 8px; text-align: center; font-size: 0.9rem; color: #166534; }
.safety-item.risk { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }

/* --- CALCULADORA --- */
.calc-box { margin-top: 10px; }
.calc-input-group { margin-bottom: 15px; }
.calc-input-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }

.calc-input { 
    width: 100%; padding: 14px; font-size: 1.1rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #333;
}
/* Remover setas de numero */
.calc-input::-webkit-outer-spin-button, .calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input[type=number] { -moz-appearance: textfield; }

.calc-live-result {
    margin-top: 20px; padding: 20px; border-radius: 12px; text-align: center; 
    background: var(--cor-principal-suave); border: 2px solid var(--cor-principal); display: none;
}
.calc-live-value { font-size: 2.5rem; font-weight: 800; color: var(--cor-principal); display: block; line-height: 1.2; }
.copy-btn { 
    margin-top: 10px; padding: 8px 16px; background: transparent; border: 1px solid var(--cor-principal); 
    color: var(--cor-principal); border-radius: 20px; cursor: pointer; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; 
}
.copy-btn:active { background: var(--cor-principal); color: white; }

/* --- BARRA INFERIOR MOBILE --- */
.bottom-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background: #fff;
    border-top: 1px solid #e2e8f0; display: flex; justify-content: space-around; align-items: center;
    z-index: 5000; box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.05); padding-bottom: env(safe-area-inset-bottom);
}
.nav-icon-btn { 
    background: none; border: none; color: var(--cor-texto-suave); display: flex; flex-direction: column; align-items: center; 
    font-size: 0.75rem; font-weight: 500; width: 25%; cursor: pointer;
}
.nav-icon-btn svg { width: 24px; height: 24px; stroke-width: 2px; opacity: 0.7; margin-bottom: 2px; }
.nav-icon-btn.active { color: var(--cor-principal); }
.nav-icon-btn.active svg { opacity: 1; transform: translateY(-2px); stroke: var(--cor-principal); }

/* SCROLL TOP */
.scroll-top-btn {
    position: fixed; bottom: 80px; right: 20px; width: 45px; height: 45px;
    background: var(--cor-principal); color: white; border: none; border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); cursor: pointer; font-size: 1.2rem; z-index: 4000;
    opacity: 0; pointer-events: none; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center;
}
.scroll-top-btn.show { opacity: 1; pointer-events: auto; }

/* MEDIA QUERIES */
@media (min-width: 769px) {
    .bottom-bar { display: none; } /* Esconde no PC */
    .main-content { padding: 40px 20px; }
}
@media (max-width: 768px) {
    .home-nav { grid-template-columns: 1fr; } /* Home com 1 coluna no mobile */
    .logo-img { max-height: 40px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }#splash-screen img {
  width: 180px;
  opacity: 0.95;
  border-radius: 20px;
  margin-bottom: 1rem;
}/* Fundo escuro que cobre a tela inteira */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fundo bem escuro para focar */
    z-index: 9999; /* Fica acima de tudo */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Classe para mostrar o modal via JS */
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* A caixa branca do aviso */
.modal-box {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    text-align: center;
    border-top: 6px solid #dc3545; /* Linha vermelha no topo para alerta */
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    color: #dc3545; /* Cor vermelha */
}

.modal-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.modal-body p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.modal-btn {
    background-color: #0d6efd; /* Azul padrão bootstrap ou sua cor principal */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background 0.2s;
}

.modal-btn:hover {
    background-color: #0b5ed7;
}/* TELA DE LOGIN (Correção Visual) */
.login-overlay {
    position: fixed;       /* Fixa na tela, por cima de tudo */
    top: 0;
    left: 0;
    width: 100vw;          /* Largura total */
    height: 100vh;         /* Altura total */
    background-color: #f8fafc; /* Cor de fundo sólida (não transparente) */
    z-index: 100000;       /* Garante que fique acima de tudo */
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;      /* Permite rolar se a tela for pequena */
}

/* Caixa Branca do Login */
.login-box {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid #e2e8f0;
}

/* Esconde o app enquanto carrega ou não loga */
body.loading #main-content,
body.loading header,
body.loading nav,
body.loading #scrollTopBtn {
    display: none !important;
}/* ====== AUTH - iOS GLASS THEME ====== */

/* Container */
.auth-overlay {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f7fbff 0%, #f3f7fb 100%);
  padding: 40px 20px;
  transition: background .3s ease;
}

/* Card geral (mesma largura do mock) */
.auth-card {
  width: 380px;
  max-width: 94%;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.7);
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.60));
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity .25s ease;
  opacity: 0;
  transform: translateY(8px) scale(.995);
}

/* Make the visible card */
.auth-card.show { opacity: 1; transform: translateY(0) scale(1); }

/* Card top (logo) */
.card-top { display:flex; justify-content:center; margin-bottom: 6px; }
.auth-logo { max-height:46px; opacity:0.95; }

/* Titles */
.auth-title { text-align:center; margin:8px 0 2px; font-size:1.08rem; color:#0f172a; font-weight:700; }
.auth-sub { text-align:center; margin:0 0 16px; font-size:0.9rem; color:#475569; }

/* Inputs */
.auth-form { display:block; }
.input-label { display:block; font-size:0.85rem; color:#475569; margin-bottom:6px; }
.auth-input {
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,0.06);
  background: rgba(255,255,255,0.75);
  box-shadow: inset 0 -1px 0 rgba(15,23,42,0.02);
  font-size:0.96rem;
  outline:none;
  transition: box-shadow .15s ease, transform .12s ease, border-color .12s ease;
}
.auth-input:focus {
  box-shadow: 0 6px 18px rgba(14,165,233,0.08);
  border-color: rgba(14,165,233,0.6);
  transform: translateY(-1px);
}

/* Buttons */
.btn { display:inline-block; padding:11px 14px; border-radius:10px; cursor:pointer; border: none; font-weight:700; font-size:0.95rem; }
.btn.primary { width:100%; background: linear-gradient(180deg, #0078ff 0%, #005bff 100%); color:#fff; box-shadow: 0 8px 20px rgba(0,90,255,0.12); }
.btn.ghost { width:100%; background: transparent; border: 1px solid rgba(15,23,42,0.06); color:#0f172a; margin-top:8px; }

/* Small buttons */
.btn.small { padding:6px 10px; font-size:0.85rem; border-radius:8px; }

/* Actions */
.auth-actions { margin-top:12px; display:flex; gap:10px; flex-direction:column; }

/* Link */
.auth-link { display:block; text-align:center; margin-top:10px; color:#2563eb; font-size:0.9rem; text-decoration:none; }


/* password meta */
.password-meta { display:flex; align-items:center; gap:12px; margin-top:8px; }
.pwd-strength { font-size:0.84rem; color:#475569; padding:6px 8px; border-radius:8px; background:rgba(15,23,42,0.02); }

/* terms */
.terms-row { display:flex; align-items:center; margin-top:10px; color:#475569; font-size:0.92rem; }

/* error */
.auth-error { color:#b91c1c; font-size:0.85rem; margin-top:6px; }

/* Responsive */
@media (max-width:480px) {
  .auth-card { width: 92%; padding:18px; border-radius:14px; }
  .avatar-preview { width:64px; height:64px; }
  .auth-title { font-size:1rem; }
}

/* Dark mode (prefers) */
@media (prefers-color-scheme: dark) {
  .auth-overlay { background: linear-gradient(180deg,#0b1220 0%, #061022 100%); }
  .auth-card {
    background: linear-gradient(180deg, rgba(10,14,20,0.52), rgba(6,10,16,0.48));
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  }
  .auth-title, .auth-sub, .input-label, .pwd-strength { color: #d1d5db; }
  .auth-input { background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.04); color:#e6eef8; }
  .btn.ghost { border-color: rgba(255,255,255,0.06); color:#e6eef8; }
}

/* small animation for switching */
.auth-card { transition: opacity .22s ease, transform .28s cubic-bezier(.2,.9,.2,1); }
/* --- LOGIN & REGISTER CARDS --- */
.login-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #f8fafc; z-index: 10000;
    display: none; align-items: center; justify-content: center;
    overflow-y: auto; padding: 20px;
}

.auth-card {
    background: #fff; width: 100%; max-width: 400px;
    padding: 30px; border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    display: none; /* Escondido por padrão */
    opacity: 0; transform: translateY(20px);
    transition: all 0.3s ease;
    animation: fadeInCard 0.4s ease forwards;
}

/* Classe para mostrar o card ativo */
.auth-card.show {
    display: block; opacity: 1; transform: translateY(0);
}

@keyframes fadeInCard { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Avatar Upload */
.avatar-wrapper {
    width: 100px; height: 100px; margin: 0 auto 20px auto;
    position: relative; border-radius: 14px;
    background: #f1f5f9; border: 2px dashed #cbd5e1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s; overflow: hidden;
}
.avatar-wrapper:hover { border-color: var(--cor-principal); background: #eff6ff; }
.avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { font-size: 0.8rem; color: #94a3b8; text-align: center; pointer-events: none; padding: 5px; }

/* Força da Senha */
#pwdStrength {
    font-size: 0.75rem; font-weight: 700;
    text-align: right; margin-top: -10px; margin-bottom: 10px;
    display: block; height: 15px; transition: color 0.3s;
}

/* Link de Texto */
.text-link { color: var(--cor-principal); cursor: pointer; text-decoration: underline; font-size: 0.9rem; border:none; background:none; }

/* Ocultar input de arquivo */
input[type="file"] { display: none; }/* 1. Esconde o site (cabeçalho e conteúdo) quando estiver na tela de login/cadastro */
body.loading header, 
body.loading #main-content,
body.loading nav.bottom-bar,
body.loading #default-menu {
    display: none !important;
}

/* 2. Garante que o fundo do login cubra 100% da tela */
body.loading {
    overflow: hidden; /* Trava a rolagem */
    background: #f7fbff; /* Mesma cor do seu gradiente */
}

/* 3. Força a tela de autenticação a ocupar tudo e ficar visível */
body.loading .auth-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex !important;
}

/* 4. Esconde a autenticação quando o usuário entra (remove a classe loading) */
body:not(.loading) .auth-overlay {
    display: none !important;
}/* Animação suave para o texto de Olá */
.header-saudacao {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}/* Botão de Link para Bulário dentro do Texto */
.btn-bula {
    background-color: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 2px;
    text-decoration: none;
    transition: 0.2s;
}
.btn-bula:hover {
    background-color: #0284c7;
    color: white;
}
.btn-bula::before {
    content: "💊";
    font-size: 0.7rem;
}/* Botão de Reporte no Rodapé */
.btn-report-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

.btn-report {
    background-color: #f8fafc;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    border-radius: 50px; /* Totalmente arredondado */
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.btn-report:hover {
    background-color: #eef2ff;
    border-color: #6366f1;
    color: #4f46e5;
    transform: translateY(-2px);
}

/* Estilo da Badge no Modal */
#report-contexto {
    background: #e0f2fe; /* Azul bem claro */
    color: #0284c7; /* Azul texto */
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid #0284c7;
    display: flex;
    align-items: center;
    gap: 10px;
}/* --- SEGURANÇA VISUAL (BLINDAGEM) --- */

/* 1. Tudo que é do sistema começa ESCONDIDO */
#main-content, 
.header, 
.bottom-bar, 
#default-menu, 
#scrollTopBtn {
    display: none !important; 
}

/* 2. Só mostramos quando a classe 'user-logged-in' for adicionada ao body pelo JS */
body.user-logged-in #main-content, 
body.user-logged-in .header, 
body.user-logged-in .bottom-bar, 
body.user-logged-in #scrollTopBtn {
    display: block !important;
}
body.user-logged-in .bottom-bar {
    display: flex !important; /* Barra inferior precisa de flex */
}

/* 3. O Container de Login começa VISÍVEL (se o body estiver carregando) */
.auth-overlay {
    display: flex; /* Garante que o login cubra a tela */
    z-index: 99999;
}