/*
 * Temas do site institucional (Painel → Site → Tema).
 *
 * Cada tema só redefine os tokens que o site.css já usa (--vesc-*, --site-*, sombras e raios)
 * e ajusta os componentes que dependem de fundo claro. Nenhum HTML muda: por isso qualquer página
 * nova continua herdando o tema escolhido, e voltar para o padrão é imediato.
 * A cor da marca (Configurações → Aparência) continua valendo como acento em todos eles.
 *
 * No fim do arquivo ficam as miniaturas usadas no painel para escolher o tema.
 */

/* ====================================================== Escuro moderno ====== */
.theme-escuro {
    color-scheme: dark;
    --vesc-bg: #070c17;
    --vesc-surface: #0e1524;
    --vesc-text: #e9eefb;
    --vesc-muted: #94a3c4;
    /* No site.css estes dois valem como cor de título e cor das bordas finas. */
    --vesc-secondary: #f1f5ff;
    --vesc-secondary-rgb: 241, 245, 255;
    --site-ink: #05090f;
    --site-dark: #05090f;
    --site-surface-2: #131c2f;
    --site-line: rgba(255, 255, 255, 0.09);
    --site-grad: linear-gradient(135deg, #070c17 0%, color-mix(in srgb, var(--vesc-primary) 42%, #070c17) 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 40px -20px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.85);
    background: var(--vesc-bg);
    color: var(--vesc-text);
}
.theme-escuro .site-topbar { background: #05090f; color: var(--vesc-muted); border-bottom: 1px solid var(--site-line); }
.theme-escuro .site-topbar a { color: var(--vesc-muted); }
.theme-escuro .site-topbar a:hover { color: #fff; }
.theme-escuro .site-header { background: rgba(7, 12, 23, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--site-line); }
.theme-escuro .site-nav a { color: var(--vesc-muted); }
.theme-escuro .site-nav a:hover, .theme-escuro .site-nav a.active { color: #fff; }
.theme-escuro .site-brand { color: #fff; }
.theme-escuro .site-brand .vesc-logo, .theme-neon .site-brand .vesc-logo {
    background: #fff; padding: 5px 10px; border-radius: 10px; box-sizing: content-box;
}
.theme-escuro .site-section-alt { background: var(--site-surface-2); }
.theme-escuro .site-section { background: transparent; }
.theme-escuro .site-highlight,
.theme-escuro .site-plan,
.theme-escuro .site-faq,
.theme-escuro .site-quick,
.theme-escuro .site-coverage-box,
.theme-escuro .site-float-card,
.theme-escuro .card,
.theme-escuro .vesc-card {
    background: var(--site-surface-2);
    border-color: var(--site-line);
    color: var(--vesc-text);
}
.theme-escuro .site-plan.is-featured { border-color: var(--vesc-primary); box-shadow: 0 0 0 1px var(--vesc-primary), var(--shadow-lg); }
.theme-escuro .text-body-secondary, .theme-escuro .site-note, .theme-escuro .site-text { color: var(--vesc-muted) !important; }
.theme-escuro .form-control, .theme-escuro .form-select, .theme-escuro textarea {
    background: #0b1424;
    border-color: var(--site-line);
    color: var(--vesc-text);
}
.theme-escuro .form-control::placeholder { color: #64748b; }
.theme-escuro .form-control:focus, .theme-escuro .form-select:focus { background: #0b1424; color: var(--vesc-text); border-color: var(--vesc-primary); }
.theme-escuro .btn-light { background: #fff; border-color: #fff; color: #05090f; }
.theme-escuro .btn-outline-secondary { color: var(--vesc-text); border-color: var(--site-line); }
.theme-escuro .btn-outline-secondary:hover { background: var(--site-surface-2); color: #fff; }
.theme-escuro .site-footer { background: #05090f; border-top: 1px solid var(--site-line); }
.theme-escuro hr, .theme-escuro .border, .theme-escuro .border-top { border-color: var(--site-line) !important; }
.theme-escuro .site-check-list li::before { color: var(--vesc-primary); }

.theme-escuro .site-faq .accordion-item { background: var(--site-surface-2); }
.theme-escuro .site-faq .accordion-button { background: var(--site-surface-2); color: var(--vesc-text); }
.theme-escuro .site-faq .accordion-button::after { filter: invert(1) brightness(1.6); }
.theme-escuro .site-faq .accordion-body { color: var(--vesc-muted); }
.theme-escuro .site-self-service { background: var(--site-surface-2); }

/* ========================================================= Neon tech ======== */
.theme-neon {
    color-scheme: dark;
    --vesc-bg: #05060f;
    --vesc-surface: #0a0c1b;
    --vesc-text: #eef0ff;
    --vesc-muted: #9fa6cc;
    --vesc-secondary: #f3f4ff;
    --vesc-secondary-rgb: 243, 244, 255;
    --neon-1: #7c3aed;
    --neon-2: #22d3ee;
    --site-ink: #04050c;
    --site-dark: #04050c;
    --site-surface-2: #10132a;
    --site-line: rgba(124, 58, 237, 0.28);
    --site-grad: linear-gradient(135deg, #05060f 0%, #1b1040 45%, #05233a 100%);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.5), 0 18px 46px -22px rgba(124, 58, 237, 0.55);
    --shadow-lg: 0 32px 70px -26px rgba(34, 211, 238, 0.45);
    background: var(--vesc-bg);
    color: var(--vesc-text);
}
.theme-neon .site-topbar { background: #04050c; color: var(--vesc-muted); border-bottom: 1px solid var(--site-line); }
.theme-neon .site-topbar a { color: var(--vesc-muted); }
.theme-neon .site-header { background: rgba(5, 6, 15, 0.8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--site-line); }
.theme-neon .site-nav a { color: var(--vesc-muted); }
.theme-neon .site-nav a:hover, .theme-neon .site-nav a.active { color: #fff; text-shadow: 0 0 12px rgba(34, 211, 238, 0.7); }
.theme-neon .site-brand { color: #fff; }
.theme-neon .site-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% -10%;
    height: 60%;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.28), transparent 65%);
    filter: blur(30px);
}
.theme-neon .site-hero-title { background: linear-gradient(100deg, #fff 30%, var(--neon-2) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-neon .site-eyebrow, .theme-neon .site-eyebrow-light { color: var(--neon-2); }
.theme-neon .site-section-alt { background: var(--site-surface-2); }
.theme-neon .site-highlight,
.theme-neon .site-plan,
.theme-neon .site-faq,
.theme-neon .site-quick,
.theme-neon .site-coverage-box,
.theme-neon .site-float-card,
.theme-neon .card,
.theme-neon .vesc-card {
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.12), rgba(10, 12, 27, 0.9));
    border: 1px solid var(--site-line);
    color: var(--vesc-text);
}
.theme-neon .site-plan:hover, .theme-neon .site-highlight:hover { border-color: var(--neon-2); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4), var(--shadow-lg); }
.theme-neon .site-plan.is-featured { border-color: var(--neon-2); }
.theme-neon .site-service-icon, .theme-neon .site-service-icon-lg { background: linear-gradient(135deg, var(--neon-1), var(--neon-2)); color: #fff; }
.theme-neon .text-body-secondary, .theme-neon .site-note, .theme-neon .site-text { color: var(--vesc-muted) !important; }
.theme-neon .btn-primary { background: linear-gradient(120deg, var(--neon-1), var(--neon-2)); border: 0; color: #05060f; font-weight: 700; }
.theme-neon .btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.7); }
.theme-neon .btn-light { background: #fff; border-color: #fff; color: #05060f; }
.theme-neon .btn-outline-secondary, .theme-neon .btn-outline-light { color: var(--vesc-text); border-color: var(--site-line); }
.theme-neon .form-control, .theme-neon .form-select, .theme-neon textarea {
    background: #0a0c1b; border-color: var(--site-line); color: var(--vesc-text);
}
.theme-neon .form-control::placeholder { color: #6b7280; }
.theme-neon .site-footer { background: #04050c; border-top: 1px solid var(--site-line); }
.theme-neon hr, .theme-neon .border, .theme-neon .border-top { border-color: var(--site-line) !important; }

.theme-neon .site-faq .accordion-item, .theme-neon .site-faq .accordion-button { background: #10132a; color: var(--vesc-text); }
.theme-neon .site-faq .accordion-button::after { filter: invert(1) brightness(1.6); }
.theme-neon .site-faq .accordion-body { color: var(--vesc-muted); }
.theme-neon .site-self-service { background: #10132a; }

/* =================================================== Claro minimalista ====== */
.theme-clean {
    --vesc-bg: #ffffff;
    --vesc-surface: #ffffff;
    --site-line: #e7e9ef;
    --site-grad: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
    --shadow-sm: none;
    --shadow-md: 0 1px 0 rgba(17, 24, 39, 0.04);
    --shadow-lg: 0 18px 40px -28px rgba(17, 24, 39, 0.35);
    --radius-md: 14px;
    --radius-lg: 20px;
    background: #fff;
}
.theme-clean .site-topbar { background: #fff; color: var(--vesc-muted); border-bottom: 1px solid var(--site-line); }
.theme-clean .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--site-line); }
.theme-clean .site-hero { color: var(--vesc-text); background: var(--site-grad); border-bottom: 1px solid var(--site-line); }
.theme-clean .site-hero::before { opacity: 0.35; }
.theme-clean .site-hero-glow { display: none; }
.theme-clean .site-hero-lead { color: var(--vesc-muted); }
.theme-clean .site-hero-title { font-size: clamp(2.3rem, 6vw, 4.25rem); letter-spacing: -0.035em; }
.theme-clean .site-eyebrow-light { color: var(--vesc-primary); }
.theme-clean .site-section-alt { background: #f7f8fb; }
.theme-clean .site-highlight,
.theme-clean .site-plan,
.theme-clean .site-faq,
.theme-clean .site-quick,
.theme-clean .site-coverage-box,
.theme-clean .site-float-card {
    background: #fff;
    border: 1px solid var(--site-line);
    box-shadow: none;
}
.theme-clean .site-plan:hover, .theme-clean .site-highlight:hover { border-color: var(--vesc-primary); box-shadow: var(--shadow-lg); }
.theme-clean .site-section-title { font-weight: 800; letter-spacing: -0.03em; }
.theme-clean .site-service-icon, .theme-clean .site-service-icon-lg { background: #f2f4f8; color: var(--vesc-secondary); }
.theme-clean .btn-primary { border-radius: 999px; }
.theme-clean .btn-lg { border-radius: 999px; }
.theme-clean .site-cta { background: var(--vesc-secondary); }

/* Claro minimalista: o topo deixa de ser escuro, então os botões e cartões do topo
   precisam de cor e contorno próprios (antes eram brancos sobre fundo escuro). */
.theme-clean .site-hero .btn-light { background: var(--vesc-primary); border-color: var(--vesc-primary); color: #fff; }
.theme-clean .site-hero .btn-light:hover { background: var(--vesc-primary-hover); border-color: var(--vesc-primary-hover); color: #fff; }
.theme-clean .site-hero .btn-outline-light { color: var(--vesc-secondary); border-color: rgba(var(--vesc-secondary-rgb), 0.25); }
.theme-clean .site-hero .btn-outline-light:hover { background: var(--vesc-secondary); border-color: var(--vesc-secondary); color: #fff; }
.theme-clean .site-float-card { box-shadow: 0 18px 40px -24px rgba(17, 24, 39, 0.45); border: 1px solid var(--site-line); }
.theme-clean .site-hero-core { background: #fff; border: 1px solid var(--site-line); color: var(--vesc-primary); box-shadow: 0 18px 40px -24px rgba(17, 24, 39, 0.4); }
.theme-clean .site-orbit { border-color: rgba(var(--vesc-secondary-rgb), 0.12); }
.theme-clean .site-coverage-label, .theme-clean .site-hero .site-coverage { color: var(--vesc-text); }
.theme-clean .site-pulse { background: var(--vesc-primary); }

/* ============================== Chat do site nos temas escuros ============== */
/* O chat (ui.css) é feito para fundo claro: usa #fff fixo em alguns lugares e um degradê
   baseado na cor de título, que nos temas escuros passou a ser clara. Aqui ele é readaptado. */
.theme-escuro, .theme-neon {
    --ui-softer: rgba(255, 255, 255, 0.05);
    --ui-soft: rgba(var(--vesc-primary-rgb), 0.18);
}
.theme-escuro { --ui-grad: linear-gradient(135deg, #0f2440 0%, var(--vesc-primary) 100%); }
.theme-neon { --ui-grad: linear-gradient(120deg, var(--neon-1), var(--neon-2)); }

.theme-escuro .ui-chat, .theme-neon .ui-chat { background: var(--site-surface-2); border-color: var(--site-line); }
.theme-escuro .ui-chat-head, .theme-neon .ui-chat-head,
.theme-escuro .ui-chat-ended, .theme-neon .ui-chat-ended,
.theme-escuro .ui-composer, .theme-neon .ui-composer,
.theme-escuro .ui-typing, .theme-neon .ui-typing {
    background: var(--site-surface-2);
    border-color: var(--site-line);
    color: var(--vesc-text);
}
.theme-escuro .ui-chat-messages, .theme-neon .ui-chat-messages { background: var(--vesc-bg); }
.theme-escuro .ui-chat-queue, .theme-neon .ui-chat-queue { background: rgba(255, 255, 255, 0.05); }

/* Sugestões e setores: antes brancos com texto claro (ilegíveis) */
.theme-escuro .ui-chip, .theme-neon .ui-chip {
    background: rgba(255, 255, 255, 0.06);
    color: var(--vesc-text);
    border-color: var(--site-line);
}
.theme-escuro .ui-chip:hover, .theme-neon .ui-chip:hover {
    background: rgba(var(--vesc-primary-rgb), 0.22);
    border-color: var(--vesc-primary);
    color: #fff;
}
.theme-neon .ui-chip:hover { background: rgba(34, 211, 238, 0.18); border-color: var(--neon-2); }
.theme-escuro .ui-dep, .theme-neon .ui-dep { color: var(--vesc-text); background: rgba(255, 255, 255, 0.03); }
.theme-escuro .ui-dep-input:checked + .ui-dep, .theme-neon .ui-dep-input:checked + .ui-dep { background: rgba(var(--vesc-primary-rgb), 0.16); }

/* Mensagens */
.theme-escuro .ui-bubble, .theme-neon .ui-bubble {
    background: var(--site-surface-2);
    border-color: var(--site-line);
    color: var(--vesc-text);
}
.theme-escuro .ui-msg.is-mine .ui-bubble, .theme-neon .ui-msg.is-mine .ui-bubble { color: #fff; border-color: transparent; }
.theme-escuro .ui-chat-day span, .theme-neon .ui-chat-day span { background: var(--site-surface-2); border-color: var(--site-line); color: var(--vesc-muted); }
.theme-escuro .ui-chat-system span, .theme-neon .ui-chat-system span { background: rgba(255, 255, 255, 0.07); color: var(--vesc-muted); }
.theme-escuro .ui-bubble-file, .theme-neon .ui-bubble-file { background: rgba(255, 255, 255, 0.08); }
.theme-escuro .ui-bubble-copy, .theme-neon .ui-bubble-copy {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--site-line);
    color: #fff;
}
.theme-escuro .ui-file-chip, .theme-neon .ui-file-chip { background: rgba(255, 255, 255, 0.06); border-color: var(--site-line); color: var(--vesc-text); }
.theme-escuro .ui-composer textarea, .theme-neon .ui-composer textarea { background: transparent; border: 0; color: var(--vesc-text); }
.theme-escuro .ui-composer-hint, .theme-neon .ui-composer-hint { color: var(--vesc-muted); }
.theme-escuro .ui-stars label, .theme-neon .ui-stars label { color: var(--vesc-muted); }

/* ============== Painel e Área do Cliente nos temas escuros ================== */
/* O esqueleto do painel (ui.css/app.css) foi desenhado para fundo claro e usa #fff fixo em
   vários componentes. Aqui eles acompanham o tema escolhido no Site → Tema.
   O <html> também recebe data-bs-theme="dark", então o Bootstrap cuida de tabelas,
   formulários, dropdowns, modais, accordions e offcanvas. */
.theme-escuro .ui-shell, .theme-neon .ui-shell,
.theme-escuro.vesc-customer, .theme-neon.vesc-customer,
.theme-escuro.vesc-auth, .theme-neon.vesc-auth { background: var(--vesc-bg); }

.theme-escuro .ui-sidebar, .theme-neon .ui-sidebar,
.theme-escuro .ui-topbar, .theme-neon .ui-topbar,
.theme-escuro .vesc-card, .theme-neon .vesc-card,
.theme-escuro .card, .theme-neon .card,
.theme-escuro .vesc-bottom-nav, .theme-neon .vesc-bottom-nav,
.theme-escuro .ui-kcard, .theme-neon .ui-kcard,
.theme-escuro .ui-quick, .theme-neon .ui-quick,
.theme-escuro .ui-tile, .theme-neon .ui-tile,
.theme-escuro .ui-stat, .theme-neon .ui-stat,
.theme-escuro .ui-search, .theme-neon .ui-search,
.theme-escuro .ui-conv-toolbar, .theme-neon .ui-conv-toolbar,
.theme-escuro .ui-kcol-icon, .theme-neon .ui-kcol-icon,
/* Também tinham fundo branco fixo: no tema escuro o texto (claro) sumia dentro deles. */
.theme-escuro .ui-composer-bar, .theme-neon .ui-composer-bar,
.theme-escuro .ui-avatar-flag, .theme-neon .ui-avatar-flag,
.theme-escuro .vesc-msg, .theme-neon .vesc-msg,
.theme-escuro .ui-search:focus-within, .theme-neon .ui-search:focus-within,
.theme-escuro .ui-chat-day span, .theme-neon .ui-chat-day span {
    background: var(--site-surface-2);
    border-color: var(--site-line);
    color: var(--vesc-text);
}
.theme-escuro .ui-drawer, .theme-neon .ui-drawer,
.theme-escuro .ui-conv-info, .theme-neon .ui-conv-info { background: var(--vesc-bg); border-color: var(--site-line); }
.theme-escuro .ui-kcol, .theme-neon .ui-kcol { background: rgba(255, 255, 255, 0.035); }
.theme-escuro .ui-kcard.is-team, .theme-neon .ui-kcard.is-team { background: rgba(255, 255, 255, 0.06); }
.theme-escuro .ui-kcol-empty, .theme-neon .ui-kcol-empty { border-color: rgba(255, 255, 255, 0.12); }
.theme-escuro .vesc-tabs, .theme-neon .vesc-tabs { background: rgba(255, 255, 255, 0.05); }
.theme-escuro .vesc-tabs .nav-link.active, .theme-neon .vesc-tabs .nav-link.active { background: var(--site-surface-2); }
.theme-escuro .ui-nav-link, .theme-neon .ui-nav-link { color: var(--vesc-text); }
.theme-escuro .ui-nav-link:hover, .theme-neon .ui-nav-link:hover,
.theme-escuro .ui-nav-link.active, .theme-neon .ui-nav-link.active { background: rgba(var(--vesc-primary-rgb), 0.18); color: #fff; }
.theme-escuro .ui-nav-link.active .vesc-icon, .theme-neon .ui-nav-link.active .vesc-icon { color: #fff; }
.theme-escuro .ui-sidebar-user, .theme-neon .ui-sidebar-user { border-color: var(--site-line); }
.theme-escuro .ui-switch-track::after, .theme-neon .ui-switch-track::after { background: #e5e7eb; }
.theme-escuro .vesc-msg-internal, .theme-neon .vesc-msg-internal { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.4); }

/* Avisos: o texto escuro dos alertas claros não serve sobre fundo escuro. */
.theme-escuro .alert, .theme-neon .alert { color: var(--vesc-text); }
.theme-escuro .alert-info, .theme-neon .alert-info { background: rgba(37, 99, 235, 0.16); }
.theme-escuro .alert-success, .theme-neon .alert-success { background: rgba(5, 150, 105, 0.16); }
.theme-escuro .alert-warning, .theme-neon .alert-warning { background: rgba(245, 158, 11, 0.16); }
.theme-escuro .alert-danger, .theme-neon .alert-danger { background: rgba(220, 38, 38, 0.16); }

/* Menu lateral no celular (offcanvas): sem isto o fundo fica branco e os nomes somem. */
.theme-escuro .offcanvas, .theme-neon .offcanvas,
.theme-escuro .ui-sidebar.offcanvas, .theme-neon .ui-sidebar.offcanvas,
.theme-escuro .site-offcanvas, .theme-neon .site-offcanvas {
    --bs-offcanvas-bg: var(--site-surface-2);
    --bs-offcanvas-color: var(--vesc-text);
    --bs-offcanvas-border-color: var(--site-line);
    background: var(--site-surface-2);
    color: var(--vesc-text);
}
.theme-escuro .site-offcanvas-link, .theme-neon .site-offcanvas-link,
.theme-escuro .offcanvas a, .theme-neon .offcanvas a { color: var(--vesc-text); }
.theme-escuro .offcanvas .btn-close, .theme-neon .offcanvas .btn-close { filter: invert(1) grayscale(1) brightness(1.8); }
.theme-escuro .vesc-burger, .theme-escuro .vesc-burger::before, .theme-escuro .vesc-burger::after,
.theme-neon .vesc-burger, .theme-neon .vesc-burger::before, .theme-neon .vesc-burger::after { background: var(--vesc-text); }

/* Tema claro minimalista: painel e área do cliente ficam com a mesma leveza do site. */
.theme-clean .ui-shell, .theme-clean.vesc-customer { background: #fff; }
.theme-clean .vesc-card, .theme-clean .card, .theme-clean .ui-tile, .theme-clean .ui-stat { box-shadow: none; border: 1px solid var(--site-line); }
.theme-clean .ui-sidebar, .theme-clean .ui-topbar { background: #fff; border-color: var(--site-line); }

/* No desktop o Bootstrap força "background-color: transparent !important" no offcanvas-lg;
   a barra lateral do painel precisa recuperar a própria cor nos temas. */
.theme-escuro .ui-sidebar.offcanvas-lg, .theme-neon .ui-sidebar.offcanvas-lg { background-color: var(--site-surface-2) !important; }
.theme-clean .ui-sidebar.offcanvas-lg { background-color: #fff !important; }

/* ---------------------------------------------------------------------------
 * O /theme.css (cores da marca) define --bs-body-bg e --bs-body-color claros no :root,
 * o que anula o modo escuro do próprio Bootstrap. Sem isto, componentes que herdam essas
 * variáveis (listas, cartões, tabelas, modais) ficam claros com texto claro — ilegíveis.
 * Aqui as variáveis do Bootstrap acompanham o tema.
 * --------------------------------------------------------------------------- */
.theme-escuro, .theme-neon {
    --bs-body-bg: var(--vesc-bg);
    --bs-body-color: var(--vesc-text);
    --bs-emphasis-color: #ffffff;
    --bs-secondary-color: var(--vesc-muted);
    --bs-tertiary-color: var(--vesc-muted);
    --bs-secondary-bg: var(--site-surface-2);
    --bs-tertiary-bg: var(--site-surface-2);
    --bs-border-color: var(--site-line);
    --bs-heading-color: var(--vesc-text);
    --bs-link-color: #93c5fd;
    --bs-link-hover-color: #bfdbfe;
    --bs-link-color-rgb: 147, 197, 253;
}
.theme-neon { --bs-link-color: #67e8f9; --bs-link-hover-color: #a5f3fc; --bs-link-color-rgb: 103, 232, 249; }

/* Listas (boletos, chamados, serviços) e tabelas do painel */
.theme-escuro .list-group-item, .theme-neon .list-group-item {
    background: var(--site-surface-2);
    color: var(--vesc-text);
    border-color: var(--site-line);
}
.theme-escuro .list-group-item-action:hover, .theme-neon .list-group-item-action:hover,
.theme-escuro .list-group-item-action:focus, .theme-neon .list-group-item-action:focus {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}
.theme-escuro .list-group-item-action.active, .theme-neon .list-group-item-action.active { background: rgba(var(--vesc-primary-rgb), 0.25); color: #fff; }
.theme-escuro .table, .theme-neon .table { --bs-table-bg: transparent; --bs-table-color: var(--vesc-text); --bs-table-border-color: var(--site-line); }
.theme-escuro .table-hover > tbody > tr:hover > *, .theme-neon .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: rgba(255, 255, 255, 0.05); color: #fff; }
.theme-escuro .vesc-chevron, .theme-neon .vesc-chevron { border-color: var(--vesc-muted); }
.theme-escuro .nav-pills .nav-link.active, .theme-neon .nav-pills .nav-link.active { background: var(--site-surface-2); color: #fff; }
.theme-escuro .modal-content, .theme-neon .modal-content,
.theme-escuro .offcanvas-body, .theme-neon .offcanvas-body { background: var(--site-surface-2); color: var(--vesc-text); }

/* Aba selecionada (Boletos, Chamados, Site, Assistente): no claro é um "cartão branco" sobre
   fundo cinza; no escuro precisa ser a superfície elevada, senão fica branco com texto claro. */
.theme-escuro .vesc-tabs .nav-link.active, .theme-neon .vesc-tabs .nav-link.active {
    background: var(--site-surface-2) !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px var(--site-line);
}
.theme-escuro .vesc-tabs .nav-link, .theme-neon .vesc-tabs .nav-link { color: var(--vesc-muted); }

/* Seletor de presença do atendente: o botão marcado era um retângulo branco com texto claro. */
.theme-escuro .ui-presence-switch input:checked + label,
.theme-neon .ui-presence-switch input:checked + label {
    background: rgba(255, 255, 255, 0.12);
    color: var(--vesc-text);
}

/* Cartão em destaque (ex.: o link da Área do Cliente nas Configurações): o realce vem do .vesc-card-active,
   mas a borda genérica de .vesc-card do tema escuro vencia por vir depois. Aqui ele recupera o acento. */
.theme-escuro .vesc-card.vesc-card-active, .theme-neon .vesc-card.vesc-card-active {
    border: 2px solid var(--vesc-primary);
    box-shadow: 0 0 0 3px rgba(var(--vesc-primary-rgb), 0.18);
}
