:root {
    --azul-v1: #00488b;
    --azul-v1-escuro: #003b78;
    --azul-v1-claro: #0b5daa;
    --roxo-v1: #6746a3;
    --roxo-v1-escuro: #56368f;
    --cinza-fundo: #f1f3f6;
    --cinza-borda: #cfd6de;
    --cinza-table-head: #f1f3f6;
    --texto: #111827;
    --texto-suave: #4b5563;
    --verde-suave: #e7f6eb;
    --verde-borda: #a8d5b3;
    --verde-texto: #1f6b38;
    --azul-suave: #e5f2ff;
    --azul-borda: #a9d3f5;
    --vermelho-suave: #fff1f1;
    --vermelho-texto: #b42318;
    --sombra-card: 0 4px 14px rgba(0, 0, 0, .08);
    --radius-card: 18px;
    --sidebar-width: 260px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body.vcfin-body {
    margin: 0;
    min-height: 100%;
    background: var(--cinza-fundo);
    color: var(--texto);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.app-shell { min-height: 100vh; display: flex; background: var(--cinza-fundo); }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: var(--azul-v1);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
}
.sidebar-logo-area { padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.sidebar-logo-link { display: block; text-decoration: none; }
.sidebar-logo { width: 168px; max-width: 100%; height: auto; display: block; }
.sidebar-logo-fallback { font-size: 34px; font-weight: 700; font-style: italic; color:#fff; }
.sidebar-tagline { margin-top: 4px; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.sidebar-menu { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 11px 12px;
    border-radius: 10px;
    margin-bottom: 5px;
}
.sidebar-menu a:hover, .sidebar-menu a.active { background: rgba(255,255,255,.16); }
.sidebar-section { margin: 16px 12px 8px; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; opacity: .75; font-weight: 800; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 10px; }
.sidebar-user { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-logout { width: 100%; border: 0; background: #626262; color: #fff; border-radius: 6px; padding: 9px 12px; font-weight: 700; cursor:pointer; }
.sidebar-logout:hover { background: #4f4f4f; }

.main-area { margin-left: var(--sidebar-width); min-width: 0; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar-v1 {
    min-height: 58px;
    background: var(--azul-v1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,.16);
    position: sticky;
    top: 0;
    z-index: 900;
}
.topbar-title { font-weight: 800; }
.topbar-actions { display:flex; align-items:center; gap:12px; font-weight:700; font-size:12px; }
.install-button { background:#fff; border:0; color:#111; border-radius:999px; padding:8px 14px; font-size:12px; font-weight:700; cursor:pointer; }
.mobile-menu-button { display:none; background:#fff; color:var(--azul-v1); border:0; border-radius:8px; font-weight:800; padding:8px 11px; }
.mobile-backdrop { display:none; }
.page-main { flex: 1; width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 64px; }
.footer-v1 { background: var(--azul-v1); color:#fff; text-align:center; padding: 18px 10px; font-size:12px; margin-top:auto; }

.v1-container { width: 100%; margin: 0 auto; }
.v1-title {
    margin: 0 0 22px;
    color: var(--azul-v1-escuro);
    font-weight: 800;
    text-align: center;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}
.v1-section { margin: 22px auto; }
.v1-section.compact-section { margin-top: 8px; }
.v1-card {
    background: #fff;
    border: 1px solid var(--cinza-borda);
    border-radius: var(--radius-card);
    box-shadow: var(--sombra-card);
    padding: 26px 28px;
}
.v1-card.narrow-card { max-width: 1120px; margin-left:auto; margin-right:auto; }
.compact-section .v1-card.narrow-card { max-width: 760px; }
.v1-section .v1-card.narrow-card:has(.v1-add-form) { max-width: 1120px; }
.v1-subtitle, .v1-card h2, .v1-card h3 {
    margin: 0 0 22px;
    text-align: center;
    font-weight: 800;
    color: #111;
    font-size: clamp(21px, 2.4vw, 30px);
}
.v1-card p { margin: 0 0 14px; }
.v1-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.v1-card-header.centered { display:block; text-align:center; }
.v1-card-header h2 { margin-bottom: 8px; }
.v1-card-header p { color: var(--texto-suave); font-size: 13px; }
.text-center-helper { text-align:center; margin-bottom: 12px; }

.v1-filter-form, .v1-add-form, .v1-inline-filter {
    display: flex;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
}
.v1-add-form {
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
    background: #fff;
}
.wide-add-form { align-items: end; }
.filter-item, .form-field { display:grid; gap:8px; min-width: 160px; }
.filter-item.grow, .form-field.grow { flex:1; min-width:230px; }
.filter-item label, .form-field label, .field span { font-size:12px; font-weight:700; color:#111; }
.form-control, .input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--cinza-borda);
    border-radius: 999px;
    padding: 8px 14px;
    background:#fff;
    color:#111;
    outline: none;
    font-size: 13px;
}
textarea.form-control, textarea.input, .textarea { min-height: 100px; border-radius: 14px; resize: vertical; }
.form-control:focus, .input:focus { border-color: var(--azul-v1); box-shadow: 0 0 0 3px rgba(0,72,139,.12); }
.small-input { width: 100px; }
.value-input { width: 110px; height: 32px; border-radius: 8px; padding: 5px 8px; }
.checkbox-inline, .checkbox-line { display:flex; align-items:center; gap:8px; font-weight:700; font-size:12px; }

.btn, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    min-height: 34px;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}
.btn-primary, .button.primary { background: var(--azul-v1); color:#fff; }
.btn-secondary, .button.secondary { background:#626262; color:#fff; }
.btn-success { background: var(--roxo-v1); color:#fff; }
.btn-warning { background: var(--roxo-v1); color:#fff; }
.btn-danger { background:#111827; color:#fff; }
.btn-sm, .button-small { min-height: 28px; padding: 6px 13px; font-size: 11px; }
.btn:hover, .button:hover { filter: brightness(.94); }
.actions-container { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; }
.inline-form { display:inline; }

.table-responsive { width:100%; overflow-x:auto; }
.table { width:100%; border-collapse: separate; border-spacing:0; background:#fff; border:1px solid var(--cinza-borda); border-radius:14px; overflow:hidden; }
.table th, .table td { padding: 13px 16px; border-right:1px solid var(--cinza-borda); border-bottom:1px solid var(--cinza-borda); vertical-align: middle; }
.table th:last-child, .table td:last-child { border-right:0; }
.table tr:last-child td { border-bottom:0; }
.table thead th, .table-success th { background: var(--cinza-table-head); color:#111; text-align:left; font-weight:700; font-size:13px; }
.table tbody td { font-size:13px; text-align:center; }
.table tbody td.text-start, .text-start { text-align:left; }
.table-hover tbody tr:hover { background:#f8fafc; }
.table tbody tr.row-highlight, .table tbody tr:nth-child(7n) { background:#e8e8e8; }
.empty-text, .empty-cell { text-align:center !important; color:var(--texto-suave); padding:18px !important; }

.status-pill, .status-badge, .badge {
    display:inline-flex; align-items:center; justify-content:center; gap:5px; min-width:92px; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:800; border:1px solid transparent;
}
.status-active, .status-paga, .badge-success { color: var(--verde-texto); background: var(--verde-suave); border-color: var(--verde-borda); }
.status-inactive, .status-pendente, .badge-warning { color:#111; background:#f6f6f6; border-color:#d5d9de; }
.status-parcela { color:#123c63; background:var(--azul-suave); border-color:var(--azul-borda); }
.status-cancelada, .badge-danger { color: var(--vermelho-texto); background: var(--vermelho-suave); border-color:#ffc9c9; }
.linha-atrasada { background:#fff5f5 !important; }
.atraso-note { color:#b42318; font-weight:700; font-size:11px; margin-top:3px; }

.status-check-wrap { display:inline-flex; align-items:center; justify-content:center; }
.status-check-wrap label { display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.status-check-wrap input { width:14px; height:14px; }
.inline-status-form, .inline-edit-form, .v1-edit-action { margin:0; }
.v1-edit-panel { display:none; margin-top:8px; gap:10px; align-items:flex-start; justify-content:center; flex-wrap:wrap; }
.v1-edit-panel.is-open {
    display:flex;
    position:fixed;
    z-index:3000;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
    width:min(560px, calc(100vw - 28px));
    background:#fff;
    border:1px solid var(--cinza-borda);
    border-radius:18px;
    box-shadow:0 24px 80px rgba(15,23,42,.28);
    padding:28px;
}
.v1-edit-panel.is-open::before {
    content:'';
    position:fixed;
    inset:-100vh -100vw;
    background:rgba(15,23,42,.38);
    z-index:-1;
}
.modal-close {
    position:absolute;
    right:12px;
    top:10px;
    width:32px;
    height:32px;
    border:0;
    border-radius:50%;
    background:#eef2f7;
    color:#111827;
    font-weight:900;
    cursor:pointer;
}
.modal-title { width:100%; margin:0 0 8px; font-size:20px; font-weight:800; color:var(--azul-principal); text-align:center; }
.modal-grid { width:100%; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
.modal-grid .form-field { min-width:0; }
.modal-grid .form-field.full { grid-column:1 / -1; }
.modal-actions { width:100%; display:flex; justify-content:center; gap:10px; margin-top:8px; }

.v1-card-grid { display:grid; gap:18px; margin-bottom:28px; }
.v1-card-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.metric-card { padding: 20px 24px; }
.metric-card h4 { margin:0 0 8px; font-size:14px; font-weight:800; }
.metric-value { margin:0; font-size:20px; font-weight:700; }
.money-positive { color:#111; }
.money-negative { color:#b42318; }
.chart-wrap-v1 { height: 360px; position:relative; }
.pagination-wrap { margin:18px 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.muted { color: var(--texto-suave); font-size: 13px; }
.flash { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight:700; }
.flash.success { background: #e7f6eb; border:1px solid #a8d5b3; color:#1f6b38; }
.flash.error { background:#fff1f1; border:1px solid #ffc9c9; color:#b42318; }
.error-list { margin: 8px 0 0; }

.form-card { background:#fff; border:1px solid var(--cinza-borda); border-radius:var(--radius-card); box-shadow:var(--sombra-card); padding:26px; }
.form-grid { display:grid; gap:16px; }
.form-grid.two-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
.field { display:grid; gap:8px; }
.form-note { background:#f8fafc; border:1px solid var(--cinza-borda); border-radius:14px; padding:14px; }

@media (max-width: 980px) {
    .sidebar { transform: translateX(-100%); transition:.2s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .mobile-backdrop { display:block; position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:999; }
    .main-area { margin-left:0; }
    .mobile-menu-button { display:inline-flex; }
    .page-main { width: min(100% - 20px, 1120px); padding-top:18px; }
    .topbar-actions { gap:8px; }
    .install-button { display:none; }
    .v1-card-grid-3 { grid-template-columns:1fr; }
    .v1-card { padding:18px 14px; }
    .v1-filter-form, .v1-add-form { gap:10px; }
    .filter-item, .form-field { min-width: 100%; }
    .form-grid.two-cols { grid-template-columns:1fr; }
}

@media (max-width: 700px) {
    body.vcfin-body { font-size: 13px; }
    .v1-title { font-size:24px; }
    .table thead { display:none; }
    .table, .table tbody, .table tr, .table td { display:block; width:100%; }
    .table tr { border-bottom:1px solid var(--cinza-borda); padding:10px; }
    .table td { border:0; display:flex; justify-content:space-between; gap:16px; text-align:right !important; padding:8px 4px; }
    .table td::before { content: attr(data-label); font-weight:800; text-align:left; color:#111; }
    .actions-container { justify-content:flex-end; }
    .v1-edit-panel.is-open { justify-content:flex-end; }
}


/* Ajuste de largura para páginas operacionais */
.v1-container { max-width: 100%; }
.v1-section { width: 100%; }
.v1-section .table-responsive { width: 100%; }
@media (min-width: 1200px) {
    .v1-card.narrow-card { max-width: 1120px; }
    .v1-card.narrow-card .table { min-width: 100%; }
}
@media (max-width: 760px) {
    .v1-edit-panel.is-open { width: calc(100vw - 20px); max-height: calc(100vh - 40px); overflow:auto; padding:22px 14px; }
    .modal-grid { grid-template-columns: 1fr; }
}


/* Hotfix: pagamentos apenas admin e finalizadas por ano */
.v1-summary-grid { margin-top: 10px; }
.summary-card-v1 span { display: block; color: #6b7280; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.summary-card-v1 strong { display: block; color: #003780; font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.summary-card-v1 p { margin: 0; color: #6b7280; font-size: 13px; }
.table-title-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.table-title-line h2 { margin: 0; color: #003780; font-size: 20px; font-weight: 700; }
.table-title-line p { margin: 4px 0 0; color: #6b7280; font-size: 13px; }

/* Hotfix: layout dos cards de Despesas Finalizadas */
.finalizadas-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    width: 100%;
    margin: 10px 0 24px;
}
.finalizadas-summary-grid .summary-card-v1 {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.finalizadas-summary-grid .summary-card-v1 span,
.finalizadas-summary-grid .summary-card-v1 strong,
.finalizadas-summary-grid .summary-card-v1 p {
    text-align: left;
}
@media (max-width: 980px) {
    .finalizadas-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Melhorias V2 pós-paridade V1 */
.v1-card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v1-card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card strong { font-size: 24px; color: var(--azul-v1-escuro); display:block; }
.money-positive { color: #1f6b38 !important; }
.money-negative { color: #b42318 !important; }
.alerts-grid { display:grid; gap:12px; margin-bottom:20px; }
.smart-alert, .alert-card { background:#fff; border:1px solid var(--cinza-borda); border-radius:14px; padding:14px 18px; box-shadow: var(--sombra-card); font-weight:700; }
.smart-alert.danger, .alert-card.danger { background:#fff1f1; border-color:#ffc9c9; color:#b42318; }
.smart-alert.warning, .alert-card.warning { background:#fff8e6; border-color:#ffe2a8; color:#7a4b00; }
.smart-alert.info, .alert-card.info { background:#e5f2ff; border-color:#a9d3f5; color:#123c63; }
.quick-actions { display:flex; gap:10px; justify-content:center; align-items:center; flex-wrap:wrap; }
.category-dot { width:12px; height:12px; border-radius:50%; display:inline-block; vertical-align:middle; margin-right:6px; }
.goals-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:16px; }
.goal-card { border:1px solid var(--cinza-borda); border-radius:16px; padding:18px; background:#fff; box-shadow:0 6px 16px rgba(0,0,0,.05); }
.goal-head, .goal-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.goal-values { margin:12px 0; font-weight:700; color:var(--texto-suave); }
.progress-track { height:12px; border-radius:999px; background:#e5e7eb; overflow:hidden; }
.progress-track div { height:100%; background:var(--azul-v1); border-radius:999px; }
.mt-12 { margin-top:12px; }
.small-select { width:auto; min-width:120px; display:inline-block; margin-right:6px; }
.chart-box { width:100%; min-height:280px; }
.muted { color: var(--texto-suave); font-size: 13px; }
code { background:#eef2f7; padding:2px 6px; border-radius:6px; }

@media (max-width: 960px) {
    .v1-card-grid-4, .v1-card-grid-3, .v1-card-grid-2 { grid-template-columns: 1fr; }
    .metric-card strong { font-size:20px; }
}

/* VcFin Pro - integrações de categorias, cartões e metas */
.v1-card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.no-margin { margin: 0; }
.full-height { height: 100%; }
.compact-metric .metric-value.small, .metric-value.small { font-size: 1.45rem; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.muted-text, .muted-row { color: #6b7280; }

.categoria-chip {
    --cat-color: #00488b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cat-color) 12%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--cat-color) 28%, #d1d5db);
    color: #1f2937;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}
.categoria-chip i { color: var(--cat-color); font-size: .95rem; }
.categoria-chip-empty { background: #f3f4f6; border-color: #e5e7eb; color: #6b7280; }
.categoria-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; display: inline-block; }

.category-summary-list, .quick-list { display: flex; flex-direction: column; gap: 10px; }
.category-summary-item, .quick-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.quick-list-row span { display: inline-flex; align-items: center; gap: 8px; }

.cards-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.credit-card-box {
    border-radius: 18px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, #003780, #6746a3);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(0, 55, 128, .22);
}
.credit-card-box strong { display: block; font-size: 1.1rem; }
.credit-card-box span { opacity: .9; }
.credit-card-box .status-badge { align-self: flex-start; background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.25); }

.goal-monthly {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #eef6ff;
    color: #003780;
    font-weight: 700;
    font-size: .88rem;
}
.progress-track.tiny { height: 8px; margin: 0; }
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    margin-top: 22px;
}
.checkbox-inline.full { grid-column: 1 / -1; margin-top: 0; }
.saldo-breakdown {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
}
.saldo-breakdown p { margin: 8px 0; }
.danger-card-soft { border-color: #fecaca; background: #fffafa; }

@media (max-width: 1100px) { .v1-card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .v1-card-grid-4, .v1-card-grid-3, .v1-card-grid-2 { grid-template-columns: 1fr; } .categoria-chip { white-space: normal; } }

/* =========================================================
   VcFin V2 UI Pro - banho de loja
   Objetivo: modernizar a interface sem remover funções da V1.
   ========================================================= */
:root {
    --ui-bg: #f3f6fb;
    --ui-surface: rgba(255,255,255,.92);
    --ui-border: #e3e8f0;
    --ui-text: #172033;
    --ui-muted: #6b7280;
    --ui-primary: #003780;
    --ui-primary-2: #0059b3;
    --ui-accent: #6746a3;
    --ui-success: #1f8f4d;
    --ui-danger: #b42318;
    --ui-warning: #f59e0b;
    --ui-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    --ui-soft-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

body.ui-pro {
    background:
        radial-gradient(circle at 18% 0%, rgba(0, 89, 179, .10), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(103, 70, 163, .10), transparent 30%),
        var(--ui-bg);
    color: var(--ui-text);
}

.ui-pro .app-shell {
    background: transparent;
}

.ui-pro .sidebar {
    background: linear-gradient(180deg, #003780 0%, #073b78 48%, #061f42 100%);
    box-shadow: 14px 0 38px rgba(0, 24, 58, .18);
}

.ui-pro .sidebar-logo-area {
    padding: 22px 20px 18px;
    border-bottom-color: rgba(255,255,255,.12);
}

.ui-pro .sidebar-tagline {
    font-size: 10px;
    line-height: 1.35;
    opacity: .82;
}

.ui-pro .sidebar-menu {
    padding: 14px 12px 18px;
}

.ui-pro .sidebar-section {
    margin: 18px 10px 8px;
    color: rgba(255,255,255,.62);
    font-size: 10px;
    letter-spacing: .12em;
}

.ui-pro .sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 40px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255,255,255,.88);
    transition: background .18s ease, border .18s ease, transform .18s ease;
}

.ui-pro .sidebar-menu a i {
    width: 19px;
    font-size: 16px;
    opacity: .9;
}

.ui-pro .sidebar-menu a:hover {
    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.10);
    transform: translateX(2px);
}

.ui-pro .sidebar-menu a.active {
    background: #ffffff;
    color: var(--ui-primary);
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
}

.ui-pro .sidebar-menu a.active i {
    color: var(--ui-accent);
}

.ui-pro .sidebar-footer {
    background: rgba(0,0,0,.14);
    border-top-color: rgba(255,255,255,.12);
}

.ui-pro .sidebar-logout {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
}

.ui-pro .main-area {
    background: transparent;
}

.ui-pro .topbar-v1 {
    min-height: 72px;
    background: rgba(255,255,255,.78);
    color: var(--ui-text);
    border-bottom: 1px solid rgba(226,232,240,.85);
    backdrop-filter: blur(14px);
    box-shadow: none;
}

.ui-pro .topbar-kicker {
    font-size: 11px;
    font-weight: 800;
    color: var(--ui-primary);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ui-pro .topbar-title {
    font-size: 19px;
    color: #111827;
}

.ui-pro .topbar-actions {
    color: #334155;
}

.ui-pro .topbar-shortcut,
.ui-pro .install-button,
.ui-pro .topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    border-radius: 999px;
    padding: 8px 13px;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
}

.ui-pro .topbar-shortcut {
    color: var(--ui-primary);
    background: #eef6ff;
    border: 1px solid #cfe5ff;
}

.ui-pro .install-button {
    color: #fff;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-accent));
    box-shadow: 0 10px 24px rgba(0,55,128,.20);
}

.ui-pro .topbar-user {
    background: #fff;
    border: 1px solid var(--ui-border);
}

.ui-pro .page-main {
    width: min(1480px, calc(100% - 44px));
    padding-top: 30px;
}

.ui-pro .v1-title {
    color: #0f2544;
    font-size: clamp(27px, 3vw, 42px);
    margin-bottom: 8px;
    letter-spacing: -.035em;
}

.page-subtitle-pro {
    margin: 0 auto 24px;
    max-width: 760px;
    text-align: center;
    color: var(--ui-muted);
    font-weight: 600;
}

.ui-pro .v1-card,
.ui-pro .form-card,
.ui-pro .metric-card,
.ui-pro .goal-card,
.ui-pro .smart-alert,
.ui-pro .alert-card,
.ui-pro .summary-card-v1 {
    background: var(--ui-surface);
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 22px;
    box-shadow: var(--ui-shadow);
}

.ui-pro .v1-card {
    padding: 28px 30px;
}

.ui-pro .v1-card.narrow-card {
    max-width: 1280px;
}

.ui-pro .compact-section .v1-card.narrow-card {
    max-width: 900px;
}

.ui-pro .v1-card h2,
.ui-pro .v1-card h3,
.ui-pro .v1-subtitle {
    color: #172033;
    letter-spacing: -.025em;
}

.ui-pro .v1-card-grid {
    gap: 20px;
}

.ui-pro .metric-card {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
}

.ui-pro .metric-card::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(0,55,128,.08);
}

.ui-pro .metric-card h4 {
    color: var(--ui-muted);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ui-pro .metric-card strong,
.ui-pro .metric-value {
    color: #10213b;
    font-size: clamp(22px, 2vw, 32px);
    letter-spacing: -.035em;
}

.ui-pro .form-control,
.ui-pro .input {
    height: 43px;
    border-radius: 14px;
    border-color: #d8e0eb;
    background: #fbfdff;
    font-weight: 600;
}

.ui-pro textarea.form-control,
.ui-pro textarea.input,
.ui-pro .textarea {
    border-radius: 16px;
}

.ui-pro .filter-item label,
.ui-pro .form-field label,
.ui-pro .field span {
    color: #334155;
    font-size: 12px;
    letter-spacing: .02em;
}

.ui-pro .v1-add-form {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #e5edf7;
    border-radius: 20px;
    box-shadow: var(--ui-soft-shadow);
}

.ui-pro .btn,
.ui-pro .button {
    min-height: 38px;
    border-radius: 13px;
    padding: 10px 16px;
    box-shadow: none;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.ui-pro .btn:hover,
.ui-pro .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15,23,42,.12);
}

.ui-pro .btn-primary,
.ui-pro .button.primary {
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
}

.ui-pro .btn-success,
.ui-pro .btn-warning {
    background: linear-gradient(135deg, var(--ui-accent), #7d5bc0);
}

.ui-pro .btn-secondary,
.ui-pro .button.secondary {
    background: #334155;
}

.ui-pro .btn-danger {
    background: linear-gradient(135deg, #b42318, #7f1d1d);
}

.ui-pro .table {
    border-radius: 20px;
    border-color: #e4eaf2;
    box-shadow: var(--ui-soft-shadow);
    overflow: hidden;
}

.ui-pro .table thead th,
.ui-pro .table-success th {
    background: #f1f6fb;
    color: #26364f;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ui-pro .table td,
.ui-pro .table th {
    border-color: #e7edf5;
}

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

.ui-pro .status-pill,
.ui-pro .status-badge,
.ui-pro .badge,
.ui-pro .categoria-chip {
    border-radius: 999px;
    font-weight: 800;
}

.ui-pro .categoria-chip {
    padding: 6px 10px;
}

.ui-pro .v1-edit-panel.is-open {
    border-radius: 26px;
    box-shadow: 0 30px 100px rgba(15, 23, 42, .34);
}

.ui-pro .modal-close {
    background: #f1f5f9;
}

.ui-pro .credit-card-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.22), transparent 24%),
        linear-gradient(135deg, #003780 0%, #0b5daa 52%, #6746a3 100%);
    min-height: 174px;
    box-shadow: 0 22px 44px rgba(0,55,128,.24);
}

.ui-pro .credit-card-box::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    right: -48px;
    bottom: -70px;
    border-radius: 999px;
    border: 22px solid rgba(255,255,255,.14);
}

.ui-pro .credit-card-box strong {
    font-size: 1.25rem;
    letter-spacing: -.02em;
}

.ui-pro .bank-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ui-pro .bank-suggestions span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--ui-primary);
    border: 1px solid #cfe5ff;
    font-size: 12px;
    font-weight: 800;
}

.ui-pro .ui-pro-card-form {
    align-items: end;
}

.ui-pro .goal-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.ui-pro .goal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(15,23,42,.10);
}

.ui-pro .progress-track {
    background: #e7edf5;
}

.ui-pro .progress-track div {
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-success));
}

.ui-pro .footer-v1 {
    background: transparent;
    color: var(--ui-muted);
    border-top: 1px solid #e3e8f0;
}

@media (max-width: 980px) {
    .ui-pro .topbar-v1 { min-height: 62px; }
    .ui-pro .topbar-kicker { display:none; }
    .ui-pro .topbar-shortcut { display:none; }
    .ui-pro .page-main { width: min(100% - 22px, 1120px); }
    .ui-pro .v1-card { padding: 20px 16px; }
}

@media (max-width: 700px) {
    .ui-pro .topbar-user { display:none; }
    .ui-pro .v1-title { text-align:left; font-size: 25px; }
    .page-subtitle-pro { text-align:left; }
    .ui-pro .table tr { background:#fff; border:1px solid #e6ecf4; border-radius:16px; margin-bottom:12px; box-shadow: var(--ui-soft-shadow); }
}

/* =========================================================
   VcFin V2 — Neural Expressive UI
   Material 3 inspired visual layer. Preserva fluxos existentes.
   ========================================================= */
:root {
    --m3-primary: #6750A4;
    --m3-primary-dark: #4F378B;
    --m3-primary-container: #EADDFF;
    --m3-on-primary-container: #21005D;
    --m3-secondary: #625B71;
    --m3-secondary-container: #E8DEF8;
    --m3-tertiary: #7D5260;
    --m3-tertiary-container: #FFD8E4;
    --m3-surface: #FFFBFE;
    --m3-surface-container-low: #F7F2FA;
    --m3-surface-container: #F3EDF7;
    --m3-surface-container-high: #ECE6F0;
    --m3-outline: #79747E;
    --m3-outline-variant: #CAC4D0;
    --m3-error: #BA1A1A;
    --m3-success: #146C2E;
    --m3-warning: #8A5700;
    --m3-shadow-1: 0 1px 2px rgba(30, 20, 50, .08), 0 1px 3px rgba(30, 20, 50, .10);
    --m3-shadow-2: 0 4px 10px rgba(30, 20, 50, .10), 0 2px 6px rgba(30, 20, 50, .08);
    --m3-shadow-3: 0 14px 34px rgba(30, 20, 50, .14), 0 6px 14px rgba(30, 20, 50, .08);
    --m3-radius-xl: 32px;
    --m3-radius-lg: 24px;
    --m3-radius-md: 18px;
    --m3-radius-sm: 12px;
}

body.neural-expressive {
    background:
        radial-gradient(circle at top left, rgba(103, 80, 164, .16), transparent 32rem),
        radial-gradient(circle at top right, rgba(125, 82, 96, .12), transparent 28rem),
        linear-gradient(135deg, #FFFBFE 0%, #F7F2FA 45%, #EEF2FF 100%);
    color: #1D1B20;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

.neural-expressive .sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(234, 221, 255, .24), transparent 13rem),
        linear-gradient(180deg, #35205C 0%, #4F378B 48%, #21005D 100%);
    box-shadow: 10px 0 40px rgba(33, 0, 93, .22);
    border-right: 1px solid rgba(255,255,255,.10);
}
.neural-expressive .sidebar-logo-area { border-bottom: 1px solid rgba(255,255,255,.12); padding: 22px 20px 16px; }
.neural-expressive .sidebar-tagline { opacity: .86; }
.neural-expressive .sidebar-menu { padding: 16px 12px 22px; }
.neural-expressive .sidebar-menu a {
    display:flex;
    align-items:center;
    gap: 11px;
    border-radius: 999px;
    padding: 12px 14px;
    margin-bottom: 6px;
    color: rgba(255,255,255,.90);
    font-weight: 700;
    letter-spacing: -.01em;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.neural-expressive .sidebar-menu a i { font-size: 17px; width: 20px; text-align: center; }
.neural-expressive .sidebar-menu a:hover { background: rgba(234,221,255,.16); transform: translateX(2px); }
.neural-expressive .sidebar-menu a.active {
    background: var(--m3-primary-container);
    color: var(--m3-on-primary-container);
    box-shadow: inset 0 0 0 1px rgba(33,0,93,.05), var(--m3-shadow-1);
}
.neural-expressive .sidebar-section { opacity: .70; letter-spacing: .12em; }
.neural-expressive .sidebar-footer { background: rgba(255,255,255,.08); }
.neural-expressive .sidebar-logout { background: rgba(234,221,255,.16); border-radius: 999px; }
.neural-expressive .sidebar-logout:hover { background: rgba(234,221,255,.26); }

.neural-expressive .topbar-v1 {
    background: rgba(255,251,254,.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #1D1B20;
    box-shadow: 0 1px 0 rgba(121,116,126,.18);
    border-bottom: 1px solid rgba(121,116,126,.12);
}
.neural-expressive .topbar-kicker { color: var(--m3-primary); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }
.neural-expressive .topbar-title { color: #1D1B20; font-size: 18px; font-weight: 800; }
.neural-expressive .topbar-shortcut,
.neural-expressive .install-button,
.neural-expressive .topbar-user {
    border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface-container-low);
    color: #1D1B20;
    border-radius: 999px;
    padding: 9px 13px;
    text-decoration:none;
    font-weight: 700;
}
.neural-expressive .install-button { cursor: pointer; }
.neural-expressive .topbar-shortcut:hover,
.neural-expressive .install-button:hover { background: var(--m3-primary-container); color: var(--m3-on-primary-container); }

.neural-expressive .page-main { padding: 26px; }
.neural-expressive .v1-container { max-width: 1480px; }
.neural-expressive .v1-title { letter-spacing: -.04em; color: #1D1B20; font-size: clamp(28px, 3vw, 44px); }
.neural-expressive .page-subtitle-pro,
.neural-expressive .muted-text { color: #625B71; }

.neural-expressive .m3-hero {
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items: stretch;
    margin-bottom: 22px;
    padding: 26px;
    border-radius: var(--m3-radius-xl);
    background:
        radial-gradient(circle at 8% 10%, rgba(234,221,255,.85), transparent 20rem),
        radial-gradient(circle at 92% 20%, rgba(255,216,228,.72), transparent 18rem),
        linear-gradient(135deg, rgba(255,251,254,.96), rgba(243,237,247,.92));
    border: 1px solid rgba(202,196,208,.82);
    box-shadow: var(--m3-shadow-2);
    position: relative;
    overflow:hidden;
}
.neural-expressive .m3-hero::after {
    content:"";
    position:absolute;
    width: 180px;
    height: 180px;
    right:-56px;
    bottom:-70px;
    border-radius: 50%;
    background: rgba(103,80,164,.12);
}
.neural-expressive .eyebrow-chip {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--m3-primary-container);
    color: var(--m3-on-primary-container);
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 10px;
}
.neural-expressive .hero-card-mini {
    min-width: 230px;
    border-radius: 28px;
    padding: 20px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(202,196,208,.8);
    box-shadow: var(--m3-shadow-1);
    display:flex;
    flex-direction:column;
    justify-content:center;
    z-index:1;
}
.neural-expressive .hero-card-mini span { color: var(--m3-secondary); font-weight: 700; }
.neural-expressive .hero-card-mini strong { color: var(--m3-primary); font-size: 24px; letter-spacing: -.04em; }
.neural-expressive .hero-goal strong { color: var(--m3-tertiary); }

.neural-expressive .v1-card,
.neural-expressive .metric-card,
.neural-expressive .alert-card,
.neural-expressive .form-card {
    background: rgba(255,251,254,.90);
    border: 1px solid rgba(202,196,208,.78);
    border-radius: var(--m3-radius-lg);
    box-shadow: var(--m3-shadow-1);
}
.neural-expressive .m3-card.elevated-card,
.neural-expressive .v1-card:hover,
.neural-expressive .metric-card:hover {
    box-shadow: var(--m3-shadow-2);
}
.neural-expressive .metric-card {
    position: relative;
    overflow:hidden;
    padding: 20px;
    min-height: 136px;
}
.neural-expressive .metric-card::after {
    content:"";
    position:absolute;
    right:-32px;
    top:-32px;
    width:90px;
    height:90px;
    border-radius:999px;
    background: rgba(103,80,164,.10);
}
.neural-expressive .metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: var(--m3-primary-container);
    color: var(--m3-on-primary-container);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size: 20px;
    margin-bottom: 10px;
}
.neural-expressive .metric-card h4 { color: var(--m3-secondary); font-weight: 800; }
.neural-expressive .metric-card strong { color: #1D1B20; font-size: 26px; letter-spacing: -.04em; }

.neural-expressive .btn,
.neural-expressive button.btn {
    border-radius: 999px;
    border: 0;
    box-shadow: none;
    font-weight: 800;
    letter-spacing: -.01em;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.neural-expressive .btn:hover { transform: translateY(-1px); box-shadow: var(--m3-shadow-1); }
.neural-expressive .btn-primary { background: var(--m3-primary); color: #fff; }
.neural-expressive .btn-warning { background: var(--m3-secondary-container); color: #1D192B; }
.neural-expressive .btn-danger { background: #FFDAD6; color: var(--m3-error); }
.neural-expressive .btn-secondary { background: var(--m3-surface-container-high); color: #1D1B20; }

.neural-expressive .form-control,
.neural-expressive input.form-control,
.neural-expressive select.form-control,
.neural-expressive textarea.form-control {
    border-radius: 16px;
    border: 1px solid var(--m3-outline-variant);
    background: rgba(255,251,254,.94);
    color: #1D1B20;
    min-height: 44px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.neural-expressive .form-control:focus {
    outline: none;
    border-color: var(--m3-primary);
    box-shadow: 0 0 0 4px rgba(103,80,164,.14);
}
.neural-expressive .form-field label,
.neural-expressive .filter-item label { color: #49454F; font-weight: 800; font-size: 12px; }
.neural-expressive .m3-form { gap: 14px; }

.neural-expressive .table-responsive {
    border-radius: 22px;
    overflow: auto;
    border: 1px solid rgba(202,196,208,.74);
    background: #fff;
}
.neural-expressive .table { border-collapse: separate; border-spacing: 0; }
.neural-expressive .table thead,
.neural-expressive .table-success {
    background: var(--m3-primary-container) !important;
    color: var(--m3-on-primary-container) !important;
}
.neural-expressive .table th {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .06em;
}
.neural-expressive .table td,
.neural-expressive .table th { border-bottom: 1px solid rgba(202,196,208,.55); }
.neural-expressive .status-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    border: 1px solid transparent;
}
.neural-expressive .status-active { background: #DDF8E7; color: var(--m3-success); border-color: #B7E5C8; }
.neural-expressive .status-inactive { background: var(--m3-surface-container); color: var(--m3-secondary); border-color: var(--m3-outline-variant); }
.neural-expressive .status-parcela { background: var(--m3-secondary-container); color: #1D192B; }
.neural-expressive .categoria-chip { border-radius: 999px; padding: 6px 10px; background: color-mix(in srgb, var(--cat-color, #6750A4) 12%, #fff); border: 1px solid color-mix(in srgb, var(--cat-color, #6750A4) 32%, #fff); }

.neural-expressive .section-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:14px; }
.neural-expressive .section-title-row h2 { margin-bottom: 4px; }
.neural-expressive .section-watermark { font-size: 34px; color: rgba(103,80,164,.22); }
.neural-expressive .brand-picker-block { margin-top: 18px; display:grid; gap: 10px; }
.neural-expressive .picker-label { color: var(--m3-secondary); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.neural-expressive .brand-chip-grid { display:flex; gap: 10px; flex-wrap: wrap; }
.neural-expressive .brand-chip {
    display:inline-flex;
    align-items:center;
    gap: 9px;
    border: 1px solid var(--m3-outline-variant);
    background: rgba(255,251,254,.94);
    color: #1D1B20;
    border-radius: 999px;
    padding: 7px 11px 7px 7px;
    cursor:pointer;
    font-weight: 800;
    box-shadow: var(--m3-shadow-1);
}
.neural-expressive .brand-chip:hover { background: var(--m3-primary-container); transform: translateY(-1px); }
.neural-expressive .mt-14 { margin-top: 14px; }

.neural-expressive .bank-logo,
.neural-expressive .flag-logo {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width: 38px;
    height: 28px;
    padding: 0 8px;
    border-radius: 10px;
    color: #fff;
    font-weight: 950;
    font-size: 11px;
    letter-spacing: -.03em;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 4px 10px rgba(0,0,0,.10);
    vertical-align: middle;
}
.neural-expressive .bank-mini { min-width: 30px; height: 24px; font-size: 10px; margin-right: 6px; }
.neural-expressive .bank-nubank { background: linear-gradient(135deg, #820AD1, #4B0082); }
.neural-expressive .bank-itau { background: linear-gradient(135deg, #EC7000, #003399); }
.neural-expressive .bank-santander { background: linear-gradient(135deg, #E40000, #A80000); }
.neural-expressive .bank-bradesco { background: linear-gradient(135deg, #CC092F, #8A001E); }
.neural-expressive .bank-bb { background: linear-gradient(135deg, #FDE100, #244AA5); color: #244AA5; }
.neural-expressive .bank-caixa { background: linear-gradient(135deg, #0066B3, #F39200); }
.neural-expressive .bank-c6 { background: linear-gradient(135deg, #1D1D1B, #6F6F6F); }
.neural-expressive .bank-inter { background: linear-gradient(135deg, #FF7A00, #EC5800); }
.neural-expressive .bank-btg { background: linear-gradient(135deg, #0B1F3A, #1F5C8B); }
.neural-expressive .bank-xp { background: linear-gradient(135deg, #111827, #D4AF37); }
.neural-expressive .bank-mercado { background: linear-gradient(135deg, #00AEEF, #FFE600); color:#123; }
.neural-expressive .bank-picpay { background: linear-gradient(135deg, #11C76F, #087B47); }
.neural-expressive .bank-generic { background: linear-gradient(135deg, var(--m3-primary), var(--m3-tertiary)); }
.neural-expressive .flag-visa { background: linear-gradient(135deg, #1A1F71, #2B5FFF); }
.neural-expressive .flag-mastercard { background: linear-gradient(135deg, #EB001B, #F79E1B); }
.neural-expressive .flag-elo { background: linear-gradient(135deg, #111827, #FDB913); }
.neural-expressive .flag-amex { background: linear-gradient(135deg, #006FCF, #00A3E0); }
.neural-expressive .flag-hiper { background: linear-gradient(135deg, #B00020, #E53935); }
.neural-expressive .flag-diners { background: linear-gradient(135deg, #006BB6, #003B73); }
.neural-expressive .flag-discover { background: linear-gradient(135deg, #F58220, #111827); }
.neural-expressive .flag-other { background: linear-gradient(135deg, #625B71, #1D1B20); }

.neural-expressive .neural-card-strip { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.neural-expressive .neural-credit-card {
    min-height: 188px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 10%, rgba(255,255,255,.22), transparent 11rem),
        linear-gradient(135deg, #4F378B, #21005D 65%, #7D5260);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: var(--m3-shadow-3);
    position: relative;
    overflow:hidden;
}
.neural-expressive .neural-credit-card::after {
    content:"";
    position:absolute;
    right:-52px;
    bottom:-52px;
    width:150px;
    height:150px;
    border-radius:999px;
    background: rgba(255,255,255,.12);
}
.neural-expressive .credit-card-top { display:flex; justify-content:space-between; align-items:center; margin-bottom: 20px; }
.neural-expressive .neural-credit-card strong { font-size: 20px; letter-spacing: -.04em; }
.neural-expressive .neural-credit-card span { opacity: .94; }

.neural-expressive .goals-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.neural-expressive .m3-goal-card {
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--goal-color, #6750A4) 18%, transparent), transparent 12rem),
        rgba(255,251,254,.96);
    border: 1px solid color-mix(in srgb, var(--goal-color, #6750A4) 28%, #E7E0EC);
    padding: 18px;
    box-shadow: var(--m3-shadow-1);
}
.neural-expressive .goal-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 19px;
    background: color-mix(in srgb, var(--goal-color, #6750A4) 18%, #fff);
    color: var(--goal-color, #6750A4);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 25px;
    margin-bottom: 12px;
}
.neural-expressive .progress-track {
    height: 12px;
    border-radius: 999px;
    background: var(--m3-surface-container-high);
    overflow:hidden;
}
.neural-expressive .progress-track div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--goal-color, #6750A4), color-mix(in srgb, var(--goal-color, #6750A4) 70%, #fff));
}
.neural-expressive .goal-monthly {
    border-radius: 16px;
    background: var(--m3-primary-container);
    color: var(--m3-on-primary-container);
    padding: 8px 10px;
    font-weight: 800;
    margin-top: 10px;
}

.neural-expressive .v1-edit-panel {
    border-radius: 30px;
    background: rgba(255,251,254,.98);
    border: 1px solid rgba(202,196,208,.8);
    box-shadow: var(--m3-shadow-3);
}
.neural-expressive .modal-title { color: #1D1B20; letter-spacing: -.03em; }
.neural-expressive .modal-close { border-radius: 50%; background: var(--m3-surface-container-high); color:#1D1B20; }

@media (max-width: 860px) {
    .neural-expressive .m3-hero { flex-direction:column; padding: 20px; border-radius: 26px; }
    .neural-expressive .hero-card-mini { min-width: 0; }
    .neural-expressive .page-main { padding: 18px; }
    .neural-expressive .brand-chip-grid { gap: 8px; }
    .neural-expressive .brand-chip { font-size: 12px; }
}


/* =========================================================
   VcFin V2 — Neural Blue Clean
   Ajuste pedido: manter linguagem Material/Neural Expressive,
   porém usando os tons do logo VcFin, mais largura útil e menos poluição visual.
   ========================================================= */
:root {
    --vc-blue-950: #061f42;
    --vc-blue-900: #003780;
    --vc-blue-800: #00488b;
    --vc-blue-700: #075da8;
    --vc-blue-600: #0876c9;
    --vc-blue-500: #159be8;
    --vc-blue-100: #dff3ff;
    --vc-blue-50: #f2fbff;
    --vc-surface: #fbfdff;
    --vc-surface-soft: #f4f8fc;
    --vc-border: #d7e4f0;
    --vc-text: #102033;
    --vc-muted: #5d6b7d;
    --vc-shadow-soft: 0 10px 28px rgba(4, 42, 85, .07);
    --vc-shadow-card: 0 18px 44px rgba(4, 42, 85, .10);
}

body.neural-expressive {
    background:
        radial-gradient(circle at 8% 0%, rgba(21, 155, 232, .14), transparent 28rem),
        radial-gradient(circle at 92% 4%, rgba(0, 72, 139, .10), transparent 30rem),
        linear-gradient(135deg, #f7fbff 0%, #f2f7fc 48%, #eef6ff 100%);
    color: var(--vc-text);
}

.neural-expressive .sidebar {
    background:
        radial-gradient(circle at 22% 0%, rgba(21, 155, 232, .25), transparent 13rem),
        linear-gradient(180deg, var(--vc-blue-900) 0%, var(--vc-blue-800) 52%, var(--vc-blue-950) 100%);
    box-shadow: 10px 0 34px rgba(0, 55, 128, .18);
}

.neural-expressive .sidebar-menu a {
    color: rgba(255,255,255,.92);
    gap: 10px;
    padding: 11px 13px;
}

.neural-expressive .sidebar-menu a i {
    font-size: 15px;
    opacity: .82;
}

.neural-expressive .sidebar-menu a.active {
    background: rgba(255,255,255,.18);
    color: #fff;
    box-shadow: inset 3px 0 0 rgba(21,155,232,.95);
}

.neural-expressive .sidebar-menu a.active i,
.neural-expressive .sidebar-menu a:hover i {
    opacity: 1;
}

.neural-expressive .sidebar-section {
    color: rgba(255,255,255,.68);
}

.neural-expressive .topbar-v1 {
    background: rgba(251, 253, 255, .88);
    border-bottom: 1px solid rgba(0,72,139,.12);
    box-shadow: 0 2px 18px rgba(4,42,85,.06);
}

.neural-expressive .topbar-kicker {
    color: var(--vc-blue-800);
}

.neural-expressive .topbar-title {
    color: var(--vc-text);
}

.neural-expressive .topbar-shortcut,
.neural-expressive .install-button,
.neural-expressive .topbar-user {
    border-color: var(--vc-border);
    background: #fff;
    color: var(--vc-text);
}

.neural-expressive .topbar-shortcut:hover,
.neural-expressive .install-button:hover {
    background: var(--vc-blue-50);
    color: var(--vc-blue-900);
}

.neural-expressive .page-main {
    width: 100%;
    max-width: none;
    padding: 26px clamp(22px, 2.4vw, 44px) 64px;
}

.neural-expressive .v1-container {
    width: 100%;
    max-width: none;
}

.neural-expressive .v1-section {
    width: 100%;
}

.neural-expressive .v1-card.narrow-card {
    max-width: none;
}

.neural-expressive .compact-section .v1-card.narrow-card {
    max-width: min(980px, 100%);
}

.neural-expressive .v1-card,
.neural-expressive .metric-card,
.neural-expressive .alert-card,
.neural-expressive .form-card {
    background: rgba(255,255,255,.92);
    border-color: var(--vc-border);
    box-shadow: var(--vc-shadow-soft);
}

.neural-expressive .v1-card:hover,
.neural-expressive .metric-card:hover,
.neural-expressive .m3-card.elevated-card {
    box-shadow: var(--vc-shadow-card);
}

.neural-expressive .m3-hero {
    background:
        radial-gradient(circle at 8% 8%, rgba(21,155,232,.16), transparent 22rem),
        radial-gradient(circle at 92% 24%, rgba(0,72,139,.10), transparent 18rem),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,248,252,.92));
    border-color: var(--vc-border);
    box-shadow: var(--vc-shadow-card);
}

.neural-expressive .m3-hero::after,
.neural-expressive .metric-card::after {
    background: rgba(21,155,232,.10);
}

.neural-expressive .eyebrow-chip {
    background: var(--vc-blue-100);
    color: var(--vc-blue-900);
}

.neural-expressive .hero-card-mini {
    background: rgba(255,255,255,.82);
    border-color: var(--vc-border);
}

.neural-expressive .hero-card-mini strong,
.neural-expressive .metric-card strong,
.neural-expressive .v1-title {
    color: var(--vc-blue-950);
}

.neural-expressive .hero-card-mini span,
.neural-expressive .page-subtitle-pro,
.neural-expressive .muted-text,
.neural-expressive .metric-card h4 {
    color: var(--vc-muted);
}

.neural-expressive .metric-card {
    min-height: 118px;
    padding: 18px 20px;
}

.neural-expressive .metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: var(--vc-blue-50);
    color: var(--vc-blue-800);
    font-size: 17px;
    margin-bottom: 8px;
}

.neural-expressive .section-watermark {
    display: none;
}

.neural-expressive .btn-primary {
    background: linear-gradient(135deg, var(--vc-blue-800), var(--vc-blue-600));
    color: #fff;
}

.neural-expressive .btn-warning {
    background: var(--vc-blue-50);
    color: var(--vc-blue-900);
}

.neural-expressive .btn-danger {
    background: #111827;
    color: #fff;
}

.neural-expressive .btn-secondary {
    background: #eef4fa;
    color: var(--vc-text);
}

.neural-expressive .form-control,
.neural-expressive input.form-control,
.neural-expressive select.form-control,
.neural-expressive textarea.form-control {
    border-color: var(--vc-border);
    background: #fff;
}

.neural-expressive .form-control:focus {
    border-color: var(--vc-blue-600);
    box-shadow: 0 0 0 4px rgba(21,155,232,.13);
}

.neural-expressive .table-responsive {
    border-color: var(--vc-border);
    box-shadow: none;
}

.neural-expressive .table thead,
.neural-expressive .table-success {
    background: #f1f7fd !important;
    color: var(--vc-blue-950) !important;
}

.neural-expressive .table th {
    color: var(--vc-blue-950);
}

.neural-expressive .table td,
.neural-expressive .table th {
    border-bottom-color: var(--vc-border);
}

.neural-expressive .categoria-chip {
    padding: 5px 9px;
    font-weight: 700;
    background: color-mix(in srgb, var(--cat-color, #00488b) 10%, #ffffff);
    border-color: color-mix(in srgb, var(--cat-color, #00488b) 25%, #d7e4f0);
}

.neural-expressive .brand-chip-grid {
    gap: 8px;
}

.neural-expressive .brand-chip {
    background: #fff;
    border-color: var(--vc-border);
    box-shadow: none;
    padding: 6px 10px 6px 6px;
    font-size: 12px;
}

.neural-expressive .brand-chip:hover {
    background: var(--vc-blue-50);
}

.neural-expressive .bank-logo,
.neural-expressive .flag-logo {
    box-shadow: none;
    min-width: 34px;
    height: 25px;
    border-radius: 8px;
    font-size: 10px;
}

.neural-expressive .neural-credit-card {
    background:
        radial-gradient(circle at 12% 10%, rgba(255,255,255,.22), transparent 11rem),
        linear-gradient(135deg, var(--vc-blue-800), var(--vc-blue-950) 70%, #159be8);
    box-shadow: 0 18px 38px rgba(0,72,139,.18);
}

.neural-expressive .m3-goal-card {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--goal-color, #00488b) 12%, transparent), transparent 11rem),
        rgba(255,255,255,.96);
    border-color: color-mix(in srgb, var(--goal-color, #00488b) 22%, #d7e4f0);
}

.neural-expressive .goal-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 21px;
    background: color-mix(in srgb, var(--goal-color, #00488b) 12%, #fff);
}

.neural-expressive .progress-track div {
    background: linear-gradient(90deg, var(--vc-blue-800), var(--vc-blue-500));
}

.neural-expressive .goal-monthly {
    background: var(--vc-blue-50);
    color: var(--vc-blue-900);
}

.neural-expressive .v1-card-grid-4,
.neural-expressive .m3-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.neural-expressive .neural-card-strip,
.neural-expressive .cards-strip,
.neural-expressive .goals-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 1500px) {
    .neural-expressive .v1-card-grid-4,
    .neural-expressive .m3-metrics {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
    }
}

@media (max-width: 1200px) {
    .neural-expressive .v1-card-grid-4,
    .neural-expressive .m3-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .neural-expressive .page-main {
        padding: 18px 12px 48px;
    }
    .neural-expressive .m3-hero {
        border-radius: 22px;
    }
    .neural-expressive .v1-card-grid-4,
    .neural-expressive .m3-metrics,
    .neural-expressive .v1-card-grid-3,
    .neural-expressive .v1-card-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   VcFin V2 — Clean Blue Full Width
   Ajuste visual: menos degradê/círculos, ícones sólidos e páginas com largura útil total.
   ========================================================= */
body.vcfin-body.neural-expressive {
    background: #f3f7fb !important;
    color: var(--vc-text) !important;
}

.neural-expressive .app-shell,
.neural-expressive .main-area {
    background: #f3f7fb !important;
}

.neural-expressive .sidebar {
    background: var(--vc-blue-900) !important;
    box-shadow: 8px 0 24px rgba(0, 55, 128, .16) !important;
}

.neural-expressive .sidebar-logo-area,
.neural-expressive .sidebar-footer {
    background: rgba(0, 0, 0, .06) !important;
}

.neural-expressive .sidebar-menu a {
    border-radius: 14px !important;
}

.neural-expressive .sidebar-menu a.active {
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
    box-shadow: inset 4px 0 0 var(--vc-blue-500) !important;
}

.neural-expressive .topbar-v1 {
    background: #ffffff !important;
    border-bottom: 1px solid #dce7f1 !important;
    box-shadow: 0 3px 18px rgba(4, 42, 85, .06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.neural-expressive .page-main {
    width: 100% !important;
    max-width: none !important;
    padding: 24px clamp(18px, 2vw, 34px) 56px !important;
}

.neural-expressive .v1-container,
.neural-expressive .neural-page,
.neural-expressive .v1-section,
.neural-expressive .v1-card,
.neural-expressive .v1-card.narrow-card,
.neural-expressive .compact-section .v1-card.narrow-card,
.neural-expressive .m3-card,
.neural-expressive .m3-filter-card,
.neural-expressive .elevated-card,
.neural-expressive .table-responsive,
.neural-expressive .form-card {
    width: 100% !important;
    max-width: none !important;
}

.neural-expressive .v1-card,
.neural-expressive .metric-card,
.neural-expressive .alert-card,
.neural-expressive .summary-card-v1,
.neural-expressive .form-card,
.neural-expressive .goal-card,
.neural-expressive .m3-goal-card,
.neural-expressive .v1-edit-panel,
.neural-expressive .hero-card-mini {
    background: #ffffff !important;
    border: 1px solid #dbe7f2 !important;
    box-shadow: 0 8px 22px rgba(4, 42, 85, .065) !important;
}

.neural-expressive .v1-card:hover,
.neural-expressive .metric-card:hover,
.neural-expressive .m3-card.elevated-card,
.neural-expressive .goal-card:hover {
    box-shadow: 0 10px 26px rgba(4, 42, 85, .08) !important;
    transform: none !important;
}

.neural-expressive .m3-hero,
.neural-expressive .page-hero {
    background: #ffffff !important;
    border: 1px solid #dbe7f2 !important;
    box-shadow: 0 8px 22px rgba(4, 42, 85, .065) !important;
    overflow: visible !important;
}

.neural-expressive .m3-hero::after,
.neural-expressive .metric-card::after,
.neural-expressive .neural-credit-card::after,
.neural-expressive .credit-card-box::after {
    display: none !important;
    content: none !important;
}

.neural-expressive .metric-card {
    min-height: 108px !important;
}

.neural-expressive .metric-icon,
.neural-expressive .goal-icon-wrap {
    background: #eaf6ff !important;
    color: var(--vc-blue-800) !important;
    box-shadow: none !important;
}

.neural-expressive .eyebrow-chip,
.neural-expressive .goal-monthly,
.neural-expressive .topbar-shortcut:hover,
.neural-expressive .install-button:hover {
    background: #eaf6ff !important;
    color: var(--vc-blue-900) !important;
}

.neural-expressive .btn-primary,
.neural-expressive .install-button {
    background: var(--vc-blue-800) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.neural-expressive .btn-warning,
.neural-expressive .btn-success {
    background: #eaf6ff !important;
    color: var(--vc-blue-900) !important;
}

.neural-expressive .btn-danger {
    background: #102033 !important;
    color: #fff !important;
}

.neural-expressive .btn:hover,
.neural-expressive .button:hover {
    transform: none !important;
    box-shadow: 0 6px 14px rgba(4, 42, 85, .08) !important;
}

.neural-expressive .form-control,
.neural-expressive input.form-control,
.neural-expressive select.form-control,
.neural-expressive textarea.form-control,
.neural-expressive .input {
    background: #ffffff !important;
    border-color: #d7e4f0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.neural-expressive .table-responsive {
    border-radius: 18px !important;
    box-shadow: none !important;
}

.neural-expressive .table {
    box-shadow: none !important;
}

.neural-expressive .table thead,
.neural-expressive .table-success,
.neural-expressive .table thead th,
.neural-expressive .table-success th {
    background: #f1f7fd !important;
    color: var(--vc-blue-950) !important;
}

.neural-expressive .categoria-chip {
    background: #f7fbff !important;
    border-color: #d7e4f0 !important;
    color: #102033 !important;
    box-shadow: none !important;
}

.neural-expressive .categoria-chip i {
    color: var(--cat-color, var(--vc-blue-800)) !important;
}

.neural-expressive .brand-chip {
    background: #ffffff !important;
    border: 1px solid #d7e4f0 !important;
    box-shadow: none !important;
}

.neural-expressive .brand-chip:hover {
    background: #eaf6ff !important;
}

.neural-expressive .bank-logo,
.neural-expressive .flag-logo {
    box-shadow: none !important;
    border: 0 !important;
    min-width: 34px !important;
    height: 25px !important;
    border-radius: 8px !important;
    color: #fff !important;
}

.neural-expressive .bank-nubank { background: #820ad1 !important; }
.neural-expressive .bank-itau { background: #ec7000 !important; }
.neural-expressive .bank-santander { background: #e40000 !important; }
.neural-expressive .bank-bradesco { background: #cc092f !important; }
.neural-expressive .bank-bb { background: #244aa5 !important; color: #fff !important; }
.neural-expressive .bank-caixa { background: #0066b3 !important; }
.neural-expressive .bank-c6 { background: #1d1d1b !important; }
.neural-expressive .bank-inter { background: #ff7a00 !important; }
.neural-expressive .bank-btg { background: #0b1f3a !important; }
.neural-expressive .bank-xp { background: #111827 !important; }
.neural-expressive .bank-mercado { background: #00aeef !important; color: #102033 !important; }
.neural-expressive .bank-picpay { background: #11a85f !important; }
.neural-expressive .bank-generic { background: var(--vc-blue-800) !important; }

.neural-expressive .flag-visa { background: #1a1f71 !important; }
.neural-expressive .flag-mastercard { background: #eb001b !important; }
.neural-expressive .flag-elo { background: #111827 !important; }
.neural-expressive .flag-amex { background: #006fcf !important; }
.neural-expressive .flag-hiper { background: #b00020 !important; }
.neural-expressive .flag-diners { background: #006bb6 !important; }
.neural-expressive .flag-discover { background: #f58220 !important; color: #102033 !important; }
.neural-expressive .flag-other { background: #5d6b7d !important; }

.neural-expressive .neural-credit-card,
.neural-expressive .credit-card-box {
    background: var(--vc-blue-900) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    box-shadow: 0 12px 26px rgba(0,72,139,.14) !important;
}

.neural-expressive .m3-goal-card {
    background: #ffffff !important;
    border-color: #dbe7f2 !important;
}

.neural-expressive .progress-track div {
    background: var(--goal-color, var(--vc-blue-800)) !important;
}

.neural-expressive .v1-card-grid-4,
.neural-expressive .m3-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.neural-expressive .v1-card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.neural-expressive .v1-card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.neural-expressive .neural-card-strip,
.neural-expressive .cards-strip,
.neural-expressive .goals-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
}

.neural-expressive .compact-section {
    max-width: none !important;
}

.neural-expressive .v1-filter-form,
.neural-expressive .v1-add-form,
.neural-expressive .m3-form {
    width: 100% !important;
}

@media (max-width: 1200px) {
    .neural-expressive .v1-card-grid-4,
    .neural-expressive .m3-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 860px) {
    .neural-expressive .page-main {
        padding: 18px 12px 48px !important;
    }
    .neural-expressive .m3-hero,
    .neural-expressive .page-hero {
        border-radius: 22px !important;
        padding: 20px !important;
    }
    .neural-expressive .v1-card-grid-4,
    .neural-expressive .m3-metrics,
    .neural-expressive .v1-card-grid-3,
    .neural-expressive .v1-card-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Admin sync card */
.sync-admin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: #ffffff;
    border: 1px solid #d7e4f0;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(0, 72, 139, .08);
}

.sync-admin-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sync-admin-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--vc-blue-800, #00488b);
    background: #eaf6ff;
    border: 1px solid #cce6fa;
    font-size: 22px;
}

.sync-admin-card h2 {
    margin: 4px 0 8px;
    font-size: 24px;
}

.sync-admin-card p {
    margin: 0;
    color: #536579;
    max-width: 760px;
}

.sync-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.sync-admin-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f4f8fc;
    border: 1px solid #dce8f3;
    color: #24364a;
    font-size: 13px;
}

.sync-admin-button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .sync-admin-card {
        align-items: stretch;
        flex-direction: column;
    }

    .sync-admin-card form,
    .sync-admin-button {
        width: 100%;
    }
}

/* =========================================================
   Produção — Login/PWA limpo
   ========================================================= */
body.auth-body.auth-clean-blue {
    margin: 0;
    min-height: 100vh;
    background: #f3f7fb;
    color: var(--vc-text, #102033);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

.auth-page-pro {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
}

.auth-page-pro.single-auth {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 22px;
}

.auth-visual-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 64px);
    background: var(--vc-blue-900, #00488b);
    color: #fff;
}

.auth-visual-panel::after {
    content: '';
    position: absolute;
    inset: auto -90px -120px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(21,155,232,.20);
}

.auth-logo-block {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
}

.auth-logo {
    width: min(210px, 72%);
    height: auto;
    display: block;
}

.auth-logo-fallback {
    font-size: 42px;
    font-weight: 800;
    font-style: italic;
}

.auth-logo-block span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    opacity: .82;
}

.auth-highlight-card {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    background: rgba(255,255,255,.10);
    box-shadow: 0 18px 44px rgba(0,0,0,.14);
}

.auth-highlight-card h1 {
    margin: 16px 0 12px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.03;
    letter-spacing: -.05em;
}

.auth-highlight-card p {
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 15px;
    line-height: 1.6;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(22px, 5vw, 64px);
}

.centered-auth-panel {
    width: min(560px, 100%);
    padding: 0;
}

.auth-card-pro {
    width: min(520px, 100%);
    background: #fff;
    border: 1px solid #dbe7f2;
    border-radius: 28px;
    padding: clamp(24px, 4vw, 38px);
    box-shadow: 0 18px 48px rgba(4,42,85,.10);
}

.auth-card-header-pro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.auth-card-header-pro h2 {
    margin: 0 0 4px;
    color: var(--vc-blue-950, #061f42);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.auth-card-header-pro p {
    margin: 0;
    color: var(--vc-muted, #5d6b7d);
    font-weight: 600;
}

.auth-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: #eaf6ff;
    color: var(--vc-blue-800, #00488b);
    font-size: 22px;
    flex: 0 0 auto;
}

.auth-form-pro {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field span,
.auth-row-between {
    font-size: 13px;
    font-weight: 800;
    color: #24364a;
}

.auth-row-between {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.auth-row-between a,
.auth-bottom-actions a {
    color: var(--vc-blue-800, #00488b);
    text-decoration: none;
    font-weight: 800;
}

.auth-row-between a:hover,
.auth-bottom-actions a:hover {
    text-decoration: underline;
}

.auth-submit {
    min-height: 46px;
    background: var(--vc-blue-800, #00488b) !important;
    color: #fff !important;
    border-radius: 16px;
    font-size: 14px;
}

.button.full,
.auth-submit.full {
    width: 100%;
}

.auth-bottom-actions {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2edf6;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.auth-install-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d7e4f0;
    background: #fff;
    color: var(--vc-blue-800, #00488b);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.auth-install-link:hover {
    background: #eaf6ff;
}

.auth-install-link[disabled],
.install-button[disabled] {
    cursor: default !important;
    opacity: .75;
}

.auth-flash {
    margin-bottom: 18px;
}

@media (max-width: 920px) {
    .auth-page-pro {
        grid-template-columns: 1fr;
    }

    .auth-visual-panel {
        min-height: 320px;
    }

    .auth-form-panel {
        align-items: flex-start;
        padding: 24px 18px 42px;
    }
}

@media (max-width: 560px) {
    .auth-highlight-card {
        padding: 22px;
        border-radius: 22px;
    }

    .auth-card-pro {
        border-radius: 22px;
    }

    .auth-row-between,
    .auth-bottom-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}
