/* Butina v3 — visual moderno (cartões suaves, sem bordas 3D), modo claro e escuro.
   Tema: html[data-tema="claro" | "escuro"]; sem atributo = segue o celular. */
:root {
  --bg: #F3F4EF; --surface: #FFFFFF; --surface-2: #ECEEE7; --surface-3: #E2E5DC;
  --text: #17201B; --text-2: #67716B; --text-3: #9AA39D; --line: #E2E5DD;
  --accent: #1E7B4F; --accent-2: #2C9C66; --accent-soft: #E1F1E7; --accent-text: #FFFFFF;
  --gold: #D9932E; --gold-soft: #FBEFD9; --clay: #C46F35; --clay-soft: #F8E6D8;
  --blue: #3478C2; --blue-soft: #E1ECF8; --purple: #7657C2; --purple-soft: #ECE6F8;
  --red: #D2493C; --red-soft: #FBE4E1;
  --hero-1: #0F3B29; --hero-2: #1E7B4F;
  --sombra: 0 1px 2px rgba(18, 34, 26, .04), 0 10px 28px rgba(18, 34, 26, .07);
  --raio: 22px; --abas-h: 74px;
  --topo-seg: env(safe-area-inset-top, 0px); --baixo-seg: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --bg: #0C120F; --surface: #141C18; --surface-2: #1B2520; --surface-3: #24302A;
    --text: #E9F0EB; --text-2: #9AA8A0; --text-3: #66736B; --line: #24302A;
    --accent: #3DBB7D; --accent-2: #5CD597; --accent-soft: #163626; --accent-text: #08130D;
    --gold: #F0B04C; --gold-soft: #3A2C14; --clay: #E08C51; --clay-soft: #3A2417;
    --blue: #6AA9EE; --blue-soft: #16273A; --purple: #A68BEE; --purple-soft: #261E3B;
    --red: #F07466; --red-soft: #3A1B17;
    --hero-1: #0F2E21; --hero-2: #17573A;
    --sombra: none; color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
  --bg: #0C120F; --surface: #141C18; --surface-2: #1B2520; --surface-3: #24302A;
  --text: #E9F0EB; --text-2: #9AA8A0; --text-3: #66736B; --line: #24302A;
  --accent: #3DBB7D; --accent-2: #5CD597; --accent-soft: #163626; --accent-text: #08130D;
  --gold: #F0B04C; --gold-soft: #3A2C14; --clay: #E08C51; --clay-soft: #3A2417;
  --blue: #6AA9EE; --blue-soft: #16273A; --purple: #A68BEE; --purple-soft: #261E3B;
  --red: #F07466; --red-soft: #3A1B17;
  --hero-1: #0F2E21; --hero-2: #17573A;
  --sombra: none; color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100vh; transition: background .2s; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); font-weight: 700; }
[hidden] { display: none !important; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulsar { 50% { transform: scale(.94); opacity: .7; } }
@keyframes estalo { 0% { transform: scale(.7); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--abas-h) + var(--baixo-seg) + 28px); }
#app.sem-abas { padding-bottom: 28px; }
.conteudo { padding: 8px 18px 18px; animation: entrar .28s ease-out; }
.carregando { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--text-2); font-weight: 700; }
.carregando img { border-radius: 24px; animation: pulsar 1.2s ease-in-out infinite; }

