:root {
  --navy: #0e1320;
  --ink: #141b2d;
  --amber: #d5b577;
  --gold-deep: #8a6a2c;
  --bg: #f7f3ea;
  --muted: #5d6174;
  --line: #e2dac8;
  --field: #c9bea6;
  --soft: #ece5d4;
  --ok-bg: #e6f2eb;
  --ok: #14543a;
  --warn-bg: #fff1d6;
  --warn: #7a4e08;
  --bad-bg: #fbe4e1;
  --bad: #8a2118;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0e1320;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}
a { color: var(--navy); }
h1, h2, h3, p { margin: 0; }

.app {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* cabeçalhos */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero.admin { background: var(--ink); }
.hero { border-bottom: 3px solid var(--amber); }
.hero.big { padding: 56px 28px 40px; gap: 14px; }
.hero h1 { font-size: 28px; line-height: 1.2; font-weight: 800; }
.hero.big h1 { font-size: 32px; line-height: 1.15; }
.hero .sub { color: #d9d4c6; font-size: 16px; }
.hero .date { color: #d9d4c6; font-size: 15px; }
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}
.hero .back {
  align-self: flex-start;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #d9d4c6;
  font-weight: 700;
  text-decoration: none;
}
.mark { width: 150px; height: auto; margin-bottom: 4px; align-self: center; }

/* botões */
.btn {
  min-height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--amber); color: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset; }
.btn-dark .x, .btn-dark { border-color: var(--amber); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-google { background: #fff; border-color: var(--field); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-link {
  background: none;
  border: 0;
  padding: 0 4px;
  min-height: 44px;
  font: inherit;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
}
.btn-link.danger { color: var(--bad); }

/* formulários */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 15px; font-weight: 700; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="date"], input[type="datetime-local"], textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--field);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { padding: 14px 16px; min-height: 260px; line-height: 1.5; resize: vertical; }
.hint { font-size: 14px; color: var(--muted); }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.choice input { width: 24px; height: 24px; accent-color: var(--navy); }

/* cartões e textos */
.card { background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card.outlined { border: 2px solid var(--navy); }
.reading .eyebrow { color: var(--gold-deep); }
.reading h2 { font-family: Georgia, serif; font-size: 25px; line-height: 1.25; }
.reading .body { font-family: Georgia, serif; font-size: 18px; line-height: 1.65; color: #2a2f40; }
.reading .body p + p { margin-top: 14px; }
.muted { color: var(--muted); font-size: 14px; }
.price { font-size: 36px; font-weight: 800; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.badge {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--amber);
  color: var(--ink);
}
.pill { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.soft { background: var(--soft); color: var(--navy); }

.stats { display: flex; gap: 10px; }
.stat { flex: 1; background: #fff; border-radius: 16px; padding: 14px; }
.stat b { display: block; font-size: 28px; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; }

.list { background: #fff; border-radius: 16px; padding: 4px 16px; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.row .meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.row-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.row-form input[type="date"] { width: auto; flex: 1; min-width: 140px; min-height: 44px; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.row.col { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 0; }
.row-head { display: flex; align-items: flex-start; gap: 12px; }
.split { display: flex; gap: 10px; }
.split > * { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }

/* avisos */
.flash { margin: 16px 20px 0; padding: 14px 16px; border-radius: 14px; font-weight: 700; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.info { background: var(--warn-bg); color: var(--warn); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.error-text { color: var(--bad); font-weight: 700; }

/* navegação inferior */
.nav {
  position: sticky;
  bottom: 0;
  height: 76px;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
}
.nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
}
.nav a.active { color: var(--navy); font-weight: 800; box-shadow: inset 0 3px 0 var(--amber); }
.nav svg { width: 24px; height: 24px; }
[hidden] { display: none !important; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.avisos .split { align-items: center; flex-wrap: wrap; }
textarea.short { min-height: 96px; }
input.code-input { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: 0.4em; padding-left: 0.4em; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--field); }
.eyebrow.dark { color: var(--gold-deep); }
input[type="file"] {
  width: 100%;
  min-height: 52px;
  padding: 12px;
  border: 1.5px dashed var(--field);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.h-small { font-size: 20px; line-height: 1.3; }
.book-top { display: flex; gap: 14px; align-items: flex-start; }
.book-top .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.book h2 { font-size: 19px; line-height: 1.25; }
.cover {
  flex: none;
  width: 60px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--navy);
}
.cover.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-weight: 800;
  font-size: 22px;
}
.center { text-align: center; }
.spacer { flex: 1; }

.check { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; min-height: 32px; }
.check input { width: 20px; height: 20px; }
.steps { margin: 8px 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.pixkey { margin-bottom: 12px; padding: 12px 14px; border: 1.5px dashed var(--field); border-radius: 12px; background: #fff; overflow-wrap: anywhere; user-select: all; }
.pixkey code { font: inherit; font-weight: 700; }
.pix { display: grid; gap: 12px; justify-items: stretch; }
.pix-qr { justify-self: center; width: 220px; height: 220px; border: 1.5px solid var(--field); border-radius: 12px; padding: 8px; background: #fff; }
details.card summary { cursor: pointer; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose h2 { margin-top: 18px; }
.prose h2:first-child { margin-top: 0; }

/* passo a passo de instalação */
.abas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--soft); border-radius: 14px; }
.aba { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; }
.aba.ativa { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.guia { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.guia li { display: grid; gap: 10px; justify-items: center; }
.guia-img { width: 100%; max-width: 240px; height: auto; }
.guia-txt { display: flex; gap: 12px; align-items: flex-start; }
.guia-txt p { margin: 0; }
.guia .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--amber); font-weight: 800; display: grid; place-items: center; }
.aviso-navegador { border: 2px solid var(--amber); }
.ok-text { color: #1b6b3a; font-weight: 700; }
.guia { margin-bottom: 18px; }
.escolha { display: grid; gap: 12px; }
.escolha p { margin: 0; }
.voltar-escolha { justify-self: start; margin-bottom: 8px; }
.passo { display: flex; gap: 14px; align-items: flex-start; }
.passo > div { display: grid; gap: 10px; flex: 1; }
.passo p { margin: 0; }
.passo .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--amber); font-weight: 800; display: grid; place-items: center; }
.nav a { white-space: nowrap; }
@media (max-width: 400px) { .nav a { font-size: 11px; letter-spacing: -0.2px; } }

/* pop-up de vencimento */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(8, 11, 20, .72); }
.modal-caixa { width: 100%; max-width: 380px; display: grid; gap: 14px; padding: 24px 20px; background: #fff; border-radius: 20px; text-align: center; }
.modal-caixa h2 { margin: 0; }
.modal-caixa p { margin: 0; }

/* cantinho de oração */
.pedido { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--field); }
.pedido p { white-space: pre-wrap; overflow-wrap: anywhere; }
.reply { background: #f4f1e8; border-radius: 12px; padding: 12px; }
.verso { margin: 0; display: flex; flex-direction: column; gap: 6px; }

/* filtro de textos */
.filtro-campos { display: grid; grid-template-columns: 1fr 1.6fr 1.1fr; gap: 10px; }
.filtro select { width: 100%; min-height: 52px; padding: 0 10px; border: 1.5px solid var(--field); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }

/* calendário de textos */
.cal-topo { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.cal-seta { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; font-size: 30px; text-decoration: none; color: var(--navy); background: var(--soft); }
.cal-seta.off { opacity: .25; }
.cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-sem { font-size: 13px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-dia { min-height: 44px; display: grid; place-items: center; border-radius: 12px; color: #a8a396; font-weight: 700; text-decoration: none; }
.cal-dia.tem { background: var(--amber); color: var(--navy); font-weight: 800; }
.cal-dia.sel { box-shadow: 0 0 0 3px var(--navy); }
.cal-dia.hoje:not(.tem) { box-shadow: inset 0 0 0 2px var(--field); color: var(--navy); }

/* Coração de curtir */
.curtir { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; flex-wrap: wrap; }
.curtir-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--gold, #d5b577); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.curtir-btn .curtir-coracao { font-size: 1.4rem; line-height: 1; }
.curtir-btn.on { background: #b3261e; border-color: #b3261e; color: #fff; }
.curtir-btn:disabled { opacity: .6; }
.coracao-lista { color: #b3261e; }
