:root {
  --bg: #0d0d12; --bg2: #16161f; --card: #1c1c28;
  --gold: #c9a227; --gold2: #e8c547; --text: #f2f0e8; --muted: #a09a8c;
  --line: #2a2a38; --danger: #c0392b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
header.topo { position: sticky; top: 0; z-index: 50; background: rgba(13,13,18,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topo .wrap { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 20px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: 1px; color: var(--gold2); }
.logo small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 3px; font-weight: 400; }
nav.menu { display: flex; gap: 16px; margin-left: 8px; }
nav.menu a { color: var(--muted); font-size: 15px; }
nav.menu a.ativo, nav.menu a:hover { color: var(--text); }
.userbox { margin-left: auto; font-size: 14px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.userbox button { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 640px) { .userbox .share-label { display: none; } }
main.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 28px; margin-bottom: 8px; }
h2.row-title { font-size: 19px; margin: 28px 0 12px; color: var(--gold2); }
p.sub { color: var(--muted); margin-bottom: 16px; }
.hero { border-radius: 16px; padding: 48px 32px; background: linear-gradient(120deg, #1a1408, #2b2110 60%, #16161f); border: 1px solid var(--line); margin-bottom: 8px; }
.hero h1 { font-size: 34px; }
.hero p { color: var(--muted); max-width: 560px; margin: 8px 0 18px; }
.btn { display: inline-block; background: var(--gold); color: #141414; font-weight: 700; border: none; border-radius: 10px; padding: 12px 22px; cursor: pointer; font-size: 15px; }
.btn:hover { background: var(--gold2); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.card { flex: 0 0 220px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card .thumb { height: 120px; background: linear-gradient(135deg, #2b2110, #3d2f14); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.card .body { padding: 12px; }
.card .body h3 { font-size: 15px; margin-bottom: 4px; }
.card .body p { font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.form { max-width: 440px; margin: 40px auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.form h1 { font-size: 24px; margin-bottom: 16px; }
.form label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
.form input, .form textarea, .form select { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; font-size: 15px; }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; margin-top: 18px; }
.erro { color: #e88; font-size: 14px; margin-top: 10px; }
.leitura { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; max-width: 760px; }
.leitura .versiculo { margin-bottom: 10px; font-size: var(--tam-leitura, 17px); }
.leitura .versiculo .n { color: var(--gold); font-size: 13px; vertical-align: super; margin-right: 6px; }
.leitura .versiculo { cursor: pointer; border-radius: 8px; padding: 4px 6px; margin-left: -6px; margin-right: -6px; }
.leitura .versiculo.hl-amarelo { background: rgba(245,197,66,.20); }
.leitura .versiculo.hl-verde { background: rgba(74,222,128,.18); }
.leitura .versiculo.hl-azul { background: rgba(96,165,250,.20); }
.nota-mark { margin-left: 8px; font-size: 14px; }
/* Planos de leitura */
.planos-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 6px; }
.plano-card { flex: 0 0 240px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.plano-card strong { color: var(--gold2); font-size: 16px; }
.plano-card span { font-size: 13px; color: var(--muted); }
.plano-card small { font-size: 13px; color: var(--muted); }
.plano-card.aberto { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.plano-topo { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px; }
.plano-topo h3 { margin: 0; }
.btn-recolher { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 20px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.btn-recolher:active { color: var(--gold2); border-color: var(--gold); }
.dias-lista { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.dia-row { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dia-row.feito { opacity: .62; }
.dia-check { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold2); font-size: 17px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.dia-row.feito .dia-check { background: var(--gold); color: #111; }
.dia-ir { flex: 1; text-align: left; background: none; border: 0; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 0; }
.dia-ir strong { font-size: 14px; color: var(--gold2); }
.dia-ir span { font-size: 15px; }
/* Bloco de notas em tela cheia */
.tela-cheia { position: fixed; inset: 0; z-index: 500; background: #fff; display: flex; flex-direction: column; }
.tela-cheia[hidden] { display: none; }
.tc-cabeca { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; border-bottom: 1px solid #e5e0d5; background: #fff; flex: none; }
.tc-voltar { background: none; border: 0; color: #8a6d1c; font-size: 16px; font-weight: 700; cursor: pointer; padding: 6px; }
.tc-titulo { flex: 1; text-align: center; font-size: 16px; color: #1c1c1c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-salvar { background: var(--gold); border: 0; color: #231a05; font-weight: 700; border-radius: 10px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.tc-corpo.papel { flex: 1; overflow-y: auto; background: #fff; color: #1c1c1c; padding: 20px 18px 60px; }
.doc-ref { color: #8a6d1c; font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.doc-verso { font-style: italic; color: #555; font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.doc-textarea { width: 100%; min-height: 55vh; border: 0; outline: 0; resize: none; font-size: 17px; line-height: 1.7; color: #1c1c1c; font-family: inherit; background: transparent; }
/* Sheet de ações do versículo + modal */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.66); z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop[hidden] { display: none; }
.sheet { width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 20px 20px 26px; }
.sheet-ref { color: var(--gold2); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.sheet-texto { font-size: 16px; font-style: italic; margin-bottom: 16px; color: var(--text); }
.sheet-cores { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }
.cor-dot { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.cor-amarelo { background: #f5c542; } .cor-verde { background: #4ade80; } .cor-azul { background: #60a5fa; }
.cor-none { width: 38px; height: 38px; border-radius: 50%; border: 1px dashed var(--muted); background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; }
.sheet-acoes { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.btn-mini { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 14px; font-size: 14px; cursor: pointer; }
#nota-texto { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit; }
.sheet-fechar { width: 100%; margin-top: 14px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 12px; font-size: 15px; cursor: pointer; }
.cmp-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.cmp-item .ref { color: var(--gold2); font-size: 13px; margin-bottom: 6px; }
.cmp-item p { font-size: 15px; }
.barra-biblia { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.barra-biblia select, .barra-biblia input { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; font-size: 15px; }
.resultado-busca { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.resultado-busca .ref { color: var(--gold2); font-size: 13px; }
.ep { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; align-items: center; cursor: pointer; }
.ep:hover { border-color: var(--gold); }
.ep .num { width: 38px; height: 38px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gold2); flex-shrink: 0; }
.ep-thumb { position: relative; flex: 0 0 132px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; flex-shrink: 0; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-num { position: absolute; left: 6px; bottom: 6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: rgba(0,0,0,.72); color: var(--gold2); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ep h3 { font-size: 16px; }
.ep p { font-size: 13px; color: var(--muted); }
.player-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 18px; }
.player-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
/* Deitou a tela com o vídeo tocando: o player ocupa a tela toda (funciona no iPhone) */
@media (orientation: landscape) {
  body.video-tocando .player-wrap { position: fixed; inset: 0; z-index: 200; border-radius: 0; background: #000; margin: 0; padding: 0; height: 100%; }
  body.video-tocando .player-wrap #yt,
  body.video-tocando .player-wrap iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
}
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin td, table.admin th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
table.admin th { color: var(--muted); font-weight: 600; }
.secao-admin { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 24px; }
.secao-admin h2 { font-size: 18px; margin-bottom: 12px; color: var(--gold2); }
.linha-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.linha-form input, .linha-form select { flex: 1; min-width: 160px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; }
.btn-del { background: none; border: 1px solid var(--danger); color: #e88; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.devocional-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 24px; max-width: 760px; margin-bottom: 16px; }
.devocional-card .ref { color: var(--gold2); font-size: 14px; margin-top: 12px; }
.devocional-card .data { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .hero { padding: 32px 20px; } .hero h1 { font-size: 26px; } nav.menu { gap: 10px; } nav.menu a { font-size: 13px; } }

/* ===== Visual estilo streaming (v2) ===== */
.logo { text-decoration: none; }
.btn-topo, .userbox a button { background: var(--gold); color: #141414; font-weight: 700; border: none; border-radius: 8px; padding: 8px 16px; cursor: pointer; }

/* Tela de entrada (visitante) */
.landing { position: relative; min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wall { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; transform: rotate(-4deg) scale(1.12); opacity: .85; }
.wall .tile { border-radius: 12px; overflow: hidden; background: var(--card); aspect-ratio: 2/3; }
.wall .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(13,13,18,.45) 0%, rgba(13,13,18,.88) 68%, #0d0d12 100%); }
.landing-conteudo { position: relative; z-index: 2; text-align: center; padding: 48px 20px; max-width: 640px; }
.landing-conteudo h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.15; font-weight: 800; }
.landing-conteudo p { color: #d8d2c2; margin: 16px 0 26px; font-size: 17px; }
.cta-big { font-size: 19px; padding: 16px 42px; border-radius: 12px; }
.landing-entrar { margin-top: 18px; font-size: 15px; color: var(--muted); }
.landing-entrar a { color: var(--gold2); font-weight: 700; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 8px 0 24px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature .fi { font-size: 30px; margin-bottom: 8px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* Billboard (destaque da home) */
.billboard { position: relative; border-radius: 18px; overflow: hidden; min-height: 400px; background: #1a1408; border: 1px solid var(--line); margin-bottom: 8px; display: flex; align-items: flex-end; }
.billboard .bb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.billboard .poster-art { position: absolute; inset: 0; border-radius: 0; }
.bb-grad { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,13,18,.92) 0%, rgba(13,13,18,.45) 55%, transparent 80%), linear-gradient(0deg, rgba(13,13,18,.95) 0%, transparent 55%); }
.bb-conteudo { position: relative; z-index: 2; padding: 28px; max-width: 560px; }
.bb-badge { display: inline-block; background: var(--gold); color: #141414; font-weight: 800; font-size: 11px; letter-spacing: 1.5px; padding: 5px 10px; border-radius: 6px; margin-bottom: 12px; }
.bb-conteudo h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; }
.bb-conteudo p { color: #d8d2c2; margin: 10px 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bb-botoes { display: flex; gap: 10px; flex-wrap: wrap; }

/* Cartões pôster (fileiras) */
.pcard { flex: 0 0 168px; cursor: pointer; transition: transform .15s; }
.pcard:hover { transform: translateY(-4px) scale(1.02); }
.pcard .pcard-img { border-radius: 12px; overflow: hidden; aspect-ratio: 2/3; background: var(--card); border: 1px solid var(--line); }
.pcard .pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard.wide { flex-basis: 240px; }
.pcard.wide .pcard-img { aspect-ratio: 16/9; }
.pcard h3 { font-size: 14px; margin: 8px 2px 2px; line-height: 1.3; }
.pcard p { font-size: 12px; color: var(--muted); margin: 0 2px; }
.poster-art { width: 100%; height: 100%; min-height: 120px; background: linear-gradient(150deg, #2b2110 0%, #3d2f14 55%, #17130a 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center; }
.poster-art span { font-size: 42px; font-weight: 800; color: var(--gold); letter-spacing: 2px; }
.poster-art strong { font-size: 13px; color: var(--text); line-height: 1.3; }

/* Login */
.login-body { background: radial-gradient(ellipse at top, #221a0c 0%, var(--bg) 60%); }
.login-main { padding: 24px 16px 70px; }
.login-card { margin-top: 30px; }
.campo-senha { position: relative; }
.campo-senha input { width: 100%; padding-right: 48px; }
.campo-senha .olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; cursor: pointer; padding: 8px; line-height: 1; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-row { display: flex; gap: 8px; }
.btn-social { flex: 1; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 6px; cursor: pointer; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-social:hover { border-color: var(--gold); }
.btn-social .sg { font-weight: 800; }
.btn-google { display: flex; justify-content: center; min-height: 44px; margin-bottom: 8px; }
.btn-google-reserva { width: 100%; margin-bottom: 8px; }
.aviso { color: var(--gold2); font-size: 13px; margin-top: 12px; text-align: center; min-height: 18px; }
.troca-modo { margin-top: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.troca-modo a { color: var(--gold2); }

/* Navegação inferior (celular, estilo app) */
.bottomnav { display: none; }
@media (max-width: 768px) {
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: rgba(13,13,18,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 0; }
  .bottomnav a .bi { display: flex; line-height: 1; }
  .bottomnav a .bi svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bottomnav a.ativo { color: var(--gold2); }
  .bottomnav a.ativo .bi svg { stroke-width: 2.2; }
  body { padding-bottom: 72px; }
  nav.menu { display: none; }
  .landing { min-height: calc(100svh - 130px); }
  .billboard { min-height: 340px; }
}

/* Convite de instalação do app */
.installbar { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 90; background: #1f1f2c; border: 1px solid var(--gold); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.55); }
.installbar img { width: 44px; height: 44px; border-radius: 10px; }
.installbar .txt { flex: 1; min-width: 0; }
.installbar .txt strong { display: block; font-size: 14px; }
.installbar .txt span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.installbar .btn { padding: 9px 16px; white-space: nowrap; }
.installbar .fechar { background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 6px; }
@media (min-width: 769px) { .installbar { left: auto; width: 420px; bottom: 16px; } }

/* ── v3: tela de entrada estilo Netflix (uma tela, sem rolagem) ── */
body.modo-landing { overflow: hidden; padding-bottom: 0; }
body.modo-landing .bottomnav,
body.modo-landing .installbar { display: none !important; }
.landing {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  height: calc(100vh - 66px); height: calc(100svh - 66px);
  min-height: 0; overflow: hidden;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  gap: 10px;
}
.landing::after { content: none; }
.landing-card {
  position: relative; flex: 1 1 auto; min-height: 0;
  width: 100%; max-width: 540px; margin: 0 auto;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); background: #101016;
  transform: perspective(1100px) rotateX(4deg);
  transform-origin: 50% 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.landing .wall {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr;
  gap: 6px; transform: none; opacity: 1;
}
.landing .wall .tile { border-radius: 10px; aspect-ratio: auto; height: 100%; }
.landing-grad {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,13,18,.18) 30%, rgba(13,13,18,.72) 68%, rgba(13,13,18,.96) 100%);
}
.landing-texto { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: center; padding: 18px 18px 20px; }
.landing-texto h1 { font-size: clamp(23px, 6.2vw, 34px); line-height: 1.16; font-weight: 800; }
.landing-texto p { color: #e3dcc9; margin-top: 8px; font-size: clamp(13px, 3.6vw, 16px); }
.dots { display: flex; gap: 6px; justify-content: center; padding: 2px 0 0; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: #3a3a48; }
.dots span.on { background: var(--gold2); }
.landing-membro { text-align: center; color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.cta-full { width: 100%; max-width: 540px; margin: 0 auto; text-align: center; font-size: 18px; padding: 16px; border-radius: 12px; }
@media (max-width: 768px) {
  body.modo-landing { padding-bottom: 0; }
  .landing { min-height: 0; }
}

/* Capas fotográficas dentro dos cartões e do destaque */
.poster-foto { position: relative; width: 100%; height: 100%; overflow: hidden; }
.poster-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-foto-titulo {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 10px 9px; font-size: 13px; font-weight: 700; line-height: 1.25; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
}
.billboard .poster-foto { position: absolute; inset: 0; }

/* ── Pergunta de instalação após o login ── */
.install-fundo {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(5,5,8,.72); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
}
.install-card {
  background: #17171f; border: 1px solid var(--gold); border-radius: 22px;
  padding: 26px 22px calc(20px + env(safe-area-inset-bottom));
  margin: 12px; width: 100%; max-width: 430px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.install-icone { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 12px; }
.install-card h2 { font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
.install-card p { color: #d8d2c2; font-size: 14.5px; line-height: 1.5; }
.install-passos { list-style: none; text-align: left; margin: 14px auto 4px; max-width: 320px; display: grid; gap: 10px; }
.install-passos li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.install-passos .n {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #141414; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.install-passos .seta { font-size: 17px; }
.install-card .btn { width: 100%; margin-top: 16px; font-size: 16px; padding: 14px; }
.install-card .btn.ghost { margin-top: 8px; }
@media (min-width: 769px) {
  .install-fundo { align-items: center; }
}

/* ── Convite pós-login (ícone + avisos) ── */
.convite-item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: #101016; border: 1px solid #2c2c38; border-radius: 14px;
  padding: 12px 14px; margin-top: 14px;
}
.convite-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.convite-txt strong { font-size: 15px; color: #f2ead2; }
.convite-txt span { font-size: 12.5px; color: #b9b2a0; line-height: 1.4; }
.convite-acao { width: auto !important; margin-top: 0 !important; padding: 10px 16px !important; font-size: 14.5px !important; flex: 0 0 auto; }
.convite-ok { color: var(--gold); font-weight: 800; font-size: 14.5px; flex: 0 0 auto; }
.convite-passos { margin-top: 10px; }
.convite-nota { margin-top: 12px; font-size: 13px !important; color: #f0c96a !important; }
.convite-passo { font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: 6px; }

/* v3.1 — seta animada apontando pro botão Compartilhar do Safari */
.install-seta-baixo { font-size: 30px; margin-top: 12px; animation: seta-pula 1.1s ease-in-out infinite; }
@keyframes seta-pula { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.install-dica { font-size: 12.5px !important; color: var(--muted) !important; margin-top: 4px; }
.btn-icone-tela { width: 100%; margin-top: 18px; font-size: 15px; padding: 13px; }

/* ── v6: tratamento cinematográfico (Hollywood) ──
   Preto profundo, dourado metálico com brilho, feixes de luz e glow quente.
   Referência visual aprovada pelo Gideão em 30/09/2026. */
header.topo { background: rgba(5,5,8,.94); border-bottom: 1px solid rgba(201,162,39,.28); }

/* Logo: símbolo coroa-play + nome metálico */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-simbolo { width: 36px; height: 36px; flex: 0 0 auto; filter: drop-shadow(0 3px 9px rgba(232,197,71,.35)); }
.logo-nome { line-height: 1.05; font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.lg-net { color: #f7f3e6; }
.lg-reino, .ouro-txt {
  background: linear-gradient(180deg, #fdf3c4 0%, #f0d264 32%, #e8c547 48%, #a87f22 57%, #e8c547 78%, #8a6d1f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Botões: dourado metálico com brilho interno */
.btn {
  background: linear-gradient(180deg, #f6e08a 0%, #e8c547 42%, #c19a2e 58%, #dcb84e 100%);
  box-shadow: 0 10px 26px rgba(201,162,39,.32), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 6px rgba(120,84,10,.45);
}
.btn:hover { background: linear-gradient(180deg, #fbe894 0%, #f0d264 42%, #cda832 58%, #e6c354 100%); }

/* Tela inicial: palco de cinema */
.landing { background: #050507; }
.landing::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 95% 46% at 50% -10%, rgba(240,210,100,.22), rgba(240,210,100,.06) 46%, transparent 72%),
    linear-gradient(180deg, rgba(240,210,100,.05), transparent 34%);
  animation: luz-respira 7s ease-in-out infinite;
}
@keyframes luz-respira { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.landing-card, .landing .dots, .landing-membro, .cta-full { position: relative; z-index: 1; }
.landing-card {
  border: 1px solid rgba(232,197,71,.38);
  box-shadow: 0 30px 80px rgba(0,0,0,.72), 0 0 64px rgba(201,162,39,.14), inset 0 1px 0 rgba(255,240,190,.28);
}
.landing .wall .tile img { filter: saturate(1.06) contrast(1.07) brightness(.92); }
.landing-grad { background: linear-gradient(180deg, rgba(5,5,8,.12) 24%, rgba(5,5,8,.68) 62%, rgba(5,5,8,.97) 100%); }
.landing-texto h1 { text-shadow: 0 3px 26px rgba(0,0,0,.7); }
.dots span.on { background: var(--gold2); box-shadow: 0 0 8px rgba(232,197,71,.8); }

/* CTA: faixa de luz varrendo o botão */
.cta-full { overflow: hidden; }
.cta-full::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -90px; width: 56px;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); animation: brilho-cta 4s ease-in-out infinite;
}
@keyframes brilho-cta { 0%, 52% { left: -90px; } 88%, 100% { left: 112%; } }

/* ── v7: preto hollywoodiano + Selo Real (prévia aprovada pelo Gideão) ── */
body.modo-landing { background: #000; }
body.modo-landing header.topo .logo,
body.modo-landing header.topo nav.menu { display: none; }
body.modo-landing .topo .wrap { justify-content: flex-end; }
body.modo-landing .userbox a button {
  background: rgba(232,197,71,.06); border: 1px solid rgba(232,197,71,.65);
  color: var(--gold2); border-radius: 999px; padding: 7px 14px; box-shadow: none;
}
.landing { background: #000; }
.landing::before {
  background:
    radial-gradient(ellipse 82% 42% at 50% -12%, rgba(240,210,100,.20), rgba(240,210,100,.05) 48%, transparent 72%),
    conic-gradient(from 180deg at 50% -12%, transparent 0deg, rgba(240,210,100,.06) 14deg, transparent 30deg, rgba(240,210,100,.045) 52deg, transparent 70deg, rgba(240,210,100,.06) 96deg, transparent 114deg);
}
.landing-marca { position: relative; z-index: 1; text-align: center; margin-top: 2px; }
.landing-marca svg { width: 72px; height: 72px; filter: drop-shadow(0 6px 18px rgba(232,197,71,.45)); }
.landing-marca-nome { font-size: 26px; font-weight: 800; letter-spacing: 5px; line-height: 1; margin-top: 7px; }
.landing-marca-linha { width: 118px; height: 1px; margin: 10px auto 0; background: linear-gradient(90deg, transparent, rgba(232,197,71,.85), transparent); box-shadow: 0 0 10px rgba(232,197,71,.65); }
.landing-card {
  width: min(84%, 470px); flex: 0 0 auto; height: clamp(230px, 42svh, 400px);
  margin: 4px auto 0;
  border: 1px solid #000; outline: 1px solid rgba(232,197,71,.28);
  box-shadow: 0 30px 70px rgba(0,0,0,.85), 0 0 52px rgba(201,162,39,.15), inset 0 1px 0 rgba(255,240,190,.18);
}
.landing .wall { background: #000; }
.landing-grad { background: linear-gradient(180deg, rgba(0,0,0,.10) 24%, rgba(0,0,0,.70) 62%, rgba(0,0,0,.98) 100%); }
.cta-full { width: min(84%, 470px); }
.landing-membro { width: min(84%, 470px); margin-left: auto; margin-right: auto; }
@media (max-height: 700px) {
  .landing-marca svg { width: 56px; height: 56px; }
  .landing-marca-nome { font-size: 22px; }
  .landing-card { height: clamp(200px, 38svh, 300px); }
}

/* ── v8: layout escolhido pelo Gideão + logo final enviada por ele ── */
.landing-logo { display: block; width: min(60vw, 330px); height: auto; margin: 0 auto; }
/* logo pequena no canto superior esquerdo (como a Netflix), sem mexer no resto */
body.modo-landing header.topo .logo { display: block; }
body.modo-landing .topo .wrap { justify-content: space-between; }
.landing-marca { display: none; }
body.modo-landing .landing { padding-top: 96px; }
.landing-card {
  width: min(86%, 560px); flex: 1 1 auto; height: auto; min-height: 240px;
  border: 1px solid rgba(232,197,71,.45); outline: none;
}
.cta-full { width: min(92%, 560px); }
.landing-membro { width: min(92%, 560px); margin-left: auto; margin-right: auto; }
.logo-img { display: block; height: 34px; width: auto; max-width: min(46vw, 210px); object-fit: contain; }
@media (max-height: 700px) { .landing-logo { width: min(52vw, 280px); } }
@media (max-width: 640px) { .logo-img { height: 28px; max-width: 150px; } }

/* ── v9 (local, ainda não publicada): landing fiel à prévia aprovada ──
   Logo e "Entrar" flutuam sobre o fundo (sem faixa/barra de topo);
   cartão com 92% da largura da tela; título com as mesmas quebras da prévia. */
body.modo-landing header.topo {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; border-bottom: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.modo-landing .landing {
  height: 100svh;
  padding: 138px 0 calc(12px + env(safe-area-inset-bottom));
}

/* ── v11 (local, ainda não publicada): reproduz a imagem enviada pelo Gideão ──
   Logo grande no canto superior esquerdo, cabeçalho mais baixo,
   cartão mais curto (topo 204 / base 597 CSS px na tela de referência). */
body.modo-landing .topo .wrap { padding-top: 44px; }
body.modo-landing .logo-img { height: 56px; max-width: 230px; }
body.modo-landing .landing { padding-top: 189px; padding-top: 22.4svh; }
.landing-card { flex: 0 0 auto; height: 406px; height: 48.1svh; }
.landing .dots { margin-top: 4px; }
.landing-texto h1 { font-size: clamp(28px, 7.4vw, 38px); }
.landing-texto h1 { font-size: clamp(26px, 7vw, 36px); line-height: 1.18; }

/* ── v13 (local, ainda não publicada): efeito do botão (v12) aplicado à logo ── */
body.modo-landing .logo { position: relative; }
body.modo-landing .logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.5) 50%, transparent 58%);
  background-size: 280% 100%;
  -webkit-mask-image: url("../logo-netreino.webp"); mask-image: url("../logo-netreino.webp");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: brilho-logo 4s ease-in-out infinite;
}
@keyframes brilho-logo {
  0%, 52% { background-position: 100% 0; }
  88%, 100% { background-position: 0% 0; }
}

/* ── v14 (local, ainda não publicada): 3 seções em banners tipo filme ── */
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.slide.ativa { opacity: 1; pointer-events: auto; }
.slide img.fundo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: banner-zoom 10s ease-in-out infinite alternate;
}
@keyframes banner-zoom {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.07) translateY(-4px); }
}
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 38%, rgba(0,0,0,.55) 66%, rgba(0,0,0,.92) 88%, rgba(0,0,0,.97));
}
.slide-texto { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 22px 24px; text-align: center; }
.slide-texto .kicker { color: var(--gold2); letter-spacing: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.slide-texto h1 { font-size: clamp(25px, 6.8vw, 34px); line-height: 1.16; margin: 8px 0 8px; }
.slide-texto p { color: #e8e2d2; font-size: 15px; }
.landing .dots span { cursor: pointer; }

/* ── v15 (local, ainda não publicada): mosaico tipo Netflix nas 3 seções ── */
.wall2 {
  position: absolute; inset: 0;
  display: flex; gap: 7px; padding: 9px;
  animation: wall2-drift 16s ease-in-out infinite alternate;
}
@keyframes wall2-drift {
  from { transform: translateY(-7px) scale(1.045); }
  to { transform: translateY(7px) scale(1.045); }
}
.wall2 .col { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wall2 .col.desloc { transform: translateY(16px); }
.wall2 .tile { border-radius: 10px; min-height: 0; overflow: hidden; position: relative; background: #141414; }
.wall2 .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall2 .tile.t8 { flex: 0.8; }
.wall2 .tile.t9 { flex: 0.95; }
.wall2 .tile.t10 { flex: 1.05; }
.wall2 .tile.t11 { flex: 1.15; }
.wall2 .tile.t12 { flex: 1.3; }
.wall2 .tile img.pos-t { object-position: top; }
.wall2 .tile img.pos-b { object-position: bottom; }

/* ── v16 (local, ainda não publicada): banners com as capas das séries ── */
.slide::after {
  background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,.28) 82%, rgba(0,0,0,.55) 100%);
}

/* ── v17 (local, ainda não publicada): mosaico estático estilo Netflix ── */
.wall2 { animation: none; }
.slide::after {
  background: linear-gradient(180deg, transparent 34%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.97) 100%);
}

/* ── v18 (local, ainda não publicada): adaptação para computador ──
   Só telas largas (min-width: 900px). O CSS do celular continua intocado. */
@media (min-width: 900px) {
  .landing-card { width: min(72%, 980px); max-width: 980px; height: 58svh; }
  .cta-full, .landing-membro { width: min(72%, 980px); max-width: 980px; }
  .slide-texto { padding: 0 48px 34px; }
  .slide-texto .kicker { font-size: 13px; letter-spacing: 4px; }
  .slide-texto h1 { font-size: clamp(30px, 3.2vw, 46px); }
  .slide-texto p { font-size: 17px; }
  .wall2 { gap: 10px; padding: 12px; }
  .wall2 .tile { border-radius: 14px; }
  body.modo-landing .logo-img { height: 64px; max-width: 260px; }
  .landing .dots { margin-top: 8px; }
  .landing .dots span { width: 9px; height: 9px; }
}

/* ── Plano de leitura: passagem marcada e volta ── */
.ref-dia { font-style: normal; font-size: 13px; color: var(--gold2); font-weight: 600; }
.plano-contexto { display: flex; flex-direction: column; gap: 8px; background: rgba(212,175,55,.12); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 12px; margin-bottom: 16px; scroll-margin-top: 84px; }
.plano-contexto button { align-self: flex-start; background: var(--gold); color: #111; border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.plano-contexto span { font-size: 14px; color: var(--text); }
#leitura { scroll-margin-top: 76px; }
.plano-contexto button { background: var(--gold); color: #111; border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.plano-contexto span { font-size: 14px; color: var(--text); }
#leitura .versiculo.passagem-plano { background: rgba(212,175,55,.18); border-left: 3px solid var(--gold); padding-left: 12px; border-radius: 0 8px 8px 0; }

/* ── Plano: dia atual e progresso ── */
.plano-progresso { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.plano-progresso .barra { flex: 1; height: 8px; background: #2a2a35; border-radius: 99px; overflow: hidden; }
.plano-progresso .barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 99px; transition: width .4s; }
.plano-progresso span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.dia-row.hoje { border-color: var(--gold); background: rgba(212,175,55,.10); box-shadow: 0 0 0 1px var(--gold); }
.tag-hoje { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; background: var(--gold); color: #111; border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 1px; }

/* ── Minhas anotações / esboços ── */
/* Abas da Bíblia: Leitura × Anotações */
.abas-biblia { display: flex; gap: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 18px 0 14px; }
.aba-biblia { flex: 1; padding: 10px 8px; border: none; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.aba-biblia.ativa { background: linear-gradient(180deg, #fdf3c4 0%, #f0d264 45%, #c9a227 100%); color: #1a1405; }
.aba-cont { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: rgba(0,0,0,.18); font-size: 12px; font-weight: 800; vertical-align: 2px; }
.aba-cont[hidden] { display: none; }
.aba-biblia:not(.ativa) .aba-cont { background: rgba(232,197,71,.18); color: var(--gold2); }

.nota-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.nota-ref { color: var(--gold2); font-weight: 800; font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.nota-ref .cor-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.cor-amarelo { background: #f5c518; } .cor-verde { background: #4caf50; } .cor-azul { background: #42a5f5; }
.nota-verso { font-style: italic; color: var(--text); margin: 0 0 8px; font-size: 15px; }
.nota-texto { color: var(--muted); font-size: 14px; margin: 0 0 10px; white-space: pre-wrap; }
.nota-texto.vazio { font-style: italic; opacity: .7; }
.nota-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
/* Anotações recolhíveis */
.nota-cabeca { width: 100%; background: none; border: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; }
.nota-cabeca .nota-ref { margin-bottom: 0; }
.nota-seta { color: var(--gold2); font-size: 13px; transition: transform .18s; flex: none; }
.nota-card.aberta .nota-seta { transform: rotate(90deg); }
.nota-card .nota-corpo { display: none; }
.nota-card.aberta .nota-corpo { display: block; margin-top: 8px; }
#modal-editar-nota textarea { width: 100%; box-sizing: border-box; background: #14141c; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 15px; }
#modal-editor textarea { width: 100%; box-sizing: border-box; background: #14141c; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 15px; resize: vertical; }
.sheet-grande { max-height: 86vh; overflow-y: auto; }
.esb-acoes-topo { display: flex; gap: 6px; margin-bottom: 10px; }
.esb-item { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.esb-ref { color: var(--gold2); font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.esb-verso { font-style: italic; margin: 0 0 8px; font-size: 14px; }
.esb-texto { margin: 0 0 8px; font-size: 15px; white-space: pre-wrap; }
.esb-nota { margin: 0 0 8px; font-size: 14px; white-space: pre-wrap; border-left: 2px solid var(--gold2); padding-left: 8px; opacity: .92; }
.esb-item-acoes { display: flex; gap: 6px; }
.esb-add { display: flex; gap: 6px; margin-top: 10px; align-items: center; }
.esb-add input { background: #14141c; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: 14px; }

/* Retorno visível — toast, erro com retry e estado vazio (12/10/2026) */
.toast { position: fixed; left: 50%; transform: translate(-50%, 16px); bottom: 28px; z-index: 200;
  background: #1f1f2c; color: var(--text); border: 1px solid var(--gold); border-radius: 999px;
  padding: 11px 20px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 32px rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 92vw; text-align: center; }
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }
.toast-erro { border-color: var(--danger); }
@media (max-width: 768px) { .toast { bottom: 92px; } }
.erro-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 18px; text-align: center; margin: 14px 0; }
.erro-box p { color: var(--muted); margin-bottom: 14px; }
.vazio-box { border: 1px dashed var(--line); border-radius: 12px; padding: 22px 18px;
  text-align: center; margin: 14px 0; }
.vazio-box p { color: var(--muted); margin: 0; }

/* Erro do player (item 5, 12/10/2026) */
.player-erro { position: absolute; inset: 0; z-index: 5; background: rgba(10,10,14,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 20px; }
.player-erro[hidden] { display: none; }
.player-erro p { color: var(--text); font-size: 16px; margin: 0; }

/* Tamanho do texto da Bíblia (item 3, 12/10/2026) */
.tam-fonte { display: flex; gap: 6px; align-items: center; }
.tam-fonte .btn-mini[disabled] { opacity: .35; cursor: default; }

/* Ouvir a Bíblia: versículo sendo lido (15/10/2026) */
.leitura .versiculo.lendo { background: rgba(201, 162, 39, .16); box-shadow: inset 3px 0 0 var(--gold); }

/* Busca geral da home (15/10/2026) */
.busca-geral { margin: 18px 0 4px; }
.busca-geral input { width: 100%; background: #14141c; color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.busca-grupo { margin-top: 16px; }
.busca-grupo h3 { color: var(--gold2); font-size: 14px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.busca-item { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 8px; }
.busca-item strong { display: block; }
.busca-item span { color: var(--muted); font-size: 13px; }

/* Minha jornada (Conta, 15/10/2026) */
.jornada-linha { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid #26262f; font-size: 14px; }
.jornada-linha:last-child { border-bottom: none; }
.jornada-linha > span { min-width: 0; }
.jornada-linha b { color: var(--gold2); text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* Sininho de avisos no topo (15/10/2026) */
.btn-sino { position: relative; font-size: 18px; text-decoration: none; padding: 4px 2px; }
.sino-badge { position: absolute; top: -2px; right: -6px; background: #d64545; color: #fff;
  font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.sino-badge[hidden] { display: none; }

/* Central de avisos (15/10/2026) */
.aviso-item { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; width: 100%;
  text-align: left; color: var(--text); font: inherit; }
.aviso-item .av-icone { font-size: 22px; line-height: 1.2; }
.aviso-item .av-corpo { flex: 1; }
.aviso-item .av-corpo strong { display: block; margin-bottom: 2px; }
.aviso-item .av-corpo p { color: var(--muted); font-size: 14px; margin: 0; }
.aviso-item .av-data { color: var(--muted); font-size: 12px; white-space: nowrap; }
.aviso-item.nao-lida { border-color: var(--gold); }
.aviso-item.nao-lida .av-corpo strong::after { content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold2); margin-left: 8px; vertical-align: middle; }

/* ── Biblioteca e leitor de livros (v30) ── */
.livros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
.livro-card { display: block; transition: transform .15s; }
.livro-card:hover { transform: translateY(-4px); }
.livro-capa { position: relative; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.livro-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.livro-card:hover .livro-capa { border-color: var(--gold); }
.livro-card h3 { font-size: 14px; margin: 8px 2px 2px; line-height: 1.3; }
.livro-card p { font-size: 12px; color: var(--muted); margin: 0 2px; }
.livro-selo { position: absolute; left: 8px; bottom: 8px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .4px; padding: 4px 9px; border-radius: 99px; background: rgba(10,10,14,.82); border: 1px solid var(--line); color: var(--text); }
.livro-selo.gratis { color: var(--gold2); border-color: var(--gold); }
.livro-selo.amostra { color: #f2ead2; border-color: rgba(232,197,71,.55); }
.livro-info .livro-selo { position: static; display: inline-block; margin: 4px 0 10px; }
.livro-prog { height: 5px; background: #2a2a35; border-radius: 99px; overflow: hidden; margin: 7px 2px 0; }
.livro-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 99px; }
.livro-card > a { display: block; color: inherit; text-decoration: none; }
.livro-remover { display: block; width: 100%; margin-top: 10px; padding: 7px 10px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.livro-remover:hover { color: var(--text); border-color: var(--gold); }

.livro-detalhe { display: flex; gap: 24px; margin-top: 16px; align-items: flex-start; }
.livro-capa-grande { flex: 0 0 210px; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.livro-capa-grande img { width: 100%; height: 100%; object-fit: cover; display: block; }
.livro-info { flex: 1; min-width: 0; }
.livro-autor { color: var(--muted); margin-bottom: 6px; }
.livro-desc { color: #d8d2c2; margin-bottom: 18px; white-space: pre-wrap; }
.livro-acoes { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.livro-breve { color: var(--muted); font-size: 14px; font-style: italic; }
@media (max-width: 640px) {
  .livro-detalhe { flex-direction: column; }
  .livro-capa-grande { flex-basis: auto; width: 170px; margin: 0 auto; }
  .livro-info { text-align: center; }
  .livro-acoes { justify-content: center; }
}

.cap-lista { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.cap-row { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
a.cap-row:hover { border-color: var(--gold); }
.cap-row.bloqueado { opacity: .55; }
.cap-num { width: 34px; height: 34px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gold2); flex-shrink: 0; font-size: 14px; }
.cap-titulo { flex: 1; font-size: 15px; }
.cap-cadeado { font-size: 15px; }

/* Leitor: coluna de leitura confortável, serifada */
.leitor { max-width: 680px; margin: 14px auto 0; }
.leitor-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.leitor-pos { color: var(--muted); font-size: 13px; }
.fonte-controles { display: flex; gap: 6px; }
.fonte-controles button { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 13px; font-size: 14px; font-weight: 700; cursor: pointer; }
.fonte-controles button:hover { border-color: var(--gold); color: var(--gold2); }
.leitor-select { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; font-size: 15px; margin-bottom: 20px; }
.leitor-titulo { font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.25; margin-bottom: 20px; color: var(--gold2); }
.leitor-corpo { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.85; color: #ece7d8; }
.leitor-corpo p { margin-bottom: 1.15em; }
.leitor-corpo h1, .leitor-corpo h2, .leitor-corpo h3, .leitor-corpo h4, .leitor-corpo h5, .leitor-corpo h6 { font-family: Georgia, "Times New Roman", serif; color: var(--gold2); line-height: 1.3; margin: 1.4em 0 .6em; }
.leitor-corpo h1 { font-size: 1.45em; } .leitor-corpo h2 { font-size: 1.3em; } .leitor-corpo h3 { font-size: 1.15em; }
.leitor-corpo blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; margin: 0 0 1.15em; color: #d8d2c2; font-style: italic; }
.leitor-corpo ul, .leitor-corpo ol { margin: 0 0 1.15em 1.3em; }
.leitor-corpo li { margin-bottom: .4em; }
.leitor-corpo a { color: var(--gold2); text-decoration: underline; }
.leitor-corpo hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.leitor-corpo img { max-width: 100%; height: auto; border-radius: 10px; }
.leitor-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Paywall ao fim da amostra */
.paywall { max-width: 560px; margin: 34px auto; background: var(--card); border: 1px solid var(--gold); border-radius: 16px; padding: 30px 24px; text-align: center; }
.paywall-icone { font-size: 38px; margin-bottom: 10px; }
.paywall h2 { font-size: 21px; margin-bottom: 10px; }
.paywall p { color: #d8d2c2; font-size: 15px; margin-bottom: 20px; }
.paywall-acoes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Leitor v2 — tela cheia paginada (padrão Apple Books, 27/10/2026) ── */
body.lendo { overflow: hidden; }
.lv [hidden] { display: none !important; }
body.lendo header.topo, body.lendo .bottomnav { display: none !important; }
.lv { position: fixed; inset: 0; z-index: 60; --lv-bg: #f3e9d2; --lv-fg: #171310; --lv-suave: rgba(23,19,16,.55); --lv-linha: rgba(23,19,16,.16); --lv-destaque: #8a6d1c; background: var(--lv-bg); color: var(--lv-fg); }
.lv[data-tema="original"] { --lv-bg: #ffffff; --lv-fg: #101010; --lv-suave: rgba(0,0,0,.5); --lv-linha: rgba(0,0,0,.12); --lv-destaque: #8a6d1c; }
.lv[data-tema="papel"] { --lv-bg: #e9e9e9; --lv-fg: #161616; --lv-suave: rgba(0,0,0,.5); --lv-linha: rgba(0,0,0,.13); --lv-destaque: #8a6d1c; }
.lv[data-tema="relaxante"] { --lv-bg: #f3e9d2; --lv-fg: #171310; --lv-suave: rgba(23,19,16,.55); --lv-linha: rgba(23,19,16,.16); --lv-destaque: #8a6d1c; }
.lv[data-tema="silencioso"] { --lv-bg: #17171d; --lv-fg: #e9e2cf; --lv-suave: rgba(233,226,207,.5); --lv-linha: rgba(233,226,207,.16); --lv-destaque: #e8c547; }
#lv-wrap { position: absolute; inset: 0; overflow: hidden; }
.lv.lv-scroll #lv-wrap { overflow-y: auto; overflow-x: hidden; }
#lv-fluxo { height: 100%; box-sizing: border-box; padding: calc(58px + env(safe-area-inset-top)) 36px calc(72px + env(safe-area-inset-bottom)); column-width: calc(100vw - 72px); column-gap: 72px; column-fill: auto; will-change: transform; }
.lv.lv-scroll #lv-fluxo { height: auto; min-height: 100%; column-width: auto; column-gap: normal; transform: none !important; }
/* Diagramação no modelo do Apple Books: a estrutura vem do próprio livro
   (títulos/epígrafes/itálicos preservados na importação) e o leitor aplica
   o ritmo de livro — entrelinha fechada (a do EPUB é 1.364), parágrafos
   SEM espaço entre si e separados pelo recuo de primeira linha, como no
   papel. Os temas do leitor controlam só fonte/cor/tamanho. */
/* Fontes do livro Reino (embutidas no EPUB original, servidas pelo app):
   Adobe Caslon Pro no corpo e Florentia Light nos títulos — as mesmas que
   o app Livros usa ao abrir o original. */
@font-face { font-family: "Adobe Caslon Pro"; src: url("../fontes/caslon-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Adobe Caslon Pro"; src: url("../fontes/caslon-italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Adobe Caslon Pro"; src: url("../fontes/caslon-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Adobe Caslon Pro"; src: url("../fontes/caslon-bolditalic.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Florentia Light"; src: url("../fontes/florentia-light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Florentia Light"; src: url("../fontes/florentia-lightitalic.ttf") format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }
.lv-texto { font-family: "Adobe Caslon Pro", "Iowan Old Style", "Palatino Nova", Palatino, "Palatino Linotype", Georgia, serif; font-size: 19px; line-height: 1.36; color: var(--lv-fg); -webkit-font-smoothing: antialiased; text-shadow: 0 0 .5px currentColor; }
.lv-texto p { margin: 0; text-indent: 1.8em; text-align: left; hyphens: none; -webkit-hyphens: none; }
.lv-texto h1, .lv-texto h2, .lv-texto h3, .lv-texto h4, .lv-texto h5, .lv-texto h6 { font-family: "Florentia Light", "Adobe Caslon Pro", "Iowan Old Style", "Palatino Nova", Palatino, Georgia, serif; font-weight: 300; color: var(--lv-fg); line-height: 1.3; margin: 1.3em 0 .55em; break-after: avoid; }
.lv-texto h1 { font-size: 1.4em; } .lv-texto h2 { font-family: "Bodoni 72", Didot, "Florentia Light", "Adobe Caslon Pro", Georgia, serif; font-size: 22px; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; margin: .35em 0 .4em; } .lv-texto h3 { font-size: 1.14em; }
.lv-texto blockquote { margin: .55em 0 .6em; padding: 0 .8em; text-align: center; font-size: .97em; break-inside: avoid; }
.lv-texto blockquote + blockquote { margin-top: .3em; }
.lv-texto blockquote p { text-indent: 0; text-align: center; margin: 0 0 .35em; }
.lv-texto blockquote p:last-child { margin-bottom: 0; }
.lv-texto ul, .lv-texto ol { margin: 0 0 1.1em 1.25em; }
.lv-texto li { margin-bottom: .35em; }
.lv-texto a { color: var(--lv-destaque); text-decoration: underline; }
.lv-texto hr { border: 0; border-top: 1px solid var(--lv-linha); margin: 1.5em 0; }
.lv-texto img { max-width: 100%; height: auto; border-radius: 8px; }
.lv-cap-titulo { font-family: "Bodoni 72", Didot, "Florentia Light", "Adobe Caslon Pro", Georgia, serif; font-size: 23px !important; line-height: 1.25 !important; margin: .3em 0 .12em !important; color: var(--lv-fg) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .04em; text-indent: .9em; }
.lv-texto .lv-cap-titulo + h2 { margin-top: .08em; }
.lv-texto h2 + p, .lv-texto blockquote + p { text-indent: 0 !important; }
.lv-paginfo { position: absolute; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); text-align: center; font-size: 12.5px; color: var(--lv-suave); pointer-events: none; z-index: 3; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
#lv-medidor { position: fixed; top: 0; left: -10000px; right: auto; bottom: auto; width: 100vw; height: 100dvh; visibility: hidden; pointer-events: none; z-index: -1; }
#lv-medidor-wrap { position: absolute; inset: 0; overflow: hidden; }
#lv-medidor-fluxo { height: 100%; box-sizing: border-box; padding: calc(58px + env(safe-area-inset-top)) 36px calc(72px + env(safe-area-inset-bottom)); column-width: calc(100vw - 72px); column-gap: 72px; column-fill: auto; }
#lv-medidor.lv-scroll #lv-medidor-fluxo { height: auto; min-height: 100%; column-width: auto; column-gap: normal; }
.lv-topo { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 66px 18px 10px; background: linear-gradient(180deg, var(--lv-bg) 55%, transparent); opacity: 0; pointer-events: none; transition: opacity .22s; }
.lv-controles .lv-topo { opacity: 1; pointer-events: auto; }
.lv-livro-titulo { flex: 1; text-align: center; font-size: 13.5px; color: var(--lv-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.lv-fecharbtn { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 10px; z-index: 6; width: 46px; height: 46px; border-radius: 50%; background: var(--lv-fechar-bg, #ffffff); color: var(--lv-fechar-fg, #4c4c4c); display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,.20); }
.lv[data-tema="silencioso"] { --lv-fechar-bg: #2b2b33; --lv-fechar-fg: #e9e2cf; }
.lv-iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--lv-linha); background: color-mix(in srgb, var(--lv-bg) 78%, transparent); color: var(--lv-fg); font-size: 19px; display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; backdrop-filter: blur(4px); flex: 0 0 auto; }
.lv-iconbtn.lv-aa { font-family: Georgia, serif; font-size: 16px; font-weight: 700; }
.lv-fundo { position: absolute; inset: 0; background: rgba(8,6,2,.38); z-index: 6; }
.lv-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; max-height: 78dvh; overflow-y: auto; background: var(--lv-bg); color: var(--lv-fg); border-radius: 20px 20px 0 0; border-top: 1px solid var(--lv-linha); box-shadow: 0 -12px 34px rgba(0,0,0,.28); padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); font-family: -apple-system, "Segoe UI", Roboto, sans-serif; animation: lv-sobe .24s ease; }
@keyframes lv-sobe { from { transform: translateY(26px); opacity: .4; } to { transform: none; opacity: 1; } }
.lv-sheet-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lv-sheet-cab h2 { font-size: 19px; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.lv-fechar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--lv-linha); background: transparent; color: var(--lv-fg); font-size: 15px; cursor: pointer; }
.lv-progresso-livro { font-size: 13px; color: var(--lv-suave); margin-bottom: 10px; }
.lv-lista-caps { display: flex; flex-direction: column; }
.lv-cap-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--lv-linha); padding: 12px 4px; color: var(--lv-fg); font-size: 15px; cursor: pointer; font-family: inherit; }
.lv-cap-item.atual { font-weight: 700; }
.lv-cap-item.atual .lv-cap-num { background: var(--lv-destaque); color: var(--lv-bg); }
.lv-cap-num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--lv-linha); display: flex; align-items: center; justify-content: center; font-size: 12.5px; flex: 0 0 auto; }
.lv-cap-nome { flex: 1; }
.lv-aj-linha { margin-bottom: 16px; }
.lv-fonte-btns { display: flex; background: color-mix(in srgb, var(--lv-fg) 7%, transparent); border-radius: 99px; overflow: hidden; }
.lv-fonte-btn { flex: 1; padding: 12px 0; background: transparent; border: 0; color: var(--lv-fg); cursor: pointer; font-family: Georgia, serif; font-weight: 700; }
.lv-fonte-btn.menor { font-size: 15px; border-right: 1px solid var(--lv-linha); }
.lv-fonte-btn.maior { font-size: 21px; }
.lv-brilho-linha { display: flex; align-items: center; gap: 12px; }
.lv-brilho-icone { color: var(--lv-suave); }
.lv-brilho-icone.menor { font-size: 13px; } .lv-brilho-icone.maior { font-size: 19px; }
#lv-brilho { flex: 1; accent-color: var(--lv-destaque); }
.lv-temas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lv-tema { border-radius: 14px; border: 2px solid var(--lv-linha); padding: 12px 4px 9px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: inherit; font-size: 12px; background: #fff; color: #222; }
.lv-tema .lv-tema-aa { font-family: "Adobe Caslon Pro", Georgia, serif; font-size: 21px; }
/* Botão de menu permanente (canto inferior direito) — pedido dele 27/10/2026:
   nunca some durante a leitura; abre Conteúdo e Temas e Ajustes. */
.lv-fab { position: absolute; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--lv-linha); background: color-mix(in srgb, var(--lv-bg) 84%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--lv-fg); font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 17px; box-shadow: 0 8px 20px rgba(0,0,0,.28); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lv-fab:active { transform: scale(.94); }
.lv-menu { position: absolute; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 8; width: min(252px, calc(100vw - 28px)); background: var(--lv-bg); color: var(--lv-fg); border: 1px solid var(--lv-linha); border-radius: 16px; box-shadow: 0 16px 38px rgba(0,0,0,.32); overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; animation: lv-sobe .18s ease; }
.lv-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; background: transparent; border: 0; color: var(--lv-fg); font-size: 15.5px; cursor: pointer; font-family: inherit; text-align: left; }
.lv-menu button + button { border-top: 1px solid var(--lv-linha); }
.lv-menu .lv-menu-icone { font-size: 17px; width: 22px; text-align: center; flex: 0 0 auto; }
.lv-menu .lv-menu-rotulo { flex: 1; }
.lv-menu .lv-menu-extra { font-size: 12.5px; color: var(--lv-suave); }
.lv-menu .lv-menu-aa { font-family: "Adobe Caslon Pro", Georgia, serif; font-weight: 700; font-size: 16px; }
.lv-tema[data-tema="original"] { background: #ffffff; color: #1b1b1b; }
.lv-tema[data-tema="papel"] { background: #e9e9e9; color: #202020; }
.lv-tema[data-tema="relaxante"] { background: #f3e9d2; color: #2e2418; }
.lv-tema[data-tema="silencioso"] { background: #17171d; color: #e9e2cf; }
.lv-tema.ativo { border-color: var(--lv-destaque); box-shadow: 0 0 0 1px var(--lv-destaque); }
.lv-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--lv-suave); font-size: 15px; z-index: 2; padding: 24px; text-align: center; }
.lv-paywall { position: absolute; inset: 0; overflow-y: auto; padding: calc(18px + env(safe-area-inset-top)) 18px 30px; z-index: 4; }
.lv-paywall .paywall { background: color-mix(in srgb, var(--lv-fg) 5%, var(--lv-bg)); border-color: var(--lv-destaque); color: var(--lv-fg); }
.lv-paywall .paywall p { color: var(--lv-fg); opacity: .85; }
.lv-paywall .btn.ghost { color: var(--lv-fg); border: 1px solid var(--lv-destaque); background: transparent; box-shadow: none; }
.lv-pay-voltar { color: var(--lv-suave); text-decoration: none; font-size: 14.5px; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
@media (min-width: 760px) {
  .lv-sheet { left: auto; width: 430px; border-radius: 20px 0 0 0; }
}

/* Página do livro — apresentação do produto (v45) */
.livro-preco { font-size: 27px; font-weight: 800; color: var(--gold2); margin: 10px 0 2px; }
.livro-secao { margin-top: 30px; }
.livro-secao h2 { font-size: 19px; color: var(--gold2); margin-bottom: 10px; }
.livro-secao p { color: var(--text); line-height: 1.65; }
.livro-dados { margin: 0; }
.livro-dados > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.livro-dados dt { color: var(--muted); }
.livro-dados dd { margin: 0; text-align: right; font-weight: 600; }
.autor-box { display: flex; gap: 14px; align-items: flex-start; }
.autor-foto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); }
.autor-box h3 { margin: 2px 0 6px; font-size: 16px; }
.autor-box p { font-size: 14px; }

/* Loja — vitrine comercial (v46) */
.btn-secundario { background: transparent; border: 1px solid var(--gold); color: var(--gold2); display: inline-flex; align-items: center; gap: 8px; }
.btn-secundario svg { width: 18px; height: 18px; }
.loja-cab { display: flex; align-items: center; justify-content: space-between; }
.loja-cart-btn { position: relative; display: inline-flex; padding: 8px; color: var(--text); }
.loja-cart-icone svg { width: 26px; height: 26px; display: block; }
.cart-badge { position: absolute; top: 0; right: 0; background: var(--gold); color: #14100a; font-size: 11px; font-weight: 800; min-width: 19px; height: 19px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.loja-busca { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 13px; margin: 14px 0 12px; }
.loja-busca svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.loja-busca input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-size: 16px; height: 46px; }
.loja-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.loja-chips::-webkit-scrollbar { display: none; }
.loja-chip { flex: none; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.loja-chip.ativo { background: var(--gold); color: #14100a; font-weight: 700; border-color: var(--gold); }
.loja-hero { display: flex; gap: 16px; background: linear-gradient(135deg, #1b1712, #121016); border: 1px solid var(--gold); border-radius: 18px; padding: 16px; margin: 14px 0 6px; }
.loja-hero-capa { flex: none; width: 118px; }
.loja-hero-capa img { width: 118px; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; display: block; }
.loja-hero-info { min-width: 0; }
.loja-hero-selo { color: var(--gold2); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.loja-hero-info h2 { font-size: 20px; margin: 0 0 4px; line-height: 1.25; }
.loja-hero-autor { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.loja-hero-preco { font-size: 24px; font-weight: 800; color: var(--gold2); margin: 0 0 12px; }
.loja-hero-acoes { display: flex; flex-wrap: wrap; gap: 9px; }
.loja-amostra-link { display: inline-block; margin-top: 12px; color: var(--gold2); font-size: 14px; }
.vitrine { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.vitrine::-webkit-scrollbar { display: none; }
/* Cartões de produto padronizados: TODOS com 128px de largura e capa 2/3,
   em todas as seções (vitrines e grade). O min-width: 0 é essencial: sem
   ele, o tamanho mínimo automático do item flex/grid (min-content) deixa
   a linha .loja-card-autor (nowrap) esticar o cartão além dos 128px —
   era o que fazia o cartão do físico (238px) e o do combo (165px)
   saírem maiores que o do e-book (128px) na mesma vitrine. */
.vitrine .loja-card { flex: 0 0 128px; min-width: 0; }
.loja-grid { display: grid; grid-template-columns: repeat(auto-fill, 128px); gap: 18px 14px; }
.loja-grid .loja-card { min-width: 0; }
.loja-card-capa { display: block; }
.loja-card-capa img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; display: block; background: var(--card); }
.loja-card-titulo { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-weight: 600; font-size: 14px; line-height: 1.3; margin-top: 8px; text-decoration: none; }
.loja-card-autor { color: var(--muted); font-size: 12px; margin: 3px 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-card-acoes { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.loja-preco { font-size: 16px; font-weight: 800; color: var(--gold2); }
.loja-frete-gratis { display: block; margin-top: 6px; color: #7bc47f; font-size: 12px; font-weight: 700; }
.loja-add { background: var(--card); border: 1px solid var(--gold); color: var(--gold2); border-radius: 10px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.loja-add svg { width: 19px; height: 19px; }
.loja-dono { color: #7bc47f; font-size: 13px; font-weight: 600; text-decoration: none; }
.loja-breve, .loja-gratis { color: var(--muted); font-size: 13px; font-weight: 600; }
.loja-gratis { color: #7bc47f; }
.livro-comprar { display: inline-flex; flex-wrap: wrap; gap: 9px; }

/* Carrinho e compra (v46) */
.cart-item { display: flex; gap: 13px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 11px; }
.cart-item-capa img { width: 52px; aspect-ratio: 2/3; object-fit: cover; border-radius: 7px; display: block; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { margin: 0 0 2px; font-size: 15px; }
.cart-item-info p { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.cart-remover { background: none; border: 0; color: #e08a8a; font-size: 13px; cursor: pointer; flex: none; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 17px; padding: 14px 2px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.cart-total strong { font-size: 22px; color: var(--gold2); }
.cart-nota { color: var(--muted); font-size: 13px; line-height: 1.55; }
.cart-erro { color: #e08a8a; font-size: 14px; }
.cart-finalizar { width: 100%; margin-top: 10px; }
.cs-item { font-size: 16px; margin: 6px 0; }
#cs-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#cs-acoes[hidden] { display: none; }
.cart-badge[hidden] { display: none; }
.loja-hero-acoes .btn { justify-content: center; width: 100%; }

/* Tema LOJA — ambiente claro estilo Kindle (v47): a loja é OUTRO ambiente
   dentro do app (fundo papel, cartões brancos, botões amarelos de compra,
   preço em vermelho-loja). Vale na vitrine, no carrinho, na confirmação e
   na página do produto quando ela vem da Loja. O resto do app segue escuro. */
body.tema-loja {
  --bg: #faf7f1; --bg2: #f1ece1; --card: #ffffff;
  --gold: #d97706; --gold2: #b45309; --text: #1c1917; --muted: #6f6a5e;
  --line: #e3dccb;
  background: var(--bg);
}
body.tema-loja header.topo { background: rgba(250,247,241,.96); border-bottom: 1px solid var(--line); }
body.tema-loja .logo { background: #171310; border-radius: 10px; padding: 2px 10px 4px; }
body.tema-loja .btn { background: linear-gradient(180deg, #f7dfa5, #f0c14b); border: 1px solid #a88734; color: #111; box-shadow: 0 1px 2px rgba(28,25,23,.18); }
body.tema-loja .btn:hover { background: linear-gradient(180deg, #f5d78e, #eeb933); }
body.tema-loja .btn-secundario { background: #fff; border: 1px solid #8a8378; color: #1c1917; box-shadow: none; }
body.tema-loja .loja-preco, body.tema-loja .loja-hero-preco,
body.tema-loja .livro-preco, body.tema-loja .cart-total strong { color: #b12704; }
body.tema-loja h2.row-title { color: #1c1917; }
body.tema-loja .livro-secao h2 { color: #1c1917; }
body.tema-loja .loja-busca { background: #fff; border-color: #d8d2c0; box-shadow: inset 0 1px 3px rgba(28,25,23,.07); }
body.tema-loja .loja-chip { background: #fff; }
body.tema-loja .loja-chip.ativo { background: #1c1917; color: #fff; border-color: #1c1917; }
body.tema-loja .loja-hero { background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(28,25,23,.09); }
body.tema-loja .loja-hero-selo { color: #e77600; }
body.tema-loja .loja-card-capa img, body.tema-loja .loja-hero-capa img { box-shadow: 0 3px 10px rgba(28,25,23,.20); }
body.tema-loja .cart-item { background: #fff; box-shadow: 0 2px 8px rgba(28,25,23,.06); }
body.tema-loja .cart-badge { background: #b12704; color: #fff; }
body.tema-loja .loja-add { background: #fff; border-color: #a88734; color: #7a5b12; }
body.tema-loja .loja-cart-btn { color: #1c1917; }
body.tema-loja .bottomnav { background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
body.tema-loja .bottomnav a.ativo { color: #e77600; }
body.tema-loja .cart-remover { color: #b12704; }
body.tema-loja .livro-selo { background: #fff; border: 1px solid #a88734; color: #7a5b12; }

/* Combo, bump de checkout e comunidade (v48) */
.combo-card { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; max-width: 560px; }
.combo-capa { position: relative; flex: 0 0 104px; }
.combo-capa img { width: 104px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; display: block; }
.combo-fita { display: inline-block; background: #b12704; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 4px; margin: 8px 0 2px; }
.combo-info .combo-fita { margin: 0 0 8px; }
.loja-card-capa { position: relative; }
.combo-info { flex: 1; min-width: 0; }
.combo-info h3 { font-size: 19px; margin-bottom: 4px; }
.combo-inclui { font-size: 13px; font-weight: 700; color: var(--gold2); margin-bottom: 6px; }
.combo-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.combo-nota { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.combo-capa a { display: block; }
.combo-info h3 a { color: inherit; text-decoration: none; }
/* Página do produto (produto.html) — lista "O que você receberá" */
.produto-recebe { list-style: none; padding: 0; margin: 0; }
.produto-recebe li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line); line-height: 1.55; color: var(--text); }
.produto-recebe li:last-child { border-bottom: none; }
.produto-recebe li::before { content: "✓"; position: absolute; left: 2px; top: 9px; color: var(--gold2); font-weight: 800; }
.combo-comprar { margin-top: 10px; width: 100%; }
.bump-box { display: flex; gap: 14px; align-items: center; justify-content: space-between; border: 2px dashed var(--gold); border-radius: 14px; padding: 16px; margin: 18px 0 4px; background: var(--card); }
.bump-box h3 { font-size: 16.5px; margin-bottom: 4px; }
.bump-box p { font-size: 13.5px; color: var(--muted); }
.bump-selo { font-size: 11px !important; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold2) !important; margin-bottom: 4px; }
.bump-box .btn { flex: 0 0 auto; }
.bump-ok { border-style: solid; border-color: #2e7d32; }
.cart-item-capa { position: relative; }
.cart-item-selo { position: absolute; left: 0; bottom: 6px; background: #b12704; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: 1px; padding: 2px 5px; border-radius: 3px; }
.cs-comunidade { margin-top: 26px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 20px; }
.cs-comunidade h2 { font-size: 18px; margin-bottom: 6px; }
.cs-comunidade p { color: var(--muted); margin-bottom: 14px; }
.btn-whats { background: #1faa55 !important; border-color: #147a3c !important; color: #fff !important; }
@media (max-width: 560px) { .bump-box { flex-direction: column; align-items: stretch; } .bump-box .btn { width: 100%; } }

/* Auditoria de layout 07/11/2026: respiro da descrição do episódio e rodapé do app */
.ep-desc { margin-top: 16px; }
.rodape { border-top: 1px solid var(--line); margin-top: 44px; padding: 24px 16px 28px; text-align: center; color: var(--muted); font-size: 13px; }
.rodape-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 10px; }
.rodape-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.rodape-links a:hover { color: var(--gold2); }
.rodape p { margin: 0; opacity: .8; }
body.modo-landing .rodape, body.lendo .rodape { display: none; }

/* Compartilhar produto da Loja (18/11/2026): botão ao lado do carrinho e
   destaque de quem chega pelo link compartilhado (?p=tipo-id) */
.loja-botoes { display: inline-flex; align-items: center; gap: 8px; }
.loja-share { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--gold); background: var(--card); color: var(--gold2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.loja-share svg { width: 18px; height: 18px; }
body.tema-loja .loja-share { background: #fff; border-color: #a88734; color: #7a5b12; }
.produto-destacado { animation: prod-destaque 2.8s ease; }
@keyframes prod-destaque { 0%, 55% { box-shadow: 0 0 0 3px #c9962e, 0 0 0 8px rgba(201,150,46,.28); } 100% { box-shadow: 0 0 0 0 rgba(201,150,46,0); } }

/* Encerramento da amostra gratuita no leitor (19/11/2026): bloco final
   do último capítulo, com o botão "Comprar agora" bem visível. */
.lv-fim-amostra { margin-top: 2.4em; padding-top: 1.5em; border-top: 2px solid var(--gold); text-align: center; break-inside: avoid; }
.lv-texto .lv-fim-titulo { font-size: 20px; line-height: 1.25; margin: 0 0 .6em; }
.lv-texto .lv-fim-amostra p { margin: 0 0 1.2em; text-indent: 0; text-align: center; }
.lv-texto .lv-fim-btn { display: inline-block; padding: 17px 46px; font-size: 19px; border-radius: 999px; background: var(--gold); color: #141414; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.lv-texto .lv-fim-btn:hover { background: var(--gold2); }