/* ---------- topo ---------- */
.topo { padding: calc(14px + var(--topo-seg)) 18px 8px; display: flex; align-items: center; gap: 12px; }
.topo h1 { font-size: 28px; font-weight: 800; margin: 0; flex: 1; letter-spacing: -.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo.pequeno h1 { font-size: 19px; letter-spacing: -.3px; }
.topo .logo { height: 30px; width: auto; }
:root[data-tema="escuro"] .topo .logo { filter: brightness(0) invert(1); opacity: .92; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .topo .logo { filter: brightness(0) invert(1); opacity: .92; } }
.topo-espaco { flex: 1; }
.topo-btn { background: var(--surface); border: 0; box-shadow: var(--sombra); color: var(--text); width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; text-decoration: none; }
.topo-btn svg { width: 21px; height: 21px; }
.topo-btn:active { transform: scale(.95); }
.selo-dias { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 15px; color: var(--accent); background: var(--accent-soft); padding: 7px 12px 7px 9px; border-radius: 99px; }
.selo-dias svg { width: 18px; height: 18px; stroke-width: 2.4; }
.selo-dias.apagado { color: var(--text-3); background: var(--surface-2); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-weight: 800; color: var(--accent); font-size: 17px; flex: none; overflow: hidden; text-decoration: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.grande { width: 108px; height: 108px; font-size: 40px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent); }

.secao { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 12px; }
.secao h2 { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.secao a { font-size: 14px; text-decoration: none; }
.titulo-secao { font-size: 19px; font-weight: 800; margin: 26px 2px 12px; letter-spacing: -.3px; }
.titulo-secao:first-child { margin-top: 6px; }

/* ---------- superfícies ---------- */
.cartao { background: var(--surface); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px; margin-bottom: 12px; }
:root[data-tema="escuro"] .cartao, :root[data-tema="escuro"] .lista, :root[data-tema="escuro"] .atalho, :root[data-tema="escuro"] .produto, :root[data-tema="escuro"] details.modulo { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .cartao, :root:not([data-tema="claro"]) .lista, :root:not([data-tema="claro"]) .atalho, :root:not([data-tema="claro"]) .produto, :root:not([data-tema="claro"]) details.modulo { border: 1px solid var(--line); } }
.cartao h2 { font-size: 19px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.3px; }
.cartao h3 { font-size: 17px; margin: 0 0 4px; font-weight: 800; }
.cartao p { margin: 0 0 8px; color: var(--text-2); }
.cartao p:last-child { margin-bottom: 0; }
a.cartao { display: block; text-decoration: none; color: inherit; }
a.cartao:active, .atalho:active, .produto:active { transform: scale(.985); }
.rotulo { font-size: 12px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--text-3); }

/* herói "Hoje" */
.heroi { position: relative; overflow: hidden; border-radius: 28px; padding: 22px 20px 20px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(140, 220, 160, .28), transparent 55%), linear-gradient(150deg, var(--hero-1), var(--hero-2)); margin-bottom: 14px; }
.heroi .h-ola { font-size: 14px; font-weight: 700; opacity: .8; }
.heroi h2 { font-size: 26px; line-height: 1.12; margin: 4px 0 6px; font-weight: 800; letter-spacing: -.5px; max-width: 62%; }
.heroi .h-sub { font-size: 14.5px; opacity: .85; margin: 0 0 16px; max-width: 60%; }
.heroi .masc { position: absolute; right: -6px; top: 18px; width: 42%; max-width: 200px; animation: pulo 3.4s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); }
.heroi .contas { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; max-width: 64%; }
.heroi .conta { background: rgba(255,255,255,.12); border-radius: 12px; padding: 7px 11px; font-size: 13px; font-weight: 700; }
.heroi .conta b { font-size: 16px; font-weight: 800; margin-right: 3px; }
.heroi .btn { background: #fff; color: var(--hero-1); position: relative; z-index: 1; }
.heroi.feito { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 214, 120, .25), transparent 55%), linear-gradient(150deg, var(--hero-1), var(--hero-2)); }

/* blocos de ícone */
.bloco { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; font-size: 22px; }
.bloco svg { width: 23px; height: 23px; }
.b-verde { background: var(--accent-soft); color: var(--accent); }
.b-azul { background: var(--blue-soft); color: var(--blue); }
.b-roxo { background: var(--purple-soft); color: var(--purple); }
.b-couro { background: var(--clay-soft); color: var(--clay); }
.b-ouro { background: var(--gold-soft); color: var(--gold); }
.b-vermelho { background: var(--red-soft); color: var(--red); }

.grade-atalhos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.atalho { background: var(--surface); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 132px; text-decoration: none; color: var(--text); }
.atalho strong { font-size: 16px; font-weight: 800; line-height: 1.2; }
.atalho span.s { font-size: 13px; color: var(--text-2); line-height: 1.3; font-weight: 500; }

