:root {
    --sidebar-width: 280px;
    --sidebar-mini-width: 84px;
    --admin-bg: #f5f7fb;
    --admin-surface: #ffffff;
    --admin-surface-soft: #f8fafc;
    --admin-border: #dbe4ef;
    --admin-text: #1f2937;
    --admin-muted: #6b7280;
    --admin-primary: #ff6a13;
    --admin-primary-dark: #1d4ed8;
    --admin-success: #0f766e;
    --admin-warning: #d97706;
    --admin-danger: #dc2626;
    --admin-sidebar: #111827;
    --admin-sidebar-soft: #1f2937;
    --admin-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
    --admin-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
    --admin-shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.12);
    --admin-ring: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #f8fbff 0%, var(--admin-bg) 42%, #eef4fa 100%);
    color: var(--admin-text);
    font-family: "Segoe UI", Arial, sans-serif;
}

.aviso-io {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 32px;

    padding: 12px 16px;
    margin: 12px 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;

    color: var(--admin-muted);
}

.aviso-io__item {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.aviso-io__item strong {
    color: var(--admin-text);
    font-weight: 600;
}

.impacto {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.impacto--alto {
    color: #b91c1c;
    background: #fee2e2;
}

.impacto--medio {
    color: #b45309;
    background: #fef3c7;
}

.impacto--indireto {
    color: #475569;
    background: #e2e8f0;
}

html[data-theme="dark"] .impacto--alto {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.16);
}

html[data-theme="dark"] .impacto--medio {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.16);
}

html[data-theme="dark"] .impacto--indireto {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.18);
}

#modalDetalhes .modal-dialog {
    max-width: 95vw;
}

.par-pointer-hint {
    max-width: 250px;
    cursor: pointer;
}

/* Modal de detalhes: somente a tabela rola; filtros (topo) e "Carregar mais" (rodape) ficam sempre visiveis */
#modal-detalhes-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: .75rem 1rem;
}

#modal-detalhes-content > * {
    flex-shrink: 0;
}

#modal-detalhes-content > .tabela-detalhes-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* Linhas compactas no modal para mostrar mais registros por tela */
.table.tabela-detalhes tbody td {
    min-width: 0;
    padding-top: .4rem;
    padding-bottom: .4rem;
}

.filtros-detalhes .btn-link {
    color: var(--admin-primary);
    text-decoration: none;
}

.filtros-detalhes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .75rem;
    padding-bottom: .5rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--admin-border);
    font-size: .8125rem;
}

.filtros-detalhes .form-control-sm,
.filtros-detalhes .form-select-sm {
    min-height: 0;
    padding-top: .15rem;
    padding-bottom: .15rem;
    font-size: .8125rem;
}

.filtros-detalhes .form-select-sm {
    width: auto;
}

.filtros-detalhes__horario {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.filtros-detalhes__horario .form-control-sm {
    width: 6.25rem;
}

.filtros-detalhes .form-check {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-height: 0;
}

.filtros-detalhes .form-check-input {
    margin-top: 0;
}

.filtros-detalhes__total {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
    white-space: nowrap;
}

.carregar-mais-detalhes {
    padding-top: .5rem;
    text-align: center;
}

.carregar-mais-detalhes:not(:has(button)) {
    display: none;
}

.tabela-detalhes-header th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--admin-surface-soft);
    white-space: nowrap;
}

html[data-theme="dark"] .tabela-detalhes-header th {
    --bs-table-bg: var(--admin-surface-soft);
    --bs-table-color: var(--admin-muted);
    border-color: var(--admin-border);
}

.tabela-detalhes {
    font-size: .8125rem;
}

.tabela-detalhes td {
    vertical-align: top;
}

/* Textos grandes (SQL, plano, parametros) ficam em uma linha e expandem ao clicar */
.texto-detalhe {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.texto-detalhe--curto {
    max-width: 180px;
}

.texto-detalhe--codigo {
    font-family: var(--bs-font-monospace);
    font-size: .75rem;
    cursor: pointer;
}

.texto-detalhe--codigo:hover {
    color: var(--bs-primary);
}

.texto-detalhe.expandido {
    width: 420px;
    max-width: 420px;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    padding: .25rem .375rem;
    border-radius: .25rem;
    background-color: var(--bs-tertiary-bg);
}

a {
    text-decoration: none;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    /* Reserve scrollbar gutter to keep inner content width stable so header/footer dividers align with scrollbar */
    /* scrollbar-gutter: stable; */
    background: var(--admin-sidebar);
    color: #ffffff;
    box-shadow: 18px 0 42px rgba(15, 23, 42, 0.18);
    transform: translateX(0);
    transition: width 0.2s ease, transform 0.2s ease;
}

.sidebar-header {
    padding: 1.35rem 1.25rem 1.15rem;
    margin-inline: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: #ffffff;
}

.brand-mark:hover,
.brand-mark:focus {
    color: #ffffff;
}

.brand-icon,
.profile-avatar,
.metric-icon,
.nav-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    font-weight: 800;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #ffffff;
}

.brand-logo {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-copy,
.brand-title,
.brand-subtitle,
.nav-text,
.sidebar-footer-text {
    min-width: 0;
    transition: opacity 0.16s ease, width 0.16s ease;
}

.brand-title,
.brand-subtitle {
    display: block;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.brand-subtitle {
    color: #9ca3af;
    font-size: 0.78rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.45rem;
    padding: 1.1rem 1rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.78rem 0.9rem;
    border-radius: 8px;
    color: #d1d5db;
    font-weight: 700;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus,
.sidebar-nav .nav-link.active {
    background: var(--admin-sidebar-soft);
    color: #ffffff;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus {
    transform: translateX(2px);
}

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
    font-size: 0.76rem;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    margin-inline: 1.25rem;
    padding: 1rem 0;
    color: #d1d5db;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    white-space: nowrap;
}

.sidebar-user {
    margin: auto 1rem 1rem;
    padding: 0.85rem;
    display: grid;
    justify-items: center;
    gap: 0.22rem;
    border: 1px solid var(--admin-sidebar-border);
    border-radius: 8px;
    background: var(--admin-sidebar-soft);
    text-align: center;
}

.sidebar-user-avatar {
    border: 3px solid #53e9b9;
}

.sidebar-user strong {
    color: var(--admin-sidebar-text-strong);
    font-size: 1rem;
    line-height: 1.1;
}

.sidebar-user small {
    color: var(--admin-sidebar-muted);
    font-size: 0.84rem;
}

.status-dot,
.notification-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status-dot {
    flex: 0 0 auto;
    background: #22c55e;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1030;
    display: none;
    background: rgba(15, 23, 42, 0.5);
}

.admin-main {
    width: auto;
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.2s ease;
}

.admin-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 72px;
    border-bottom: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow-sm);
}

.admin-navbar.bg-white {
    background-color: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(14px);
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    padding: 9px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
    border-color: #bfdbfe;
    background: #f8fbff;
    box-shadow: var(--admin-ring);
}

