:root {
    --fb-bg: #f4f7fb;
    --fb-surface: #ffffff;
    --fb-dark: #08111f;
    --fb-dark-2: #0d1b2d;
    --fb-blue: #2563eb;
    --fb-blue-2: #0ea5e9;
    --fb-cyan: #22d3ee;
    --fb-text: #102033;
    --fb-muted: #64748b;
    --fb-border: #dce5f0;
    --fb-success: #16a34a;
    --fb-warning: #f59e0b;
    --fb-danger: #dc2626;
    --fb-radius: 18px;
    --fb-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }

body {
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
        var(--fb-bg);
    color: var(--fb-text);
    font-family: Arial, Helvetica, sans-serif;
}

.fb-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fb-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.20),
        0 0 0 1px rgba(34, 211, 238, 0.20);
}

.fb-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fb-brand-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #ffffff 0%, #d9f6ff 45%, #22d3ee 75%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fb-brand-subtitle {
    margin: 0;
    color: #9fb3c8;
    font-size: 13px;
    line-height: 1.4;
}

.fb-header {
    background: linear-gradient(120deg, var(--fb-dark) 0%, var(--fb-dark-2) 55%, #102947 100%);
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 22px;
    box-shadow: var(--fb-shadow);
    padding: 18px 22px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.fb-header::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -90px;
    top: -110px;
    background: rgba(34, 211, 238, 0.13);
    filter: blur(5px);
    border-radius: 24px;
    pointer-events: none;
}

.fb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.fb-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.fb-header-actions a {
    color: #dbeafe;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.fb-header-actions a:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.fb-card {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    padding: 20px;
}

.fb-card-title {
    margin: 0 0 8px;
    color: var(--fb-text);
    font-weight: 800;
}

.fb-card-muted { color: var(--fb-muted); }

.fb-btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    background: linear-gradient(90deg, var(--fb-blue), var(--fb-blue-2));
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fb-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.30);
}

.fb-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
}

.fb-auth-wrapper {
    width: 100%;
    max-width: 440px;
}

.fb-auth-brand {
    text-align: center;
    margin-bottom: 20px;
}

.fb-auth-logo {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow:
        0 12px 30px rgba(37, 99, 235, 0.22),
        0 0 0 5px rgba(255,255,255,0.80);
    margin-bottom: 12px;
}

.fb-auth-system-name {
    margin: 0;
    color: var(--fb-dark);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.fb-auth-slogan {
    margin: 7px auto 0;
    color: var(--fb-muted);
    font-size: 14px;
    line-height: 1.5;
    max-width: 370px;
}

.fb-auth-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--fb-border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
}

.fb-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #22d3ee, #2563eb);
}

.fb-auth-title {
    text-align: center;
    margin: 0 0 6px;
    font-size: 31px;
    font-weight: 900;
    color: var(--fb-dark);
}

.fb-auth-description {
    text-align: center;
    margin: 0 0 24px;
    color: var(--fb-muted);
    font-size: 15px;
}

.fb-field { margin-bottom: 16px; }

.fb-field label {
    display: block;
    color: var(--fb-text);
    font-weight: 800;
    margin-bottom: 7px;
}

.fb-field input,
.fb-field select,
.fb-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: var(--fb-text);
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fb-field input:focus,
.fb-field select:focus,
.fb-field textarea:focus {
    border-color: var(--fb-blue-2);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.10);
}

.fb-subscription-alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.fb-subscription-3 {
    background: #fff8df;
    border: 1px solid #facc15;
    color: #854d0e;
}

.fb-subscription-1 {
    background: #fff0df;
    border: 1px solid #fb923c;
    color: #9a3412;
}

.fb-subscription-today {
    background: #feecec;
    border: 1px solid #ef4444;
    color: #991b1b;
}