.lista { background: var(--surface); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; margin-bottom: 12px; }
.item { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.item:last-child { border-bottom: 0; }
.item:active { background: var(--surface-2); }
.item .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.item .ic svg { width: 21px; height: 21px; }
.item .txt { flex: 1; min-width: 0; }
.item .txt strong { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.item .txt span { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.item .seta { color: var(--text-3); flex: none; }
.item .seta svg { width: 20px; height: 20px; }
.item .mini { width: 50px; height: 66px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
.item .num { font-size: 11.5px; font-weight: 800; color: var(--clay); text-transform: uppercase; letter-spacing: .4px; }
.item.feito .txt strong { color: var(--text-2); }
.selo-feito { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; flex: none; font-size: 14px; }
.ic-verde { background: var(--accent-soft); color: var(--accent); }
.ic-couro { background: var(--clay-soft); color: var(--clay); }
.ic-grama { background: var(--accent-soft); color: var(--accent); }
.ic-marrom { background: var(--purple-soft); color: var(--purple); }
.ic-azul { background: var(--blue-soft); color: var(--blue); }

/* baralhos */
.baralho { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; margin-bottom: 12px; text-decoration: none; color: var(--text); }
:root[data-tema="escuro"] .baralho { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .baralho { border: 1px solid var(--line); } }
.baralho .bloco { width: 54px; height: 54px; border-radius: 17px; font-size: 26px; }
.baralho .b-txt { flex: 1; min-width: 0; }
.baralho strong { display: block; font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.baralho .b-info { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.baralho.off { opacity: .55; }
.barra-tripla { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-3); margin-top: 9px; }
.barra-tripla i { display: block; height: 100%; }
.barra-tripla .dom { background: var(--accent); }
.barra-tripla .apr { background: var(--gold); }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-top: 8px; }
.legenda span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: var(--surface-3); }
.legenda .l-dom::before { background: var(--accent); } .legenda .l-apr::before { background: var(--gold); }

/* números grandes */
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numero { background: var(--surface); border-radius: 18px; box-shadow: var(--sombra); padding: 14px 12px; }
:root[data-tema="escuro"] .numero { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .numero { border: 1px solid var(--line); } }
.numero b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.numero span { font-size: 12.5px; color: var(--text-2); font-weight: 600; line-height: 1.25; display: block; }

/* anel de progresso */
.anel-box { display: flex; align-items: center; gap: 16px; }
.anel { position: relative; width: 92px; height: 92px; flex: none; }
.anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anel .fundo { stroke: var(--surface-3); }
.anel .frente { stroke: var(--accent); transition: stroke-dashoffset .6s ease; }
.anel b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 21px; font-weight: 800; }

/* lavoura (dias estudados) */
.lavoura { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 15px); grid-auto-columns: 15px; gap: 4px; overflow-x: auto; padding: 4px 0; justify-content: start; }
.lavoura i { width: 15px; height: 15px; border-radius: 4px; background: var(--surface-3); display: block; }
.lavoura i.n1 { background: color-mix(in srgb, var(--accent) 35%, var(--surface-3)); }
.lavoura i.n2 { background: color-mix(in srgb, var(--accent) 65%, var(--surface-3)); }
.lavoura i.n3 { background: var(--accent); }
.lavoura i.vazio { background: transparent; }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.semana div { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.semana i { display: grid; place-items: center; width: 34px; height: 34px; margin: 6px auto 0; border-radius: 12px; background: var(--surface-2); font-style: normal; color: var(--accent-text); }
.semana i svg { width: 19px; height: 19px; stroke-width: 2.4; }
.semana .on i { background: var(--accent); }
.semana .hoje { color: var(--accent); }

/* ---------- sessão de estudo ---------- */
.estudo { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(12px + var(--topo-seg)) 18px calc(16px + var(--baixo-seg)); }
.estudo-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.estudo-topo .prog { flex: 1; height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.estudo-topo .prog i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.estudo-topo .cont { font-size: 13px; font-weight: 700; color: var(--text-2); min-width: 46px; text-align: right; }
.flash { flex: 1; display: flex; flex-direction: column; perspective: 1400px; }
.flash-in { flex: 1; position: relative; transition: transform .45s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; min-height: 360px; }
.flash.virado .flash-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; background: var(--surface); border-radius: 28px; box-shadow: var(--sombra); padding: 24px 20px; display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: auto; }
:root[data-tema="escuro"] .face { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .face { border: 1px solid var(--line); } }
.face.verso { transform: rotateY(180deg); }
.face .f-deck { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.face .f-txt { font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -.2px; margin: auto 0; text-align: center; }
.face .f-p { text-align: center; color: var(--text-2); font-weight: 600; font-size: 14.5px; margin-top: 14px; }
.face .f-resp { font-size: 22px; font-weight: 800; color: var(--accent); text-align: center; line-height: 1.3; margin: 8px 0 12px; }
.face .f-perg { font-size: 14.5px; color: var(--text-2); text-align: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.face .f-extra { background: var(--gold-soft); color: var(--text); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; margin-top: 4px; }
.face .f-foto { border-radius: 16px; max-height: 220px; object-fit: contain; margin: 0 auto 12px; }
.face .f-mapa { margin-top: auto; padding-top: 14px; text-align: center; }
.opcoes { display: grid; gap: 10px; margin-top: auto; }
.opcao { text-align: left; background: var(--surface-2); border: 2px solid transparent; border-radius: 16px; padding: 14px 16px; font-weight: 600; font-size: 15.5px; display: flex; gap: 10px; align-items: center; }
.opcao b { width: 28px; height: 28px; border-radius: 9px; background: var(--surface); display: grid; place-items: center; font-size: 13px; flex: none; color: var(--text-2); }
.opcao.certa { background: var(--accent-soft); border-color: var(--accent); }
.opcao.certa b { background: var(--accent); color: var(--accent-text); }
.opcao.errada { background: var(--red-soft); border-color: var(--red); }
.opcao.errada b { background: var(--red); color: #fff; }
.opcoes.respondido .opcao { pointer-events: none; }
.notas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.nota { border: 0; border-radius: 18px; padding: 12px 6px; font-weight: 800; font-size: 14.5px; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.2; }
.nota small { font-weight: 600; font-size: 12px; opacity: .75; }
.nota:active { transform: scale(.96); }
.n-errei { background: var(--red-soft); color: var(--red); }
.n-lembrei { background: var(--accent-soft); color: var(--accent); }
.n-facil { background: var(--blue-soft); color: var(--blue); }

/* ---------- formulários ---------- */
.campo { margin-bottom: 16px; }
.campo label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.campo .ajuda { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.entrada { position: relative; display: flex; align-items: stretch; }
.entrada input, .entrada select, .campo > input, .campo > select, .campo > textarea { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 13px 15px; font-size: 17px; font-weight: 600; outline: none; min-height: 54px; appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s; color: var(--text); }
.campo > textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.campo > select, .entrada select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239AA39D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.entrada input:focus, .entrada select:focus, .campo > input:focus, .campo > select:focus, .campo > textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.entrada .un { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 700; font-size: 14px; pointer-events: none; }
.entrada.com-un input { padding-right: 78px; }
.linha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alternar, .segmentos { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; margin-bottom: 18px; gap: 4px; }
.alternar button, .segmentos button { flex: 1; border: 0; background: none; border-radius: 11px; padding: 10px 6px; font-weight: 700; font-size: 14px; color: var(--text-2); line-height: 1.2; }
.alternar button.ativo, .segmentos button.ativo { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 18px; padding: 15px 18px; font-weight: 800; font-size: 16.5px; background: var(--accent); color: var(--accent-text); text-decoration: none; min-height: 56px; transition: transform .1s, opacity .2s; letter-spacing: -.1px; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-verde { background: var(--accent); color: var(--accent-text); }
.btn-couro { background: var(--clay); color: #fff; }
.btn-claro { background: var(--surface-2); color: var(--text); }
.btn-texto { background: none; color: var(--accent); min-height: 44px; padding: 8px; }
.btn-perigo { background: var(--red-soft); color: var(--red); }
.btn + .btn { margin-top: 10px; }
.btn[disabled] { opacity: .45; }

/* calculadoras */
.resultado { background: var(--accent-soft); border-radius: 24px; padding: 18px; margin: 18px 0 12px; animation: estalo .3s ease-out; }
.resultado .rotulo { color: var(--accent); }
.resultado .valor { font-size: 44px; font-weight: 800; line-height: 1.05; margin: 4px 0 2px; letter-spacing: -1px; color: var(--text); }
.resultado .valor small { font-size: 20px; font-weight: 700; margin-left: 4px; color: var(--text-2); }
.resultado .sub { color: var(--text-2); font-size: 14px; font-weight: 600; }
.resultado .dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.resultado .dupla div { background: var(--surface); border-radius: 16px; padding: 11px 12px; }
.resultado .dupla b { display: block; font-size: 21px; font-weight: 800; }
.resultado .dupla span { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.passos { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.passos h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); font-weight: 800; }
.passos ol { margin: 0; padding-left: 20px; }
.passos li { margin: 5px 0; font-size: 15px; }
.passos li b { font-weight: 800; }
.alerta, .atencao, .info { border-radius: 16px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.alerta svg, .atencao svg, .info svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alerta { background: var(--red-soft); color: var(--red); }
.atencao { background: var(--gold-soft); color: var(--text); }
.info { background: var(--blue-soft); color: var(--text); }
.info svg { color: var(--blue); } .atencao svg { color: var(--gold); }
.aviso-legal { font-size: 12.5px; color: var(--text-3); text-align: center; margin: 20px 8px 4px; line-height: 1.45; }

/* agenda */
.etapa { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.etapa:not(:last-child)::before { content: ""; position: absolute; left: 20px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.etapa.feita:not(:last-child)::before { background: var(--accent); }
.etapa .bola { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; color: var(--text-2); flex: none; z-index: 1; }
.etapa.hoje .bola { background: var(--clay); border-color: var(--clay); color: #fff; }
.etapa.feita .bola { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.etapa.feita .bola svg { width: 20px; height: 20px; }
.etapa .corpo { flex: 1; background: var(--surface); border-radius: 18px; padding: 12px 14px; box-shadow: var(--sombra); }
.etapa.hoje .corpo { box-shadow: 0 0 0 2px var(--clay); }
.etapa .corpo strong { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.etapa .corpo .quando { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.etapa .corpo .acoes { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.chip { border: 0; background: var(--surface-2); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.chip svg { width: 15px; height: 15px; }
.chip.ativo { background: var(--accent); color: var(--accent-text); }
.falta { font-size: 12px; font-weight: 800; color: var(--clay); background: var(--clay-soft); border-radius: 99px; padding: 3px 9px; display: inline-block; margin-top: 5px; }
.etapa-edit { display: grid; grid-template-columns: 86px 1fr 46px; gap: 8px; align-items: center; margin-bottom: 8px; }
.etapa-edit input { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px; font-weight: 600; font-size: 15px; width: 100%; min-height: 48px; outline: none; color: var(--text); }
.etapa-edit .dnum { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); padding-left: 10px; }
.etapa-edit .dnum span { font-weight: 800; color: var(--text-3); }
.etapa-edit .dnum input { border: 0; padding-left: 2px; }
.btn-x { border: 0; background: var(--surface-2); border-radius: 14px; height: 48px; display: grid; place-items: center; color: var(--text-2); }
.btn-x svg { width: 18px; height: 18px; }

/* mapas */
.busca { position: relative; margin-bottom: 16px; }
.busca input { width: 100%; border: 0; background: var(--surface); box-shadow: var(--sombra); border-radius: 16px; padding: 14px 14px 14px 46px; font-size: 16px; font-weight: 600; min-height: 52px; outline: none; color: var(--text); }
:root[data-tema="escuro"] .busca input { border: 1px solid var(--line); }
.busca svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-3); }
.produtos { display: grid; gap: 12px; }
.produto { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--raio); box-shadow: var(--sombra); padding: 12px; text-decoration: none; color: var(--text); }
.produto img { width: 70px; height: 94px; object-fit: cover; border-radius: 12px; background: var(--surface-2); flex: none; }
.produto strong { display: block; font-weight: 800; font-size: 16px; line-height: 1.25; }
.produto span { font-size: 13px; color: var(--text-2); }
.barra { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.barra i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
details.modulo { background: var(--surface); border-radius: var(--raio); box-shadow: var(--sombra); margin-bottom: 10px; overflow: hidden; }
details.modulo summary { list-style: none; padding: 14px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; }
details.modulo summary::-webkit-details-marker { display: none; }
details.modulo summary .n { width: 40px; height: 40px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
details.modulo summary strong { flex: 1; font-weight: 700; line-height: 1.3; }
details.modulo summary small { display: block; font-weight: 600; color: var(--text-2); font-size: 12.5px; }
details.modulo summary > svg { width: 20px; height: 20px; color: var(--text-3); transition: transform .2s; }
details.modulo[open] summary > svg { transform: rotate(90deg); }
details.modulo[open] summary { border-bottom: 1px solid var(--line); }
details.modulo .lista { box-shadow: none; border-radius: 0; margin: 0; border: 0 !important; }
details.modulo.completo summary .n { background: var(--gold-soft); color: var(--gold); }
.visor { position: fixed; inset: 0; background: #0B0F0D; z-index: 60; display: flex; flex-direction: column; }
.visor-topo { display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--topo-seg)) 10px 10px; color: #fff; }
.visor-topo .topo-btn { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.visor-topo .tt { flex: 1; min-width: 0; }
.visor-topo .tt strong { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visor-topo .tt span { font-size: 12.5px; color: rgba(255,255,255,.6); }
.visor-img { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; align-items: flex-start; justify-content: center; touch-action: pan-x pan-y pinch-zoom; }
.visor-img img { width: 100%; max-width: 900px; height: auto; background: #fff; }
.visor-baixo { display: grid; grid-template-columns: 54px 1fr 54px; gap: 10px; padding: 10px 12px calc(10px + var(--baixo-seg)); }
.visor-baixo .btn { min-height: 52px; font-size: 15px; padding: 10px; }
.visor-baixo .btn-claro { background: rgba(255,255,255,.12); color: #fff; }
.visor-baixo .nav { background: rgba(255,255,255,.1); border: 0; border-radius: 16px; color: #fff; display: grid; place-items: center; }
.visor-baixo .nav svg { width: 22px; height: 22px; }
.visor-baixo .nav[disabled] { opacity: .3; }
.estrela.ativa { color: var(--gold) !important; }
.estrela.ativa svg { fill: currentColor; }

/* checklist */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
.check:last-child { border-bottom: 0; }
.check .caixa { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--text-3); flex: none; display: grid; place-items: center; }
.check .caixa svg { width: 17px; height: 17px; color: var(--accent-text); opacity: 0; stroke-width: 3; }
.check.ok .caixa { background: var(--accent); border-color: var(--accent); animation: estalo .25s ease-out; }
.check.ok .caixa svg { opacity: 1; }
.check.ok span { color: var(--text-3); text-decoration: line-through; }
.check span { font-weight: 600; font-size: 15.5px; padding-top: 2px; }
.progresso-chk { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-2); font-size: 14px; margin-bottom: 12px; }
.progresso-chk .barra { flex: 1; margin: 0; }

/* abas (barra flutuante) */
.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 0 14px calc(10px + var(--baixo-seg)); pointer-events: none; }
.abas-dentro { pointer-events: auto; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 520px; background: var(--surface); border-radius: 26px; box-shadow: 0 10px 34px rgba(10, 25, 18, .16), 0 0 0 1px var(--line); padding: 7px; gap: 4px; }
.aba { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 58px; text-decoration: none; color: var(--text-3); font-size: 11.5px; font-weight: 700; border-radius: 20px; }
.aba svg { width: 24px; height: 24px; }
.aba.ativa { color: var(--accent); background: var(--accent-soft); }

/* entrada */
.entrar { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(24px + var(--topo-seg)) 24px calc(24px + var(--baixo-seg)); }
.entrar .e-topo { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.entrar .masc { width: 60%; max-width: 240px; animation: pulo 3.4s ease-in-out infinite; filter: drop-shadow(0 12px 16px rgba(0,0,0,.18)); }
.entrar .logo-grande { width: 160px; margin: 20px auto 6px; }
:root[data-tema="escuro"] .entrar .logo-grande { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .entrar .logo-grande { filter: brightness(0) invert(1); } }
.entrar .lema { color: var(--text-2); margin: 0; font-size: 16px; font-weight: 600; }
.entrar form { margin-top: 24px; }
.entrar .rodape { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-3); }
.erro-form { background: var(--red-soft); color: var(--red); border-radius: 14px; padding: 11px 13px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }

/* perfil e onboarding */
.perfil-foto { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 22px; }
.perfil-foto label { cursor: pointer; position: relative; }
.perfil-foto .cam { position: absolute; right: -4px; bottom: -4px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); color: var(--accent-text); display: grid; place-items: center; }
.perfil-foto .cam svg { width: 18px; height: 18px; }
.perfil-topo { display: flex; gap: 14px; align-items: center; }
.perfil-topo h3 { font-size: 19px; margin: 0; font-weight: 800; }
.perfil-topo p { margin: 2px 0 0; color: var(--text-2); font-size: 13.5px; word-break: break-all; }
.balao { position: relative; background: var(--surface); box-shadow: var(--sombra); border-radius: 20px; padding: 12px 16px; font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.balao::after { content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%) rotate(45deg); width: 18px; height: 18px; background: var(--surface); border-radius: 3px; }
.onb { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(20px + var(--topo-seg)) 22px calc(20px + var(--baixo-seg)); }
.onb .onb-masc { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 8px; }
.onb .onb-masc img { width: 140px; }
.onb .rodape-onb { margin-top: auto; padding-top: 20px; }
.interruptor { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.interruptor:last-child { border-bottom: 0; }
.interruptor .txt { flex: 1; }
.interruptor .txt strong { display: block; font-weight: 700; font-size: 15.5px; }
.interruptor .txt span { font-size: 13px; color: var(--text-2); }
.chave { width: 52px; height: 32px; border-radius: 99px; background: var(--surface-3); position: relative; border: 0; flex: none; transition: background .2s; }
.chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: left .2s; }
.chave.on { background: var(--accent); }
.chave.on::after { left: 23px; }

/* modal, aviso, festa */
.modal { position: fixed; inset: 0; background: rgba(5, 12, 8, .5); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal-caixa { background: var(--bg); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 30px 30px 0 0; padding: 24px 20px calc(20px + var(--baixo-seg)); animation: entrar .25s ease-out; }
.modal-caixa h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.modal-caixa ul { padding-left: 20px; margin: 10px 0 16px; }
.modal-caixa li { margin-bottom: 8px; font-size: 15px; }
.marcar { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 16px; padding: 13px 14px; margin-bottom: 14px; font-weight: 700; font-size: 15px; cursor: pointer; }
.marcar input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }
.aviso-flutuante { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--abas-h) + var(--baixo-seg) + 22px); background: var(--text); color: var(--bg); border-radius: 16px; padding: 12px 18px; font-weight: 700; font-size: 14.5px; z-index: 90; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); text-align: center; animation: entrar .2s ease-out; }
.festa { position: fixed; inset: 0; z-index: 85; display: flex; align-items: flex-end; justify-content: center; background: rgba(5,12,8,.45); }
.festa .f-caixa { background: var(--bg); width: 100%; max-width: 560px; border-radius: 30px 30px 0 0; padding: 22px 22px calc(22px + var(--baixo-seg)); text-align: center; animation: entrar .3s ease-out; }
.festa .f-caixa img { width: 150px; margin: -84px auto 8px; animation: estalo .45s ease-out; filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); }
.festa h2 { font-size: 24px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.4px; }
.festa p { margin: 0 0 18px; color: var(--text-2); }
.confete { position: fixed; top: -12px; width: 9px; height: 13px; z-index: 86; border-radius: 2px; pointer-events: none; animation: cair linear forwards; }
@keyframes cair { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }
.vazio { text-align: center; padding: 24px 14px; color: var(--text-2); }
.vazio img { width: 140px; margin: 0 auto 12px; animation: pulo 3.4s ease-in-out infinite; }
.vazio strong { display: block; color: var(--text); font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.etiqueta-beta { font-size: 10.5px; font-weight: 800; background: var(--clay); color: #fff; border-radius: 99px; padding: 2px 8px; letter-spacing: .5px; vertical-align: middle; }
.passo-instalar { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.passo-instalar > b { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; flex: none; font-size: 14px; }
.passo-instalar div b { font-weight: 800; }
.resumo-fim { text-align: center; padding-top: 20px; }
.resumo-fim img { width: 170px; margin: 0 auto 10px; animation: pulo 3s ease-in-out infinite; }
.resumo-fim h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.6px; }
.resumo-fim p { color: var(--text-2); margin: 0 0 22px; }

@media (min-width: 600px) { .modal, .festa { align-items: center; } .modal-caixa, .festa .f-caixa { border-radius: 30px; } }
.ic-inline { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); vertical-align: middle; margin-left: 2px; }
.ic-inline svg { width: 16px; height: 16px; }
.onb h1 { color: var(--text); }
