/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Proteção de Imagens */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

/* Ajuste de Foco para Sticky Header */
input,
select,
textarea,
button,
[tabindex="0"] {
    scroll-margin-top: 120px;
}

/* Utilitários de Visibilidade (CSP Friendly) */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.d-block {
    display: block !important;
}

/* Utilitários de Estado */
.text-danger-important {
    color: var(--danger) !important;
}

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

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

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

.font-bold-important {
    font-weight: bold !important;
}

.font-600-important {
    font-weight: 600 !important;
}

.cursor-pointer-important {
    cursor: pointer !important;
}

.cursor-default-important {
    cursor: default !important;
}

.opacity-07-important {
    opacity: 0.7 !important;
}

.opacity-1-important {
    opacity: 1 !important;
}

:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --success: #34a853;
    --success-hover: #2d9249;
    --warning: #fbbc04;
    --danger: #ea4335;
    --danger-soft: #fff5f5;
    --dark: #202124;
    --dark-grey: #3c4043;
    --border-grey: #dadce0;
    --text-main: #3c4043;
    --text-muted: #5f6368;
    --bg-main: #f0f2f5;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



body {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    min-height: 100vh;
    font-size: 14px;
    color: var(--text-main);
    overflow-y: auto;
}

body:not(.painel-ativo):not(.landing-body) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.landing-body {
    display: block;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    /* evita scroll horizontal */
}

body.painel-ativo {
    display: block;
    overflow: hidden;
    height: 100vh;
}

/* Esconde elementos de auth quando o painel está ativo */
body.painel-ativo #authFooter,
body.painel-ativo #authHeader,
body.painel-ativo #authWrapper {
    display: none !important;
}

/* Utilitários de Texto */
.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-dark {
    color: var(--dark);
}

.text-main {
    color: var(--text-main);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-underline {
    text-decoration: underline;
}

.bold {
    font-weight: bold;
}

/* Login */
.login-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-grey);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    margin: 40px auto;
    transition: box-shadow 0.3s;
    z-index: 10;
}

.login-container:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.login-container h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
}

/* .input-compact e .inner-input definidos na seção Modal Compacto (L~1144) */

input {
    width: 100%;
    padding: 14px 16px;
    margin: 8px 0;
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    background: #f8f9fa;
    transition: all 0.2s;
}

input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.inner-input:focus {
    box-shadow: none !important;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    background: var(--primary);
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#btnLogout {
    width: 40%;
    margin: 20px auto 0 auto;
    padding: 8px;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid #a0c5ff;
    color: #a0c5ff;
}

#btnLogout:hover {
    background: rgba(160, 197, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Dashboard Layout */
#dashboard {
    display: none;
    height: 100vh;
    width: 100%;
    flex-direction: row;
    /* definido via JS: flex */
    overflow: hidden;
}

/* ──── Sidebar ──── */
aside {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    transition: width 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
    overflow: hidden;
    /* oculta conteúdo durante collapse */
    min-height: 100vh;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px 80px;
    /* padding-bottom para não ficar sob o FAB */
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 260px;
    /* evita colapso de conteúdo ao animar */
}

aside.collapsed {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

/* ──── Main ──── */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    padding: 25px 30px 38px;
    /* padding-bottom reserva espaço para o botão MENU */
    background: var(--white);
    position: relative;
    transition: padding 0.3s ease;
    min-width: 0;
    /* evita overflow em flex */
}

.main-header-section {
    flex-shrink: 0;
    width: 100%;
}

.main-header-section header {
    width: 100%;
}

/* ──── Botão MENU (fixo base esquerda) ──── */
#btnMenu {
    position: fixed;
    bottom: 0;
    left: 30px;
    width: auto;
    height: 38px;
    border-radius: 8px 8px 0 0;
    background: var(--dark);
    color: #fff;
    border: 1px solid #4f5256;
    border-bottom: none;
    display: none;
    /* visível só quando painel ativo */
    align-items: center;
    justify-content: center;
    z-index: 399;
    cursor: pointer;
    margin: 0;
    padding: 0 22px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    transition: background 0.2s;
}

#btnMenu:hover {
    background: var(--dark-grey);
}

body.painel-ativo #btnMenu {
    display: flex;
}

