/* ===== MaisClique — camada visual =====
   Fonte Inter, navegação escura em navy, cartões suaves, acento verde da marca.

   A PALETA FOI CALCULADA, NÃO ESCOLHIDA NO OLHO. O verde da marca (#34BF33) tem uma
   armadilha: sobre branco ele rende apenas 2,43:1 de contraste. Consequências que estes
   tokens já resolvem — e que NÃO devem ser desfeitas:

     • TEXTO SOBRE O VERDE É ESCURO (--va-on-accent), nunca branco.
       Escuro dá 7,7:1; branco daria 2,4:1 e reprovaria em acessibilidade.
     • TEXTO VERDE SOBRE FUNDO CLARO usa --va-accent-text (#1F7A1E, 5,4:1), nunca o
       verde da marca.
     • BOTÃO VERDE LEVA CONTORNO --va-accent-press: o preenchimento sozinho rende
       2,26:1 contra o fundo da página e a borda do componente sumiria.
     • No TEMA ESCURO o verde da marca brilha (7,7:1 sobre a sidebar) e pode ser usado
       direto, inclusive em texto.
*/

:root {
    /* Marca */
    --va-accent: #34BF33;         /* preenchimentos, destaques, estado ativo */
    --va-accent-hover: #2CA82B;
    --va-accent-press: #238C22;   /* contorno de botão e estado pressionado */
    --va-accent-text: #1F7A1E;    /* verde legível como TEXTO sobre claro (5,4:1) */
    --va-accent-soft: #EAF8EA;    /* fundo suave */
    --va-accent-border: #A8DCA7;
    --va-on-accent: #0B1220;      /* o que se escreve EM CIMA do verde */

    /* Compatibilidade com regras antigas que usavam o acento claro */
    --va-accent-2: #34BF33;

    /* Superfícies e tinta */
    --va-bg: #F5F7F6;
    --va-surface: #FFFFFF;
    --va-border: #E4E9E6;
    --va-text: #0E1726;
    --va-text-2: #3B4557;
    --va-text-muted: #6B7688;

    /* Navegação escura */
    --va-sidebar-1: #0B1220;
    --va-sidebar-2: #132033;
    --va-on-dark-muted: #9AA7B8;

    /* Sombras em navy neutro (a antiga era arroxeada e sujava o verde) */
    --va-shadow-sm: 0 1px 2px rgba(14, 23, 38, .04), 0 4px 16px rgba(14, 23, 38, .06);
    --va-shadow-md: 0 10px 30px rgba(14, 23, 38, .10);
    --va-shadow-lg: 0 24px 60px rgba(14, 23, 38, .14);
    --va-radius: 1rem;
}

.va-body {
    background: var(--va-bg);
    min-height: 100vh;
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--va-text);
    -webkit-font-smoothing: antialiased;
}

.va-shell {
    display: flex;
    min-height: 100vh;
}

/* ---- Botões (premium) ---- */
.btn { border-radius: .65rem; font-weight: 600; }

.btn-primary {
    --bs-btn-bg: var(--va-accent);
    --bs-btn-border-color: var(--va-accent);
    --bs-btn-color: #0B1220;
    --bs-btn-hover-color: #0B1220;
    --bs-btn-active-color: #0B1220;
    --bs-btn-disabled-color: #0B1220;
    /* Contorno mais escuro que o preenchimento: sem ele a borda do botão não se
       distingue do fundo (2,26:1) e reprova no critério de componentes de UI. */
    --bs-btn-border-color: #238C22;
    --bs-btn-hover-bg: #2CA82B;
    --bs-btn-hover-border-color: #1F7A1E;
    --bs-btn-active-bg: #238C22;
    --bs-btn-active-border-color: #1F7A1E;
    box-shadow: 0 4px 14px rgba(52, 191, 51, .28);
}

.btn-outline-primary {
    --bs-btn-color: var(--va-accent-text);
    --bs-btn-border-color: #A8DCA7;
    --bs-btn-hover-bg: var(--va-accent-soft);
    --bs-btn-hover-color: var(--va-accent-text);
    --bs-btn-hover-border-color: var(--va-accent);
    --bs-btn-active-bg: var(--va-accent);
    --bs-btn-active-border-color: var(--va-accent);
}

