:root {
    --bg-body: #ffffff;
    --bg-card: #f3f4f6;
    --border-light: #e5e7eb;
    --border-color: #d1d5db;
    --header-dark: #1e2227;
    --header-accent: #2c3036;
    --header-active: #3e444e;
    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px; /* Teto máximo estipulado */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 13.5px;
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================================
   HEADER PÚBLICO COM LOGO
   =================================================== */
.pub-header {
    background-color: var(--header-dark);
    border-bottom: 1px solid #2d3239;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pub-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pub-brand {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tratamento do Logo com fundo branco no cabeçalho escuro */
.pub-brand-logo {
    height: 32px;
    max-height: 32px;
    width: auto;
    object-fit: contain;
    background-color: #ffffff;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
}

.pub-brand-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.pub-brand-badge {
    background: #343a40;
    color: #e5e7eb;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.pub-brand-sub {
    font-size: 10.5px;
    color: var(--text-light);
    display: block;
}

/* Menu Topo Desktop */
.pub-nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pub-nav-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: 0.15s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.pub-nav-link:hover {
    background-color: var(--header-accent);
    color: #ffffff;
}

.pub-nav-link.active {
    background-color: var(--header-active);
    color: #ffffff;
    font-weight: 600;
}

.btn-header-login {
    background-color: var(--header-accent);
    color: #ffffff !important;
    border: 1px solid #3e444e;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.btn-header-login:hover {
    background-color: #3e444e;
}

/* ===================================================
   FOOTER PÚBLICO
   =================================================== */
.pub-footer {
    background-color: var(--header-dark);
    color: var(--text-light);
    border-top: 1px solid #2d3239;
    padding: 14px 16px;
    font-size: 12px;
    margin-top: auto;
}

.pub-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===================================================
   BARRA BOTTOM FIXA (MOBILE / APP NATIVO ANDROID)
   =================================================== */
.pub-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background-color: #1e2227;
    border-top: 1px solid #2d3239;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.25);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
}

.pub-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: var(--radius-md);
    flex: 1;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: 0.15s;
}

.pub-tab-item.active {
    color: #ffffff;
}

.pub-tab-item.active .pub-tab-icon {
    background: #2c3036;
    color: #ffffff;
}

.pub-tab-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 2px;
}

.pub-tab-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

/* ===================================================
   MODAIS GLOBAIS (DRAWER / BOTTOM SHEET NATIVO)
   =================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.drawer-box {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    padding: 20px 16px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary { background: #1e2227; color: #ffffff; }
.btn-secondary { background: #e5e7eb; color: #111827; }
.btn-success { background: #15803d; color: #ffffff; }

@media (min-width: 769px) {
    .drawer-overlay {
        align-items: center;
    }
    .drawer-box {
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 768px) {
    .pub-nav-desktop {
        display: none;
    }
    .pub-brand-badge {
        display: none;
    }
    .pub-bottom-bar {
        display: flex;
    }
    .pub-footer {
        display: none;
    }
}