.sidebar-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    background: var(--admin-text);
    border-radius: 999px;
}

.search-input {
    max-width: 520px;
    border-color: var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface-soft);
    min-height: 42px;
    box-shadow: none;
}

.search-input:focus {
    border-color: #93c5fd;
    box-shadow: var(--admin-ring);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-button,
.profile-button {
    border: 1px solid var(--admin-border);
    background: #ffffff;
    color: var(--admin-text);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.icon-button:hover,
.icon-button:focus,
.profile-button:hover,
.profile-button:focus {
    border-color: #bfdbfe;
    box-shadow: var(--admin-ring);
}

.icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-weight: 800;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--admin-danger);
}

.notification-menu {
    width: min(320px, calc(100vw - 2rem));
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
}

.notification-menu .dropdown-item {
    display: grid;
    gap: 0.2rem;
    padding-block: 0.7rem;
}

.notification-title {
    font-weight: 700;
}

.notification-time {
    color: var(--admin-muted);
    font-size: 0.82rem;
}

/* Avisos: contador do sino, lista do menu e pagina de avisos */
.aviso-contador {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--admin-danger);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
}

.aviso-sino-lista {
    max-height: 360px;
    overflow-y: auto;
}

.notification-menu .aviso-sino-item {
    white-space: normal;
    border-left: 3px solid transparent;
}

.notification-menu .aviso-sino-item .notification-title {
    display: flex;
    gap: 0.4rem;
    font-size: 0.86rem;
    line-height: 1.3;
}

.notification-menu .aviso-sino-item--nao-lido {
    border-left-color: var(--admin-primary);
    background: color-mix(in srgb, var(--admin-primary) 7%, transparent);
}

.avisos-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.avisos-filtros .form-select-sm {
    width: auto;
}

.avisos-lista {
    display: grid;
    gap: 0.65rem;
}

.aviso-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--admin-border);
    border-left: 4px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
}

.aviso-item--nao-lido {
    border-left-color: var(--admin-primary);
    background: color-mix(in srgb, var(--admin-primary) 4%, var(--admin-surface));
}

.aviso-item:target {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--admin-primary) 35%, transparent);
}

.aviso-item__icone {
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
}

.aviso-item__icone--critico {
    color: var(--admin-danger);
}

.aviso-item__icone--atencao {
    color: var(--admin-warning);
}

.aviso-item__icone--info {
    color: #0ea5e9;
}

.aviso-item__conteudo {
    flex: 1 1 auto;
    min-width: 0;
}

.aviso-item__topo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.aviso-item__titulo {
    margin: 0 0.25rem 0 0;
    font-size: 0.98rem;
    font-weight: 700;
}

.aviso-item--nao-lido .aviso-item__titulo::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 0.4rem;
    border-radius: 50%;
    background: var(--admin-primary);
    vertical-align: middle;
}

.aviso-item__categoria {
    border: 1px solid var(--admin-border);
    background: var(--admin-surface-soft);
    color: var(--admin-muted);
}

.aviso-item__mensagem {
    margin: 0.35rem 0 0;
    color: var(--admin-text);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.aviso-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 0.45rem;
    color: var(--admin-muted);
    font-size: 0.8rem;
}

.aviso-item__acao {
    flex: 0 0 auto;
}

/* Usuarios da empresa (Configuracoes): tabela em meia largura, etiquetas de permissao quebram linha */
.tabela-usuarios tbody td {
    min-width: 0;
}

.tabela-usuarios tbody td:first-child {
    min-width: 210px;
}

.tabela-usuarios .badge {
    white-space: normal;
    text-align: left;
}

.aviso-item__envios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.aviso-envio {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    color: var(--admin-muted);
    font-size: 0.75rem;
}

.aviso-envio--enviado {
    border-color: color-mix(in srgb, var(--admin-success) 45%, transparent);
    color: var(--admin-success);
}

.aviso-envio--falhou {
    border-color: color-mix(in srgb, var(--admin-danger) 45%, transparent);
    color: var(--admin-danger);
}

.aviso-envio--limitado {
    border-color: color-mix(in srgb, var(--admin-warning) 45%, transparent);
    color: var(--admin-warning);
}

.regras-canais {
    display: grid;
    gap: 0.2rem;
}

.regras-lista {
    display: grid;
    gap: 0.75rem;
}

.regra-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--admin-border);
    border-left: 4px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
    transition: border-color 0.16s ease;
}

.regra-item--ativa {
    border-left-color: var(--admin-primary);
}

.regra-item__cabecalho .form-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem !important;
}

.regra-item__cabecalho .form-switch .form-check-input {
    margin-top: 0;
}