/* ──── Registro Counter ──── */
#registroCounterContainer {
    position: fixed;
    bottom: 0;
    left: 155px;
    /* Aumentado para evitar sobreposição no desktop */
    height: 38px;
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    display: none;
    align-items: center;
    padding: 0 15px;
    z-index: 399;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

body.painel-ativo #registroCounterContainer {
    display: flex;
}

#registroCounter {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.warning-limit {
    color: var(--danger);
    font-weight: 600;
}

.warning-info {
    color: var(--text-muted);
}

/* ──── Overlay mobile ──── */
#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 398;
    backdrop-filter: blur(2px);
}

aside h4 {
    margin-bottom: 20px;
    color: #8ab4f8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

#btnAbrirConfig {
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

body.painel-ativo #btnAbrirConfig:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #8ab4f8;
    color: white;
}

/* Search Bar */
.search-bar-container {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: center;
    width: 100%;
    height: 48px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    margin: 0;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #9aa0a6;
    font-size: 0.9rem;
}

#searchInput {
    width: 100%;
    height: 100%;
    margin: 0;
    /* Reset margin global */
    padding: 0 15px 0 45px;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    background: #fff;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    display: block;
}

#searchInput:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
    outline: none;
}

.btn-filter-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border-grey);
    color: var(--text-muted);
    height: 48px;
    margin: 0;
    /* Reset margin global */
    padding: 0 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
    width: auto;
}

.btn-filter-secondary:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: var(--text-main);
}

.filters-expanded-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-grey);
    animation: slideDown 0.2s ease-out;
    align-items: flex-end;
    flex-wrap: nowrap;
    width: 100%;
}

.filters-date-inputs {
    display: flex;
    gap: 20px;
}

.filters-quick-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    /* Força única linha no desktop */
    align-items: center;
    margin-bottom: 12px;
    /* Alinhamento ao centro do input de data */
}

.btn-quick-filter {
    background: #e8eaed;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    /* Aumentado 10% */
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
    height: 26px;
    /* Ajuste para nova fonte */
    font-weight: 700;
}

.btn-quick-filter:hover {
    background: #dadce0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.75rem;
    /* Aumentado 10% */
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input {
    padding: 8px 12px;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    font-size: 0.9rem;
    /* Aumentado 10% */
    color: var(--text-main);
    background: #fff;
    transition: border-color 0.2s;
}

.filter-group input:focus {
    border-color: var(--primary);
    outline: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grupo-campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

aside label {
    font-size: 0.7rem;
    color: #bdc1c6;
    margin-bottom: 2px;
    /* Rótulo mais próximo do campo */
}

aside input[type="date"] {
    background: var(--dark-grey);
    border: 1px solid #4f5256;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    min-height: 32px;
}

/* Tabela */
.table-container {
    flex: 1;
    overflow: auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--border-grey);
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th {
    text-align: left;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-grey);
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

th.sortable {
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

th.sortable:hover {
    background: #eef1f4;
    color: var(--primary);
}

th.sortable span {
    font-size: 0.6rem;
    margin-left: 5px;
    opacity: 0.5;
}

th.sortable.active {
    color: var(--primary);
    background: #eef1f4;
}

th.sortable.active span {
    opacity: 1;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

.row-cancelado {
    opacity: 0.6;
    background: var(--danger-soft);
}

/* Resumo Lateral */
.resumo-container {
    background: var(--dark-grey);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #4f5256;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #bdc1c6;
}

.resumo-total-card {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #4f5256;
}

.resumo-total-card h2 {
    color: var(--success);
    margin-top: 5px;
    font-size: 1.8rem;
}

/* Botões de Período */
.periodo-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.periodo-slider button {
    margin-top: 0;
    padding: 8px 4px;
    background: var(--dark-grey);
    border: 1px solid #4f5256;
    font-size: 0.75rem;
}

.periodo-slider button:hover {
    background: #4f5256;
    border-color: #8ab4f8;
}

aside .btn-sidebar-action {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #4f5256;
    color: #bdc1c6;
    justify-content: flex-start;
    padding: 8px 15px;
    font-size: 0.82rem;
    margin-top: 2px;
    height: 38px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-sidebar-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #8ab4f8;
    color: white;
}

/* Modais */
/* Removido FAB antigo */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: flex-start;
    /* Permite rolar se o modal for alto */
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    /* Scroll no overlay se o modal for maior que a tela */
    padding: 20px 0;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 95%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 0;
    overflow: visible;
    /* Cabeçalho e rodapé agora acompanham o conteúdo */
    position: relative;
    margin: 20px 0;
    /* Espaço para não grudar no topo/base no scroll */
}

.modal-instruction {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed var(--border-grey);
}

.modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding: 18px 25px 12px 25px;
    border-bottom: 1px solid #f1f1f1;
}

/* Ajuste específico para Novo Registro / Editar Registro */
#modalFaturamento .modal-content .modal-header {
    padding: 10px 25px;
}

#modalFaturamento .modal-content .modal-header h3 {
    font-size: 0.95rem;
    line-height: 1;
    margin: 0;
}