@media (max-width: 700px) {
    .fb-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .fb-logo {
        width: 56px;
        height: 56px;
    }

    .fb-brand-title { font-size: 24px; }

    .fb-header-actions { width: 100%; }

    .fb-auth-card { padding: 22px 18px; }

    .fb-auth-logo {
        width: 78px;
        height: 78px;
    }

    .fb-auth-system-name { font-size: 24px; }

    .fb-subscription-alert {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* ==========================================================
   FALA BIT V18 — MOBILE EXPERIENCE
   Mantém o desktop intacto e reorganiza a interface em telas
   menores para uso com uma mão, botões maiores e leitura fácil.
   ========================================================== */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        min-width: 0;
        overflow-x: hidden;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* Estrutura geral */
    body .container,
    body .wrap {
        width: calc(100% - 20px);
        max-width: none;
        margin: 10px auto 28px;
    }

    body h1 { line-height: 1.15; }
    body h2 { line-height: 1.2; }

    body input,
    body select,
    body textarea {
        font-size: 16px;
    }

    body button,
    body input[type="submit"],
    body .fb-btn-primary {
        min-height: 46px;
        touch-action: manipulation;
    }

    /* Cabeçalho principal */
    body .fb-header {
        margin-bottom: 14px;
        padding: 14px;
        border-radius: 17px;
    }

    body .fb-header-inner {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 13px;
    }

    body .fb-brand {
        width: 100%;
        gap: 10px;
        min-width: 0;
    }

    body .fb-logo {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        flex: 0 0 50px;
    }

    body .fb-brand-text {
        min-width: 0;
    }

    body .fb-brand-title {
        font-size: 20px;
        letter-spacing: -0.3px;
    }

    body .fb-brand-subtitle {
        font-size: 11px;
        line-height: 1.35;
    }

    body .painel-tipo {
        margin-top: 3px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    body .fb-header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    body .fb-header-actions .fb-header-user {
        grid-column: 1 / -1;
        margin: 0;
        padding: 0 2px 2px;
        font-size: 12px;
    }

    body .fb-header-actions a {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 9px 8px;
        border-radius: 11px;
        text-align: center;
        line-height: 1.25;
        background: rgba(255, 255, 255, 0.07);
    }

    body .fb-header-actions .acao-destaque {
        grid-column: 1 / -1;
    }

    /* Autenticação */
    body .fb-auth-page {
        min-height: 100svh;
        padding: 18px 12px 28px;
        align-items: flex-start;
    }

    body .fb-auth-wrapper { max-width: 470px; }
    body .fb-auth-brand { margin-bottom: 14px; }

    body .fb-auth-logo {
        width: 72px;
        height: 72px;
        margin-bottom: 8px;
    }

    body .fb-auth-system-name { font-size: 22px; }
    body .fb-auth-slogan { font-size: 13px; }

    body .fb-auth-card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    body .fb-auth-title { font-size: 26px; }
    body .fb-auth-description { margin-bottom: 18px; font-size: 14px; }

    body .fb-field { margin-bottom: 14px; }
    body .fb-field input,
    body .fb-field select,
    body .fb-field textarea {
        min-height: 48px;
        padding: 12px;
        border-radius: 11px;
    }

    /* Cards e indicadores */
    body .resumo,
    body .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-bottom: 18px;
    }

    body .card-resumo {
        min-width: 0;
        min-height: 88px;
        padding: 13px;
        border-radius: 13px;
    }

    body .card-resumo span {
        margin-bottom: 6px;
        font-size: 11px;
        line-height: 1.3;
    }

    body .card-resumo strong { font-size: 24px; }

    body .card { border-radius: 15px; }

    /* Painel da revendedora */
    body .assinatura-resumo {
        padding: 12px;
        gap: 8px;
        font-size: 12px;
    }

    body .alerta-link {
        width: 100%;
        margin-left: 0;
        min-height: 44px;
    }

    body .alerta-teste {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    body .secao-cabecalho,
    body .campanha-topo,
    body .hall-fama-topo {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }

    body .secao-cabecalho h2 { font-size: 22px; }

    body .campanha {
        padding: 16px;
        border-radius: 15px;
    }

    body .campanha h2 { font-size: 19px; }

    body .campanha .acoes {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    body .campanha .acoes > a,
    body .campanha .acoes > form,
    body .campanha .acoes > button {
        width: 100%;
        min-width: 0;
    }

    body .campanha .acoes form .botao,
    body .campanha .acoes > .botao {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Hall da Fama */
    body .hall-fama {
        padding: 15px;
        margin-bottom: 18px;
        border-radius: 15px;
    }

    body .hall-fama-topo h2 { font-size: 24px; }
    body .hall-badge { align-self: flex-start; }

    body .hall-item {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px;
    }

    body .hall-posicao {
        width: 36px;
        height: 36px;
    }

    body .hall-participacoes { display: none; }
    body .hall-numero { min-width: 56px; }
    body .hall-numero strong { font-size: 17px; }

    /* Página pública da campanha */
    body .public-brand {
        margin: 4px 0 14px;
    }

    body .public-brand img {
        width: 64px;
        height: 64px;
    }

    body .public-brand h1 {
        margin-top: 8px;
        font-size: 23px;
    }

    body .hero,
    body .painel {
        padding: 16px 14px;
        border-radius: 16px;
    }

    body .hero-grid { grid-template-columns: 1fr; gap: 12px; }
    body .meta { gap: 6px; }
    body .tag { padding: 6px 9px; }

    body .legenda {
        gap: 8px 12px;
        margin-bottom: 14px;
        font-size: 12px;
    }

    body .numeros {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
    }

    body .numero {
        min-width: 0;
        height: 52px;
        border-radius: 10px;
        font-size: 15px;
        touch-action: manipulation;
    }

    body .selecao-barra {
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        padding: 12px;
        border-radius: 14px;
        flex-direction: column;
        align-items: stretch;
    }

    body .selecao-info { text-align: center; }
    body .continuar { width: 100%; min-height: 48px; }

    /* Reserva */
    body .consent {
        padding: 13px;
        border-radius: 13px;
    }

    body .consent input[type="checkbox"] {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    /* Administração da campanha */
    body .reservas { padding: 15px; }

    body .reserva {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px 0;
    }

    body .reserva .acoes {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body .reserva .acoes form,
    body .reserva .acoes .botao {
        width: 100%;
    }

    body .reserva .acoes .botao {
        min-height: 44px;
    }

    /* Proprietário */
    body .titulo-lista,
    body .cabecalho-cliente,
    body .renovacao-card,
    body .controle {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    body .titulo-lista { margin: 20px 0 10px; }

    body .analytics-grid,
    body .pagamento-grid,
    body .grade,
    body .criacao-wrap,
    body .planos,
    body .info-grid,
    body .save-actions {
        grid-template-columns: 1fr;
    }

    body .analytics-card,
    body .points-card,
    body .cliente,
    body .pagamento-card,
    body .historico-card {
        padding: 15px;
        border-radius: 14px;
    }

    body .grafico { gap: 4px; height: 135px; }
    body .barra-dia,
    body .barra-num { font-size: 9px; }

    body .point-item {
        align-items: flex-start;
        flex-direction: column;
    }

    body .point-acesso {
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body .badges {
        justify-content: flex-start;
        gap: 6px;
    }

    body .metricas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body .form-assinatura,
    body .form-pendente {
        grid-template-columns: 1fr;
        width: 100%;
    }

    body .botoes-controle,
    body .renovacao-acoes {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body .botoes-controle button,
    body .renovacao-acoes button,
    body .botoes-controle a {
        width: 100%;
        min-height: 44px;
    }

    body .historico-card {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body .tabela {
        display: table;
        min-width: 760px;
    }

    /* Revendedoras online */
    body .online-fab {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        padding: 11px 13px;
        font-size: 12px;
    }

    body .online-drawer {
        right: 10px;
        bottom: calc(66px + env(safe-area-inset-bottom, 0px));
        width: calc(100vw - 20px);
        max-height: min(430px, 65svh);
    }

    /* Fala Point */
    body .topo {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 15px;
    }

    body .ident {
        width: 100%;
        min-width: 0;
    }

    body .ident img {
        width: 46px;
        height: 46px;
    }

    body .ident h1 { font-size: 20px; }

    body .acoes-topo {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    body .acoes-topo > * {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    body .chat {
        height: 56svh;
        min-height: 360px;
        padding: 9px;
        border-radius: 14px;
    }

    body .bolha { max-width: 92%; }

    body .composer {
        grid-template-columns: 1fr;
        padding: 10px;
        border-radius: 14px;
    }

    body .composer textarea { min-height: 72px; }
    body .enviar { width: 100%; min-height: 46px; }

    /* Assinatura, conta e criação */
    body .form-card,
    body .plano-box,
    body .status-card,
    body .pagamento,
    body .minha-conta-card {
        padding: 18px;
    }

    /* Sorteio */
    body .hero .actions,
    body .actions,
    body .save-actions {
        grid-template-columns: 1fr;
    }

    body .stage {
        min-height: 300px;
        padding: 16px;
    }

    /* Documentos e páginas simples */
    body .legal {
        padding: 20px 16px;
        border-radius: 16px;
    }

    body .caixa {
        padding: 13px;
    }

    body .legal h1 { font-size: 27px; }
    body .legal h2 { font-size: 19px; margin-top: 24px; }

    body .wrap .card,
    body .container > .card {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    body .container,
    body .wrap {
        width: calc(100% - 14px);
        margin-top: 7px;
    }

    body .fb-header { padding: 12px; }

    body .fb-header-actions {
        grid-template-columns: 1fr;
    }

    body .fb-header-actions .acao-destaque,
    body .fb-header-actions .fb-header-user {
        grid-column: auto;
    }

    body .fb-header-actions .fb-header-user {
        padding: 0 2px 2px;
    }

    body .numeros {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body .resumo,
    body .cards,
    body .metricas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .campanha .acoes,
    body .reserva .acoes,
    body .botoes-controle,
    body .renovacao-acoes,
    body .acoes-topo {
        grid-template-columns: 1fr;
    }

    body .hall-item {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        padding: 9px 8px;
    }

    body .hall-participante strong { font-size: 14px; }
    body .hall-participante span { font-size: 10px; }
}

/* ==========================================================
   FALA BIT V18.1 — NAVEGAÇÃO MOBILE
   Barra inferior estilo app + menu "Mais" para revendedoras.
   ========================================================== */
.fb-mobile-nav,
.fb-mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    html.fb-menu-mobile-aberto,
    html.fb-menu-mobile-aberto body {
        overflow: hidden;
    }

    body.fb-cliente-mobile {
        padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    /* No celular, o topo fica limpo; a navegação vai para a barra inferior. */
    body.fb-cliente-mobile .fb-header-inner {
        gap: 8px;
    }

    body.fb-cliente-mobile .fb-header-actions {
        display: block;
        width: 100%;
    }

    body.fb-cliente-mobile .fb-header-actions a,
    body.fb-cliente-mobile .fb-header-actions form,
    body.fb-cliente-mobile .fb-header-actions button {
        display: none !important;
    }

    body.fb-cliente-mobile .fb-header-actions .fb-header-user {
        display: block !important;
        grid-column: auto;
        padding: 1px 2px 0;
        color: #e2e8f0;
        font-size: 12px;
    }

    body.fb-cliente-mobile .fb-header-actions:empty {
        display: none;
    }

    .fb-mobile-nav {
        position: fixed;
        z-index: 9500;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: min(100%, 620px);
        min-height: 68px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        gap: 2px;
        padding: 7px 7px calc(7px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(203, 213, 225, 0.9);
        box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.14);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }

    .fb-mobile-nav-item {
        position: relative;
        min-width: 0;
        min-height: 54px;
        border: 0;
        border-radius: 13px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 5px 2px;
        color: #64748b;
        background: transparent;
        text-decoration: none;
        font: inherit;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
        touch-action: manipulation;
    }

    .fb-mobile-nav-item.ativo {
        color: #1d4ed8;
        background: #eff6ff;
    }

    .fb-mobile-nav-icone {
        min-height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        line-height: 1;
    }

    .fb-mobile-nav-nova {
        overflow: visible;
        color: #1d4ed8;
        background: transparent !important;
    }

    .fb-mobile-nav-plus {
        width: 42px;
        height: 42px;
        margin-top: -19px;
        margin-bottom: 1px;
        border: 4px solid #f8fafc;
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        background: linear-gradient(135deg, #2563eb, #0ea5e9);
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.34);
        font-size: 28px;
        font-weight: 500;
        line-height: 1;
    }

    .fb-mobile-mais-btn {
        width: 100%;
    }

    .fb-mobile-menu-overlay {
        position: fixed;
        z-index: 9800;
        inset: 0;
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .fb-mobile-menu-overlay[hidden] {
        display: none;
    }

    .fb-mobile-menu-overlay.aberto {
        opacity: 1;
        pointer-events: auto;
    }

    .fb-mobile-menu-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(2, 6, 23, 0.55);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .fb-mobile-menu-sheet {
        position: absolute;
        left: 50%;
        bottom: 0;
        width: min(100%, 620px);
        max-height: min(78svh, 620px);
        overflow-y: auto;
        transform: translate(-50%, 105%);
        padding: 10px 14px calc(18px + env(safe-area-inset-bottom, 0px));
        border-radius: 24px 24px 0 0;
        background: #ffffff;
        box-shadow: 0 -24px 60px rgba(15, 23, 42, 0.24);
        transition: transform .22s ease;
    }

    .fb-mobile-menu-overlay.aberto .fb-mobile-menu-sheet {
        transform: translate(-50%, 0);
    }

    .fb-mobile-menu-handle {
        width: 42px;
        height: 5px;
        margin: 0 auto 12px;
        border-radius: 999px;
        background: #cbd5e1;
    }

    .fb-mobile-menu-topo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 2px 14px;
        border-bottom: 1px solid #e2e8f0;
    }

    .fb-mobile-menu-topo strong {
        display: block;
        color: #0f172a;
        font-size: 17px;
    }

    .fb-mobile-menu-topo span {
        display: block;
        margin-top: 2px;
        color: #64748b;
        font-size: 12px;
    }

    .fb-mobile-menu-fechar {
        width: 38px;
        height: 38px;
        min-height: 38px;
        border: 0;
        border-radius: 24px;
        color: #334155;
        background: #f1f5f9;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .fb-mobile-menu-links {
        display: grid;
        gap: 8px;
        padding-top: 12px;
    }

    .fb-mobile-menu-links a {
        min-height: 62px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
        padding: 10px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        color: #0f172a;
        background: #ffffff;
        text-decoration: none;
    }

    .fb-mobile-menu-links a > span {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: #eff6ff;
        font-size: 22px;
    }

    .fb-mobile-menu-links a strong,
    .fb-mobile-menu-links a small {
        display: block;
    }

    .fb-mobile-menu-links a strong {
        font-size: 14px;
    }

    .fb-mobile-menu-links a small {
        margin-top: 3px;
        color: #64748b;
        font-size: 11px;
        line-height: 1.3;
    }

    .fb-mobile-menu-links .fb-mobile-menu-sair {
        border-color: #fecaca;
        color: #991b1b;
        background: #fff7f7;
    }

    .fb-mobile-menu-links .fb-mobile-menu-sair > span {
        background: #fee2e2;
    }

    /* Âncoras não ficam escondidas sob o topo ao navegar pela barra. */
    #painel-inicio,
    #lista-campanhas,
    #hall-da-fama {
        scroll-margin-top: 12px;
    }
}

/* ==========================================================
   FALA BIT V18.4 — PROPRIETÁRIO MOBILE + PWA
   Navegação inferior do proprietário, safe areas e instalação.
   ========================================================== */
.fb-mobile-menu-link[hidden] { display: none !important; }
.fb-mobile-menu-link {
    width: 100%;
    border: 1px solid #e2e8f0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

@media (max-width: 768px) {
    body.fb-dono-mobile {
        padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    body.fb-dono-mobile .fb-header-inner { gap: 8px; }
    body.fb-dono-mobile .fb-header-actions { display: block; width: 100%; }
    body.fb-dono-mobile .fb-header-actions a,
    body.fb-dono-mobile .fb-header-actions form,
    body.fb-dono-mobile .fb-header-actions button { display: none !important; }
    body.fb-dono-mobile .fb-header-actions .fb-header-user {
        display: block !important;
        margin: 0;
        padding: 1px 2px 0;
        color: #e2e8f0;
        font-size: 12px;
    }

    .fb-mobile-menu-links .fb-mobile-menu-link {
        min-height: 62px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
        padding: 10px 12px;
        border-radius: 14px;
        color: #0f172a;
        background: #ffffff;
    }
    .fb-mobile-menu-links .fb-mobile-menu-link > span {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: #eff6ff;
        font-size: 22px;
    }
    .fb-mobile-menu-links .fb-mobile-menu-link strong,
    .fb-mobile-menu-links .fb-mobile-menu-link small { display: block; }
    .fb-mobile-menu-links .fb-mobile-menu-link strong { font-size: 14px; }
    .fb-mobile-menu-links .fb-mobile-menu-link small {
        margin-top: 3px;
        color: #64748b;
        font-size: 11px;
        line-height: 1.3;
    }

    body.fb-dono-mobile .online-fab {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
    body.fb-dono-mobile .online-drawer {
        bottom: calc(136px + env(safe-area-inset-bottom, 0px));
        max-height: min(430px, 55svh);
    }

    #painel-inicio,
    #analytics,
    #financeiro,
    #avisos,
    #revendedoras { scroll-margin-top: 12px; }
}

@media (display-mode: standalone) {
    body { overscroll-behavior-y: auto; }
}


/* V22.8.22 — refinamento global da marca */
.fb-logo,.fb-auth-logo{border-radius:50%!important;object-fit:contain!important;}
.fb-logo{box-shadow:none!important;}


/* =========================================================
   V22.8.26 — TIPOGRAFIA PREMIUM COMPARTILHADA DA MARCA
   ========================================================= */
.fb-brand-title,
.lp-brand strong{
    font-family:"Bahnschrift SemiBold","Bahnschrift","Segoe UI Variable Display","Segoe UI",Arial,sans-serif!important;
    font-weight:700!important;
    font-stretch:semi-condensed!important;
    letter-spacing:-.35px!important;
    text-rendering:geometricPrecision;
    font-kerning:normal!important;
}
.fb-brand-subtitle,
.lp-brand small{
    font-family:"Bahnschrift","Segoe UI Variable Text","Segoe UI",Arial,sans-serif!important;
    font-weight:520!important;
    letter-spacing:.10px!important;
    text-transform:none!important;
}

/* =========================================================
   NUVEWORK V22.19.0 — FUNDAÇÃO RESPONSIVA MOBILE
   Evita overflow da página inteira e mantém componentes largos
   confinados em suas próprias áreas de rolagem.
   ========================================================= */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body *,
    body *::before,
    body *::after {
        box-sizing: border-box;
    }

    body main,
    body section,
    body article,
    body form,
    body .container,
    body .wrap {
        min-width: 0;
        max-width: 100%;
    }

    body img,
    body video,
    body canvas {
        max-width: 100%;
    }

    body input,
    body select,
    body textarea,
    body button {
        max-width: 100%;
    }

    body a,
    body p,
    body span,
    body strong,
    body small,
    body label,
    body dd,
    body td {
        overflow-wrap: anywhere;
    }

    /* Tabelas grandes não podem alargar o viewport do telefone. */
    body .historico-card,
    body .table-wrap,
    body .v-table-wrap,
    body .v22-table-scroll,
    body .owner-table-scroll,
    body .v28-preview-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }
}


/* =========================================================
   NUVEWORK V22.19.1 — PWA / SCROLL VERTICAL NO APP INSTALADO
   Mantém o bloqueio apenas quando o menu mobile está realmente aberto.
   ========================================================= */
@media (display-mode: standalone) {
    html.pwa-standalone:not(.fb-menu-mobile-aberto) {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    html.pwa-standalone:not(.fb-menu-mobile-aberto) body {
        height: auto !important;
        min-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        overscroll-behavior-y: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    html.pwa-standalone:not(.fb-menu-mobile-aberto) body main,
    html.pwa-standalone:not(.fb-menu-mobile-aberto) body .vendas-shell,
    html.pwa-standalone:not(.fb-menu-mobile-aberto) body .owner-shell,
    html.pwa-standalone:not(.fb-menu-mobile-aberto) body .owner-workspace {
        height: auto !important;
        touch-action: auto !important;
    }
}

/* =========================================================
   NuveWork V22.19.3 — TEMA AZUL PREMIUM VIVO
   Base visual mais luminosa, mantendo contraste e legibilidade.
   ========================================================= */
:root{
    --fb-bg:#edf5ff;
    --fb-blue:#1d6ff2;
    --fb-blue-2:#0ea5e9;
    --fb-cyan:#27d3f4;
    --fb-border:#d6e5f5;
}
body{
    background:
        radial-gradient(circle at 6% 0%,rgba(39,211,244,.13),transparent 28%),
        radial-gradient(circle at 94% 4%,rgba(29,111,242,.12),transparent 30%),
        linear-gradient(180deg,#f4f9ff 0%,#edf5ff 100%)!important;
}
.fb-header{
    background:linear-gradient(120deg,#08285c 0%,#0b3f82 55%,#0b2f68 100%)!important;
    box-shadow:0 12px 30px rgba(15,77,160,.16)!important;
}


/* =========================================================
   NUVEWORK V22.22.0 — PADRONIZACAO VISUAL GLOBAL
   Um unico contrato visual para telas claras e escuras.
   ========================================================= */

:root{
    --nw-navy:#17334f;
    --nw-blue:#2563eb;
    --nw-sky:#20a9e8;
    --nw-cyan:#56d8ff;
    --nw-bg:#f1f7fd;
    --nw-border:#d7e4f2;
    --nw-muted:#62778f;
}

/* O logo generico agora e o tile oficial e deve manter formato quadrado. */
.fb-logo,
.fb-auth-logo{
    object-fit:contain!important;
    border-radius:14px!important;
    background:#245f93!important;
    box-shadow:0 8px 22px rgba(31,87,145,.16)!important;
}

/* Autenticacao: mesma assinatura da landing, compacta e de alto contraste. */
.fb-auth-page{
    background:
        radial-gradient(circle at 13% 8%,rgba(72,190,244,.13),transparent 30%),
        radial-gradient(circle at 88% 12%,rgba(74,116,238,.10),transparent 31%),
        linear-gradient(180deg,#f6fbff 0%,#edf5fd 100%)!important;
}
.fb-auth-wrapper{max-width:500px!important;}
.fb-auth-brand{
    display:grid!important;
    grid-template-columns:54px max-content!important;
    grid-template-rows:auto auto!important;
    justify-content:center!important;
    align-items:center!important;
    column-gap:12px!important;
    row-gap:1px!important;
    text-align:left!important;
    margin:0 0 18px!important;
}
.fb-auth-logo{
    grid-row:1 / 3!important;
    width:54px!important;
    height:54px!important;
    margin:0!important;
    border-radius:14px!important;
    box-shadow:0 9px 24px rgba(31,87,145,.17)!important;
}
.fb-auth-system-name,
.fb-auth-system-name.auth-brand-name{
    align-self:end!important;
    margin:0!important;
    font-family:"Segoe UI Variable Display","Segoe UI",Arial,sans-serif!important;
    font-size:24px!important;
    font-weight:850!important;
    line-height:1!important;
    letter-spacing:-.8px!important;
    background:none!important;
    -webkit-text-fill-color:initial!important;
    color:#17334f!important;
}
.fb-auth-slogan{
    align-self:start!important;
    margin:3px 0 0!important;
    max-width:330px!important;
    color:#62778f!important;
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.35!important;
    text-align:left!important;
}
.fb-auth-card{
    border:1px solid #d7e4f2!important;
    border-radius:20px!important;
    background:rgba(255,255,255,.985)!important;
    box-shadow:0 18px 52px rgba(35,78,123,.11)!important;
}
.fb-auth-card::before{
    background:linear-gradient(90deg,#2f68f4,#28b8e8,#2f68f4)!important;
}
.fb-auth-title{color:#10213a!important;letter-spacing:-.7px!important;}
.fb-auth-description{color:#667b92!important;}
.fb-field label{color:#243a54!important;}
.fb-field input,
.fb-field select,
.fb-field textarea{
    border-color:#cad9e8!important;
    background:#fff!important;
}
.fb-field input:focus,
.fb-field select:focus,
.fb-field textarea:focus{
    border-color:#5b9df4!important;
    box-shadow:0 0 0 3px rgba(49,125,238,.11)!important;
}
.fb-btn-primary{
    background:linear-gradient(90deg,#3567f4,#27a9ed)!important;
    box-shadow:0 9px 22px rgba(37,99,235,.20)!important;
}

/* Cabecalhos antigos passam a usar o mesmo tile, sem recorte circular. */
.fb-header .fb-logo{border-radius:14px!important;}

@media(max-width:600px){
    .fb-auth-wrapper{max-width:470px!important;}
    .fb-auth-brand{
        grid-template-columns:48px max-content!important;
        column-gap:10px!important;
        margin-bottom:15px!important;
    }
    .fb-auth-logo{width:48px!important;height:48px!important;border-radius:13px!important;}
    .fb-auth-system-name,.fb-auth-system-name.auth-brand-name{font-size:21px!important;}
    .fb-auth-slogan{font-size:11.5px!important;max-width:270px!important;}
}


/* =========================================================
   NuveWork V22.22.2 — wordmark oficial global
   Dark: Nuve branco + Work azul-ciano
   Light: Nuve azul-marinho + Work azul-ciano
   ========================================================= */
.nw-wordmark{
    display:inline-flex!important;
    align-items:center!important;
    white-space:nowrap!important;
    line-height:.92!important;
    letter-spacing:-1.05px!important;
    text-rendering:geometricPrecision!important;
}
.nw-wordmark .nw-wordmark-nuve{
    font-family:"Segoe UI Variable Display","Segoe UI",Inter,Arial,sans-serif!important;
    font-weight:780!important;
    letter-spacing:-1.05px!important;
}
.nw-wordmark .nw-wordmark-work{
    display:inline-block!important;
    margin-left:1px!important;
    padding-right:2px!important;
    font-family:"Arial Black","Segoe UI Variable Display","Segoe UI",sans-serif!important;
    font-weight:900!important;
    font-style:italic!important;
    letter-spacing:-1.25px!important;
    background:linear-gradient(112deg,#67e8f9 0%,#22c7ff 36%,#3b82f6 72%,#60a5fa 100%)!important;
    -webkit-background-clip:text!important;
    background-clip:text!important;
    -webkit-text-fill-color:transparent!important;
    color:transparent!important;
    transform:skewX(-3deg)!important;
    transform-origin:left center!important;
}
.nw-wordmark-light .nw-wordmark-nuve{color:#17334f!important;-webkit-text-fill-color:#17334f!important;}
.nw-wordmark-dark .nw-wordmark-nuve{color:#f8fbff!important;-webkit-text-fill-color:#f8fbff!important;}
.fb-auth-system-name.nw-wordmark{font-size:24px!important;}
.fb-auth-system-name.nw-wordmark .nw-wordmark-nuve{font-size:24px!important;}
.fb-auth-system-name.nw-wordmark .nw-wordmark-work{font-size:25px!important;}
@media(max-width:768px){
    .fb-auth-system-name.nw-wordmark .nw-wordmark-nuve{font-size:22px!important;}
    .fb-auth-system-name.nw-wordmark .nw-wordmark-work{font-size:23px!important;}
}


/* =========================================================
   NuveWork V22.22.3 — geometria oficial do wordmark
   Uma palavra visual: Work próximo, quase vertical e consistente.
   ========================================================= */
.nw-wordmark{
    gap:0!important;
    letter-spacing:-1.05px!important;
}
.nw-wordmark .nw-wordmark-work{
    margin-left:-.45px!important;
    padding-right:1px!important;
    font-style:normal!important;
    letter-spacing:-1.15px!important;
    transform:skewX(-1deg)!important;
}
.fb-auth-system-name.nw-wordmark .nw-wordmark-work{font-size:24.5px!important;}
@media(max-width:768px){
    .fb-auth-system-name.nw-wordmark .nw-wordmark-work{font-size:22.5px!important;}
}