/* ---- Sidebar (escura premium) ---- */
.va-sidebar {
    width: 256px;
    background: linear-gradient(180deg, var(--va-sidebar-1) 0%, var(--va-sidebar-2) 100%);
    border-right: none;
    flex-shrink: 0;
    color: #fff;
}

@media (min-width: 992px) {
    .va-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

.va-sidebar .offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.va-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}

/* Logo: altura fixa e largura automática — a proporção é do arquivo, não do CSS.
   88px de origem para 40px de exibição garante nitidez em tela de alta densidade. */
.va-logo {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 991.98px) {
    /* Na barra superior o espaço é curto: reduz sem espremer. */
    .va-logo { height: 34px; }
}

.va-sidebar .va-brand { color: #fff; }
.va-brand-accent { color: var(--va-accent-2); }

.va-nav-link {
    display: block;
    padding: .6rem .9rem;
    border-radius: .7rem;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-weight: 500;
    font-size: .92rem;
    transition: background .15s ease, color .15s ease;
}

.va-nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.va-nav-link.active {
    background: var(--va-accent);
    color: var(--va-on-accent);
    box-shadow: 0 4px 14px rgba(52, 191, 51, .45);
}

.va-nav-sep {
    height: 1px;
    background: rgba(255, 255, 255, .10);
    margin: .6rem .35rem;
}

.va-sidebar .mt-auto.small { color: rgba(255, 255, 255, .45) !important; }

/* Topbar mobile (escura, casa com a sidebar) */
.va-topbar {
    background: var(--va-sidebar-1);
}

.va-topbar .va-brand { color: #fff; }

.va-burger {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
}

.va-burger:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---- Seletor de site + Atualizar dados (na sidebar escura) ---- */
.va-site-selector .dropdown-toggle {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .7rem;
    padding: .55rem .8rem;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.va-site-selector .dropdown-toggle:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.va-refresh-btn {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    border-radius: .7rem;
    padding: .5rem .8rem;
}

.va-refresh-btn:hover {
    background: var(--va-accent);
    border-color: var(--va-accent);
    color: #fff;
}

.va-refresh-stamp {
    color: rgba(255, 255, 255, .5);
    font-size: .72rem;
    text-align: center;
    margin-top: .35rem;
}

/* ---- Usuário logado (fixo no rodapé da sidebar, sem menu suspenso) ---- */
.va-user-box {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .8rem;
    padding: .6rem .7rem;
}

.va-user-avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--va-accent), #238C22);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.va-user-meta { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.va-user-name { color: #fff; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.va-user-account { color: rgba(255, 255, 255, .55); font-size: .7rem; white-space: nowrap; }

.va-logout-btn {
    display: block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: .6rem;
    color: rgba(255, 255, 255, .85);
    font-size: .78rem;
    font-weight: 600;
    padding: .4rem .6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .15s ease;
}

.va-logout-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Rodapé sempre visível: a navegação rola, o rodapé fica fixo. */
.va-sidebar .offcanvas-body { overflow-y: hidden; }
.va-sidebar .offcanvas-body > nav { overflow-y: auto; flex-grow: 1; min-height: 0; }

/* ---- Conteúdo ---- */
.va-main {
    flex-grow: 1;
    min-width: 0;
    padding: 1.75rem 2rem;
}

@media (max-width: 991.98px) {
    .va-main { padding: 1rem; }
}

.va-card {
    background: #fff;
    border: 1px solid var(--va-border);
    border-radius: var(--va-radius);
    padding: 1.25rem;
    box-shadow: var(--va-shadow-sm);
}

.va-card-flat { box-shadow: none; }

.va-card-ok { border-left: 4px solid #22c55e; }

.va-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--va-text);
    margin-bottom: .15rem;
}

.va-page-subtitle {
    color: var(--va-text-muted);
    font-size: .9rem;
}

/* ---- Início: destaque de aprovações ---- */
.va-attn {
    background: linear-gradient(135deg, #fff 60%, var(--va-accent-soft));
    border: 1px solid #A8DCA7;
    border-radius: var(--va-radius);
    padding: 1.25rem;
    box-shadow: var(--va-shadow-md);
}

.va-attn-icon {
    font-size: 1.6rem;
    line-height: 1;
}

/* ---- Início: botões-herói ---- */
.va-hero-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--va-accent), #2CA82B);
    color: var(--va-on-accent);
    border: 1px solid #238C22;
    border-radius: var(--va-radius);
    padding: 1.15rem 1.35rem;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(52, 191, 51, .35);
    transition: transform .12s ease, box-shadow .12s ease;
}