#modalFaturamento .modal-content .modal-header #addData {
    height: 28px;
    font-size: 0.8rem;
    padding: 0 10px;
    margin: 0;
}



/* Actions in table */
.actions-container {
    display: flex;
    gap: 8px;
}

.actions-container button {
    width: auto;
    padding: 6px 10px;
    margin: 0;
}

.btn-edit {
    background: var(--warning);
}

.btn-delete {
    background: var(--danger);
}

/* Custom Inputs Faturamento */
.btn-opt {
    background: var(--white);
    border: 1px solid var(--border-grey);
    color: var(--text-main);
    padding: 12px;
    border-radius: 8px;
    margin-top: 0;
}

.btn-opt.active {
    background: #e8f0fe;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.btn-sub-opt {
    background: var(--white);
    border: 1px solid var(--border-grey);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 6px;
    flex: 1;
    margin-top: 0;
}

.btn-sub-opt.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Grid de Taxas Config */
.tax-config-wrapper {
    width: 535px;
    margin: 0 auto;
}

.tax-config-grid {
    display: grid;
    grid-template-columns: repeat(2, 260px);
    gap: 15px;
    margin-top: 10px;
}

.tax-column {
    width: 260px;
    background: #fff;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.pix-config-container {
    background: #fff;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 260px;
}

.brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 10px;
}

.brand-logo {
    max-height: 25px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    display: block;
}

.tax-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.tax-label {
    color: var(--text-muted);
}

.tax-value-input {
    width: 90px;
    padding: 8px 10px;
    border: 1px solid var(--border-grey);
    border-radius: 6px;
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    margin: 0;
    background: #fff;
    outline: none;
    transition: all 0.2s;
}

.tax-value-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Ocultar setas (spinners) de inputs numéricos */
.no-spinners::-webkit-outer-spin-button,
.no-spinners::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinners {
    -moz-appearance: textfield;
    appearance: none;
}

/* ──── Mobile: sidebar como overlay ──── */
/* @media 768px — Dashboard/Sidebar — veja seção consolidada no final */

/* Estilos Empresa Registration */
.radio-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
}

.radio-inline input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
}

.radio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.radio-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-list label:hover {
    background: #eef2f7;
    border-color: var(--primary);
}

.radio-list input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.tax-options-container {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
}

/* @media 600px — Taxas/Filtros/Modais — veja seção consolidada no final */

/* Modal Compacto */
.form-group-compact {
    margin-bottom: 12px;
}

.small-label {
    font-size: 0.65rem;
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.input-compact {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--border-grey);
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    background: #fff;
    min-height: 36px;
}

.input-compact:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.btn-compact {
    padding: 10px !important;
    font-size: 0.8rem !important;
}

.input-combined {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--border-grey);
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s;
    min-height: 36px;
}

.input-combined:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.inner-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 0;
    width: 60px;
}

.inline-previews {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-left: 1px solid #eee;
    padding-left: 12px;
    white-space: nowrap;
}

/* Radio buttons do modal Exportar */
.radio-group-export {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.radio-export-opt {
    position: relative;
    cursor: pointer;
}

.radio-export-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-export-opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--white);
    transition: all 0.2s;
    width: 100%;
}

.radio-export-opt input[type="radio"]:checked+span {
    background: #e8f0fe;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.radio-export-opt:hover span {
    background: #f8f9fa;
}

/* Landing Page Styles */
.landing-body {
    background-color: #fff !important;
    display: block;
    overflow-y: auto !important;
    height: auto !important;
    color: #3c4043;
    line-height: 1.6;
}

.btn-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-cta:hover {
    background: var(--primary-hover);
    color: #fff !important;
}

.btn-cta.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-cta.btn-outline:hover {
    background: var(--primary);
    color: #fff !important;
}

