/* ============================================================================
   Viora — Skin ESCURO "Colab Ouro & Noite" (Cowboy Jon × MadBerry).
   Tons do emblema Cowboy Jon: ouro antigo + bronze/couro + verde-mata sobre
   quase-preto. Carregado quando o tema ativo tem escuro=True. Reveste TODO o
   site (público + logado). Escopado em .tema-escuro → reversível.
   ============================================================================ */
body.tema-escuro {
  --cj-bg: #0A0D08;
  --cj-bg2: #0F140C;
  --cj-surface: #141b12;
  --cj-surface-2: #1b2317;
  --cj-line: rgba(201,162,39,.22);
  --cj-line-soft: rgba(242,234,214,.10);
  --cj-gold: #C9A227;
  --cj-gold-lt: #E7C860;
  --cj-gold-pale: #F3DF9E;
  --cj-bronze: #B07D33;
  --cj-berry: #E85D7F;
  --cj-green: #5FA96B;
  --cj-cream: #F2EAD6;
  --cj-text: #DCD5C0;
  --cj-muted: #9C9884;
  --cj-font-d: "Cinzel", Georgia, serif;

  /* Remapeia tokens do viora.css */
  --fundo: var(--cj-bg);
  --branco: var(--cj-surface);
  --creme: var(--cj-surface-2);
  --linha: var(--cj-line);
  --cinza-claro: #1d261a;
  --cinza-texto: var(--cj-muted);
  --grafite: var(--cj-text);
  --ink: var(--cj-cream);
  --azul: var(--cj-gold);
  --azul-profundo: var(--cj-gold-lt);
  --azul-tec: var(--cj-gold-lt);
  --verde: var(--cj-green);
  --verde-escuro: var(--cj-gold);
  --verde-agua: var(--cj-gold-lt);
  --grad-brand: linear-gradient(120deg, var(--cj-bronze) 0%, var(--cj-gold) 45%, var(--cj-gold-lt) 120%);
  --grad-green: linear-gradient(120deg, #2F6A3E 0%, var(--cj-green) 100%);
  --font-display: var(--cj-font-d);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.45), 0 2px 12px rgba(0,0,0,.4);
  --shadow: 0 16px 44px rgba(0,0,0,.55);
  --shadow-lg: 0 28px 68px rgba(0,0,0,.66);
  --ring: 0 0 0 3px rgba(201,162,39,.38);

  background: var(--cj-bg); color: var(--cj-text);
}
body.tema-escuro::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background:
    radial-gradient(55% 55% at 88% -8%, rgba(201,162,39,.12), transparent 60%),
    radial-gradient(50% 50% at -5% 100%, rgba(47,106,62,.16), transparent 60%),
    radial-gradient(40% 40% at 50% 118%, rgba(176,125,51,.10), transparent 60%);
}
body.tema-escuro ::selection { background: rgba(201,162,39,.32); color: #fff; }

/* ---- Fundação de texto (rede de segurança anti dark-on-dark) --------------- */
body.tema-escuro h1, body.tema-escuro h2, body.tema-escuro h3, body.tema-escuro h4,
body.tema-escuro .section-head h2, body.tema-escuro .brand span,
body.tema-escuro .card h3, body.tema-escuro .card h2 { color: var(--cj-cream); }
body.tema-escuro h1, body.tema-escuro h2, body.tema-escuro .section-head h2,
body.tema-escuro .cf-steps strong, body.tema-escuro .step strong { font-family: var(--cj-font-d); }
body.tema-escuro p, body.tema-escuro li, body.tema-escuro .lead, body.tema-escuro dd,
body.tema-escuro td, body.tema-escuro label, body.tema-escuro .card p { color: var(--cj-text); }
body.tema-escuro .muted, body.tema-escuro small, body.tema-escuro .fine,
body.tema-escuro .section-head p, body.tema-escuro figcaption { color: var(--cj-muted); }
body.tema-escuro .eyebrow { color: var(--cj-gold-lt); }
body.tema-escuro .eyebrow::before { background: var(--cj-gold); }
body.tema-escuro a { color: var(--cj-gold-lt); }
body.tema-escuro strong, body.tema-escuro b { color: var(--cj-cream); }
/* Vence cores escuras chumbadas em style="" inline */
body.tema-escuro [style*="color:#0A2440"], body.tema-escuro [style*="color:#0a2440"],
body.tema-escuro [style*="color:#173A33"], body.tema-escuro [style*="color:#2C3A36"],
body.tema-escuro [style*="color:#5C6675"] { color: var(--cj-text) !important; }

/* ---- Header + logo -------------------------------------------------------- */
body.tema-escuro .site-header { background: rgba(8,11,7,.82); border-bottom: 1px solid var(--cj-line);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); }
body.tema-escuro .site-header .brand img { filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
body.tema-escuro .nav-links a { color: var(--cj-text); }
body.tema-escuro .nav-links a:hover { color: var(--cj-gold-lt); background: rgba(201,162,39,.10); }
body.tema-escuro .nav-links a.nav-colab { color: var(--cj-gold-lt); }
body.tema-escuro .nav-links a.nav-colab::before { color: var(--cj-gold); }
body.tema-escuro .nav-auth { border-left-color: var(--cj-line); }
body.tema-escuro .nav-entrar { color: var(--cj-cream); } body.tema-escuro .nav-entrar:hover { color: var(--cj-gold-lt); }
body.tema-escuro .nav-toggle { color: var(--cj-cream); }
body.tema-escuro .nav-sub, body.tema-escuro .usermenu-pop { background: var(--cj-surface); border: 1px solid var(--cj-line); }
body.tema-escuro .nav-sub a, body.tema-escuro .usermenu-pop a { color: var(--cj-text); }
body.tema-escuro .nav-sub a:hover, body.tema-escuro .usermenu-pop a:hover { background: rgba(201,162,39,.12); color: var(--cj-gold-lt); }
body.tema-escuro .usermenu-btn { background: var(--cj-surface); border-color: var(--cj-line); color: var(--cj-cream); }
body.tema-escuro .usermenu-head { border-bottom-color: var(--cj-line); }
body.tema-escuro .usermenu-head strong { color: var(--cj-cream); }
body.tema-escuro .usermenu-sep { color: var(--cj-muted); }
body.tema-escuro .subnav { background: rgba(8,11,7,.9); border-bottom-color: var(--cj-line); }

/* ---- Botões --------------------------------------------------------------- */
body.tema-escuro .btn--primary { color: #1a1405 !important; box-shadow: 0 12px 30px rgba(201,162,39,.34); }
body.tema-escuro .btn--ghost { background: rgba(255,255,255,.04); color: var(--cj-cream); border-color: var(--cj-line); }
body.tema-escuro .btn--ghost:hover { color: var(--cj-gold-lt); border-color: var(--cj-gold); background: rgba(201,162,39,.08); }
body.tema-escuro .btn--white { background: var(--cj-gold) !important; color: #1a1405 !important; }
body.tema-escuro .btn--ghostw { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }

/* ---- Seções / superfícies ------------------------------------------------- */
body.tema-escuro .section--tint { background: linear-gradient(180deg, var(--cj-bg2), var(--cj-bg)) !important;
  border-top: 1px solid var(--cj-line-soft); border-bottom: 1px solid var(--cj-line-soft); }
body.tema-escuro .card, body.tema-escuro details.card { background: var(--cj-surface); border: 1px solid var(--cj-line); color: var(--cj-text); box-shadow: var(--shadow-sm); }
body.tema-escuro .card:hover { border-color: rgba(201,162,39,.5); box-shadow: var(--shadow); }
body.tema-escuro .card .icon { background: rgba(201,162,39,.14); color: var(--cj-gold-lt); }
body.tema-escuro .card .icon--green { background: rgba(95,169,107,.16); color: var(--cj-green); }
body.tema-escuro .notice { background: var(--cj-surface); border-left-color: var(--cj-gold); color: var(--cj-text); }
body.tema-escuro .notice--warn { border-left-color: var(--cj-berry); }
body.tema-escuro .badge-strip .cbadge, body.tema-escuro .cbadge { background: rgba(201,162,39,.08); border-color: var(--cj-line); color: var(--cj-text); }

/* ---- Formulários ---------------------------------------------------------- */
body.tema-escuro input, body.tema-escuro select, body.tema-escuro textarea {
  background: #0e130c !important; border: 1.5px solid var(--cj-line) !important; color: var(--cj-cream) !important; }
body.tema-escuro input::placeholder, body.tema-escuro textarea::placeholder { color: #726f5f !important; }
body.tema-escuro input:focus, body.tema-escuro select:focus, body.tema-escuro textarea:focus { border-color: var(--cj-gold) !important; box-shadow: var(--ring) !important; }

/* ---- Banda de teleconsulta (era azul) ------------------------------------- */
body.tema-escuro .tc-band { background: linear-gradient(120deg, #0b160c 0%, #12210f 55%, #1a1608 120%) !important; }
body.tema-escuro .tc-band::before { background: radial-gradient(circle, rgba(201,162,39,.28), transparent 64%) !important; }
body.tema-escuro .tc-band h2, body.tema-escuro .tc-band p, body.tema-escuro .tc-card strong { color: #fff !important; }
body.tema-escuro .tc-card { background: rgba(255,255,255,.06); border-color: var(--cj-line); }
body.tema-escuro .tc-parc { background: rgba(201,162,39,.08); border-color: var(--cj-line); }
body.tema-escuro .tc-feat, body.tema-escuro .tc-pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }

/* ---- Verify card (o azul real vem daqui) ---------------------------------- */
body.tema-escuro .verify-card { background: linear-gradient(120deg, #0d160c 0%, #12210f 60%, #17130a 120%) !important; border: 1px solid var(--cj-line); }
body.tema-escuro .verify-card::after { background: radial-gradient(circle, rgba(201,162,39,.22), transparent 66%) !important; }
body.tema-escuro .verify-tag { color: var(--cj-gold-lt) !important; }
body.tema-escuro .verify-card h2 { color: var(--cj-cream); }

/* ---- Barra CTA fixa (comecar) — era verde/azul ---------------------------- */
body.tema-escuro #cta-fixa { background: linear-gradient(120deg, #12210f, #1a1608) !important; border-top: 1px solid var(--cj-line); }
body.tema-escuro .cta-fixa-btn { background: var(--cj-gold) !important; color: #1a1405 !important; }
body.tema-escuro .cta-fixa-txt strong { color: var(--cj-gold-lt); }

/* ---- Brandband (texto era azul/verde) ------------------------------------- */
body.tema-escuro .brandband { background: linear-gradient(180deg, var(--cj-bg2), var(--cj-bg)); border-top: 1px solid var(--cj-line-soft); border-bottom: 1px solid var(--cj-line-soft); }
body.tema-escuro .brandband .bw-tx { color: var(--cj-gold-lt) !important; -webkit-text-fill-color: var(--cj-gold-lt) !important; background: none !important; }
body.tema-escuro .brandband .bw--verde .bw-tx { color: var(--cj-green) !important; -webkit-text-fill-color: var(--cj-green) !important; background: none !important; }
body.tema-escuro .brandband__sub { color: var(--cj-text); }
body.tema-escuro .brandband .bb-eyebrow { color: var(--cj-gold-lt); background: rgba(201,162,39,.1); border-color: var(--cj-line); }

/* ---- Selos (faixa em --grad-brand ouro; garante legibilidade) ------------- */
body.tema-escuro .selos { background: linear-gradient(120deg, #12210f, #1a1608) !important; }
body.tema-escuro .selos .selo { background: rgba(201,162,39,.08); border-color: var(--cj-line); }
body.tema-escuro .selos .selo b { color: var(--cj-cream); }

/* ---- Vitrine de produtos -------------------------------------------------- */
body.tema-escuro .showcase, body.tema-escuro #produtos { }
body.tema-escuro .lsc { background: var(--cj-surface); border-color: var(--cj-line); }
body.tema-escuro .lsc:hover { border-color: rgba(201,162,39,.5); box-shadow: var(--shadow); }
body.tema-escuro .lsc-img { background: linear-gradient(160deg, #0f160e, #14210f) !important; }
body.tema-escuro .lsc-name { color: var(--cj-cream) !important; }
body.tema-escuro .lsc-pr { color: var(--cj-gold-lt) !important; }
body.tema-escuro .lsc-pr.lock { color: var(--cj-muted) !important; }
body.tema-escuro .lsc-badge { background: rgba(10,13,8,.85) !important; color: var(--cj-cream) !important; }
body.tema-escuro .lsc-go { color: var(--cj-gold-lt) !important; }

/* ---- Fluxo / passos ------------------------------------------------------- */
body.tema-escuro .steps .step, body.tema-escuro .cf-steps .step { background: var(--cj-surface) !important; border-color: var(--cj-line) !important; }
body.tema-escuro .cf-steps .step::after { background: linear-gradient(180deg, var(--cj-gold), rgba(201,162,39,.2)) !important; }

/* ---- Rastreabilidade (telefone azul) + variedades box (gradiente azul) ----- */
body.tema-escuro .rast-phone { background: linear-gradient(160deg, #12210f, #1a1608) !important; }
body.tema-escuro .rast-cap strong { color: var(--cj-cream); }
body.tema-escuro [style*="#16834A,#0E8ACB"], body.tema-escuro [style*="#16834A, #0E8ACB"] {
  background: linear-gradient(135deg, #12210f, #1a1608) !important; border: 1px solid var(--cj-line); }

/* ---- Métricas / hero-metrics ---------------------------------------------- */
body.tema-escuro .hero-metrics .metric, body.tema-escuro .metrics-band .metric { background: var(--cj-surface); border-color: var(--cj-line); }
body.tema-escuro .hero-metrics .metric b { color: var(--cj-cream); }
body.tema-escuro .hero-metrics .metric span { color: var(--cj-muted); }

/* ---- CTA band (já escura; garante contraste) ------------------------------ */
body.tema-escuro .cta-band { background: linear-gradient(120deg, #0d160c, #14210f 55%, #1a1608 120%) !important; border: 1px solid var(--cj-line); }
body.tema-escuro .cta-band h2, body.tema-escuro .cta-band p { color: var(--cj-cream); }
body.tema-escuro .cta-band .eyebrow { color: var(--cj-gold-lt) !important; background: rgba(201,162,39,.12) !important; border-color: var(--cj-line) !important; }

/* ---- Rodapé --------------------------------------------------------------- */
body.tema-escuro .site-footer { background: #06080510; background-color: #070905; border-top: 1px solid var(--cj-line); color: var(--cj-muted); }
body.tema-escuro .site-footer h4 { color: var(--cj-gold-lt); }
body.tema-escuro .site-footer img[src*="logo"], body.tema-escuro .site-footer .brand img,
body.tema-escuro .foot-brand img, body.tema-escuro .foot-logo img { filter: brightness(0) invert(1); opacity: .92; }
body.tema-escuro .site-footer a, body.tema-escuro .foot-col a { color: var(--cj-text); }
body.tema-escuro .site-footer a:hover, body.tema-escuro .foot-col a:hover { color: var(--cj-gold-lt); }
body.tema-escuro .foot-selos .selo, body.tema-escuro .fine--ents { color: var(--cj-muted); }
body.tema-escuro .fine--ents .ent-nome { color: var(--cj-text); }

/* ---- Bot / assistente ----------------------------------------------------- */
body.tema-escuro .bot-panel { background: var(--cj-surface) !important; border: 1px solid var(--cj-line) !important; color: var(--cj-text) !important; }
body.tema-escuro .bot-head { background: linear-gradient(120deg, #12210f, #1a1608) !important; color: #fff !important; border-bottom: 1px solid var(--cj-line) !important; }
body.tema-escuro .bot-log { background: var(--cj-bg) !important; }
body.tema-escuro .bot-msg { background: var(--cj-surface-2) !important; color: var(--cj-text) !important; }
body.tema-escuro .bot-msg.me, body.tema-escuro .bot-msg--me { background: rgba(201,162,39,.16) !important; color: var(--cj-cream) !important; }
body.tema-escuro .bot-chip { background: rgba(201,162,39,.1) !important; border-color: var(--cj-line) !important; color: var(--cj-cream) !important; }
body.tema-escuro .bot-chip:hover { background: rgba(201,162,39,.2) !important; }
body.tema-escuro .bot-form { background: var(--cj-surface) !important; border-top: 1px solid var(--cj-line) !important; }
body.tema-escuro .bot-rodape { color: var(--cj-muted) !important; }

/* ---- Cookie banner + consent modal + tooltips (usavam background:var(--ink)) */
body.tema-escuro .cookie-banner { background: var(--cj-surface) !important; border: 1px solid var(--cj-line); color: var(--cj-text) !important; }
body.tema-escuro .cookie-banner p { color: var(--cj-text) !important; }
body.tema-escuro .cookie-banner p strong { color: var(--cj-cream) !important; }
body.tema-escuro .cookie-banner a { color: var(--cj-gold-lt) !important; }
body.tema-escuro .consent-info { color: var(--cj-gold-lt) !important; background: transparent !important; }
body.tema-escuro .tip .tip-bubble { background: var(--cj-surface) !important; color: var(--cj-text) !important; border: 1px solid var(--cj-line); }
body.tema-escuro .consent-box { background: var(--cj-surface) !important; color: var(--cj-text) !important; border: 1px solid var(--cj-line); }
body.tema-escuro .consent-box h3, body.tema-escuro .consent-box h2 { color: var(--cj-cream) !important; }
body.tema-escuro .consent-texto, body.tema-escuro .consent-texto * { color: var(--cj-text) !important; }
body.tema-escuro .consent-texto strong { color: var(--cj-cream) !important; }
body.tema-escuro .consent-close { color: var(--cj-cream) !important; }
body.tema-escuro .consent-modal { background: rgba(0,0,0,.66) !important; }

/* ---- Modais (age-gate, cookies) ------------------------------------------- */
body.tema-escuro .age-modal, body.tema-escuro .agegate, body.tema-escuro .agegate__card,
body.tema-escuro .cookie-bar, body.tema-escuro .cookiebar, body.tema-escuro .info-banner-box,
body.tema-escuro .modal-card, body.tema-escuro [class*="gate__card"], body.tema-escuro [class*="modal__card"] {
  background: var(--cj-surface) !important; color: var(--cj-text) !important; border: 1px solid var(--cj-line) !important; }
body.tema-escuro .age-modal h2, body.tema-escuro [class*="gate"] h2 { color: var(--cj-cream) !important; }

/* ---- Área logada (base_interno) ------------------------------------------- */
body.tema-escuro.painel-interno { background: var(--cj-bg) !important; }
body.tema-escuro .vi-main { color: var(--cj-text); }
body.tema-escuro .vi-crumbs, body.tema-escuro .vi-trail, body.tema-escuro .vi-trail * { color: var(--cj-muted) !important; }
body.tema-escuro .vi-crumbs .btn, body.tema-escuro .vi-back { color: var(--cj-cream) !important; }
body.tema-escuro table { color: var(--cj-text); }
body.tema-escuro th { color: var(--cj-muted); border-bottom-color: var(--cj-line) !important; }
body.tema-escuro td { border-bottom-color: var(--cj-line-soft) !important; }
body.tema-escuro tr:hover td { background: rgba(201,162,39,.05) !important; }
/* Superfícies genéricas claras dentro do painel */
body.tema-escuro .painel-interno [style*="background:#fff"],
body.tema-escuro .painel-interno [style*="background: #fff"],
body.tema-escuro .painel-interno [style*="background:#FFF"] { background: var(--cj-surface) !important; color: var(--cj-text) !important; }

/* ============================================================================
   ROLLOUT DARK COMPLETO — páginas de conteúdo + patient + consoles.
   ============================================================================ */
/* (A) Blocos de tokens por página → redefinidos para dark (maior alavanca) */
body.tema-escuro .vl, body.tema-escuro .wk, body.tema-escuro .tp, body.tema-escuro .cp,
body.tema-escuro .cl, body.tema-escuro .cd, body.tema-escuro .cs, body.tema-escuro .gl,
body.tema-escuro .gp, body.tema-escuro .tm, body.tema-escuro .nw, body.tema-escuro .nc,
body.tema-escuro .art, body.tema-escuro .ph, body.tema-escuro .pc, body.tema-escuro .iz,
body.tema-escuro .qz, body.tema-escuro .rede {
  --ink: #F2EAD6 !important; --mut: #9C9884 !important; --line: rgba(201,162,39,.20) !important;
  --soft: #1b2317 !important; --paper: #141b12 !important; --blue: #E7C860 !important;
  --green: #5FA96B !important; --pd-ink: #F2EAD6 !important; --pd-mut: #9C9884 !important;
  --pd-linha: rgba(201,162,39,.20) !important; --ck-linha: rgba(201,162,39,.20) !important;
  --azul: #E7C860 !important; --bg: #0A0D08 !important;
}
body.tema-escuro .rede .kpi, body.tema-escuro .rede .card, body.tema-escuro .rede-tabs a.on { background: #141b12 !important; }
body.tema-escuro .rede-tabs a:hover, body.tema-escuro .rede tr:hover td { background: rgba(201,162,39,.06) !important; }
body.tema-escuro .rede .btn.ghost, body.tema-escuro .rede select, body.tema-escuro .rede input { background: #0e130c !important; color: #F2EAD6 !important; }

/* (B) Heros/banners repetidos → gradiente escuro ouro/mata (texto claro) */
body.tema-escuro .cad-hero, body.tema-escuro .nv-hero, body.tema-escuro .pv-hero,
body.tema-escuro .ck-hero, body.tema-escuro .acc-hero, body.tema-escuro .mp-hero,
body.tema-escuro .lg-side, body.tema-escuro .vl .hero, body.tema-escuro .tp .hero,
body.tema-escuro .cl .hero, body.tema-escuro .cs .hero, body.tema-escuro .gl .hero,
body.tema-escuro .th-hero, body.tema-escuro .checkin .ck-hero,
body.tema-escuro [style*="#063A6B"] {
  background: linear-gradient(120deg,#0b1509,#12210f 55%,#1a1608 120%) !important; color: #fff !important;
  border: 1px solid var(--cj-line);
}
body.tema-escuro .fav-hero { background: linear-gradient(120deg,#2a0f18,#3a1522 55%,#1a1608 120%) !important; }
body.tema-escuro .cad-hero .eyebrow, body.tema-escuro .nv-hero .eyebrow, body.tema-escuro .pv-hero .eyebrow,
body.tema-escuro .ck-hero .eyebrow, body.tema-escuro .acc-hero .eyebrow, body.tema-escuro .mp-hero .eyebrow,
body.tema-escuro .hero .eyebrow { color: var(--cj-gold-lt) !important; }
body.tema-escuro .cad-hero p, body.tema-escuro .nv-hero p, body.tema-escuro .acc-hero p,
body.tema-escuro .mp-hero p, body.tema-escuro .ck-hero .ck-trust, body.tema-escuro .hero p,
body.tema-escuro .lg-side p, body.tema-escuro .lg-side li { color: #E7E1D0 !important; }

/* Avatares/faixas azuis-teal e verdes → ouro/verde */
body.tema-escuro .tc-av, body.tema-escuro .tc-av-lg, body.tema-escuro .dt-av, body.tema-escuro .art-meta .av,
body.tema-escuro .av-ic--pedido, body.tema-escuro .av-ic--consulta, body.tema-escuro .iz .pil .ic,
body.tema-escuro .btitle, body.tema-escuro .box .btitle, body.tema-escuro .badge, body.tema-escuro .veja,
body.tema-escuro .pc .badge, body.tema-escuro ol.passos li::before, body.tema-escuro .apres-opt.sel::after {
  background: linear-gradient(135deg, var(--cj-gold-lt), var(--cj-gold)) !important; color: #1a1405 !important;
}
body.tema-escuro .tc-live-box, body.tema-escuro .dt-fila, body.tema-escuro .th-imediata { background: linear-gradient(120deg,#2F6A3E,#5FA96B) !important; color: #fff !important; }
body.tema-escuro .cta, body.tema-escuro .art-cta, body.tema-escuro .cd .cta, body.tema-escuro .gp .cta,
body.tema-escuro .tm .veja, body.tema-escuro .wk .cta, body.tema-escuro .ct-btn--primary {
  background: linear-gradient(120deg,#12210f,#1a1608) !important; border: 1px solid var(--cj-line); color: var(--cj-cream) !important;
}
body.tema-escuro .cta a, body.tema-escuro .art-cta a, body.tema-escuro .cd .cta a, body.tema-escuro .gp .cta a,
body.tema-escuro .wk .cta a { background: var(--cj-gold) !important; color: #1a1405 !important; }

/* (C) Cards/superfícies brancas → surface escura */
body.tema-escuro .cad-form, body.tema-escuro .cad-form fieldset, body.tema-escuro .nv-feat,
body.tema-escuro .nv-card, body.tema-escuro .cart-item, body.tema-escuro .mp-card,
body.tema-escuro .fav-card, body.tema-escuro .tc-card, body.tema-escuro .th-card, body.tema-escuro .th-doc,
body.tema-escuro .th-hist, body.tema-escuro .dt-card, body.tema-escuro .ck-card, body.tema-escuro .ob-card,
body.tema-escuro .mc-item, body.tema-escuro .iz .pil, body.tema-escuro .iz .stats .card, body.tema-escuro .iz .btn--p,
body.tema-escuro .qz .opt, body.tema-escuro .qz .res, body.tema-escuro .qz .trust span, body.tema-escuro .box,
body.tema-escuro .vs .side, body.tema-escuro .ep, body.tema-escuro .catnav a, body.tema-escuro .srow,
body.tema-escuro ol.passos li, body.tema-escuro details.qa, body.tema-escuro .rel a, body.tema-escuro .chip,
body.tema-escuro .apres-opt, body.tema-escuro .enc__panel, body.tema-escuro .enc-buy, body.tema-escuro .enc-li,
body.tema-escuro .enc-ben, body.tema-escuro .gx-card, body.tema-escuro .docs-stat, body.tema-escuro .rx-card,
body.tema-escuro .rx-stat, body.tema-escuro .av-item, body.tema-escuro .ct-rx, body.tema-escuro .ged-item,
body.tema-escuro .co-kpi, body.tema-escuro .farm-kpi, body.tema-escuro .sc-kpi, body.tema-escuro .disp .order-card,
body.tema-escuro .co-table, body.tema-escuro .sc-tb, body.tema-escuro .meta, body.tema-escuro .msg.paciente,
body.tema-escuro .form-card, body.tema-escuro .order-card, body.tema-escuro .cad-form input,
body.tema-escuro .cad-form select, body.tema-escuro .cad-form textarea, body.tema-escuro .lg-card input {
  background: var(--cj-surface) !important; border-color: var(--cj-line) !important; color: var(--cj-text) !important;
}
body.tema-escuro .cad-form legend, body.tema-escuro .cad-form label, body.tema-escuro .lg-card h1,
body.tema-escuro .lg-card label, body.tema-escuro .nv-feat__body h2, body.tema-escuro .nv-card h3,
body.tema-escuro .cart-item strong, body.tema-escuro .mp-num, body.tema-escuro .fav-card h3,
body.tema-escuro .tc-card h3, body.tema-escuro .th-who, body.tema-escuro .dt-doc h1, body.tema-escuro .co-nome,
body.tema-escuro .co-kpi b, body.tema-escuro .farm-kpi b, body.tema-escuro .sc-kpi b, body.tema-escuro .oc-num,
body.tema-escuro .docs-stat b, body.tema-escuro .rx-card__t b, body.tema-escuro .av-top b { color: var(--cj-cream) !important; }

/* (D) Notas/avisos âmbar + estados amarelados */
body.tema-escuro .nota, body.tema-escuro .aviso, body.tema-escuro .aviso-topo, body.tema-escuro .cd .byline,
body.tema-escuro .src, body.tema-escuro .rx-cta-renovar, body.tema-escuro .rx-alert, body.tema-escuro .co-empty,
body.tema-escuro .di-empty, body.tema-escuro .sc-live, body.tema-escuro .farm-live, body.tema-escuro .disp-live {
  background: rgba(201,162,39,.08) !important; border-color: var(--cj-line) !important; color: var(--cj-text) !important;
}

/* (E) Pills de status → versões escuras (mantêm a cor semântica no texto) */
body.tema-escuro [class^="st-"], body.tema-escuro [class*=" st-"], body.tema-escuro .rx-badge,
body.tema-escuro .co-badge--venc, body.tema-escuro .co-badge--avis, body.tema-escuro .co-tag--ok,
body.tema-escuro .co-tag--no, body.tema-escuro .ABERTO, body.tema-escuro .EM_ANDAMENTO,
body.tema-escuro .AGUARDANDO, body.tema-escuro .RESOLVIDO, body.tema-escuro .FECHADO,
body.tema-escuro .st-prep, body.tema-escuro .badge--pend, body.tema-escuro .badge--ok,
body.tema-escuro .rede .pill { background: rgba(201,162,39,.12) !important; border: 1px solid var(--cj-line) !important; }
body.tema-escuro .mp-tab, body.tema-escuro .disp-tabs a, body.tema-escuro .co-filter a { background: var(--cj-surface) !important; color: var(--cj-text) !important; border-color: var(--cj-line) !important; }
body.tema-escuro .mp-tab.on, body.tema-escuro .disp-tabs a.on, body.tema-escuro .co-filter a.on { background: linear-gradient(180deg,var(--cj-gold-lt),var(--cj-gold)) !important; color: #1a1405 !important; }

/* (F) base_interno — shell escuro (vi-top vira ouro/mata) */
body.tema-escuro .vi-top { background: linear-gradient(100deg,#0b1509,#12210f 58%,#1a1608) !important; }
body.tema-escuro .vi-top::after { background: linear-gradient(90deg,var(--cj-gold),var(--cj-gold-lt),var(--cj-green)) !important; }
body.tema-escuro .vi-tag { background: rgba(201,162,39,.16) !important; border-color: var(--cj-line) !important; color: var(--cj-gold-lt) !important; }
body.tema-escuro .vi-nav a { color: #d8d2c0 !important; }
body.tema-escuro .vi-nav a.on, body.tema-escuro .vi-nav a.primary { background: rgba(201,162,39,.22) !important; color: #fff !important; }
body.tema-escuro .vi-back { background: var(--cj-surface) !important; border-color: var(--cj-line) !important; color: var(--cj-cream) !important; }
body.tema-escuro .vi-trail, body.tema-escuro .vi-trail .sep { color: var(--cj-muted) !important; }
body.tema-escuro .vi-trail a { color: var(--cj-gold-lt) !important; }
body.tema-escuro .vi-trail .cur, body.tema-escuro .vi-main h1, body.tema-escuro .vi-main .form-card .field>label { color: var(--cj-cream) !important; }
body.tema-escuro .vi-main .eyebrow, body.tema-escuro .farm .eyebrow, body.tema-escuro .disp .eyebrow, body.tema-escuro .sc-head .eyebrow, body.tema-escuro .co-filter a { color: var(--cj-gold-lt) !important; }
body.tema-escuro .vi-main .form-card, body.tema-escuro .vi-main .form-card input,
body.tema-escuro .vi-main .form-card select, body.tema-escuro .vi-main .form-card textarea,
body.tema-escuro .vi-main .order-card { background: var(--cj-surface) !important; border-color: var(--cj-line) !important; color: var(--cj-cream) !important; }
body.tema-escuro .farm h1, body.tema-escuro .disp h1, body.tema-escuro .sc-head h1, body.tema-escuro .co-sec h2, body.tema-escuro .pdash-h2 { color: var(--cj-cream) !important; }

/* (G) Resíduos: steppers, chips claros de etapa/facetas, bolhas de mensagem */
body.tema-escuro .cad-stepper span, body.tema-escuro .ob-dot .n, body.tema-escuro .ck-dot .n,
body.tema-escuro .qz .bar { background: var(--cj-surface) !important; border-color: var(--cj-line) !important; color: var(--cj-muted) !important; }
body.tema-escuro .cad-stepper span.on { background: rgba(201,162,39,.18) !important; color: var(--cj-gold-lt) !important; border-color: var(--cj-line) !important; }
body.tema-escuro .msg.equipe, body.tema-escuro .tc-tcle, body.tema-escuro .ck-check, body.tema-escuro .ob-note,
body.tema-escuro .dt-note, body.tema-escuro .sig-box, body.tema-escuro .lj-blur { background: var(--cj-surface-2) !important; border-color: var(--cj-line) !important; color: var(--cj-text) !important; }
body.tema-escuro .cart-qty .qstep, body.tema-escuro .cart-qty .qval, body.tema-escuro .tc-slot,
body.tema-escuro .apres-opt { background: #0e130c !important; border-color: var(--cj-line) !important; color: var(--cj-text) !important; }
body.tema-escuro .enc__kicker, body.tema-escuro .gx__kick, body.tema-escuro .enc__chip, body.tema-escuro .tc-esp span,
body.tema-escuro .th-doc .tag, body.tema-escuro .dt-doc .esp, body.tema-escuro .cid-code, body.tema-escuro .art-kicker {
  background: rgba(201,162,39,.12) !important; color: var(--cj-gold-lt) !important; border-color: var(--cj-line) !important; }