.regra-item__campos {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.regra-item__limite {
    width: 260px;
}

/* Textos de ajuda dos formularios seguem a cor do tema escuro (o Bootstrap mantem a cor do tema claro) */
html[data-theme="dark"] .form-text {
    color: var(--admin-muted);
}

html[data-theme="dark"] .regra-item .input-group-text {
    border-color: var(--admin-border);
    background: var(--admin-surface-soft);
    color: var(--admin-muted);
}

.regra-item__limite .form-text {
    margin-top: 0.15rem;
    font-size: 0.75rem;
}

@media (max-width: 991.98px) {
    .regra-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .regra-item__campos {
        flex-direction: column;
        gap: 0.75rem;
    }

    .regra-item__limite {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .aviso-item {
        flex-wrap: wrap;
    }

    .aviso-item__acao {
        width: 100%;
    }
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-weight: 700;
}

.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #e0ecff;
    color: var(--admin-primary-dark);
    font-size: 0.76rem;
}

.avatar-img {
    display: block;
    flex: 0 0 auto;
    object-fit: cover;
    object-position: center;
}

.avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.avatar-md {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.avatar-xl {
    width: 78px;
    height: 78px;
    border-radius: 50%;
}

.profile-button .avatar-sm {
    border: 2px solid #52e7b8;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .profile-button .avatar-sm {
    border-color: #54f0be;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.dashboard-content {
    min-height: calc(100vh - 142px);
}

/* Botao "voltar ao topo" (dashboard de eventos): visivel so depois de rolar */
.voltar-topo {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1030;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--admin-primary);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: var(--admin-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, filter 0.2s ease;
}

.voltar-topo.visivel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.voltar-topo:hover {
    filter: brightness(0.92);
}

.voltar-topo:focus-visible {
    outline: none;
    box-shadow: var(--admin-ring), var(--admin-shadow);
}

.dashboard-content > .container-fluid {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
}

.page-heading,
.panel-header,
.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.page-heading {
    margin-bottom: 1.35rem;
}

.page-heading h1 {
    font-weight: 800;
    letter-spacing: 0;
}

.eyebrow {
    color: var(--admin-primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.btn {
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

/* Cores de todos os estados pelas variaveis do Bootstrap (hover, foco, clique, desabilitado), iguais nos dois temas */
.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #ff6a13;
    --bs-btn-border-color: #ff6a13;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #e85a0c;
    --bs-btn-hover-border-color: #e85a0c;
    --bs-btn-focus-shadow-rgb: 255, 106, 19;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #c94d08;
    --bs-btn-active-border-color: #c94d08;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #ff6a13;
    --bs-btn-disabled-border-color: #ff6a13;
}

.metric-card,
.panel {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow);
}

.metric-card {
    position: relative;
    min-height: 134px;
    padding: 1.35rem;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--metric-color, var(--admin-primary));
}

.metric-card:hover {
    border-color: #c6d5e8;
    box-shadow: var(--admin-shadow-lg);
    transform: translateY(-3px);
}

.metric-primary {
    --metric-color: var(--admin-primary);
}

.metric-success {
    --metric-color: var(--admin-success);
}

.metric-warning {
    --metric-color: var(--admin-warning);
}

.metric-danger {
    --metric-color: var(--admin-danger);
}

.metric-label {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eaf2ff;
    color: var(--metric-color, var(--admin-primary));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.metric-success .metric-icon {
    background: #e7f6f3;
}

.metric-warning .metric-icon {
    background: #fff4df;
}

.metric-danger .metric-icon {
    background: #ffecec;
}

.metric-value {
    margin-top: 1rem;
    color: var(--admin-text);
    font-size: 2.18rem;
    font-weight: 800;
    line-height: 1;
}

.metric-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.9rem;
    color: var(--admin-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.panel {
    padding: 1.35rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.panel:hover {
    border-color: #c6d5e8;
    box-shadow: var(--admin-shadow-lg);
}

.panel-header {
    margin-bottom: 1.25rem;
}

.panel-header p {
    font-size: 0.92rem;
}

.chart-bars {
    height: 292px;
    display: grid;
    grid-template-columns: repeat(6, minmax(38px, 1fr));
    align-items: end;
    gap: 1rem;
    padding: 1.2rem 0.4rem 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.chart-column {
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: 0.6rem;
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.chart-column span {
    width: 100%;
    height: var(--bar-size);
    min-height: 28px;
    display: block;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, var(--admin-primary), var(--admin-success));
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.bar-42 {
    --bar-size: 42%;
}

.bar-58 {
    --bar-size: 58%;
}

.bar-51 {
    --bar-size: 51%;
}

.bar-72 {
    --bar-size: 72%;
}

.bar-66 {
    --bar-size: 66%;
}

.bar-83 {
    --bar-size: 83%;
}

.activity-list {
    display: grid;
    gap: 1.1rem;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--admin-border);
}

.activity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.activity-dot {
    width: 12px;
    height: 12px;
    margin-top: 0.45rem;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08);
}

.table {
    --bs-table-bg: transparent;
}

.table thead th {
    color: var(--admin-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody td {
    min-width: 120px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.table tbody tr {
    transition: background 0.16s ease;
}

.table tbody tr:hover {
    background: #f8fbff;
}

.badge {
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
}

.table-search {
    width: min(260px, 100%);
    border-color: var(--admin-border);
    border-radius: 8px;
}

.table-media {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.product-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid var(--admin-border);
}

.profile-avatar-lg {
    width: 92px;
    height: 92px;
    border-radius: 8px;
    font-size: 1.5rem;
}

.profile-hero {
    display: grid;
    justify-items: center;
}

.profile-card {
    overflow: hidden;
}

.profile-cover {
    margin: -1.35rem -1.35rem 0.9rem;
    height: 96px;
    border-bottom: 1px solid var(--admin-border);
}

.profile-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.profile-photo {
    margin-top: -44px;
    border: 4px solid var(--admin-surface);
    box-shadow: var(--admin-shadow-sm);
}

.info-list,
.settings-list,
.legend-list {
    display: grid;
    gap: 0.85rem;
}

.info-list div,
.mini-card,
.settings-row,
.legend-list div {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface-soft);
}

.info-list div,
.legend-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
}

.info-list span,
.mini-card span,
.settings-row small {
    color: var(--admin-muted);
    font-size: 0.84rem;
}

.info-list strong,
.mini-card strong {
    text-align: right;
}

.mini-card {
    display: grid;
    gap: 0.35rem;
    min-height: 104px;
    align-content: center;
    padding: 1rem;
}

.mini-card strong {
    color: var(--admin-text);
    font-size: 1.05rem;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
}

.settings-row span {
    display: grid;
    gap: 0.2rem;
}

.donut-chart {
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--admin-primary) 0 42%, var(--admin-success) 42% 68%, var(--admin-warning) 68% 86%, var(--admin-danger) 86% 100%);
    box-shadow: var(--admin-shadow-sm);
}

.donut-chart span {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: var(--admin-text);
    font-size: 1.65rem;
    font-weight: 800;
}

.legend-list div {
    padding: 0.75rem 0.85rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.legend-list strong {
    margin-left: auto;
}

.progress {
    height: 1.15rem;
    border-radius: 8px;
    background: #e8eef6;
}

.progress-bar {
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
}

.progress-42 {
    width: 42%;
}

.progress-58 {
    width: 58%;
}

.progress-72 {
    width: 72%;
}

.blank-panel {
    min-height: 440px;
    display: grid;
    place-items: center;
    text-align: center;
}

.blank-state {
    max-width: 440px;
    display: grid;
    justify-items: center;
}

.blank-visual {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin-bottom: 0.9rem;
}

.auth-body {
    min-height: 100vh;
    background: var(--lp-claro);
}

.auth-page,
.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.auth-card,
.error-card {
    width: min(100%, 460px);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--admin-shadow-lg);
}

.auth-card {
    padding: 1.5rem;
}

.auth-visual {
    margin-bottom: 1rem;
    height: 96px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    overflow: hidden;
}

.auth-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.error-card {
    padding: 2rem;
    text-align: center;
}

.error-illustration {
    width: min(260px, 100%);
    max-height: 132px;
    object-fit: contain;
    margin: 0 auto 0.55rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--admin-text);
}

.auth-brand:hover,
.auth-brand:focus {
    color: var(--admin-text);
}

.auth-brand span:last-child {
    display: grid;
    line-height: 1.2;
}

.auth-brand small,
.auth-footer {
    color: var(--admin-muted);
}

.auth-footer {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.92rem;
}

.error-code {
    color: var(--admin-primary);
    font-size: clamp(5rem, 18vw, 8rem);
    font-weight: 800;
    line-height: 1;
}

.admin-footer {
    padding: 1.1rem 0 1.35rem;
    color: var(--admin-muted);
    font-size: 0.9rem;
}

.admin-footer .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 992px) {
    body.sidebar-mini .admin-sidebar {
        width: var(--sidebar-mini-width);
    }

    body.sidebar-mini .admin-main {
        margin-left: var(--sidebar-mini-width);
    }

    body.sidebar-mini .brand-copy,
    body.sidebar-mini .nav-text,
    body.sidebar-mini .sidebar-footer-text {
        width: 0;
        opacity: 0;
        overflow: hidden;
    }

    body.sidebar-mini .sidebar-header,
    body.sidebar-mini .sidebar-footer {
        margin-inline: 1rem;
        padding-inline: 0;
    }

    body.sidebar-mini .sidebar-nav .nav-link {
        justify-content: center;
        padding-inline: 0.65rem;
        gap: 0;
    }

    body.sidebar-mini .sidebar-nav .nav-link:hover,
    body.sidebar-mini .sidebar-nav .nav-link:focus {
        transform: none;
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        width: min(var(--sidebar-width), calc(100vw - 48px));
        transform: translateX(-100%);
    }

    .admin-main {
        margin-left: 0;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .page-heading,
    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .heading-actions {
        width: 100%;
        justify-content: stretch;
    }

    .heading-actions .btn {
        flex: 1 1 0;
    }

    .chart-bars {
        height: 220px;
        gap: 0.6rem;
        padding-inline: 0.25rem;
    }

    .metric-value {
        font-size: 1.85rem;
    }

    .metric-card,
    .panel {
        padding: 1.1rem;
    }

    .admin-footer .container-fluid {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-nav .nav-link,
    .sidebar-toggle,
    .icon-button,
    .profile-button,
    .btn,
    .metric-card,
    .panel,
    .table tbody tr {
        transition: none;
    }

    .sidebar-nav .nav-link:hover,
    .sidebar-nav .nav-link:focus,
    .btn:hover,
    .btn:focus,
    .metric-card:hover {
        transform: none;
    }
}

html[data-theme="dark"] {
    --admin-bg: #0f172a;
    --admin-surface: #182235;
    --admin-surface-soft: #111827;
    --admin-border: #2f3b52;
    --admin-text: #e5edf7;
    --admin-muted: #9aa8bd;
    --admin-primary: #60a5fa;
    --admin-primary-dark: #3b82f6;
    --admin-success: #2dd4bf;
    --admin-warning: #fbbf24;
    --admin-danger: #f87171;
    --admin-sidebar: #090f1d;
    --admin-sidebar-soft: #172033;
    --admin-shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.24);
    --admin-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
    --admin-shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.42);
    --admin-ring: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

html[data-theme="dark"] body {
    background: linear-gradient(180deg, #111827 0%, var(--admin-bg) 48%, #0b1120 100%);
}

.brand-icon {
    font-size: 1.1rem;
}

.nav-icon {
    font-size: 0.95rem;
}

.theme-toggle i {
    font-size: 1rem;
}

.admin-navbar.bg-white,
.sidebar-toggle,
.icon-button,
.profile-button {
    background-color: var(--admin-surface) !important;
    color: var(--admin-text);
}

html[data-theme="dark"] .admin-navbar.bg-white {
    background-color: rgba(24, 34, 53, 0.92) !important;
}

html[data-theme="dark"] .profile-avatar {
    background: #1e3a5f;
    color: #bfdbfe;
}

.page-heading-copy {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    min-width: 0;
}

.page-icon,
.section-title i {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eaf2ff;
    color: var(--admin-primary-dark);
}

.page-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.section-title i {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
}

html[data-theme="dark"] .page-icon,
html[data-theme="dark"] .section-title i {
    background: #1e3a5f;
    color: #bfdbfe;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-light {
    border-color: var(--admin-border);
    background: var(--admin-surface-soft);
    color: var(--admin-text);
}

.btn-outline-secondary {
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    border-color: var(--admin-primary);
    background: #eaf2ff;
    color: var(--admin-primary-dark);
}

html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-secondary:focus {
    background: #1e3a5f;
    color: #bfdbfe;
}

html[data-theme="dark"] .chart-bars {
    background: linear-gradient(180deg, #111827 0%, #182235 100%);
}

html[data-theme="dark"] .table tbody tr:hover {
    background: #111827;
}

html[data-theme="dark"] .progress {
    background: #243149;
}

html[data-theme="dark"] .auth-body {
    background: linear-gradient(135deg, #0b1120 0%, #111827 48%, #10201f 100%);
}

.auth-card,
.error-card {
    background: var(--admin-surface);
}

.auth-theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.dropdown-menu,
.modal-content,
.accordion-item,
.accordion-button {
    border-color: var(--admin-border);
    background-color: var(--admin-surface);
    color: var(--admin-text);
}

.dropdown-item,
.accordion-body {
    color: var(--admin-text);
}

.dropdown-item:hover,
.dropdown-item:focus,
.accordion-button:not(.collapsed) {
    background-color: var(--admin-surface-soft);
    color: var(--admin-text);
}

.form-control,
.form-select {
    border-color: var(--admin-border);
    background-color: var(--admin-surface);
    color: var(--admin-text);
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd;
    background-color: var(--admin-surface);
    color: var(--admin-text);
    box-shadow: var(--admin-ring);
}

.form-control::placeholder {
    color: var(--admin-muted);
}

.text-muted {
    color: var(--admin-muted) !important;
}

html[data-theme="dark"] .text-body {
    color: var(--admin-text) !important;
}

html[data-theme="dark"] .text-bg-secondary {
    background-color: #334155 !important;
    color: #e5edf7 !important;
}

@media (max-width: 767.98px) {
    .navbar-actions {
        gap: 0.5rem;
    }

    .icon-button,
    .profile-button,
    .sidebar-toggle {
        width: 40px;
        height: 40px;
    }

    .profile-button {
        padding: 0.3rem;
    }

    .page-heading-copy {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .page-heading-copy {
        width: 100%;
    }

    .page-icon {
        width: 44px;
        height: 44px;
    }

    .panel-header .d-flex,
    .panel-header .form-control,
    .panel-header .form-select {
        width: 100%;
    }
}

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

body,
.admin-navbar,
.admin-sidebar,
.admin-main,
.metric-card,
.panel,
.auth-card,
.error-card,
.dropdown-menu,
.modal-content,
.form-control,
.form-select {
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.table {
    --bs-table-color: var(--admin-text);
    --bs-table-border-color: var(--admin-border);
    color: var(--admin-text);
}

.page-link {
    border-color: var(--admin-border);
    background: var(--admin-surface);
    color: var(--admin-text);
}

.page-link:hover,
.page-link:focus {
    border-color: var(--admin-primary);
    background: var(--admin-surface-soft);
    color: var(--admin-primary);
}

.page-item.active .page-link {
    border-color: var(--admin-primary);
    background: var(--admin-primary);
    color: #ffffff;
}

.page-item.disabled .page-link {
    border-color: var(--admin-border);
    background: var(--admin-surface-soft);
    color: var(--admin-muted);
}

.alert {
    border-radius: 8px;
}

html[data-theme="dark"] .alert-primary {
    border-color: #1d4ed8;
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
}

html[data-theme="dark"] .alert-success {
    border-color: #0f766e;
    background: rgba(15, 118, 110, 0.18);
    color: #99f6e4;
}

html[data-theme="dark"] .alert-warning {
    border-color: #d97706;
    background: rgba(217, 119, 6, 0.18);
    color: #fde68a;
}

html[data-theme="dark"] .alert-danger {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.16);
    color: #fecaca;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .accordion-item {
    border-color: var(--admin-border);
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(180%);
}

html[data-theme="dark"] .text-bg-info {
    background-color: #0e7490 !important;
    color: #ecfeff !important;
}

html[data-theme="dark"] .text-bg-warning {
    background-color: #b45309 !important;
    color: #fff7ed !important;
}

html[data-theme="dark"] .text-bg-success {
    background-color: #0f766e !important;
    color: #ecfdf5 !important;
}

html[data-theme="dark"] .text-bg-danger {
    background-color: #b91c1c !important;
    color: #fef2f2 !important;
}

@media (max-width: 991.98px) {
    .dashboard-content > .container-fluid {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .admin-sidebar {
        box-shadow: 18px 0 48px rgba(0, 0, 0, 0.28);
    }
}

@media (max-width: 767.98px) {
    .panel-header {
        align-items: flex-start;
    }

    .panel-header > .d-flex {
        width: 100%;
    }

    .table-search {
        width: 100%;
    }

    .auth-page,
    .error-page {
        padding: 1rem;
    }

    .auth-card,
    .error-card {
        padding: 1.15rem;
    }
}

@media (max-width: 420px) {
    .heading-actions {
        width: 100%;
    }

    .heading-actions .btn {
        width: 100%;
    }

    .metric-card {
        min-height: 146px;
    }

    .profile-avatar-lg {
        width: 76px;
        height: 76px;
    }
}

@media (max-width: 575.98px) {
    .avatar-sm {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .avatar-xl {
        width: 70px;
        height: 70px;
    }

    .profile-cover {
        height: 82px;
        margin-bottom: 0.75rem;
    }

    .profile-photo {
        margin-top: -38px;
    }

    .auth-visual {
        height: 82px;
    }

    .product-thumb {
        width: 36px;
        height: 36px;
    }
}

html:not([data-theme="dark"]) {
    --admin-sidebar: #ffffff;
    --admin-sidebar-soft: #eef4ff;
    --admin-sidebar-border: #dbe4ef;
    --admin-sidebar-text: #475569;
    --admin-sidebar-text-strong: #0f172a;
    --admin-sidebar-muted: #64748b;
    --admin-sidebar-icon-bg: #eaf2ff;
    --admin-sidebar-icon: #2563eb;
    --admin-sidebar-shadow: 18px 0 42px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
    --admin-sidebar-border: rgba(255, 255, 255, 0.08);
    --admin-sidebar-text: #d1d5db;
    --admin-sidebar-text-strong: #ffffff;
    --admin-sidebar-muted: #9ca3af;
    --admin-sidebar-icon-bg: rgba(255, 255, 255, 0.08);
    --admin-sidebar-icon: #bfdbfe;
    --admin-sidebar-shadow: 18px 0 42px rgba(0, 0, 0, 0.34);
}

.admin-sidebar {
    border-right: 1px solid var(--admin-sidebar-border);
    background: var(--admin-sidebar);
    color: var(--admin-sidebar-text-strong);
    box-shadow: var(--admin-sidebar-shadow);
}

.sidebar-header {
    border-bottom-color: var(--admin-sidebar-border);
}

.brand-mark,
.brand-mark:hover,
.brand-mark:focus {
    color: var(--admin-sidebar-text-strong);
}

.brand-subtitle {
    color: var(--admin-sidebar-muted);
}

.sidebar-nav .nav-link {
    color: var(--admin-sidebar-text);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus,
.sidebar-nav .nav-link.active {
    background: var(--admin-sidebar-soft);
    color: var(--admin-sidebar-text-strong);
}

.nav-icon {
    background: var(--admin-sidebar-icon-bg);
    color: var(--admin-sidebar-icon);
}

.sidebar-footer {
    border-top-color: var(--admin-sidebar-border);
    color: var(--admin-sidebar-text);
}


/* =========================================================================
   SITE (pagina inicial publica) - tudo escopado em body.lp para nao
   afetar o portal (painel, modais e formularios)
   ========================================================================= */

html:has(body.lp) {
    scroll-behavior: smooth;
}

body.lp {
    --lp-bg: #0c1014;
    --lp-bg-2: #11161c;
    --lp-card: #161c23;
    --lp-card-2: #1b222b;
    --lp-borda: rgba(255, 255, 255, 0.08);
    --lp-texto: #f5f7fa;
    --lp-suave: #a3adba;
    --lp-laranja: #ff6a13;
    --lp-gradiente: linear-gradient(135deg, #ff8a00 0%, #ff4d1a 100%);
    --lp-claro: #f6f7f9;
    --lp-escuro: #11161c;
    --lp-cinza: #5b6573;
    --lp-header: 76px;
    min-height: 100vh;
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-texto);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.lp h1,
body.lp h2,
body.lp h3,
body.lp p,
body.lp ul {
    margin: 0;
}

body.lp a {
    color: inherit;
    text-decoration: none;
}

body.lp :focus-visible {
    outline: 2px solid var(--lp-laranja);
    outline-offset: 3px;
}

body.lp section[id] {
    scroll-margin-top: calc(var(--lp-header) - 4px);
}

.lp-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-destaque {
    background: var(--lp-gradiente);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Botoes ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 48px;
    padding: .75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.lp-btn:hover {
    transform: translateY(-2px);
}

.lp-btn--primario {
    background: var(--lp-gradiente);
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(255, 90, 20, .28);
}

.lp-btn--primario:hover {
    box-shadow: 0 14px 36px rgba(255, 90, 20, .4);
}

.lp-btn--contorno {
    border-color: rgba(255, 255, 255, .35);
    color: #fff !important;
    background: transparent;
}

.lp-btn--contorno:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .05);
}

.lp-btn--grande {
    min-height: 64px;
    padding: 1rem 2.1rem;
    font-size: 1.1rem;
}

.lp-btn--bloco {
    width: 100%;
}

.lp-icone-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: .95rem;
}

/* ---------- Header ---------- */
.lp-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: transparent;
    transition: background-color .25s ease, box-shadow .25s ease;
}

.lp-header.lp-header--solido,
.lp-header.lp-header--aberto {
    background: #0c1014;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.lp-header__barra {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: var(--lp-header);
}

.lp-marca {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #fff;
    white-space: nowrap;
}

.lp-marca svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.lp-marca__scope {
    color: var(--lp-laranja);
}

.lp-menu {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 2rem;
}

.lp-menu__links {
    display: flex;
    gap: 2.1rem;
    list-style: none;
    padding: 0;
}

.lp-menu__links a {
    color: #e7ebf0;
    font-weight: 500;
    transition: color .15s ease;
}

.lp-menu__links a:hover {
    color: var(--lp-laranja);
}

.lp-menu__acoes {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.lp-menu__entrar {
    font-weight: 500;
    color: #e7ebf0;
}

.lp-menu__entrar:hover {
    color: #fff;
}

.lp-hamburguer {
    display: none;
    margin-left: auto;
    padding: .35rem .55rem;
    border: 1px solid var(--lp-borda);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--lp-header) + 56px) 0 0;
    background:
        radial-gradient(ellipse 60% 45% at 85% 20%, rgba(255, 106, 19, .13), transparent 70%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(255, 106, 19, .06), transparent 70%),
        var(--lp-bg);
}

.lp-hero__grade {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
}

.lp-selo {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lp-selo::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lp-laranja);
    box-shadow: 0 0 0 4px rgba(255, 106, 19, .18);
}

.lp-hero h1 {
    margin-top: 1.6rem;
    font-size: clamp(2.5rem, 4.6vw, 4.1rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.lp-hero__texto {
    max-width: 610px;
    margin-top: 1.5rem !important;
    color: var(--lp-suave);
    font-size: clamp(1.05rem, 1.6vw, 1.32rem);
    line-height: 1.6;
}

.lp-hero__acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: 2.2rem;
}

.lp-hero__nota {
    margin-top: 1.1rem !important;
    color: var(--lp-suave);
    font-size: .9rem;
}

.lp-hero__nota i {
    color: var(--lp-laranja);
}

/* ---------- Mockup do painel (hero) ---------- */
.lp-mock {
    position: relative;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: linear-gradient(180deg, #151b22, #0f1419);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .02);
    font-size: 11px;
    line-height: 1.35;
    color: #dfe5ec;
}

@media (min-width: 1200px) {
    .lp-mock {
        transform: perspective(1800px) rotateY(-14deg) rotateX(5deg) rotateZ(1deg);
        transform-origin: left center;
    }
}

.lp-mock__pontos {
    position: absolute;
    top: 10px;
    left: 14px;
    display: flex;
    gap: 5px;
}

.lp-mock__pontos span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5f57;
}

.lp-mock__pontos span:nth-child(2) {
    background: #febc2e;
}

.lp-mock__pontos span:nth-child(3) {
    background: #28c840;
}

.lp-mock__lateral {
    padding: 22px 8px 0 0;
    border-right: 1px solid var(--lp-borda);
}

.lp-mock__marca {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
}

.lp-mock__marca svg {
    width: 20px;
    height: 20px;
}

.lp-mock__item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 6px;
    color: #aab3bf;
    white-space: nowrap;
}

.lp-mock__item--ativo {
    background: rgba(255, 106, 19, .14);
    color: #fff;
    box-shadow: inset 2px 0 0 var(--lp-laranja);
}

.lp-mock__item--ativo i {
    color: var(--lp-laranja);
}

.lp-mock__corpo {
    min-width: 0;
    padding: 18px 0 0 12px;
}

.lp-mock__topo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #c4ccd6;
}

.lp-mock__filtro {
    margin-left: auto;
    padding: 4px 10px;
    border: 1px solid var(--lp-borda);
    border-radius: 6px;
}

.lp-mock__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.lp-mock__card {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--lp-borda);
    border-radius: 8px;
    background: var(--lp-card);
}

.lp-mock__card small {
    display: block;
    color: #9aa4b2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-mock__card strong {
    display: block;
    margin-top: 2px;
    font-size: 19px;
    font-weight: 600;
    color: #fff;
}

.lp-mock__sobe {
    color: #3ddc84;
    font-size: 10px;
}

.lp-mock__desce {
    color: #ff5a4f;
    font-size: 10px;
}

.lp-mock__linha {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.lp-mock__painel {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--lp-borda);
    border-radius: 8px;
    background: var(--lp-card);
}

.lp-mock__painel h3 {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
}

.lp-mock__grafico {
    display: block;
    width: 100%;
    height: 96px;
}

.lp-mock__rosca {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-mock__rosca-grafico {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(#ff6a13 0 28%, #ff8f3d 28% 46%, #ffb37a 46% 58%, #3a434f 58% 100%);
    -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%);
    mask: radial-gradient(circle, transparent 52%, #000 53%);
}

.lp-mock__legenda {
    flex: 1;
    min-width: 0;
    list-style: none;
    padding: 0;
}

.lp-mock__legenda li {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 3px 0;
    font-size: 9.5px;
}

.lp-mock__legenda li span:last-child {
    margin-left: auto;
}

.lp-mock__legenda i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cor);
}

.lp-mock__tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.lp-mock__tabela th {
    padding: 4px 6px;
    color: #8f99a6;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid var(--lp-borda);
}

.lp-mock__tabela td {
    padding: 5px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    white-space: nowrap;
}

.lp-mock__tabela td:first-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Faixa de destaques (hero) ---------- */
.lp-destaques {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 4.5rem;
    padding: 2.2rem 1.6rem 5.5rem;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
}

.lp-destaque-item {
    display: flex;
    gap: 1.1rem;
}

.lp-destaque-item > i {
    flex-shrink: 0;
    color: var(--lp-laranja);
    font-size: 2rem;
    line-height: 1;
}

.lp-destaque-item h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.lp-destaque-item p {
    margin-top: .35rem !important;
    color: var(--lp-suave);
    font-size: .98rem;
}

/* ---------- Secoes ---------- */
.lp-secao {
    padding: 96px 0;
}

.lp-secao--clara {
    position: relative;
    z-index: 1;
    margin-top: -3rem;
    border-radius: 32px 32px 0 0;
    background: var(--lp-claro);
    color: var(--lp-escuro);
}

.lp-secao--branca {
    background: #fff;
    color: var(--lp-escuro);
}

.lp-secao--escura {
    background: var(--lp-bg);
}

.lp-secao--escura-2 {
    background:
        radial-gradient(ellipse 50% 60% at 100% 0%, rgba(255, 106, 19, .1), transparent 70%),
        var(--lp-bg-2);
}

.lp-rotulo {
    display: block;
    margin-bottom: .5rem;
    color: var(--lp-laranja);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lp-titulo {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.lp-subtitulo {
    color: var(--lp-cinza);
    font-size: 1.1rem;
    line-height: 1.7;
}

.lp-secao--escura .lp-subtitulo,
.lp-secao--escura-2 .lp-subtitulo {
    color: var(--lp-suave);
}

.lp-cabecalho {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 2rem 4rem;
    margin-bottom: 3.2rem;
}

.lp-cabecalho--centro {
    display: block;
    max-width: 760px;
    margin: 0 auto 3.2rem;
    text-align: center;
}

.lp-cabecalho--centro .lp-subtitulo {
    margin-top: 1rem !important;
}

/* ---------- Funcionalidades ---------- */
.lp-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.lp-card {
    display: flex;
    gap: 1.1rem;
    padding: 1.6rem 1.4rem;
    border: 1px solid #e8ebef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(17, 22, 28, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lp-card:hover {
    transform: translateY(-4px);
    border-color: #ffd3b8;
    box-shadow: 0 16px 36px rgba(17, 22, 28, .08);
}

.lp-card > i {
    flex-shrink: 0;
    color: var(--lp-laranja);
    font-size: 1.85rem;
    line-height: 1;
}

.lp-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
}

.lp-card p {
    margin-top: .4rem !important;
    color: var(--lp-cinza);
    font-size: .98rem;
    line-height: 1.55;
}

/* ---------- Produto: como funciona ---------- */
.lp-passos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: passo;
}

.lp-passo {
    position: relative;
    padding: 2rem 1.6rem 1.8rem;
    border: 1px solid var(--lp-borda);
    border-radius: 16px;
    background: var(--lp-card);
}

.lp-passo__numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1.2rem;
    border-radius: 12px;
    background: var(--lp-gradiente);
    font-weight: 800;
    color: #fff;
}

.lp-passo h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.lp-passo p {
    margin-top: .55rem !important;
    color: var(--lp-suave);
}

.lp-perguntas-chave {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 3rem;
    margin-top: 4.5rem;
}

.lp-lista {
    display: grid;
    gap: .9rem;
    list-style: none;
    padding: 0;
}

.lp-lista li {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    border: 1px solid var(--lp-borda);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
}

.lp-lista li i {
    color: var(--lp-laranja);
    font-size: 1.15rem;
    line-height: 1.5;
}

.lp-lista strong {
    display: block;
    color: #fff;
}

.lp-lista span {
    color: var(--lp-suave);
    font-size: .95rem;
}

.lp-numeros {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 4rem;
    padding: 2rem;
    border: 1px solid var(--lp-borda);
    border-radius: 16px;
    background: rgba(255, 255, 255, .02);
    text-align: center;
}

.lp-numeros strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
}

.lp-numeros span {
    color: var(--lp-suave);
    font-size: .95rem;
}

/* ---------- Para quem ---------- */
.lp-publicos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.lp-publico {
    padding: 2rem 1.75rem;
    border: 1px solid #e8ebef;
    border-radius: 16px;
    background: var(--lp-claro);
}

.lp-publico > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: #fff1e8;
    color: var(--lp-laranja);
    font-size: 1.5rem;
}

.lp-publico h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.lp-publico p {
    margin-top: .5rem !important;
    color: var(--lp-cinza);
}

/* ---------- Precos ---------- */
.lp-planos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.lp-plano {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    border: 1px solid #e8ebef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(17, 22, 28, .04);
}

.lp-plano--destaque {
    border: 2px solid var(--lp-laranja);
    box-shadow: 0 20px 50px rgba(255, 106, 19, .16);
}

.lp-plano__selo {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: .25rem .9rem;
    border-radius: 999px;
    background: var(--lp-gradiente);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lp-plano__tipo {
    color: var(--lp-laranja);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lp-plano h3 {
    margin-top: .3rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.lp-plano__preco {
    margin: 1.1rem 0 1.3rem !important;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.lp-plano__preco small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lp-cinza);
    letter-spacing: 0;
}

.lp-plano__preco sup {
    margin-right: .2rem;
    font-size: 1rem;
    font-weight: 700;
    vertical-align: .9em;
}

.lp-plano ul {
    display: grid;
    gap: .6rem;
    margin-bottom: 1.8rem !important;
    padding: 0;
    list-style: none;
}

.lp-plano li {
    display: flex;
    gap: .6rem;
    color: #2b333d;
}

.lp-plano li i {
    color: var(--lp-laranja);
}

.lp-plano__detalhe {
    display: block;
    color: #6b7480;
    font-size: .82rem;
}

.lp-plano li.lp-plano__ausente,
.lp-plano li.lp-plano__ausente i {
    color: #8a929c;
}

.lp-plano .lp-btn {
    margin-top: auto;
}

.lp-plano .lp-btn--contorno {
    border-color: #d5dae1;
    color: var(--lp-escuro) !important;
}

.lp-plano .lp-btn--contorno:hover {
    border-color: var(--lp-laranja);
    background: #fff7f2;
}

.lp-precos__nota {
    margin-top: 1.75rem !important;
    color: var(--lp-cinza);
    font-size: .95rem;
    text-align: center;
}

.lp-precos__nota i {
    color: var(--lp-laranja);
}

/* ---------- Chamada final ---------- */
.lp-chamada {
    position: relative;
    overflow: hidden;
    padding: 4rem 3rem;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
        var(--lp-gradiente);
    color: #fff;
    text-align: center;
}

.lp-chamada h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.lp-chamada p {
    max-width: 640px;
    margin: 1rem auto 2rem !important;
    color: rgba(255, 255, 255, .9);
    font-size: 1.1rem;
}

.lp-chamada .lp-btn {
    background: #fff;
    color: #e2470e !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

/* ---------- Contato ---------- */
.lp-contatos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.lp-contato {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.75rem;
    border: 1px solid var(--lp-borda);
    border-radius: 16px;
    background: var(--lp-card);
    transition: border-color .18s ease, transform .18s ease;
}

.lp-contato:hover {
    border-color: rgba(255, 106, 19, .5);
    transform: translateY(-3px);
}

.lp-contato > i {
    margin-bottom: 1rem;
    color: var(--lp-laranja);
    font-size: 1.9rem;
    line-height: 1;
}

.lp-contato h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.lp-contato p {
    margin: .45rem 0 1.1rem !important;
    color: var(--lp-suave);
}

.lp-contato__link {
    margin-top: auto;
    color: var(--lp-laranja) !important;
    font-weight: 600;
    word-break: break-all;
}

/* ---------- Perguntas frequentes ---------- */
.lp-faq {
    max-width: 880px;
    margin: 0 auto;
}

.lp-faq details {
    border-bottom: 1px solid #e3e7ec;
}

.lp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    font-size: 1.08rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.lp-faq summary::-webkit-details-marker {
    display: none;
}

.lp-faq summary::after {
    content: "+";
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff1e8;
    color: var(--lp-laranja);
    font-size: 1.3rem;
    font-weight: 500;
    transition: transform .2s ease;
}

.lp-faq details[open] summary::after {
    transform: rotate(45deg);
}

.lp-faq summary:hover {
    color: #e2470e;
}

.lp-faq details p {
    padding: 0 3rem 1.35rem 0;
    color: var(--lp-cinza);
    line-height: 1.7;
}

/* ---------- Rodape ---------- */
.lp-rodape {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--lp-borda);
    background: var(--lp-bg);
    color: var(--lp-suave);
}

.lp-rodape__grade {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.lp-rodape .lp-marca {
    font-size: 1.5rem;
}

.lp-rodape .lp-marca svg {
    width: 36px;
    height: 36px;
}

.lp-rodape__sobre {
    max-width: 360px;
    margin-top: 1rem !important;
}

.lp-rodape h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
}

.lp-rodape ul {
    display: grid;
    gap: .6rem;
    padding: 0;
    list-style: none;
}

.lp-rodape ul a:hover {
    color: var(--lp-laranja);
}

.lp-rodape__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lp-borda);
    font-size: .9rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1199.98px) {
    .lp-hero__grade {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-hero__copia {
        max-width: 760px;
    }

    .lp-mock {
        max-width: 820px;
    }

    .lp-destaques,
    .lp-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-rodape__grade {
        grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, .7fr));
    }
}