.va-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(52, 191, 51, .45);
    color: #fff;
}

.va-hero-btn-alt {
    background: #fff;
    color: var(--va-text);
    border: 1px solid var(--va-border);
    box-shadow: var(--va-shadow-sm);
}

.va-hero-btn-alt:hover {
    color: var(--va-text);
    box-shadow: var(--va-shadow-md);
}

.va-hero-icon { font-size: 1.8rem; line-height: 1; }
.va-hero-text { display: flex; flex-direction: column; min-width: 0; }
.va-hero-title { font-weight: 700; font-size: 1.05rem; }
.va-hero-sub { font-size: .8rem; opacity: .85; font-weight: 400; }

/* ---- Estatísticas ---- */
.va-stat {
    background: #fff;
    border: 1px solid var(--va-border);
    border-radius: var(--va-radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--va-shadow-sm);
    height: 100%;
}

.va-stat-label {
    color: var(--va-text-muted);
    font-size: .78rem;
    font-weight: 500;
}

/* O número acompanha a largura: com 16 meses de histórico o total chega a 7 dígitos
   ("1.011.763") e, fixo em 1,7rem, estourava o card de meia-largura no celular.
   O clamp trava no tamanho original a partir do tablet — desktop não muda. */
.va-stat-value {
    font-size: clamp(1.25rem, 5.2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--va-text);
    font-variant-numeric: tabular-nums;
}

