/* Tema escuro: correções por cima do escuro antigo (que ficou desligado enquanto o site evoluía só no claro).
   Carregar por ÚLTIMO. Tudo aqui começa com html[data-theme="dark"]: no tema claro este arquivo não muda nada.
   O tema é escolhido pela hora em assets/site-theme-v14.js. Para ver fora do horário: ?tema=escuro no endereço. */

html[data-theme="dark"] {
  --sbd-bg: #0b1119;
  --sbd-panel: #111a27;
  --sbd-field: #162131;
  --sbd-line: #263447;
  --sbd-text: #eef5fd;
  --sbd-soft: #c7d5e6;
  --sbd-muted: #9fb0c4;
  --sbd-link: #7fb6ff;
}

/* ---------- Página inicial ---------- */
html[data-theme="dark"] .sb-hero-title-sub { color: var(--sbd-soft) !important; }
html[data-theme="dark"] .sb-section-head h2,
html[data-theme="dark"] .sb-plans-statement { color: var(--sbd-text) !important; }
html[data-theme="dark"] .sb-section-head p { color: var(--sbd-muted) !important; }

/* Depoimentos: a seção tinha fundo claro fixo. As conversas continuam claras de propósito (imitam o WhatsApp). */
html[data-theme="dark"] .sb-proof {
  background: radial-gradient(circle at 22% 40%, rgba(47, 115, 232, .10), transparent 32%), linear-gradient(#101925, #0b1119) !important;
}

html[data-theme="dark"] .plan-machine-count { color: var(--sbd-muted) !important; }
html[data-theme="dark"] .plan-machine-count strong { color: var(--sbd-text) !important; }
html[data-theme="dark"] .legal-consent-note { color: var(--sbd-muted) !important; }
html[data-theme="dark"] .legal-consent-note a { color: var(--sbd-link) !important; }

html[data-theme="dark"] .plans-section input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .plans-section .student-file-picker {
  background: var(--sbd-field) !important;
  border-color: var(--sbd-line) !important;
  color: var(--sbd-text) !important;
}
html[data-theme="dark"] .plans-section input::placeholder { color: #7f91a8 !important; }

html[data-theme="dark"] .sb-guarantee {
  background: var(--sbd-panel) !important;
  border-color: var(--sbd-line) !important;
  color: var(--sbd-text) !important;
}
html[data-theme="dark"] .sb-guarantee strong { color: var(--sbd-text) !important; }
html[data-theme="dark"] .sb-guarantee small { color: var(--sbd-muted) !important; }

/* ---------- Cabeçalho e rodapé das páginas da conta (ativação, cancelamento, Minha Conta) ---------- */
html[data-theme="dark"] body.account-page .flow-header,
html[data-theme="dark"] body.account-page .site-header {
  background: rgba(17, 25, 36, .94) !important;
  border-bottom-color: rgba(255, 255, 255, .07) !important;
}
html[data-theme="dark"] body.account-page .flow-header .brand,
html[data-theme="dark"] body.account-page .flow-header .brand-copy,
html[data-theme="dark"] body.account-page .flow-header .brand-studio,
html[data-theme="dark"] body.account-page .site-header .brand,
html[data-theme="dark"] body.account-page .site-header .brand-studio { color: var(--sbd-text) !important; }
html[data-theme="dark"] body.account-page .flow-header .brand-copy small,
html[data-theme="dark"] body.account-page .site-header .brand-copy small { color: var(--sbd-muted) !important; }
html[data-theme="dark"] body.account-page .flow-header nav a,
html[data-theme="dark"] body.account-page .site-header nav a { color: var(--sbd-muted) !important; }
html[data-theme="dark"] body.account-page .flow-header nav a.is-active,
html[data-theme="dark"] body.account-page .flow-header nav a:hover,
html[data-theme="dark"] body.account-page .site-header nav a.is-active,
html[data-theme="dark"] body.account-page .site-header nav a:hover { color: var(--sbd-text) !important; }

html[data-theme="dark"] body.account-page .site-footer {
  background: #111a26 !important;
  color: var(--sbd-muted) !important;
}
html[data-theme="dark"] body.account-page .site-footer .account-footer-bottom { border-top-color: var(--sbd-line) !important; }
html[data-theme="dark"] body.account-page .site-footer a,
html[data-theme="dark"] body.account-page .site-footer p,
html[data-theme="dark"] body.account-page .site-footer span { color: var(--sbd-muted) !important; }
html[data-theme="dark"] body.account-page .site-footer a:hover { color: var(--sbd-text) !important; }

/* ---------- Ativação (o escuro já existia; faltavam estes textos) ---------- */
html[data-theme="dark"] .activation-form-card .account-recognized { color: #9cc4ff !important; }
html[data-theme="dark"] .activation-form-card .legal-consent span { color: var(--sbd-muted) !important; }
html[data-theme="dark"] .activation-form-card .legal-consent a { color: var(--sbd-link) !important; }
html[data-theme="dark"] .activation-community { border-top-color: var(--sbd-line) !important; }
html[data-theme="dark"] .activation-community p { color: var(--sbd-muted) !important; }

/* ---------- Cancelamento (não tinha escuro) ---------- */
html[data-theme="dark"] body.cancellation-page { background: var(--sbd-bg) !important; color: var(--sbd-text) !important; }
html[data-theme="dark"] .cancellation-shell {
  background: var(--sbd-panel) !important;
  border-color: var(--sbd-line) !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .35) !important;
}
html[data-theme="dark"] .cancellation-context { background: linear-gradient(#0d141f, #0c121b) !important; border-color: rgba(255, 255, 255, .04) !important; }
html[data-theme="dark"] .cancellation-form-card { background: var(--sbd-panel) !important; color: var(--sbd-text) !important; }
html[data-theme="dark"] .cancellation-context h2,
html[data-theme="dark"] .cancellation-form-card h1,
html[data-theme="dark"] .cancellation-form-card h2,
html[data-theme="dark"] .cancellation-form-card strong { color: var(--sbd-text) !important; }
html[data-theme="dark"] .cancellation-context p,
html[data-theme="dark"] .cancellation-form-card .subtitle,
html[data-theme="dark"] .cancellation-form-card .label,
html[data-theme="dark"] .cancellation-form-card .note,
html[data-theme="dark"] .cancellation-form-card p,
html[data-theme="dark"] .cancellation-back { color: var(--sbd-muted) !important; }
html[data-theme="dark"] .cancellation-eyebrow,
html[data-theme="dark"] .cancellation-form-kicker { color: var(--sbd-link) !important; }
html[data-theme="dark"] .cancellation-form-card .input {
  background: var(--sbd-field) !important;
  border-color: var(--sbd-line) !important;
  color: var(--sbd-text) !important;
}
html[data-theme="dark"] .cancellation-form-card .input::placeholder { color: #7f91a8 !important; }
html[data-theme="dark"] .cancellation-form-card .box {
  background: #0a1018 !important;
  border-color: var(--sbd-line) !important;
  color: var(--sbd-soft) !important;
}
html[data-theme="dark"] .cancellation-form-card .msg-error { color: #ff9c9c !important; }
html[data-theme="dark"] .cancellation-form-card .msg-success { color: #7fdca6 !important; }
/* ---------- Retorno do pagamento (stripe-retorno; a página só tinha claro) ---------- */
html[data-theme="dark"] {
  --ink: #c7d5e6;
  --strong: #eef5fd;
  --muted: #9fb0c4;
  --line: #263447;
}
html[data-theme="dark"] body.return-page { background: #0b1119 !important; color: #c7d5e6 !important; }
html[data-theme="dark"] body.return-page .site-header { background: rgba(11, 17, 25, .94) !important; border-bottom-color: #263447 !important; }
html[data-theme="dark"] body.return-page .brand { color: #eef5fd !important; }
html[data-theme="dark"] .site-header .brand-copy small { color: #9fb0c4 !important; }
html[data-theme="dark"] .steps li { background: #131c29 !important; color: #8fa1b5 !important; box-shadow: none !important; }
html[data-theme="dark"] .steps li.done { background: #11261f !important; color: #7fdca6 !important; }
html[data-theme="dark"] .steps li.active { background: #1a2636 !important; color: #eef5fd !important; box-shadow: 0 4px 18px rgba(0, 0, 0, .35) !important; }
html[data-theme="dark"] .steps li.failed { background: #2a1717 !important; color: #ff9c9c !important; }
html[data-theme="dark"] .steps li.failed .num { background: #3a1c1c !important; border-color: #c45a5a !important; color: #ffb4b4 !important; }
html[data-theme="dark"] main.card { background: #111a27 !important; border-color: #263447 !important; box-shadow: 0 18px 55px rgba(0, 0, 0, .35) !important; }
html[data-theme="dark"] main.card .eyebrow { color: #a99bff !important; }
html[data-theme="dark"] .receipt { background: #11261f !important; border-color: #1f4a3a !important; }
html[data-theme="dark"] .receipt-icon { background: #173a2d !important; color: #7fdca6 !important; }
html[data-theme="dark"] .failure { background: #2a1717 !important; border-color: #5a2a2a !important; color: #ffb4b4 !important; }
html[data-theme="dark"] .failure-icon { background: #3a1c1c !important; color: #ffb4b4 !important; }
html[data-theme="dark"] main.card .status { color: #9fb0c4 !important; }
html[data-theme="dark"] main.card .email { color: #eef5fd !important; }
html[data-theme="dark"] main.card .link { color: #7fb6ff !important; }
html[data-theme="dark"] .resend { background: #0a1018 !important; border-color: #263447 !important; }
/* Marca e aba ativa do cabeçalho da conta: regras antigas muito específicas, por isso o :root repetido. */
html[data-theme="dark"]:root:root:root body.account-page header .brand-studio { color: #eef5fd !important; }
html[data-theme="dark"]:root:root:root body.account-page header nav a.is-active { color: #eef5fd !important; }
/* ---------- Minha Conta (o escuro já existia) ---------- */
html[data-theme="dark"] body.account-page .logout-button { color: #ff9c9c !important; }html[data-theme="dark"] .plans-section .student-file-picker strong { color: #7fb6ff !important; }

/* ---------- Minha Conta: mesmo desenho do claro (sem caixas a mais), só as cores trocam ----------
   O :root repetido vence as regras do escuro antigo, que desenhavam caixas próprias. */
html[data-theme="dark"]:root:root:root body.account-hub .account-section,
html[data-theme="dark"]:root:root:root body.account-hub .summary,
html[data-theme="dark"]:root:root:root body.account-hub .summary-item,
html[data-theme="dark"]:root:root:root body.account-hub .account-nav,
html[data-theme="dark"]:root:root:root body.account-hub .account-nav-button,
html[data-theme="dark"]:root:root:root body.account-hub .input,
html[data-theme="dark"]:root:root:root body.account-hub .machine-line,
html[data-theme="dark"]:root:root:root body.account-hub .history-row,
html[data-theme="dark"]:root:root:root body.account-hub .guarantee-box,
html[data-theme="dark"]:root:root:root body.account-hub .account-small-button:not(.danger) { background: transparent !important; }
html[data-theme="dark"]:root:root:root body.account-hub .account-nav-button.active { background: #1a2a40 !important; color: #eef5fd !important; }
html[data-theme="dark"]:root:root:root body.account-hub .status-chip { background: #16352a !important; }
html[data-theme="dark"]:root:root:root body.account-hub .label { font-size: 11px !important; }
html[data-theme="dark"]:root:root:root body.account-hub .forgot-link { font-weight: 700 !important; }
/* ---------- Mesmo desenho do claro nas outras páginas ---------- */
/* Página inicial: no claro cada seção tem um degradê suave e a faixa de assinatura é uma caixa; o escuro antigo era chapado. */
html[data-theme="dark"] body.experience-v15 .hero,
html[data-theme="dark"] body.experience-v15 .xp-catalog-focus {
  background: radial-gradient(circle at 73% 44%, rgba(47, 117, 255, .16), transparent 31%), radial-gradient(circle at 90% 72%, rgba(53, 112, 255, .06), transparent 30%), linear-gradient(#0e1621, #0b1119) !important;
}
html[data-theme="dark"] body.experience-v15 .plans-section {
  background: radial-gradient(circle at 78% 12%, rgba(47, 115, 232, .10), transparent 28%), linear-gradient(#101925, #0b1119) !important;
}
html[data-theme="dark"] body.experience-v15 .conversion-dock {
  background: rgba(22, 33, 49, .96) !important;
  border-color: #2b3b50 !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .40) !important;
}
html[data-theme="dark"] body.experience-v15 .site-footer { background: #0b1119 !important; }

/* Ativação: no claro a coluna da esquerda tem fundo próprio e não tem borda. */
html[data-theme="dark"] .activation-shell .activation-context {
  background: linear-gradient(#0d141f, #0c121b) !important;
  border-color: rgba(255, 255, 255, .04) !important;
}

/* Cancelamento: no claro o botão é azul liso, não em degradê. */
html[data-theme="dark"] .cancellation-form-card .btn:not(.btn-danger) {
  background: #2f73e8 !important;
  border-color: #2f73e8 !important;
}
/* Cartões de plano e selo de garantia: no claro são caixas brancas sobre a seção; aqui, um tom acima do fundo. */
html[data-theme="dark"] body.experience-v15 .plan-card { background: #151f2e !important; border-color: #2b3b50 !important; }
html[data-theme="dark"] body.experience-v15 .sb-guarantee { background: #151f2e !important; border-color: #2b3b50 !important; }

/* Ativação: fundo da página igual ao das outras, para o cabeçalho e o rodapé se destacarem como no claro. */
html[data-theme="dark"] body.activation-page { background: #0b1119 !important; }/* Campos dentro dos cartões de plano: um tom abaixo do cartão, como no claro (campo levemente mais escuro que o cartão). */
html[data-theme="dark"] body.experience-v15 .plans-section input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] body.experience-v15 .plans-section .student-file-picker { background: #0c131d !important; }/* "Já tenho o código" e "Sem e-mail da faculdade?": mesmo contorno do cartão de preço. */
html[data-theme="dark"] body.experience-v15 .plans-section .student-details { border-color: #2b3b50 !important; }