@media (max-width: 991.98px) {
    body.lp {
        --lp-header: 68px;
    }

    .lp-hamburguer {
        display: inline-flex;
    }

    .lp-menu {
        position: absolute;
        top: var(--lp-header);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: .5rem 20px 1.5rem;
        background: #0c1014;
        border-top: 1px solid var(--lp-borda);
        box-shadow: 0 20px 30px rgba(0, 0, 0, .35);
    }

    .lp-header--aberto .lp-menu {
        display: flex;
    }

    .lp-menu__links {
        flex-direction: column;
        gap: 0;
    }

    .lp-menu__links a {
        display: block;
        padding: .85rem 0;
        border-bottom: 1px solid var(--lp-borda);
    }

    .lp-menu__acoes {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
        margin-left: 0;
    }

    .lp-menu__entrar {
        padding: .6rem 0;
        text-align: center;
    }

    .lp-marca {
        font-size: 1.55rem;
    }

    .lp-marca svg {
        width: 38px;
        height: 38px;
    }

    .lp-cabecalho,
    .lp-perguntas-chave {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-passos,
    .lp-publicos,
    .lp-contatos {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-rodape__grade {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lp-rodape__grade > div:first-child {
        grid-column: 1 / -1;
    }

    .lp-secao {
        padding: 72px 0;
    }
}

@media (max-width: 767.98px) {
    .lp-mock {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .lp-mock__lateral {
        display: none;
    }

    .lp-mock__corpo {
        padding: 14px 0 0;
    }

    .lp-mock__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-mock__linha {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-mock__tabela th:nth-child(4),
    .lp-mock__tabela td:nth-child(4) {
        display: none;
    }

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

@media (max-width: 575.98px) {
    .lp-hero {
        padding-top: calc(var(--lp-header) + 32px);
    }

    .lp-hero__acoes .lp-btn {
        width: 100%;
    }

    .lp-btn--grande {
        min-height: 56px;
    }

    .lp-destaques,
    .lp-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-destaques {
        gap: 1.5rem;
        padding: 1.8rem 1.2rem 5rem;
    }

    .lp-chamada {
        padding: 3rem 1.4rem;
    }

    .lp-faq details p {
        padding-right: 0;
    }

    .lp-rodape__grade {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.lp) {
        scroll-behavior: auto;
    }

    body.lp *,
    body.lp *::before,
    body.lp *::after {
        transition: none !important;
    }
}

/* =========================================================================
   TELAS DE ACESSO (templates/registro: login, cadastro e senha)
   Mesma paleta do site (pginicial): escuro #0c1014 e laranja. So cores;
   o layout continua o das regras .auth-* acima. Tema claro usa as cores
   das secoes claras do site.
   ========================================================================= */

body.auth-body {
    --auth-laranja: #ff6a13;
    --auth-gradiente: linear-gradient(135deg, #ff8a00 0%, #ff4d1a 100%);
    --admin-text: #11161c;
    --admin-muted: #5b6573;
    --admin-border: #e3e7ec;
    --admin-surface: #ffffff;
    --admin-surface-soft: #f6f7f9;
    --admin-primary: #e85a0c;
    --admin-primary-dark: #d14e08;
    --admin-ring: 0 0 0 4px rgba(255, 106, 19, 0.16);
    --admin-shadow-lg: 0 26px 70px rgba(17, 22, 28, 0.12);
    background:
        radial-gradient(ellipse 60% 45% at 85% 10%, rgba(255, 106, 19, 0.10), transparent 70%),
        #f6f7f9;
    color: var(--admin-text);
}

html[data-theme="dark"] body.auth-body {
    --admin-text: #f5f7fa;
    --admin-muted: #a3adba;
    --admin-border: rgba(255, 255, 255, 0.1);
    --admin-surface: #161c23;
    --admin-surface-soft: #11161c;
    --admin-primary: #ff6a13;
    --admin-primary-dark: #ff8a3d;
    --admin-ring: 0 0 0 4px rgba(255, 106, 19, 0.22);
    --admin-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
    background:
        radial-gradient(ellipse 60% 45% at 85% 10%, rgba(255, 106, 19, 0.13), transparent 70%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(255, 106, 19, 0.06), transparent 70%),
        #0c1014;
}

.auth-body .auth-card h1 {
    color: var(--admin-text);
}

.auth-body .brand-icon {
    background: var(--auth-gradiente);
    box-shadow: 0 10px 24px rgba(255, 90, 20, 0.28);
}

.auth-body a:not(.btn):not(.auth-brand) {
    color: var(--admin-primary);
}

.auth-body a:not(.btn):not(.auth-brand):hover {
    color: var(--admin-primary-dark);
}

.auth-body .btn-primary {
    border-color: transparent;
    background: var(--auth-gradiente);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(255, 90, 20, 0.28);
}

.auth-body .btn-primary:hover,
.auth-body .btn-primary:focus,
.auth-body .btn-primary:active {
    border-color: transparent;
    background: var(--auth-gradiente);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(255, 90, 20, 0.4);
}

.auth-body .form-label {
    color: var(--admin-text);
}

.auth-body .form-control:focus,
.auth-body .form-select:focus {
    border-color: var(--auth-laranja);
}

.auth-body .form-check-input {
    border-color: var(--admin-border);
    background-color: var(--admin-surface);
}

.auth-body .form-check-input:checked {
    border-color: var(--auth-laranja);
    background-color: var(--auth-laranja);
}

.auth-body .form-check-input:focus {
    border-color: var(--auth-laranja);
    box-shadow: var(--admin-ring);
}

.auth-body .asteriskField {
    color: var(--auth-laranja);
}

.auth-body .icon-button {
    border-color: var(--admin-border);
}

.auth-body .icon-button:hover,
.auth-body .icon-button:focus {
    border-color: var(--auth-laranja);
    color: var(--auth-laranja);
}

/* Alertas no tema escuro: fundo translucido sobre o card escuro */
html[data-theme="dark"] .auth-body .alert-info {
    border-color: rgba(255, 106, 19, 0.35);
    background: rgba(255, 106, 19, 0.1);
    color: #ffd2b8;
}

html[data-theme="dark"] .auth-body .alert-success {
    border-color: rgba(61, 220, 132, 0.3);
    background: rgba(61, 220, 132, 0.1);
    color: #b6f2cf;
}

html[data-theme="dark"] .auth-body .alert-warning {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.1);
    color: #fde68a;
}

html[data-theme="dark"] .auth-body .alert-danger {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.1);
    color: #fecaca;
}

.auth-body .alert-info {
    border-color: #ffd3b8;
    background: #fff4ec;
    color: #9a3a06;
}

html[data-theme="dark"] .auth-body .bg-success-subtle {
    background-color: rgba(61, 220, 132, 0.14) !important;
}