/* ============================================================================
   RecycleWays — acessibilidade, tema escuro e acabamento "tec"
   (carregado depois do design.css)
   ========================================================================== */

/* ----------------------------------------------------------------------------
   TAMANHO DO TEXTO (menu de acessibilidade)
   ------------------------------------------------------------------------- */
html { font-size: 100%; }
html[data-texto="90"]  { font-size: 90%; }
html[data-texto="115"] { font-size: 115%; }
html[data-texto="130"] { font-size: 130%; }
body { font-size: .9375rem !important; }

/* ----------------------------------------------------------------------------
   FILTROS PARA DALTONISMO (aplicados ao conteúdo, não ao próprio menu)
   ------------------------------------------------------------------------- */
html[data-filtro="protanopia"]   body > *:not(.rw-a11y):not(.rw-a11y-botao):not(.rw-a11y-filtros) { filter: url(#rw-filtro-protanopia); }
html[data-filtro="deuteranopia"] body > *:not(.rw-a11y):not(.rw-a11y-botao):not(.rw-a11y-filtros) { filter: url(#rw-filtro-deuteranopia); }
html[data-filtro="tritanopia"]   body > *:not(.rw-a11y):not(.rw-a11y-botao):not(.rw-a11y-filtros) { filter: url(#rw-filtro-tritanopia); }
html[data-filtro="cinza"]        body > *:not(.rw-a11y):not(.rw-a11y-botao):not(.rw-a11y-filtros) { filter: grayscale(1) contrast(1.08); }
.rw-a11y-filtros { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----------------------------------------------------------------------------
   MOVIMENTO REDUZIDO (escolha do usuário)
   ------------------------------------------------------------------------- */
html[data-movimento="reduzido"] *, html[data-movimento="reduzido"] *::before, html[data-movimento="reduzido"] *::after {
  transition: none !important; animation: none !important; scroll-behavior: auto !important;
}

/* ----------------------------------------------------------------------------
   BOTÃO E PAINEL DE ACESSIBILIDADE
   ------------------------------------------------------------------------- */
.rw-a11y-botao {
  position: fixed; left: 16px; bottom: 16px; z-index: 1040; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-size: 1.25rem;
  background: var(--rw-verde-escuro); color: #a7f3d0; border: 1px solid rgba(52, 211, 153, .45);
  box-shadow: 0 6px 18px rgba(2, 26, 18, .35), 0 0 0 4px rgba(52, 211, 153, .08);
  transition: transform var(--rw-transicao), box-shadow var(--rw-transicao);
}
.rw-a11y-botao:hover { box-shadow: 0 8px 22px rgba(2, 26, 18, .45), 0 0 0 5px rgba(52, 211, 153, .16); }
@media (max-width: 768px) { .rw-a11y-botao { bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; width: 42px; height: 42px; } }

.rw-a11y {
  position: fixed; left: 16px; bottom: 72px; z-index: 1060; width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 140px); overflow-y: auto;
  background: var(--rw-superficie); color: var(--rw-texto); border: 1px solid var(--rw-borda);
  border-radius: 16px; box-shadow: var(--rw-sombra-menu); padding: 1rem 1.1rem 1.1rem;
}
@media (max-width: 768px) { .rw-a11y { bottom: calc(126px + env(safe-area-inset-bottom)); left: 12px; } }
.rw-a11y__topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.rw-a11y__topo h2 { display: flex !important; align-items: center; gap: .5rem; margin: 0 !important; font: 600 1.05rem 'Space Grotesk', 'Inter', sans-serif !important; color: var(--rw-titulo) !important; }
.rw-a11y__topo h2::before { display: none !important; }
.rw-a11y__topo h2 i { color: var(--rw-verde); }
.rw-a11y__grupo { border: 0; padding: .75rem 0; margin: 0; border-top: 1px solid var(--rw-borda); }
.rw-a11y__grupo legend { font: 600 .72rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--rw-texto-suave); padding: 0; margin-bottom: .6rem; float: left; width: 100%; }
.rw-a11y__grupo legend + * { clear: both; }
.rw-a11y__ajuda { margin: 0 0 .5rem; font-size: .8rem; color: var(--rw-texto-suave); clear: both; }
.rw-a11y__lista { display: grid; gap: .15rem; }
.rw-a11y__lista label, .rw-a11y__alternar { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.rw-a11y__lista label:hover, .rw-a11y__alternar:hover { background: var(--rw-superficie-2, #f1f5f4); }
.rw-a11y__lista small { color: var(--rw-texto-suave); }
.rw-a11y input[type="radio"], .rw-a11y input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--rw-verde); }

.rw-segmentado { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--rw-superficie-2, #f1f5f4); border: 1px solid var(--rw-borda); clear: both; }
.rw-segmentado label { position: relative; cursor: pointer; }
.rw-segmentado input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rw-segmentado span { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 36px; border-radius: 7px; font-weight: 600; font-size: .85rem; color: var(--rw-texto-suave); }
.rw-segmentado input:checked + span { background: var(--rw-superficie); color: var(--rw-titulo); box-shadow: 0 1px 3px rgba(15, 23, 42, .12), inset 0 0 0 1px rgba(52, 211, 153, .45); }
.rw-segmentado input:focus-visible + span { outline: 2px solid var(--rw-verde); outline-offset: 1px; }

/* ----------------------------------------------------------------------------
   ACABAMENTO "TEC" (sutil, sem animação)
   ------------------------------------------------------------------------- */
:root {
  --rw-fonte-titulo: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --rw-fonte-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --rw-superficie-2: #f1f5f3;
  --rw-grade: rgba(110, 231, 183, .07);
}

/* Faixa da marca com grade fina e brilho */
:root {
  --rw-faixa:
    linear-gradient(var(--rw-grade) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--rw-grade) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(900px 260px at 85% -40px, rgba(16, 185, 129, .30), transparent 65%),
    radial-gradient(600px 220px at 0% 0%, rgba(52, 211, 153, .12), transparent 70%),
    linear-gradient(180deg, #073326 0%, #062c21 100%);
}
section[class*="-section"]:not(.auth-section) {
  background:
    linear-gradient(var(--rw-grade) 1px, transparent 1px) 0 0 / 32px 32px repeat-x,
    linear-gradient(90deg, var(--rw-grade) 1px, transparent 1px) 0 0 / 32px var(--rw-faixa-altura) repeat-x,
    radial-gradient(900px 260px at 85% -40px, rgba(16, 185, 129, .30), transparent 65%) top / 100% var(--rw-faixa-altura) no-repeat,
    linear-gradient(180deg, #073326 0%, #062c21 100%) top / 100% var(--rw-faixa-altura) no-repeat,
    var(--rw-fundo) !important;
}
/* a grade horizontal só dentro da faixa */
section[class*="-section"]:not(.auth-section) { background-size: 32px 32px, 32px var(--rw-faixa-altura), 100% var(--rw-faixa-altura), 100% var(--rw-faixa-altura), auto !important; }
section[class*="-section"]:not(.auth-section) { background-repeat: repeat-x, repeat-x, no-repeat, no-repeat, repeat !important; }

/* Títulos com fonte geométrica */
section[class*="-section"]:not(.auth-section) h1, .rw-page h1,
section[class*="-section"]:not(.auth-section) h2, .rw-page h2,
.rw-card__title, .profile-info h2, .auth-header h2, .rw-empty h2 {
  font-family: var(--rw-fonte-titulo) !important; letter-spacing: -0.02em !important;
}
.rw-topbar .logo-brand, .rw-gaveta__topo .logo-brand { font-family: var(--rw-fonte-titulo) !important; font-weight: 700 !important; letter-spacing: .02em; }

/* Rótulos e números em fonte técnica */
.rw-eyebrow, .rw-menu__titulo, .badge-count, .rw-contador,
section[class*="-section"]:not(.auth-section) table thead th, .rw-table thead th {
  font-family: var(--rw-fonte-mono) !important;
}
.rw-table .num, .progress-info, .stat-value, [class*="valor"] { font-variant-numeric: tabular-nums; }

/* Borda superior com brilho nos cartões principais */
section[class*="-section"]:not(.auth-section) [class$="-content"], .profile-card, .rw-card {
  position: relative;
}
section[class*="-section"]:not(.auth-section) [class$="-content"]::before, .profile-card::before, .rw-card::before {
  content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .55), transparent);
}
.rw-card--flush::before { left: 24px; right: 24px; }

/* Botão principal com leve volume */
.btn-primary, .btn-new, .btn-success {
  background: linear-gradient(180deg, #0aa673 0%, #059669 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(6, 44, 33, .25) !important;
}
.btn-primary:hover, .btn-new:hover, .btn-success:hover { background: linear-gradient(180deg, #059669 0%, #047857 100%) !important; }
:focus-visible { outline-color: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }

/* Item ativo do menu com sublinhado luminoso */
.rw-nav__link[aria-current="page"] { position: relative; }
.rw-nav__link[aria-current="page"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #10b981, #6ee7b7);
}

/* ----------------------------------------------------------------------------
   CONTRASTE: títulos que ficam sobre a faixa escura (fora dos cartões)
   ------------------------------------------------------------------------- */
section[class*="-section"]:not(.auth-section) > .container > [class$="-header"] h1,
section[class*="-section"]:not(.auth-section) > .container > h1,
section[class*="-section"]:not(.auth-section) > .container > [class$="-header"] h2 { color: #ffffff !important; }
section[class*="-section"]:not(.auth-section) > .container > [class$="-header"] p { color: rgba(236, 253, 245, .8) !important; }

/* ============================================================================
   TEMA ESCURO — preto esverdeado neutro (sem azul), contraste alto
   ========================================================================== */
html[data-tema="escuro"] {
  color-scheme: dark;
  --rw-fundo: #0a0f0d;
  --rw-superficie: #111815;
  --rw-superficie-2: #18211d;
  --rw-borda: #25302b;
  --rw-borda-forte: #34433b;
  --rw-texto: #d9e3de;
  --rw-texto-suave: #9aaba2;
  --rw-titulo: #f3f8f5;
  --rw-verde: #34d399;
  --rw-verde-claro: #6ee7b7;
  --rw-verde-fundo: rgba(52, 211, 153, .12);
  --rw-ambar-fundo: rgba(245, 158, 11, .14);
  --rw-perigo: #f87171;
  --rw-perigo-fundo: rgba(248, 113, 113, .12);
  --rw-sombra: 0 1px 2px rgba(0, 0, 0, .5);
  --rw-sombra-menu: 0 16px 40px rgba(0, 0, 0, .6);
  --rw-grade: rgba(110, 231, 183, .05);

  /* variáveis antigas do style.css */
  --color-bg-light: #0a0f0d;
  --color-white: #111815;
  --color-slate-200: #25302b;
  --color-text-main: #d9e3de;
  --color-text-headings: #f3f8f5;
  --color-text: #d9e3de;
}

html[data-tema="escuro"] body { background: var(--rw-fundo) !important; color: var(--rw-texto) !important; }

/* Barra superior, menus, gaveta, barra inferior */
html[data-tema="escuro"] .rw-topbar { background: rgba(10, 15, 13, .92); border-bottom-color: var(--rw-borda); }
html[data-tema="escuro"] .rw-topbar .logo-brand, html[data-tema="escuro"] .rw-gaveta__topo .logo-brand { color: #f3f8f5; }
html[data-tema="escuro"] .rw-nav__link, html[data-tema="escuro"] .rw-icone-botao { color: var(--rw-texto); }
html[data-tema="escuro"] .rw-nav__link:hover, html[data-tema="escuro"] .rw-icone-botao:hover { background: var(--rw-superficie-2); color: var(--rw-titulo); }
html[data-tema="escuro"] .rw-nav__link[aria-current="page"] { background: rgba(52, 211, 153, .10); color: #6ee7b7; }
html[data-tema="escuro"] .rw-conta { background: var(--rw-superficie); border-color: var(--rw-borda); color: var(--rw-titulo); }
html[data-tema="escuro"] .rw-avatar { background: #0f3d2e; color: #a7f3d0; box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .35); }
html[data-tema="escuro"] .rw-menu, html[data-tema="escuro"] .rw-gaveta__painel { background: var(--rw-superficie); border-color: var(--rw-borda); }
html[data-tema="escuro"] .rw-menu__item { color: var(--rw-texto); }
html[data-tema="escuro"] .rw-menu__item:hover, html[data-tema="escuro"] .rw-menu__item[aria-current="page"] { background: var(--rw-superficie-2); color: var(--rw-titulo); }
html[data-tema="escuro"] .rw-gaveta__usuario { background: var(--rw-superficie-2); }
html[data-tema="escuro"] .rw-contador--flutuante, html[data-tema="escuro"] .rw-barra-inferior__item .rw-contador { border-color: var(--rw-fundo); }
html[data-tema="escuro"] .rw-barra-inferior { background: rgba(10, 15, 13, .96); border-top-color: var(--rw-borda); box-shadow: 0 -6px 20px rgba(0, 0, 0, .5); }
html[data-tema="escuro"] .rw-barra-inferior__item { color: var(--rw-texto-suave); }
html[data-tema="escuro"] .rw-barra-inferior__item[aria-current="page"] { color: #6ee7b7; }

/* Faixa da marca: mais escura no tema escuro */
html[data-tema="escuro"] section[class*="-section"]:not(.auth-section) {
  background:
    linear-gradient(var(--rw-grade) 1px, transparent 1px),
    linear-gradient(90deg, var(--rw-grade) 1px, transparent 1px),
    radial-gradient(900px 260px at 85% -40px, rgba(16, 185, 129, .22), transparent 65%),
    linear-gradient(180deg, #06231a 0%, #0a0f0d 100%),
    var(--rw-fundo) !important;
  background-size: 32px 32px, 32px var(--rw-faixa-altura), 100% var(--rw-faixa-altura), 100% var(--rw-faixa-altura), auto !important;
  background-repeat: repeat-x, repeat-x, no-repeat, no-repeat, repeat !important;
}
html[data-tema="escuro"] .rw-page::before {
  background:
    linear-gradient(var(--rw-grade) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--rw-grade) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(900px 260px at 85% -40px, rgba(16, 185, 129, .22), transparent 65%),
    linear-gradient(180deg, #06231a 0%, #0a0f0d 100%);
}

/* Cartões e blocos (inclui classes antigas de cada tela) */
html[data-tema="escuro"] :is([class$="-content"], [class$="-card"], [class*="-card "], [class$="-box"], [class$="-panel"],
  [class$="-wrapper"], [class$="-container"]:not(.rw-topbar__inner):not(.container),
  .rw-card, .rw-a11y, .profile-card, .auth-card, .swal2-popup, .modal, .modal-content, .notif-dispositivo,
  [class*="filtros"], [class$="-form"], .lp-tile, .lp-projeto, [class*="lp-"][class*="card"]) {
  background-color: var(--rw-superficie) !important;
  border-color: var(--rw-borda) !important;
  color: var(--rw-texto) !important;
}
html[data-tema="escuro"] section[class*="-section"]:not(.auth-section) [class$="-content"],
html[data-tema="escuro"] .profile-card, html[data-tema="escuro"] .rw-card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px rgba(0, 0, 0, .45) !important;
}

/* Fundos claros escritos direto no HTML (style="background:#f...") */
html[data-tema="escuro"] [style*="background:#f"], html[data-tema="escuro"] [style*="background: #f"],
html[data-tema="escuro"] [style*="background-color:#f"], html[data-tema="escuro"] [style*="background-color: #f"],
html[data-tema="escuro"] [style*="background:#e"], html[data-tema="escuro"] [style*="background: #e"],
html[data-tema="escuro"] [style*="background: white"], html[data-tema="escuro"] [style*="background:white"] {
  background: var(--rw-superficie-2) !important; color: var(--rw-texto) !important; border-color: var(--rw-borda) !important;
}

/* Textos */
html[data-tema="escuro"] :is(h1, h2, h3, h4, h5, h6, strong, b, legend, th) { color: var(--rw-titulo) !important; }
html[data-tema="escuro"] :is(p, li, td, dd, dt, label, small, figcaption, blockquote, .rw-muted) { color: var(--rw-texto) !important; }
html[data-tema="escuro"] :is(small, .rw-muted, .form-help, [class*="subtitulo"], [class*="descricao"]) { color: var(--rw-texto-suave) !important; }
html[data-tema="escuro"] a:not(.btn):not(.rw-menu__item):not(.rw-nav__link):not(.rw-barra-inferior__item):not(.logo-brand):not(.rw-gaveta__usuario) { color: #6ee7b7; }
html[data-tema="escuro"] hr { border-color: var(--rw-borda); }

/* Tabelas */
html[data-tema="escuro"] table, html[data-tema="escuro"] tbody, html[data-tema="escuro"] tr { background: transparent !important; }
html[data-tema="escuro"] section[class*="-section"]:not(.auth-section) table thead th,
html[data-tema="escuro"] section[class*="-section"]:not(.auth-section) table thead,
html[data-tema="escuro"] section[class*="-section"]:not(.auth-section) table thead tr,
html[data-tema="escuro"] .rw-table thead, html[data-tema="escuro"] .rw-table thead th,
html[data-tema="escuro"] .notif-grupo th, html[data-tema="escuro"] .notif-tabela thead th {
  background: #0e1512 !important; color: #a7c4b6 !important; border-color: var(--rw-borda) !important;
}
html[data-tema="escuro"] td, html[data-tema="escuro"] th { border-color: var(--rw-borda) !important; }
html[data-tema="escuro"] tbody tr:hover { background: rgba(52, 211, 153, .04) !important; }
html[data-tema="escuro"] .rw-table-wrap, html[data-tema="escuro"] .notif-tabela-wrap, html[data-tema="escuro"] [class$="-table-wrapper"] { background: var(--rw-superficie) !important; border-color: var(--rw-borda) !important; }

/* Formulários */
html[data-tema="escuro"] :is(.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="number"],
  input[type="date"], input[type="search"], input[type="tel"], input[type="file"], select, textarea) {
  background: #0d1411 !important; color: var(--rw-titulo) !important; border-color: var(--rw-borda-forte) !important;
}
html[data-tema="escuro"] ::placeholder { color: #6f8279 !important; }
html[data-tema="escuro"] .form-control[readonly], html[data-tema="escuro"] .form-control:disabled { background: #151d19 !important; color: var(--rw-texto-suave) !important; }

/* Botões */
html[data-tema="escuro"] .btn { background: var(--rw-superficie-2) !important; border-color: var(--rw-borda-forte) !important; color: var(--rw-titulo) !important; box-shadow: none !important; }
html[data-tema="escuro"] .btn:hover { background: #202b26 !important; border-color: #4a5c53 !important; }
html[data-tema="escuro"] .btn-primary, html[data-tema="escuro"] .btn-new, html[data-tema="escuro"] .btn-success {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%) !important; border-color: #10b981 !important; color: #032015 !important;
}
html[data-tema="escuro"] .btn-danger, html[data-tema="escuro"] .btn-reject, html[data-tema="escuro"] .btn-rejeitar {
  background: rgba(248, 113, 113, .08) !important; border-color: rgba(248, 113, 113, .35) !important; color: #fca5a5 !important;
}

/* Selos */
html[data-tema="escuro"] .rw-badge--ok, html[data-tema="escuro"] .badge-count { background: rgba(52, 211, 153, .12) !important; color: #6ee7b7 !important; border-color: rgba(52, 211, 153, .3) !important; }
html[data-tema="escuro"] .rw-badge--warn { background: rgba(245, 158, 11, .14); color: #fcd34d; }
html[data-tema="escuro"] .rw-badge--muted { background: var(--rw-superficie-2); color: var(--rw-texto-suave); }
html[data-tema="escuro"] .rw-badge--erro { background: rgba(248, 113, 113, .12); color: #fca5a5; }
html[data-tema="escuro"] .rw-code { background: #0d1411; border-color: var(--rw-borda); color: var(--rw-texto); }

/* Home e telas públicas */
html[data-tema="escuro"] :is(.lp-secao, .lp-numeros, [class^="lp-"][class*="secao"]) { background-color: var(--rw-fundo) !important; }
html[data-tema="escuro"] .lp-hero { background-color: #06231a !important; }
html[data-tema="escuro"] .auth-section { background-color: #06231a !important; }
html[data-tema="escuro"] footer { background: #070b09 !important; border-top-color: var(--rw-borda) !important; }

/* SweetAlert */
html[data-tema="escuro"] .swal2-popup { background: var(--rw-superficie) !important; color: var(--rw-texto) !important; }
html[data-tema="escuro"] .swal2-title { color: var(--rw-titulo) !important; }
html[data-tema="escuro"] .swal2-html-container { color: var(--rw-texto) !important; }

/* Imagens um pouco mais suaves no escuro (não ofuscam) */
html[data-tema="escuro"] img:not([src$=".svg"]) { filter: brightness(.92); }

/* Ajustes do tema escuro em blocos antigos */
html[data-tema="escuro"] section[class*="-section"] [class$="-actions"],
html[data-tema="escuro"] section[class*="-section"] [class$="-toolbar"],
html[data-tema="escuro"] section[class*="-section"] [class$="-tabs"] { background: var(--rw-superficie-2) !important; border-color: var(--rw-borda) !important; }
html[data-tema="escuro"] section[class*="-section"] [class$="-hero"] { border-bottom-color: var(--rw-borda) !important; }
html[data-tema="escuro"] section[class*="-section"]:not(.auth-section) table tbody td,
html[data-tema="escuro"] .rw-table tbody td { border-bottom-color: var(--rw-borda) !important; color: var(--rw-texto) !important; }
html[data-tema="escuro"] section[class*="-section"]:not(.auth-section) table tbody tr:hover,
html[data-tema="escuro"] .rw-table tbody tr:hover { background: rgba(52, 211, 153, .04) !important; }
html[data-tema="escuro"] .lp-aviso { background: rgba(245, 158, 11, .12) !important; color: #fcd34d !important; border-color: rgba(245, 158, 11, .35) !important; }
html[data-tema="escuro"] [class*="pendente"]:not(td):not(tr) { color: inherit; }
html[data-tema="escuro"] .profile-header { border-bottom-color: var(--rw-borda) !important; }
html[data-tema="escuro"] .profile-avatar { background: rgba(52, 211, 153, .12) !important; }
html[data-tema="escuro"] .turma-opcao, html[data-tema="escuro"] .convite-tipo { background: var(--rw-superficie-2) !important; border-color: var(--rw-borda) !important; }
html[data-tema="escuro"] .turma-opcao:has(input:checked), html[data-tema="escuro"] .convite-tipo:has(input:checked) { background: rgba(52, 211, 153, .10) !important; border-color: #34d399 !important; }
html[data-tema="escuro"] .lp-hero .btn-primary, html[data-tema="escuro"] .rw-page > .rw-page-header .btn-primary { color: #032015 !important; }

/* ----------------------------------------------------------------------------
   CONVITE PARA INSTALAR O APP
   ------------------------------------------------------------------------- */
.rw-instalar {
  position: fixed; left: 12px; right: 12px; z-index: 1045; bottom: calc(76px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .75rem;
  padding: .75rem .6rem .75rem .75rem; border-radius: 16px;
  background: linear-gradient(135deg, #0b3f2f 0%, #062c21 100%); color: #ecfdf5;
  border: 1px solid rgba(110, 231, 183, .28); box-shadow: 0 12px 32px rgba(2, 26, 18, .45);
}
@media (min-width: 769px) { .rw-instalar { left: auto; right: 24px; bottom: 24px; width: 420px; } }
.rw-instalar__icone { border-radius: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.rw-instalar__texto { display: grid; gap: .1rem; min-width: 0; }
.rw-instalar__texto strong { font: 600 .92rem/1.25 var(--rw-fonte-titulo); color: #fff; }
.rw-instalar__texto span { font-size: .78rem; line-height: 1.35; color: rgba(236, 253, 245, .78); }
.rw-instalar .btn-primary { background: #34d399 !important; border-color: #34d399 !important; color: #032015 !important; }
.rw-instalar__fechar { color: rgba(236, 253, 245, .8) !important; width: 34px; height: 34px; }
.rw-instalar__fechar:hover { background: rgba(255, 255, 255, .08) !important; }

/* Folha com o passo a passo */
.rw-folha { position: fixed; inset: 0; z-index: 1200; display: grid; align-items: end; }
.rw-folha[hidden] { display: none !important; }
.rw-folha__fundo { position: absolute; inset: 0; background: rgba(5, 10, 8, .55); }
.rw-folha__painel {
  position: relative; width: min(520px, 100%); margin: 0 auto; max-height: 90vh; overflow-y: auto;
  background: var(--rw-superficie); color: var(--rw-texto); border: 1px solid var(--rw-borda);
  border-radius: 20px 20px 0 0; padding: .6rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .3);
}
@media (min-width: 769px) { .rw-folha { align-items: center; } .rw-folha__painel { border-radius: 20px; padding-bottom: 1.5rem; } }
.rw-folha__alca { width: 40px; height: 4px; border-radius: 4px; background: var(--rw-borda-forte); margin: 0 auto .9rem; }
.rw-folha__cabecalho { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.rw-folha__cabecalho img { border-radius: 14px; flex-shrink: 0; }
.rw-folha__cabecalho h2 { margin: 0 !important; font: 600 1.15rem/1.3 var(--rw-fonte-titulo) !important; color: var(--rw-titulo) !important; display: block !important; }
.rw-folha__cabecalho h2::before { display: none !important; }
.rw-folha__cabecalho p { margin: .2rem 0 0; font-size: .86rem; color: var(--rw-texto-suave); }
.rw-passos { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .6rem; }
.rw-passos[hidden] { display: none !important; }
.rw-passos li { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem .85rem; border-radius: 12px; background: var(--rw-superficie-2); font-size: .92rem; line-height: 1.45; }
.rw-passos li i { color: var(--rw-verde); }
.rw-passos__n { display: inline-grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--rw-verde-escuro); color: #a7f3d0; font: 600 .8rem var(--rw-fonte-mono); }
.rw-passos__aviso { padding: .85rem 1rem; border-radius: 12px; background: var(--rw-ambar-fundo, #fffbeb); font-size: .9rem; margin: 0 0 1.1rem; }

/* Faixa no rodapé */
.footer-app {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; max-width: var(--rw-largura); margin: 1.5rem auto;
  padding: 1rem 1.25rem; border-radius: 14px; border: 1px solid rgba(110, 231, 183, .22);
  background: rgba(16, 185, 129, .08);
}
.footer-app[hidden] { display: none !important; }
.footer-app img { border-radius: 12px; }
.footer-app div { display: grid; flex: 1 1 220px; }
.footer-app strong { color: #fff; font-family: var(--rw-fonte-titulo); }
.footer-app span { font-size: .85rem; opacity: .8; }

html[data-tema="escuro"] .rw-passos li { background: var(--rw-superficie-2) !important; }
/* Passos: texto corrido (o número fica à esquerda, fora do fluxo) */
.rw-passos li { display: block !important; position: relative; padding-left: 3.1rem !important; }
.rw-passos__n { position: absolute; left: .8rem; top: .7rem; }

/* Indicadores dos projetos antigos */
.projeto-legado-indicadores { margin: 2rem 0; }
.rw-indicadores { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.rw-indicador { display: grid; gap: .3rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--rw-borda); background: var(--rw-superficie-2); }
.rw-indicador span { font: 500 .72rem/1.3 var(--rw-fonte-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--rw-texto-suave); }
.rw-indicador strong { font: 600 1.25rem/1.2 var(--rw-fonte-titulo); color: var(--rw-titulo); font-variant-numeric: tabular-nums; }
.rw-detalhes { margin-top: 1rem; border: 1px solid var(--rw-borda); border-radius: 12px; padding: .75rem 1rem; background: var(--rw-superficie); }
.rw-detalhes summary { cursor: pointer; font-weight: 600; color: var(--rw-titulo); }
.rw-detalhes div { margin-top: .75rem; line-height: 1.6; }

/* Logo "RECYCLEWAYS": fonte simples e legível */
.logo-brand, .rw-topbar .logo-brand, .rw-gaveta__topo .logo-brand {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
