/* VIRADA DO 100 · estilo
   Pensado primeiro para celular: letras grandes, botões fáceis de tocar. */

:root {
  --verde: #0f5c3f;
  --verde-escuro: #0a3f2b;
  --verde-claro: #e3f2ea;
  --sol: #ffc93c;
  --sol-claro: #fff4d4;
  --coral: #e2553f;
  --coral-claro: #fde9e5;
  --azul: #2563a8;
  --azul-claro: #e4eefa;
  --fundo: #fbf7ef;
  --papel: #ffffff;
  --tinta: #1d2a24;
  --tinta-suave: #56645d;
  --linha: #e7e0d2;
  --raio: 18px;
  --sombra: 0 2px 0 rgba(29, 42, 36, .06), 0 8px 24px rgba(29, 42, 36, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
}
body.com-menu { padding-bottom: 92px; }

a { color: var(--verde); font-weight: 800; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
img { max-width: 100%; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--verde);
  color: #fff;
}
.marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.marca-selo {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sol); color: var(--verde-escuro);
  font-weight: 900; font-size: .95rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.marca-txt { display: flex; flex-direction: column; font-weight: 900; font-size: 1.05rem; line-height: 1.1; }
.marca-txt small { font-weight: 700; font-size: .72rem; opacity: .8; letter-spacing: .02em; }
.topo-sair { color: #fff; opacity: .8; font-size: .9rem; text-decoration: none; }

.conteudo { max-width: 600px; margin: 0 auto; padding: 18px 16px 32px; }

/* ---------- Cartões ---------- */
.cartao {
  background: var(--papel);
  border-radius: var(--raio);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--sombra);
  border: 1px solid var(--linha);
}
.cartao-suave { background: transparent; box-shadow: none; border-style: dashed; }
.cartao-sol   { background: var(--sol-claro); border-color: #f4dc97; }
.cartao-verde { background: var(--verde); color: #fff; border: 0; }
.cartao-verde a:not(.botao) { color: var(--sol); }
.cartao-alerta { background: var(--coral-claro); border-color: #f5c3b8; }
.cartao-azul  { background: var(--azul-claro); border-color: #c5d8ef; }
.cartao h2:last-child, .cartao p:last-child { margin-bottom: 0; }

.titulo-pagina { margin: 6px 0 18px; }
.titulo-pagina p { color: var(--tinta-suave); margin: 0; }
.rotulo {
  display: inline-block; font-size: .78rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--verde); margin-bottom: 6px;
}
.cartao-verde .rotulo { color: var(--sol); }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px;
  border: 0; border-radius: 14px;
  background: var(--verde); color: #fff;
  font: inherit; font-weight: 900; font-size: 1.02rem;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
  transition: transform .08s ease;
}
.botao:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.botao-grande { width: 100%; min-height: 58px; font-size: 1.1rem; }
.botao-sol { background: var(--sol); color: var(--verde-escuro); }
.botao-contorno { background: transparent; color: var(--verde); box-shadow: inset 0 0 0 2px var(--verde); }
.botao-perigo { background: var(--coral); }
.botao-leve { background: var(--verde-claro); color: var(--verde); box-shadow: none; }
.botao-mini { min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 12px; }
.botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.botoes > * { flex: 1 1 auto; }

/* ---------- Formulários ---------- */
.form label { display: block; font-weight: 800; margin-bottom: 14px; }
.form small { display: block; font-weight: 600; color: var(--tinta-suave); margin-top: 4px; }
input, select, textarea {
  display: block; width: 100%;
  margin-top: 6px; padding: 14px;
  border: 2px solid var(--linha); border-radius: 12px;
  background: #fff; color: var(--tinta);
  font: inherit; font-size: 1.05rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--verde); }
.linha-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 700 !important; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; }

/* ---------- Avisos ---------- */
.aviso { padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; font-weight: 700; }
.aviso-ok   { background: var(--verde-claro); color: var(--verde-escuro); }
.aviso-erro { background: var(--coral-claro); color: #8f2a1a; }
.aviso-info { background: var(--azul-claro); color: #1b4677; }

/* ---------- Entrada (login/cadastro) ---------- */
.entrada-hero { text-align: center; padding: 18px 4px 22px; }
.entrada-hero h1 { font-size: 1.9rem; }
.entrada-hero h1 span { color: var(--verde); display: block; }
.selo-pequeno {
  display: inline-block; background: var(--sol); color: var(--verde-escuro);
  padding: 6px 14px; border-radius: 99px; font-weight: 900; font-size: .85rem;
}
.centro { text-align: center; }
.pequeno { font-size: .9rem; }
.suave { color: var(--tinta-suave); }

/* ---------- Menu inferior ---------- */
.menu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--linha);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.menu a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0; color: var(--tinta-suave); text-decoration: none;
  font-size: .74rem; font-weight: 800; border-radius: 12px;
}
.menu svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu a.ativo { color: var(--verde); background: var(--verde-claro); }

.suporte {
  position: fixed; right: 16px; bottom: 16px; z-index: 25;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.com-menu .suporte { bottom: calc(92px + env(safe-area-inset-bottom)); }
.suporte svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Vídeo ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--raio); overflow: hidden; background: #000; margin-bottom: 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-breve {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(135deg, var(--verde), var(--verde-escuro)); color: #fff; text-align: center; padding: 16px;
}
.video-breve .play { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sol); color: var(--verde-escuro); font-size: 1.3rem; margin-bottom: 6px; }
.video-breve small { opacity: .8; font-weight: 600; }