.landing-header {
    padding: 15px 10% 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.landing-header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.landing-nav a:not(.btn-cta) {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
}

.landing-body .hero {
    padding: 50px 10% 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.landing-body .hero-content {
    flex: 1.2;
}

.landing-body .hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.landing-body .hero-content h1 span {
    color: var(--success);
}

.landing-body .hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.landing-body .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-body .hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    display: block;
}

.landing-body .features {
    padding: 80px 10%;
    text-align: center;
}

.landing-body .section-title {
    margin-bottom: 50px;
}

.landing-body .section-title h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.landing-body .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .landing-body .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .landing-body .feature-grid {
        grid-template-columns: 1fr;
    }
}

.landing-body .feature-card {
    padding: 40px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s;
    text-align: left;
}

.landing-body .feature-card:hover {
    transform: translateY(-6px);
}

.landing-body .feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.landing-body .feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.landing-body .feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing-footer {
    padding: 40px 10%;
    background: var(--dark);
    color: #fff;
    text-align: center;
}

/* ── Landing Section Title ── */
.landing-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.landing-section-title h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 800;
}

.landing-section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ── Stats Bar ── */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 50px 10%;
    background: var(--dark);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--success);
}

.stat-item .stat-label {
    font-size: 0.82rem;
    color: #aaa;
    margin-top: 4px;
}

/* ── Landing Plan Cards ── */
.plans-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-plan-card {
    background: #fff;
    border: 2px solid var(--border-grey);
    border-radius: 16px;
    padding: 32px 28px;
    width: 300px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.landing-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.landing-plan-card.featured {
    border-color: var(--success);
    box-shadow: 0 8px 30px rgba(52, 168, 83, 0.18);
}

.landing-plan-card .plan-tag {
    font-size: 0.65rem;
    margin-bottom: 12px;
    display: inline-block;
}

.landing-plan-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 8px;
}

.landing-plan-card .price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin: 4px 0;
}