.va-stat-warn { border-left: 4px solid #f59e0b; }

/* ---- Lista de artigos ---- */
.va-article-row {
    background: #fff;
    border: 1px solid var(--va-border);
    border-radius: var(--va-radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--va-shadow-sm);
    transition: box-shadow .15s ease, transform .12s ease;
}

.va-article-row:hover {
    box-shadow: var(--va-shadow-md);
    transform: translateY(-1px);
}

.va-badge {
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 999px;
}

.va-badge-published { background: #e5f8ee; color: #178a55; }
.va-badge-draft     { background: #fff4dd; color: #b07d1a; }
.va-badge-scheduled { background: #e8f0fe; color: #3164c8; }
.va-badge-generating{ background: var(--va-accent-soft); color: var(--va-accent-text); }
.va-badge-failed    { background: #fdeaea; color: #c0392b; }
.va-badge-wordpress { background: #eef1f5; color: #5a6a7d; }
.va-badge-versaai   { background: var(--va-accent-soft); color: var(--va-accent-text); }

.va-seo-metrics {
    color: var(--va-text-muted);
    font-size: .8rem;
}

/* ---- Boas-vindas ---- */
.va-welcome { max-width: 560px; margin: 8vh auto 0; }

/* ---- Calendário ---- */
.va-cal-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 4px;
}

.va-cal-table th {
    color: var(--va-text-muted);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: .35rem;
    text-align: left;
}

.va-cal-cell {
    background: #fff;
    border: 1px solid var(--va-border);
    border-radius: .7rem;
    vertical-align: top;
    height: 118px; /* em <td> funciona como altura mínima; células com foto crescem */
    padding: .45rem;
    font-size: .8rem;
}

.va-cal-cell.va-out {
    background: transparent;
    border-style: dashed;
    opacity: .55;
}

.va-cal-cell.va-today {
    border-color: var(--va-accent);
    box-shadow: 0 0 0 1px var(--va-accent);
}

.va-cal-daynum {
    font-weight: 600;
    color: var(--va-text-2);
}

.va-cal-event {
    display: block;
    margin-top: .3rem;
    padding: .25rem .4rem .35rem;
    border-radius: .55rem;
    background: var(--va-accent-soft);
    color: var(--va-accent-text);
    font-size: .72rem;
    line-height: 1.25;
    text-decoration: none;
}

.va-cal-event:hover { filter: brightness(.97); }

.va-cal-event > span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.va-article-thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: .7rem;
    border: 1px solid var(--va-border);
}

.va-article-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--va-accent-soft);
    font-size: 1.5rem;
}

@media (max-width: 575.98px) {
    .va-article-thumb {
        width: 56px;
        height: 56px;
    }

    /* Dois cards por linha no celular: recupera largura útil para o número não quebrar. */
    .va-stat { padding: .75rem .8rem; }

    /* Filtro de período é o controle principal da tela: alvo de toque confortável no celular. */
    .va-grain .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding-inline: .9rem;
    }
}

/* ---- Splash de progresso ---- */
.va-sync-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(23, 19, 49, .6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.va-sync-overlay.d-none { display: none; }

.va-sync-box {
    background: #fff;
    border-radius: var(--va-radius);
    padding: 2rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.va-sync-box .progress { border-radius: 999px; }
.va-sync-box .progress-bar { background: var(--va-accent); }

/* ---- Modal de confirmação premium (substitui o confirm() nativo) ---- */
.va-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(23, 19, 49, .6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.va-confirm-overlay.d-none { display: none; }

.va-confirm-box {
    background: #fff;
    border-radius: var(--va-radius);
    padding: 1.75rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    animation: vaConfirmPop .16s ease;
}

@keyframes vaConfirmPop {
    from { transform: scale(.94); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.va-confirm-icon { font-size: 2rem; line-height: 1; }

.va-confirm-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--va-text);
    margin-top: .6rem;
}

.va-confirm-detail {
    color: var(--va-text-muted);
    font-size: .87rem;
    margin-top: .4rem;
    white-space: pre-line;
}

.va-confirm-actions {
    display: flex;
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* ---- Formulários ---- */
.va-form input.form-control,
.va-form select.form-select {
    font-size: 16px; /* evita zoom automático no iOS */
}

.form-control:focus, .form-select:focus {
    border-color: var(--va-accent-2);
    box-shadow: 0 0 0 .2rem rgba(52, 191, 51, .15);
}

/* ---- Lista de artigos clicável ---- */
a.va-article-link,
a.va-article-link:hover { color: inherit; }
a.va-article-link { cursor: pointer; }

/* ---- Detalhe do artigo ---- */
.va-preview {
    max-height: 70vh;
    overflow-y: auto;
    line-height: 1.7;
    color: #2a2a40;
}

.va-preview img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
}

.va-preview h2, .va-preview h3 {
    margin-top: 1.25rem;
    font-weight: 700;
}

.va-score-ring {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.va-score-inner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.va-actionbar {
    position: sticky;
    bottom: 0;
    background: var(--va-bg);
    padding: .75rem 0;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ---- Eventos do calendário ---- */
.va-cal-event-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* proporção natural — nunca achatada */
    height: auto;
    object-fit: cover;
    border-radius: .45rem;
    display: block;
    margin-bottom: .3rem;
}

.va-cal-event-published { background: #e5f8ee; color: #178a55; }
.va-cal-event-draft     { background: #fff4dd; color: #b07d1a; }
.va-cal-event-generating{ background: var(--va-accent-soft); color: var(--va-accent-text); }
.va-cal-event-failed    { background: #fdeaea; color: #c0392b; }
.va-cal-event-improved  { background: #e0f5f1; color: #0f766e; }

/* "+N mais" — dias com muitos eventos */
.va-cal-more {
    display: block;
    margin-top: .3rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--va-accent-text);
    text-decoration: none;
}

.va-cal-more .va-more-close { display: none; }
.va-cal-more[aria-expanded="true"] .va-more-open { display: none; }
.va-cal-more[aria-expanded="true"] .va-more-close { display: inline; }

.va-cal-placeholder {
    display: block;
    margin-top: .3rem;
    padding: .3rem .4rem;
    border: 1px dashed var(--va-border);
    border-radius: .55rem;
    color: var(--va-text-muted);
    font-size: .7rem;
    text-align: center;
}

/* ---- Gráficos de linha (eixos, grade, mira e tooltip) ---- */
.va-chart { position: relative; }

.va-chart-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* Grade e eixo: hairline sólida, um passo fora da superfície — recessivos. */
.va-chart-grid { stroke: var(--va-border); stroke-width: 1; }
.va-chart-axis { stroke: #d9d6e6; stroke-width: 1; }

.va-chart-tick {
    fill: var(--va-text-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.va-chart-line {
    fill: none;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

/* Trecho do período em andamento: tracejado — o valor é parcial, não uma queda. */
.va-chart-line-partial { stroke-dasharray: 5 4; }

/* Marcador do último ponto e pontos da mira: anel na cor da superfície. */
.va-chart-end,
.va-chart-dot { stroke: #fff; stroke-width: 2; }

/* Período em andamento: marcador VAZADO (a cor vira o contorno, o miolo é a superfície). */
.va-chart-end-partial { stroke-width: 2.5; }

.va-chart-crosshair { stroke: var(--va-accent); stroke-width: 1; opacity: .45; }

/* Elementos SVG não têm a propriedade .hidden — a visibilidade da camada de leitura é por classe. */
.va-hidden { display: none; }

.va-chart-capture { fill: transparent; cursor: crosshair; }
.va-chart-capture:focus-visible { outline: 2px solid var(--va-accent-2); outline-offset: 2px; }

.va-chart-tip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    background: #fff;
    border: 1px solid var(--va-border);
    border-radius: .6rem;
    box-shadow: var(--va-shadow-md);
    padding: .5rem .65rem;
    min-width: 130px;
    font-size: .8rem;
}

.va-tip-head {
    color: var(--va-text-muted);
    font-size: .72rem;
    font-weight: 600;
    margin-bottom: .25rem;
}

/* Aviso do período em andamento dentro do tooltip: secundário, mas legível. */
.va-tip-partial {
    color: var(--va-text-muted);
    font-size: .7rem;
    line-height: 1.3;
    margin: -.15rem 0 .3rem;
    padding-bottom: .3rem;
    border-bottom: 1px dashed var(--va-border);
}

.va-tip-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.va-tip-key {
    width: 12px;
    height: 2px;
    border-radius: 2px;
    flex-shrink: 0;
}

.va-tip-name { color: var(--va-text-muted); font-size: .74rem; }

/* Legenda de linha (espelha a marca: linha, não quadrado). */
.va-legend-line {
    display: inline-block;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: middle;
}

.va-chart-table summary { cursor: pointer; }
.va-chart-table[open] summary { margin-bottom: .25rem; }

/* ---- Gráfico de barras (publicações por mês) ---- */
.va-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 168px;
    border-bottom: 1px solid #d9d6e6; /* eixo X: hairline sólida */
    padding-bottom: 0;
}

.va-bar-slot {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.va-bar-value {
    font-size: .72rem;
    color: var(--va-text-muted);
    font-variant-numeric: tabular-nums;
    margin-bottom: 2px;
}

.va-bar {
    width: 100%;
    max-width: 24px;             /* barra fina: nunca preenche o slot inteiro */
    background: var(--va-accent);
    border-radius: 4px 4px 0 0;  /* ponta arredondada, quadrada na base */
    transition: filter .15s ease;
}

.va-bar-slot:hover .va-bar { filter: brightness(1.12); }

.va-bar-label {
    font-size: .62rem;
    color: var(--va-text-muted);
    white-space: nowrap;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ---- Comparação Antes/Depois ---- */
.va-compare-proposed {
    border-color: var(--va-accent);
    box-shadow: 0 0 0 1px var(--va-accent);
}

.va-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

/* ---- Tabelas ---- */
.table thead th {
    color: var(--va-text-muted);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom-width: 1px;
}

/* ---- Faixa do teste grátis (Início) ---- */
.va-faixa-teste {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #EAF8EA;
    border: 1px solid #A8DCA7;
    border-radius: .8rem;
    padding: .85rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: .93rem;
    color: #3B4557;
}
.va-faixa-teste strong { color: #0E1726; }
.va-faixa-teste span { color: #6B7688; }
.va-faixa-teste .btn {
    background: #34BF33;
    color: #0B1220;
    border: 1px solid #238C22;
    font-weight: 600;
    padding: .5rem 1rem;
    min-height: 40px;
    border-radius: .55rem;
}
.va-faixa-teste .btn:hover { filter: brightness(1.06); color: #0B1220; }

/* Perto do fim (ou terminado) a faixa muda de tom — urgência sem susto. */
.va-faixa-teste.urgente { background: #fff6e8; border-color: #f6d5a1; }
.va-faixa-teste.urgente .btn { background: #d97706; }