/* ---------- Painel ---------- */
.ola { margin: 4px 0 16px; }
.ola h1 { margin-bottom: 2px; }
.ola p { color: var(--tinta-suave); margin: 0; }

.barra { height: 14px; background: var(--verde-claro); border-radius: 99px; overflow: hidden; }
.barra > span { display: block; height: 100%; background: linear-gradient(90deg, var(--verde), #2a9a6b); border-radius: 99px; transition: width .6s ease; }
.cartao-verde .barra { background: rgba(255,255,255,.18); }
.cartao-verde .barra > span { background: var(--sol); }

.giros-trilha { display: flex; align-items: center; gap: 6px; margin: 14px 0 6px; }
.giros-trilha .passo {
  flex: 1; text-align: center; padding: 10px 4px; border-radius: 12px;
  background: rgba(255,255,255,.1); font-weight: 800; font-size: .85rem;
}
.giros-trilha .passo.feito { background: var(--sol); color: var(--verde-escuro); }
.giros-trilha .passo.agora { background: #fff; color: var(--verde); }
.cartao:not(.cartao-verde) .giros-trilha .passo { background: var(--verde-claro); }
.cartao:not(.cartao-verde) .giros-trilha .passo.feito { background: var(--verde); color: #fff; }
.cartao:not(.cartao-verde) .giros-trilha .passo.agora { background: var(--sol); color: var(--verde-escuro); }

.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.bloco {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 16px; min-height: 128px;
  background: #fff; border: 1px solid var(--linha); border-radius: var(--raio);
  box-shadow: var(--sombra); color: var(--tinta); text-decoration: none;
}
.bloco .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; }
.bloco strong { font-size: 1.05rem; }
.bloco small { color: var(--tinta-suave); font-weight: 600; line-height: 1.3; }
.ic-verde { background: var(--verde-claro); }
.ic-sol { background: var(--sol-claro); }
.ic-coral { background: var(--coral-claro); }
.ic-azul { background: var(--azul-claro); }

.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.numeros div { background: var(--fundo); border-radius: 12px; padding: 10px; text-align: center; }
.cartao-verde .numeros div { background: rgba(255,255,255,.1); }
.numeros strong { display: block; font-size: 1.05rem; }
.numeros small { font-size: .74rem; font-weight: 700; opacity: .8; }

/* ---------- Teste ---------- */
.quiz-progresso { display: flex; gap: 6px; margin-bottom: 18px; }
.quiz-progresso span { flex: 1; height: 8px; border-radius: 99px; background: var(--linha); }
.quiz-progresso span.ok { background: var(--verde); }
.pergunta h2 { font-size: 1.45rem; }
.opcoes { display: grid; gap: 10px; }
.opcao {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px; text-align: left;
  background: #fff; border: 2px solid var(--linha); border-radius: 16px;
  font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--tinta); cursor: pointer;
}
.opcao .emoji { font-size: 1.6rem; flex: none; }
.opcao small { display: block; font-weight: 600; color: var(--tinta-suave); font-size: .88rem; }
.opcao:hover, .opcao:focus { border-color: var(--verde); outline: none; }

.resultado-top { text-align: center; }
.resultado-top .emoji-grande { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; }

/* ---------- Ficha do negócio ---------- */
.ficha-cabeca { text-align: center; padding: 6px 0 10px; }
.ficha-cabeca .emoji-grande { font-size: 3rem; }
.ficha-cabeca h1 { margin-bottom: 4px; }
.ficha-cabeca p { color: var(--tinta-suave); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 14px; }
.chip { background: var(--verde-claro); color: var(--verde); padding: 5px 12px; border-radius: 99px; font-size: .82rem; font-weight: 800; }
.chip-sol { background: var(--sol-claro); color: #8a6200; }
.chip-coral { background: var(--coral-claro); color: #a33b28; }

.secao-ficha h2 { display: flex; align-items: center; gap: 10px; }
.secao-ficha h2 .num {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sol); color: var(--verde-escuro); font-size: .95rem;
}
.lista { margin: 0; padding: 0; list-style: none; }
.lista li { padding: 10px 0; border-bottom: 1px dashed var(--linha); display: flex; justify-content: space-between; gap: 12px; }
.lista li:last-child { border-bottom: 0; }
.lista li span:last-child { font-weight: 800; white-space: nowrap; }
.lista-simples { margin: 0; padding-left: 1.2em; }
.lista-simples li { margin-bottom: 6px; }

.giro-card { border-left: 5px solid var(--verde); padding: 12px 14px; background: var(--fundo); border-radius: 12px; margin-bottom: 10px; }
.giro-card strong { display: block; }
.giro-card .devolve { color: var(--coral); font-weight: 900; }
.estimativa { font-size: .85rem; color: var(--tinta-suave); font-weight: 600; }

.dias { margin: 0; padding: 0; list-style: none; counter-reset: dia; }
.dias li { position: relative; padding: 0 0 14px 46px; counter-increment: dia; }
.dias li::before {
  content: counter(dia); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--verde-claro); color: var(--verde); font-weight: 900;
}

/* ---------- Cardápio ---------- */
.abas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.abas button {
  flex: none; padding: 10px 16px; border-radius: 99px; border: 2px solid var(--linha);
  background: #fff; font: inherit; font-weight: 800; color: var(--tinta-suave); cursor: pointer;
}
.abas button.ativo { background: var(--verde); border-color: var(--verde); color: #fff; }
.item-cardapio {
  display: flex; gap: 14px; align-items: center;
  padding: 16px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--linha); border-radius: var(--raio);
  text-decoration: none; color: var(--tinta); box-shadow: var(--sombra);
}
.item-cardapio .emoji { font-size: 2rem; flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: var(--fundo); border-radius: 14px; }
.item-cardapio strong { display: block; }
.item-cardapio small { color: var(--tinta-suave); font-weight: 600; }
.item-cardapio.meu { border: 2px solid var(--verde); }

/* ---------- Meu Giro ---------- */
.movs { list-style: none; margin: 0; padding: 0; }
.movs li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.movs li:last-child { border-bottom: 0; }
.movs .sinal { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.movs .venda .sinal { background: var(--verde-claro); color: var(--verde); }
.movs .compra .sinal { background: var(--coral-claro); color: var(--coral); }
.movs .desc { flex: 1; min-width: 0; }
.movs .desc small { display: block; color: var(--tinta-suave); font-weight: 600; }
.movs .val { font-weight: 900; white-space: nowrap; }
.movs .venda .val { color: var(--verde); }
.movs .compra .val { color: var(--coral); }
.movs form { margin: 0; }
.apagar { background: none; border: 0; color: var(--tinta-suave); font-size: 1.1rem; cursor: pointer; padding: 4px 6px; }

.tipo-escolha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tipo-escolha input { position: absolute; opacity: 0; pointer-events: none; }
.tipo-escolha label {
  margin: 0 !important; padding: 14px; text-align: center; border-radius: 14px;
  border: 2px solid var(--linha); cursor: pointer; background: #fff;
}
.tipo-escolha label.marcado { border-color: var(--verde); background: var(--verde-claro); color: var(--verde); }
.tipo-escolha label.compra.marcado { border-color: var(--coral); background: var(--coral-claro); color: var(--coral); }

.divisao { display: grid; gap: 8px; }
.divisao div { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--fundo); }
.divisao strong { white-space: nowrap; }

/* ---------- Kit ---------- */
.msg { background: var(--fundo); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.msg-titulo { font-weight: 900; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.msg-texto { white-space: pre-wrap; font-weight: 600; font-size: .98rem; }
.msg .botoes { margin-top: 10px; }

.modelos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.modelos button { aspect-ratio: 1; border-radius: 12px; border: 3px solid transparent; cursor: pointer; }
.modelos button.ativo { border-color: var(--tinta); }
.tela-arte { width: 100%; border-radius: 16px; box-shadow: var(--sombra); display: block; margin-bottom: 14px; background: #eee; }

/* ---------- Dívidas ---------- */
.divida { padding: 14px; border-radius: 14px; background: var(--fundo); margin-bottom: 10px; }
.divida-topo { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.divida .ordem {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--coral); color: #fff; font-weight: 900; font-size: .9rem;
}
.divida.quitada { opacity: .6; }
.divida.quitada .ordem { background: var(--verde); }
.divida-acoes { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.divida-acoes form { margin: 0; }

details.sanfona { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); margin-bottom: 10px; box-shadow: var(--sombra); }
details.sanfona summary { padding: 16px; font-weight: 900; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.sanfona summary::-webkit-details-marker { display: none; }
details.sanfona summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--verde); }
details.sanfona[open] summary::after { content: '−'; }
details.sanfona .dentro { padding: 0 16px 16px; }

/* ---------- Desafio ---------- */
.dia {
  display: flex; gap: 14px; padding: 16px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra);
}
.dia .n {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 900; font-size: 1.15rem;
  background: var(--verde-claro); color: var(--verde);
}
.dia.feito .n { background: var(--verde); color: #fff; }
.dia.trancado { opacity: .55; }
.dia.trancado .n { background: var(--linha); color: var(--tinta-suave); }
.dia.hoje { border: 2px solid var(--sol); }
.dia .corpo { flex: 1; }
.dia .corpo p { margin-bottom: 8px; }

/* ---------- Tabelas (admin) ---------- */
.tabela-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linha); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-suave); }

/* ---------- Comemoração ---------- */
.festa {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(10, 63, 43, .85); padding: 20px;
}
.festa .caixa { background: #fff; border-radius: 24px; padding: 28px 22px; text-align: center; max-width: 380px; width: 100%; }
.festa .emoji-grande { font-size: 3.6rem; line-height: 1; }
.confete { position: fixed; top: -10px; width: 10px; height: 14px; z-index: 60; pointer-events: none; animation: cair linear forwards; }
@keyframes cair { to { transform: translateY(110vh) rotate(720deg); } }

.copiado { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 800; z-index: 70; }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .conteudo { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .confete { display: none; }
  .barra > span { transition: none; }
}