.landing-plan-card .price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.landing-plan-card .price-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.landing-plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-top: 1px solid #eee;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.landing-plan-card ul li {
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.landing-plan-card ul li i {
    color: var(--success);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.landing-plan-card ul li.locked i {
    color: #ccc;
}

.landing-plan-card ul li.locked {
    color: var(--text-muted);
    opacity: 0.65;
}

.btn-plan {
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-plan.plan-primary {
    background: var(--primary);
    color: #fff !important;
}

.btn-plan.plan-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-plan.plan-success {
    background: var(--success);
    color: #fff !important;
}

.btn-plan.plan-success:hover {
    background: #2d9249;
    transform: translateY(-2px);
}

/* ── CTA Section ── */
.cta-section {
    padding: 80px 10%;
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.05rem;
    opacity: 0.88;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-cta {
    background: var(--success);
    font-size: 1.05rem;
    padding: 16px 40px;
    border-radius: 10px;
}

.cta-section .btn-cta:hover {
    background: #2d9249;
}

/* @media 768px+480px — Landing Page/Auth — veja seção consolidada no final */



/* Plan Options Stack (Cadastro) */
.plan-option-card {
    cursor: pointer;
    position: relative;
    display: block;
}

.plan-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.plan-option-content {
    border: 2px solid var(--border-grey);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.plan-option-card:hover .plan-option-content {
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.plan-option-card input[type="radio"]:checked+.plan-option-content {
    border-color: var(--primary);
    background: #f8faff;
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.12);
}

.pro-featured input[type="radio"]:checked+.plan-option-content {
    border-color: var(--success);
    background: #f7fff9;
    box-shadow: 0 8px 24px rgba(52, 168, 83, 0.15);
}

.plan-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.plan-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
}

.plan-subtitle {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.plan-tag {
    display: inline-block;
    background: var(--success);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.plan-price-wrapper {
    text-align: right;
}

.plan-price-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--dark);
}

.plan-price-period {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.plan-benefits-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.plan-benefits-list li {
    font-size: 0.72rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    /* Removemos o white-space: nowrap para permitir quebras naturais no mobile */
    word-break: break-word;
}

/* @media 480px — Cards de Plano — veja seção consolidada no final */

.plan-benefits-list li strong {
    color: var(--dark);
}

.free-basic .plan-option-content {
    opacity: 0.8;
}

.free-basic input[type="radio"]:checked+.plan-option-content {
    opacity: 1;
    border-color: var(--primary);
}

/* --- Estilos de Páginas Jurídicas e Rodapé Padrão --- */
.legal-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
}

.auth-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    align-items: center;
}

.auth-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
}

.legal-content {
    max-width: 900px;
    width: 100%;
    margin: 40px auto;
    padding: 50px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    line-height: 1.8;
    color: var(--text-main);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.version-badge {
    display: inline-block;
    background: #e8f0fe;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.legal-content h1 {
    color: var(--dark);
    font-size: 2.4rem;
    margin-bottom: 30px;
    font-weight: 800;
}

.legal-content h2 {
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 800;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 12px;
}

.alert-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    font-size: 0.95rem;
}

.standard-footer {
    padding: 40px 5%;
    background: #fff;
    border-top: 1px solid var(--border-grey);
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.landing-footer.standard-footer {
    background: #fff;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-info strong {
    color: var(--dark);
}

.footer-info a {
    color: inherit;
    text-decoration: none;
}

.footer-info a:hover {
    color: var(--primary);
}

/* @media 768px — Legal/Footer — veja seção consolidada no final */

/* Social Buttons Footer */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #f1f3f4;
    color: var(--primary) !important;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.btn-social:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-email {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    gap: 8px;
}

.btn-email span {
    font-weight: 600;
}

/* @media 480px — Botão Email — veja seção consolidada no final */

/* --- Refatoração de Estilos Inline (Preservação de Design) --- */

/* Global Loader & Spinner */
.global-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color, #1a1c1e);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.global-loader-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: #8ab4f8;
    animation: spin-loader 1s linear infinite;
}

.global-loader-text {
    margin-top: 15px;
    color: #9aa0a6;
    font-size: 0.9rem;
}

@keyframes spin-loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Auth Header Fixed */
.auth-header-fixed {
    position: sticky !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-header-action-compact {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin: 0;
}

/* Auth Forms (Login/Signup) */
.auth-form-forgot-pass {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: underline;
}

.auth-form-submit-wrap {
    display: flex;
    justify-content: center;
}

.auth-form-submit-btn {
    width: auto;
    padding: 10px 40px;
    margin-top: 15px;
}

.auth-message-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: center;
}

.signup-container-large {
    max-width: 500px;
    padding: 30px;
}

.signup-title-custom {
    margin-bottom: 5px;
    font-size: 1.5rem;
    text-align: center;
    color: var(--dark);
    font-weight: 800;
}

.signup-subtitle-custom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.signup-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.signup-input-span-2 {
    grid-column: span 2;
    margin: 0;
}

.signup-input-no-margin {
    margin: 0;
}

.signup-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.signup-tax-box {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.signup-tax-list-font {
    font-size: 0.75rem;
}

.signup-alert-box-custom {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.signup-plan-label-header {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--dark);
}

.signup-plan-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signup-free-plan-list {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.signup-terms-wrap {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
}

.signup-terms-checkbox {
    width: auto;
    margin-top: 4px;
}

.signup-terms-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary);
}

.signup-submit-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.signup-submit-btn-custom {
    width: auto;
    padding: 10px 30px;
    margin: 0;
}

/* Footer Social & Info (Shared) */
.footer-social-list-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 15px 0;
    font-size: 1.8rem;
}

.footer-social-link-primary {
    color: var(--primary);
}

.footer-info-text-muted {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.footer-copyright-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sidebar Custom Margins */
.sidebar-footer-btn-wrap {
    margin-top: auto;
}

/* Hero Section (Index) */
.hero-btns-container {
    margin-top: 30px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn-large {
    font-size: 1.05rem;
    padding: 14px 36px;
}

/* Plans Section (Index) */
.plans-section-custom {
    padding: 80px 10%;
    background: var(--bg-main);
}

/* Legal Pages (Terms/Privacy) */
.legal-badge-custom {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f0fe;
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.legal-alert-box-custom {
    background: #e8f0fe;
    border-left: 4px solid var(--primary);
    color: var(--dark);
}

.legal-back-link-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Utilitários de Refatoração */
.m-0 {
    margin: 0;
}

.mt-5 {
    margin-top: 5px;
}

.mt-6 {
    margin-top: 6px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-30 {
    margin-bottom: 30px;
}

.p-0 {
    padding: 0;
}

.p-8 {
    padding: 8px;
}

.p-10 {
    padding: 10px;
}

.p-14 {
    padding: 14px;
}

.p-15 {
    padding: 15px;
}

.p-30 {
    padding: 30px;
}

.ph-10 {
    padding-left: 10px;
    padding-right: 10px;
}

.ph-15 {
    padding-left: 15px;
    padding-right: 15px;
}

.ph-16 {
    padding-left: 16px;
    padding-right: 16px;
}

.ph-20 {
    padding-left: 20px;
    padding-right: 20px;
}

.pv-10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.pb-8 {
    padding-bottom: 8px;
}

.pb-10 {
    padding-bottom: 10px;
}

.pt-5 {
    padding-top: 5px;
}

.modal-content .p-modal-body {
    padding: 25px;
}

.modal-content .p-modal-footer {
    padding: 15px 25px 25px 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-content.p-modal-beta,
.modal-content .p-modal-beta {
    padding: 35px 25px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-6 {
    gap: 6px;
}

.gap-8 {
    gap: 8px;
}

.gap-10 {
    gap: 10px;
}

.gap-12 {
    gap: 12px;
}

.gap-15 {
    gap: 15px;
}

.gap-16 {
    gap: 16px;
}

.gap-20 {
    gap: 20px;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.align-start {
    align-items: flex-start;
}

.font-07 {
    font-size: 0.7rem;
}

.font-075 {
    font-size: 0.75rem;
}

.font-08 {
    font-size: 0.8rem;
}

.font-085 {
    font-size: 0.85rem;
}

.font-09 {
    font-size: 0.9rem;
}

.font-095 {
    font-size: 0.95rem;
}

.font-1 {
    font-size: 1rem;
}

.font-11 {
    font-size: 1.1rem;
}

.font-12 {
    font-size: 1.2rem;
}

.font-18 {
    font-size: 1.8rem;
}

.font-35 {
    font-size: 3.5rem;
}

.font-bold-700 {
    font-weight: 700;
}

.font-bold-800 {
    font-weight: 800;
}

.font-400 {
    font-weight: 400;
}

.font-600 {
    font-weight: 600;
}

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

.font-inherit {
    font-family: inherit;
}

.w-16 {
    width: 16px;
}

.w-40 {
    width: 40px;
}

.w-60 {
    width: 60px;
}

.w-100 {
    width: 100%;
}

.w-200 {
    width: 200px;
}

.w-450 {
    width: 450px;
}

.w-480 {
    width: 480px;
}

.w-auto {
    width: auto;
}

.h-16 {
    height: 16px;
}

.h-40 {
    height: 40px;
}

.h-200 {
    height: 200px;
}

.max-w-350 {
    max-width: 350px;
}

.max-w-400 {
    max-width: 400px;
}

.max-w-450 {
    max-width: 450px;
}

.max-w-480 {
    max-width: 480px;
}

.max-w-600 {
    max-width: 600px;
}

.max-h-90vh {
    max-height: 90vh;
}

.max-h-95vh {
    max-height: 95vh;
}

/* Background Utilities */
.bg-transparent {
    background: transparent;
}

.bg-primary {
    background: var(--primary);
}

.bg-success {
    background: var(--success);
}

.bg-dark {
    background: var(--dark);
}

.bg-eee {
    background: #eee;
}

.bg-f8f9fa {
    background: #f8f9fa;
}

.bg-text-muted {
    background: var(--text-muted);
}

/* Border Utilities */
.border-none {
    border: none;
}

.border-primary {
    border: 1px solid var(--primary);
}

.border-light-danger {
    border: 1px solid #ffccd1;
}

.border-dashed-grey {
    border: 1px dashed #ccc;
}

.border-radius-6 {
    border-radius: 6px;
}

.border-radius-8 {
    border-radius: 8px;
}

.border-radius-12 {
    border-radius: 12px;
}

.border-bottom-white-10 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Display & Grid Utilities */
.d-grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Misc Utilities */
.nowrap {
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

.outline-none {
    outline: none;
}

.opacity-07 {
    opacity: 0.7;
}

.opacity-09 {
    opacity: 0.9;
}

.overflow-y-auto {
    overflow-y: auto;
}

.line-h-15 {
    line-height: 1.5;
}

.line-h-16 {
    line-height: 1.6;
}

.inline-block {
    display: inline-block;
}

.list-none {
    list-style: none;
}

.accent-primary {
    accent-color: var(--primary);
}

.hidden-v {
    visibility: hidden;
}

.shadow-primary {
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.fw-bold {
    font-weight: bold;
}

.fw-600 {
    font-weight: 600;
}

.gap-4 {
    gap: 4px;
}

.hidden-pixel {
    display: none;
}

/* Modal Button Components */
.modal-btn-primary {
    width: auto;
    min-width: 120px;
    margin: 0;
    padding: 10px 20px;
    font-size: 0.85rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-btn-secondary {
    width: auto;
    min-width: 120px;
    margin: 0;
    padding: 10px 20px;
    font-size: 0.85rem;
    background: #f1f3f4;
    color: var(--text-muted);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* CTA Button (Landing) */
.cta-section .final-cta-btn-custom {
    display: inline-flex !important;
    flex-direction: column !important;
    padding: 20px 40px !important;
    line-height: 1.2 !important;
    background: var(--success) !important;
    font-size: 1.05rem !important;
    border-radius: 10px !important;
    width: auto !important;
    height: auto !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.cta-section .final-cta-btn-custom:hover {
    background: #2d9249 !important;
}

/* Botão Novo Registro - Dashboard */
.main-header-section .btn-header-new-registro {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    width: auto !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3) !important;
    transition: all 0.2s !important;
}

.main-header-section .btn-header-new-registro:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
}

.main-header-section .btn-header-new-registro .icon-plus {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    display: inline-block !important;
    margin-top: -2px !important;
}

/* Tax Config States */
.tax-locked {
    color: var(--text-muted);
    opacity: 0.6;
    cursor: pointer;
    text-align: right;
}

.tax-unlocked {
    color: var(--primary);
    text-align: right;
}


/* ═══════════════════════════════════════════════════════════════
   MEDIA QUERIES CONSOLIDADAS (Fase 3)
   Agrupadas por breakpoint para facilitar manutenção.
   ═══════════════════════════════════════════════════════════════ */

/* ── max-width: 768px ── Tablet e Mobile ─────────────────────── */
@media (max-width: 768px) {

    /* Dashboard & Sidebar */
    #dashboard {
        flex-direction: row;
        position: relative;
        height: 100dvh;
    }

    aside {
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        z-index: 400;
        transform: translateX(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        width: 260px !important;
        opacity: 1;
        overflow-y: auto;
        pointer-events: none;
    }

    aside:not(.collapsed) {
        transform: translateX(0);
        pointer-events: all;
    }

    /* No mobile, o collapsed só reseta o transform */
    aside.collapsed {
        transform: translateX(-100%);
        width: 260px !important;
        opacity: 1;
        pointer-events: none;
    }

    main {
        width: 100%;
        height: 100dvh;
        padding: 20px 16px 38px;
    }

    #btnMenu {
        left: 16px;
        border-radius: 8px 8px 0 0;
    }

    #registroCounterContainer {
        left: 115px;
    }

    /* Landing Page */
    .landing-header {
        padding: 12px 20px;
        flex-direction: row;
        justify-content: space-between;
    }

    .landing-header .logo {
        font-size: 1.1rem;
    }

    /* No header mobile, mostramos apenas os botões de ação necessários */
    .landing-nav a:not(.btn-cta) {
        display: none;
    }

    /* Esconde apenas o botão de cadastro longo no INDEX para evitar sobreposição */
    /* Mas mantém o botão em páginas de auth se ele for o único */
    .landing-header .landing-nav a.btn-cta:nth-child(4) {
        display: none;
    }

    .landing-nav .btn-cta {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        margin: 0 !important;
        display: inline-block !important;
        /* Garante que o botão remanescente apareça */
    }

    .landing-body .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px 40px;
        gap: 30px;
    }

    .landing-body .hero-content {
        max-width: 100%;
        padding: 0;
    }

    .landing-body .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .landing-body .hero-content p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    /* Botões do Hero empilhados no mobile */
    .landing-body .hero-content div {
        flex-direction: column;
        width: 100%;
        gap: 12px !important;
    }

    .landing-body .hero-content .btn-cta {
        width: 100%;
        box-sizing: border-box;
        padding: 16px !important;
        font-size: 1rem !important;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 40px 20px;
    }

    .landing-section-title h2 {
        font-size: 1.6rem;
    }

    .features {
        padding: 40px 20px;
    }

    .feature-card {
        padding: 25px;
    }

    .plans-grid {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        gap: 20px;
    }

    .landing-plan-card {
        width: 100%;
        max-width: 400px;
    }

    .cta-section {
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section .btn-cta {
        width: 100%;
        flex-direction: column !important;
        padding: 16px 20px !important;
        text-align: center;
    }

    .login-container {
        width: 90% !important;
        max-width: calc(100vw - 20px) !important;
        margin: 10px auto !important;
        padding: 20px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .signup-container-large {
        max-width: calc(100vw - 20px) !important;
    }

    /* Legal & Footer */
    .legal-content {
        margin: 10px auto !important;
        padding: 20px !important;
        border-radius: 12px !important;
        max-width: calc(100vw - 20px) !important;
        width: 90% !important;
        box-sizing: border-box !important;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }

    /* Fix para evitar quebra de linha na coluna de taxas */
    .val-taxa {
        white-space: nowrap !important;
    }
}

/* ── max-width: 600px ── Celular Pequeno ─────────────────────── */
@media (max-width: 600px) {

    .tax-config-wrapper {
        width: 100%;
    }

    .tax-config-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .tax-column,
    .pix-config-container {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    /* Mantém título + data do Novo Registro na mesma linha */
    #modalFaturamento .modal-header {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

    .filters-expanded-row {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 4px;
        width: 100%;
    }

    .filters-date-inputs {
        justify-content: space-between;
        gap: 8px;
    }

    .filter-group {
        width: 48%;
    }

    .filter-group input {
        width: 100%;
        padding: 8px 5px;
        font-size: 0.8rem;
    }

    .filters-quick-buttons {
        justify-content: space-between;
    }

    .btn-quick-filter {
        flex: 1 1 calc(25% - 6px);
        padding: 8px 4px;
        font-size: 0.75rem;
        text-align: center;
    }
}

/* ── max-width: 480px ── Extra Small ─────────────────────────── */
@media (max-width: 480px) {

    /* Landing */
    .landing-body .hero-content h1 {
        font-size: 1.6rem;
    }

    /* Auth Header */
    .auth-header .logo {
        font-size: 1rem;
    }

    .auth-header .btn-cta {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    /* Cards de Plano */
    .plan-benefits-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .plan-option-content {
        padding: 12px;
    }

    .plan-title {
        font-size: 1rem;
    }

    .plan-price-value {
        font-size: 1.1rem;
    }

    /* Botão Email Social */
    .btn-email span {
        display: none;
    }

    .btn-email {
        width: 38px;
        padding: 0;
        border-radius: 50%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PASSWORD STRENGTH INDICATOR
   ═══════════════════════════════════════════════════════════════ */

.password-strength-wrap {
    display: none; /* mostra só quando o campo tem valor (via JS) */
    flex-direction: column;
    gap: 8px;
    margin-top: -4px;
    margin-bottom: 4px;
}

.password-strength-wrap.visible {
    display: flex;
}

/* Barras de força */
.password-strength-bars {
    display: flex;
    gap: 5px;
    height: 5px;
}

.ps-bar {
    flex: 1;
    height: 5px;
    border-radius: 4px;
    background: #e0e0e0;
    transition: background 0.3s ease;
}

/* Cores por nível de força */
.ps-bar.ps-weak   { background: #e53935; }
.ps-bar.ps-fair   { background: #f5a623; }
.ps-bar.ps-good   { background: #43a047; }
.ps-bar.ps-strong { background: var(--primary); }

/* Lista de regras */
.password-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
}

.password-rules-list li {
    font-size: 0.72rem;
    line-height: 1.5;
    transition: color 0.2s, opacity 0.2s;
}

.pr-fail {
    color: #b0b0b0;
    opacity: 0.9;
}

.pr-pass {
    color: #43a047;
    font-weight: 600;
    opacity: 1;
}

/* Mobile: lista em coluna única */
@media (max-width: 480px) {
    .password-rules-list {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PASSWORD TOGGLE VISIBILITY
   ═══════════════════════════════════════════════════════════════ */

/* Remove o botão nativo do navegador (olho do Edge/Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
input[type="password"]::-webkit-reveal {
    display: none;
}
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 40px !important;
}

.btn-toggle-password {
    position: absolute !important;
    right: 12px !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    color: #999;
    box-shadow: none !important;
}

.btn-toggle-password svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}