:root {
  color-scheme: light;
  --bg: #FDFAF1;
  --bg-2: #F4EEE0;
  --navy: #142643;
  --navy-2: #07152D;
  --gold: #F3BB00;
  --gold-dark: #C99A00;
  --text: #0F1B2D;
  --text-soft: #4C5666;
  --white: #FFFFFF;
  --green: #399E43;
  --red: #C24444;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.ic { display: inline-flex; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.15em; }
.ic svg { width: 100%; height: 100%; display: block; }

html, body {
  height: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); }

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
button:active { transform: scale(.97); }
a { color: inherit; text-decoration: none; }
input { font-family: inherit; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(78px + var(--safe-bottom));
  background: var(--bg);
  position: relative;
}

/* ---------- Splash screen ---------- */
#splash {
  position: fixed; inset: 0; z-index: 100;
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .5s ease, visibility .5s;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#splash .splash-mark {
  width: 84px; height: 84px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  animation: splash-pop .7s cubic-bezier(.22,1,.36,1);
}
#splash .splash-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
#splash .splash-title { color: #fff; font-family: 'Playfair Display', serif; font-size: 18px; letter-spacing: .3px; text-align: center; }
#splash .splash-sub { color: var(--gold); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
#splash .splash-ring {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.18); border-top-color: var(--gold);
  animation: splash-spin .8s linear infinite;
}
@keyframes splash-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes splash-spin { to { transform: rotate(360deg); } }

/* ---------- Page transition ---------- */
.view-fade { animation: view-fade-in .28s cubic-bezier(.22,1,.36,1); }
@keyframes view-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Ornamental flourish (echoes the gold corner ornaments on the product cover) ---------- */
.flourish { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 14px; opacity: .8; }
.flourish::before, .flourish::after { content: ""; flex: 1; max-width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dark)); }
.flourish::after { background: linear-gradient(90deg, var(--gold-dark), transparent); }
.flourish .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: rotate(45deg); }
.flourish.on-dark::before, .flourish.on-dark::after { background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish.on-dark::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: calc(16px + var(--safe-top)) 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 16px rgba(7,21,45,.18);
}
.topbar .back-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; flex-shrink: 0;
  transition: background .15s;
}
.topbar .back-btn:active { background: rgba(255,255,255,.24); }
.topbar h1 {
  font-size: 17.5px; color: #fff; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar .fav-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; color: #fff;
  transition: background .15s, color .15s;
}
.topbar .fav-btn.active { color: var(--gold); background: rgba(243,187,0,.16); }

.home-header {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: calc(24px + var(--safe-top)) 20px 28px;
  position: relative;
  overflow: hidden;
}
.home-header::before {
  content: "";
  position: absolute; top: -40%; right: -25%; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,187,0,.16), transparent 70%);
  pointer-events: none;
}
.home-header .eyebrow { color: var(--gold); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.home-header h1 { color: #fff; font-size: 25px; margin-bottom: 6px; line-height: 1.2; }
.home-header p { color: #C9CEDB; font-size: 13px; max-width: 320px; }
.home-header .streak {
  margin-top: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  padding: 13px 15px; display: flex; align-items: center; gap: 12px; font-size: 12.5px; position: relative;
}
.home-header .streak .n { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--gold); font-weight: 700; line-height: 1; }

/* ---------- Content sections ---------- */
.section { padding: 22px 18px; }
.section-title { font-size: 17px; margin-bottom: 3px; display: flex; align-items: center; gap: 7px; }
.section-sub { color: var(--text-soft); font-size: 12.5px; margin-bottom: 15px; }

.search-shortcut {
  margin: -16px 18px 8px;
  background: var(--white);
  border: 1px solid var(--bg-2);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-soft);
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(20,38,67,.09);
  transition: transform .15s, box-shadow .15s;
}
.search-shortcut:active { transform: scale(.985); }
.search-shortcut .ic { color: var(--gold-dark); font-size: 17px; }

/* Novena grid */
.novena-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px;
}
.novena-card, .cat-card {
  background: var(--white); border: 1px solid var(--bg-2); border-radius: 15px;
  padding: 15px; position: relative;
  box-shadow: 0 2px 10px rgba(20,38,67,.05);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.novena-card:active, .cat-card:active { transform: scale(.97); }
.novena-card .num { font-size: 10px; color: var(--gold-dark); font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.novena-card h4 { font-size: 13.5px; margin: 5px 0 10px; line-height: 1.32; min-height: 34px; }
.novena-card .progress-bar { height: 5px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.novena-card .progress-bar .fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); border-radius: 4px; transition: width .4s ease; }
.novena-card .progress-label { font-size: 10.5px; color: var(--text-soft); margin-top: 6px; display: flex; align-items: center; gap: 4px; font-weight: 600; }
.novena-card .fav-dot { position: absolute; top: 12px; right: 12px; color: var(--gold); font-size: 13px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.12)); }
.novena-card.done { border-color: var(--green); background: linear-gradient(180deg, #fff, #F3FBF3); }
.novena-card.done .progress-bar .fill { background: var(--green); }
.novena-card.done .progress-label { color: var(--green); }

.cat-card { text-align: center; }
.cat-card .emoji { font-size: 23px; margin-bottom: 7px; display: block; }
.cat-card h4 { font-size: 12.5px; margin: 0; min-height: auto; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }

.see-all { text-align: center; margin-top: 12px; }
.see-all button { color: var(--gold-dark); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Novena detail ---------- */
.novena-intro { padding: 18px 18px 0; }
.novena-intro p.intro { font-size: 13.5px; color: var(--text-soft); font-style: italic; margin-bottom: 12px; }
.origem-toggle {
  font-size: 12px; color: var(--gold-dark); font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px; width: fit-content;
}
.origem-toggle .bookicon { font-size: 13px; }
.origem-toggle .ic.origem-arrow { transition: transform .25s; font-size: 11px; }
.origem-toggle .ic.origem-arrow.flipped { transform: rotate(180deg); }
.origem-box {
  background: var(--bg-2); border-radius: 12px; padding: 13px 15px; font-size: 12.5px; color: var(--text-soft);
  margin-bottom: 16px; display: none; border-left: 3px solid var(--gold);
}
.origem-box.open { display: block; animation: view-fade-in .25s ease; }

/* Trilha "terço": cruz + linha dourada + contas numeradas */
.rosary-tracker { padding: 4px 18px 18px; }
.rosary-cross { display: flex; justify-content: center; color: var(--gold-dark); font-size: 20px; margin-bottom: 6px; }
.rosary-line { height: 2px; background: var(--bg-2); border-radius: 2px; margin: -19px 24px 12px; position: relative; }
.rosary-line-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); border-radius: 2px; transition: width .4s ease; }
.rosary-beads { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.rosary-beads::-webkit-scrollbar { display: none; }
.bead-wrap { flex-shrink: 0; }
.bead {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-soft);
  transition: all .2s;
}
.bead.active { border-color: var(--gold); color: var(--gold-dark); background: #FFF7E0; box-shadow: 0 0 0 4px rgba(243,187,0,.14); }
.bead.done { background: var(--green); border-color: var(--green); color: #fff; }
.bead.done .ic { font-size: 13px; }

.day-card {
  margin: 0 18px 16px; background: var(--white); border: 1px solid var(--bg-2); border-radius: 18px;
  padding: 24px 22px; box-shadow: 0 6px 22px rgba(20,38,67,.07);
  position: relative;
}
.day-card::before {
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark)); border-radius: 0 0 3px 3px;
}
.day-card .day-label { font-size: 11px; color: var(--gold-dark); font-weight: 800; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 10px; }
.day-card p { font-size: 15px; color: var(--text); line-height: 1.75; font-family: 'Playfair Display', serif; }
.day-nav { display: flex; gap: 10px; margin: 0 18px 16px; align-items: stretch; }
.day-nav button {
  background: var(--navy); color: #fff; border-radius: 13px; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .15s;
}
.day-nav button:disabled { opacity: .3; }
.day-nav button:not(.mark-btn) { flex: 0 0 46px; font-size: 15px; }
.day-nav .mark-btn { flex: 1; background: var(--gold); color: var(--navy-2); padding: 13px; box-shadow: 0 4px 14px rgba(243,187,0,.35); }
.day-nav .mark-btn.done { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(57,158,67,.3); }

.final-prayer {
  margin: 4px 18px 24px; background: linear-gradient(160deg, var(--bg-2), #EFE6CE); border-radius: 16px; padding: 20px 20px; text-align: center;
  border: 1px solid rgba(201,154,0,.2);
}
.final-prayer-tag { font-size: 11.5px; color: var(--gold-dark); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.final-prayer p { font-size: 13.5px; color: var(--text); text-align: left; font-family: 'Playfair Display', serif; line-height: 1.65; }

/* ---------- Category / prayer list ---------- */
.prayer-item {
  margin: 0 18px 10px; background: var(--white); border: 1px solid var(--bg-2); border-radius: 13px; padding: 15px 16px;
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
  transition: transform .15s;
}
.prayer-item:active { transform: scale(.985); }
.prayer-item .body b { display: block; font-size: 13.5px; color: var(--navy); margin-bottom: 5px; }
.prayer-item .body p { font-size: 12.5px; color: var(--text-soft); line-height: 1.55; }
.prayer-item .heart { color: #D9D2BC; font-size: 18px; flex-shrink: 0; padding-top: 1px; }
.prayer-item .heart.active { color: #E0546B; }

/* ---------- Search ---------- */
.search-box {
  margin: 16px 18px; background: var(--white); border: 1px solid var(--bg-2); border-radius: 14px;
  padding: 13px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 2px 10px rgba(20,38,67,.05);
}
.search-box input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; color: var(--text); }
.search-box .ic { color: var(--text-soft); font-size: 16px; }
.search-results-count { padding: 4px 18px 8px; font-size: 11.5px; color: var(--gold-dark); font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }

/* ---------- Favorites / progress lists / empty states ---------- */
.empty-state { padding: 70px 34px; text-align: center; color: var(--text-soft); font-size: 13.5px; line-height: 1.6; }
.empty-state .emoji { font-size: 36px; display: block; margin-bottom: 12px; }
.empty-state .ic.empty-icon { font-size: 40px; display: block; margin: 0 auto 14px; color: var(--bg-2); }

/* ---------- Bottom nav ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--bg-2);
  display: flex; z-index: 30;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -4px 20px rgba(20,38,67,.06);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 0 9px; font-size: 10.5px; color: var(--text-soft); font-weight: 600;
  position: relative;
}
.tab .ic.tab-icon { font-size: 20px; transition: transform .15s; }
.tab.active { color: var(--gold-dark); }
.tab.active .ic.tab-icon { transform: translateY(-1px); }
.tab.active::before {
  content: ""; position: absolute; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

/* ---------- Toast / banner ---------- */
.toast {
  position: fixed; bottom: calc(90px + var(--safe-bottom)); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--navy); color: #fff; padding: 13px 20px; border-radius: 30px; font-size: 13px;
  max-width: 420px; width: calc(100% - 40px); text-align: center; z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Settings / reminder card ---------- */
.settings-card {
  margin: 0 18px 16px; background: var(--white); border: 1px solid var(--bg-2); border-radius: 15px; padding: 17px 18px;
  box-shadow: 0 2px 10px rgba(20,38,67,.05);
}
.settings-card h4 { font-size: 14px; margin-bottom: 7px; display: flex; align-items: center; gap: 7px; }
.settings-card .inline-title-icon { color: var(--gold-dark); font-size: 15px; }
.settings-card p { font-size: 12.5px; color: var(--text-soft); margin-bottom: 13px; line-height: 1.55; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.switch { width: 44px; height: 26px; border-radius: 20px; background: var(--bg-2); position: relative; transition: background .2s; flex-shrink: 0; }
.switch.on { background: var(--gold); }
.switch .knob { width: 20px; height: 20px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on .knob { left: 21px; }

.install-banner {
  margin: 0 18px 16px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
  border-radius: 15px; padding: 17px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 6px 20px rgba(20,38,67,.18);
}
.install-banner .txt { flex: 1; }
.install-banner h4 { color: #fff; font-size: 13.5px; margin-bottom: 3px; }
.install-banner p { font-size: 11.5px; color: #C9CEDB; }
.install-banner button { background: var(--gold); color: var(--navy-2); font-weight: 700; font-size: 12px; padding: 10px 15px; border-radius: 10px; flex-shrink: 0; }

.backup-link { text-align: center; padding: 8px 24px 28px; }
.backup-link a { font-size: 12.5px; color: var(--gold-dark); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Sua Biblioteca (home) ---------- */
.library-list { display: flex; flex-direction: column; gap: 10px; }
.library-card {
  background: var(--white); border: 1px solid var(--bg-2); border-radius: 15px; padding: 14px 15px;
  display: flex; align-items: center; gap: 13px; box-shadow: 0 2px 10px rgba(20,38,67,.05);
  transition: transform .15s;
}
.library-card:active { transform: scale(.98); }
.library-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-2);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.library-card.locked .library-icon { background: var(--bg-2); color: var(--text-soft); }
.library-body { flex: 1; min-width: 0; }
.library-body h4 { font-size: 13.5px; margin-bottom: 2px; }
.library-body p { font-size: 11.5px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-status { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; color: var(--green); font-weight: 700; flex-shrink: 0; text-align: center; width: 54px; }
.library-status .ic { font-size: 15px; }
.library-card.locked .library-status { color: var(--text-soft); }

/* ---------- Lista de bônus ---------- */
.bonus-list { padding: 4px 18px 24px; display: flex; flex-direction: column; gap: 9px; }
.bonus-row {
  background: var(--white); border: 1px solid var(--bg-2); border-radius: 13px; padding: 13px 15px;
  display: flex; align-items: center; gap: 12px; transition: transform .15s;
}
.bonus-row:active { transform: scale(.98); }
.bonus-row-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-2); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.bonus-row.locked .bonus-row-icon { color: var(--text-soft); }
.bonus-row-body { flex: 1; min-width: 0; }
.bonus-row-body h4 { font-size: 13px; margin-bottom: 2px; }
.bonus-row-body p { font-size: 11.5px; color: var(--text-soft); }
.bonus-row-lock { color: var(--bg-2); font-size: 16px; flex-shrink: 0; }
.bonus-row:not(.locked) .bonus-row-lock { color: var(--green); }

/* ---------- Tela trancada ---------- */
.locked-teaser { padding: 60px 30px; text-align: center; }
.locked-icon { font-size: 44px; color: var(--bg-2); margin: 0 auto 18px; display: block; width: 44px; }
.locked-teaser h3 { font-size: 18px; margin-bottom: 10px; }
.locked-teaser p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; margin-bottom: 14px; }
.locked-teaser .locked-hint { font-size: 12px; background: var(--bg-2); border-radius: 12px; padding: 14px 16px; margin-top: 6px; }

/* ---------- Passos numerados / cards (usado no Terço, Guia da Novena, Exame) ---------- */
.step {
  background: var(--white); border: 1px solid var(--bg-2); border-radius: 13px; padding: 14px 16px; margin-bottom: 10px;
  display: flex; gap: 12px; align-items: flex-start;
}
.step .num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--navy-2); font-weight: 800; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 13.5px; margin-bottom: 3px; }
.step p { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.card { background: var(--white); border: 1px solid var(--bg-2); border-radius: 13px; padding: 14px 16px; margin-bottom: 10px; }
.card h4 { font-size: 13.5px; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.card h4 .ic { color: var(--green); font-size: 13px; }
.card p { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.faq-item { background: var(--white); border: 1px solid var(--bg-2); border-radius: 12px; padding: 13px 15px; margin-bottom: 9px; }
.faq-item b { display: block; color: var(--navy); font-size: 13px; margin-bottom: 4px; }
.faq-item p { font-size: 12px; color: var(--text-soft); line-height: 1.5; }

/* ---------- Terço (bônus) ---------- */
.misterio-group { background: var(--white); border: 1px solid var(--bg-2); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.misterio-dia { font-size: 10.5px; color: var(--gold-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.misterio-group h4 { font-size: 15px; margin-bottom: 10px; }
.misterio-item { padding: 8px 0; border-top: 1px dashed var(--bg-2); font-size: 12.5px; }
.misterio-item:first-of-type { border-top: none; }
.misterio-item b { display: block; color: var(--navy); margin-bottom: 2px; }
.misterio-item span { color: var(--text-soft); }
.oracao-base { background: var(--white); border: 1px solid var(--bg-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; font-size: 12.5px; color: var(--text-soft); }
.oracao-base b { display: block; color: var(--navy); margin-bottom: 4px; font-size: 13px; }

/* ---------- Calendário (bônus) ---------- */
.cal-mes { background: var(--white); border: 1px solid var(--bg-2); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.cal-mes h4 { font-size: 15px; color: var(--gold-dark); margin-bottom: 10px; }
.cal-linha { display: flex; gap: 10px; font-size: 12.5px; padding: 7px 0; border-top: 1px dashed var(--bg-2); align-items: baseline; }
.cal-linha:first-of-type { border-top: none; }
.cal-data { color: var(--gold-dark); font-weight: 700; flex-shrink: 0; width: 52px; }
.cal-nome { flex: 1; color: var(--text); font-weight: 600; }
.cal-festa { color: var(--text-soft); font-size: 11.5px; flex-shrink: 0; }
.cal-porque { font-size: 11.5px; color: var(--text-soft); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bg-2); line-height: 1.5; }
.movel-item { background: var(--white); border: 1px solid var(--bg-2); border-radius: 12px; padding: 13px 15px; margin-bottom: 9px; font-size: 12.5px; }
.movel-item b { display: block; color: var(--navy); margin-bottom: 3px; }
.movel-item span { color: var(--text-soft); }

/* ---------- Guia da novena certa (bônus) ---------- */
.lookup-table { display: flex; flex-direction: column; gap: 6px; }
.lookup-row { background: var(--white); border: 1px solid var(--bg-2); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; align-items: center; }
.lookup-row span { color: var(--text-soft); flex: 1; }
.lookup-row b { color: var(--gold-dark); text-align: right; flex-shrink: 0; }

/* ---------- Litanias (bônus) ---------- */
.litania-card { background: var(--white); border: 1px solid var(--bg-2); border-radius: 15px; padding: 18px 20px; }
.litania-card h4 { font-size: 16px; margin-bottom: 10px; }
.litania-abertura, .litania-encerramento { background: var(--bg-2); border-radius: 10px; padding: 12px 14px; font-size: 12px; color: var(--text-soft); margin: 8px 0; line-height: 1.6; }
.litania-inv { font-size: 12.5px; padding: 3px 0; color: var(--text); }
.litania-inv b { color: var(--gold-dark); }

/* ---------- Santos padroeiros (bônus) ---------- */
.santo-item { background: var(--white); border: 1px solid var(--bg-2); border-radius: 10px; padding: 11px 14px; margin-bottom: 8px; }
.santo-item span { display: block; font-size: 10px; color: var(--gold-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; }
.santo-item b { display: block; font-size: 13px; color: var(--navy); }
.santo-item p { font-size: 12px; color: var(--text-soft); font-style: italic; margin-top: 4px; }
.bio-item { background: var(--white); border: 1px solid var(--bg-2); border-radius: 10px; padding: 12px 15px; margin-bottom: 8px; }
.bio-item b { display: block; color: var(--navy); font-size: 12.5px; margin-bottom: 4px; }
.bio-item p { font-size: 12px; color: var(--text-soft); line-height: 1.55; }

/* ---------- Exame de consciência (bônus) ---------- */
.mandamento-card { background: var(--white); border: 1px solid var(--bg-2); border-radius: 13px; padding: 15px 17px; margin-bottom: 11px; }
.mandamento-card h4 { font-size: 13.5px; color: var(--gold-dark); margin-bottom: 9px; }
.mandamento-card ul { margin-left: 17px; font-size: 12.5px; color: var(--text-soft); }
.mandamento-card ul li { margin-bottom: 5px; }

/* ---------- Jornada 40 dias — tema premium próprio (vinho + dourado) ---------- */
.jornada-versiculo { font-size: 12px; color: var(--gold-dark); font-style: italic; margin-bottom: 10px; padding-left: 10px; border-left: 2px solid var(--gold); }
.day-nav .next-btn { flex: 0 0 46px; }

.jornada-theme { --wine: #6B1E3C; --wine-2: #3C0F21; }
.jornada-theme .jornada-topbar { background: linear-gradient(135deg, var(--wine), var(--wine-2)); }
.jornada-topbar h1 { display: flex; align-items: center; gap: 8px; }
.crown-icon { color: var(--gold); font-size: 15px; }

.jornada-cover { background: linear-gradient(160deg, var(--wine), var(--wine-2)); color: #fff; padding: 34px 24px 30px; text-align: center; position: relative; overflow: hidden; }
.jornada-cover::before { content: ""; position: absolute; top: -30%; left: -20%; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(243,187,0,.18), transparent 70%); }
.jornada-cover-icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(243,187,0,.15); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 14px; }
.jornada-cover-eyebrow { color: var(--gold); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.jornada-cover h2 { color: #fff; font-size: 23px; margin-bottom: 12px; }
.jornada-cover p { color: #E6D4DC; font-size: 13px; line-height: 1.6; max-width: 400px; margin: 0 auto; position: relative; }

.jornada-overview-card {
  background: var(--white); border: 1px solid var(--bg-2); border-radius: 15px; padding: 16px 17px; margin-bottom: 11px;
  display: flex; gap: 13px; box-shadow: 0 2px 10px rgba(20,38,67,.05);
}
.jornada-overview-card.complete { border-color: var(--wine); background: linear-gradient(180deg, #fff, #FBF1F5); }
.jornada-overview-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); color: var(--wine);
  font-weight: 800; font-size: 13.5px; display: flex; align-items: center; justify-content: center;
}
.jornada-overview-card.complete .jornada-overview-num { background: var(--wine); color: #fff; }
.jornada-overview-body { flex: 1; min-width: 0; }
.jornada-overview-tag { font-size: 10px; color: var(--wine); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 3px; }
.jornada-overview-body h4 { font-size: 14px; margin-bottom: 5px; }
.jornada-overview-body p { font-size: 12px; color: var(--text-soft); line-height: 1.5; margin-bottom: 9px; }
.jornada-overview-progress { height: 4px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.jornada-overview-progress .fill { height: 100%; background: var(--wine); border-radius: 3px; transition: width .3s; }

.jornada-start-bar { padding: 8px 18px 28px; }
.jornada-start-btn {
  width: 100%; background: linear-gradient(135deg, var(--wine), var(--wine-2)); color: #fff; font-weight: 700; font-size: 14px;
  padding: 16px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 22px rgba(107,30,60,.28);
}

.jornada-hero { margin: 0 18px 16px; background: linear-gradient(135deg, var(--wine), var(--wine-2)); border-radius: 16px; padding: 16px 18px; color: #fff; }
.jornada-hero-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.jornada-hero-top span { display: flex; align-items: center; gap: 5px; }
.jornada-overview-link { color: #E6D4DC; text-transform: none; font-weight: 600; letter-spacing: 0; text-decoration: underline; }
.jornada-hero h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.jornada-hero-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; margin-bottom: 8px; }
.jornada-hero-bar .fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width .3s; }
.jornada-hero-count { font-size: 11.5px; color: #E6D4DC; }

.jornada-phase-track { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.jornada-phase-row { background: var(--white); border: 1px solid var(--bg-2); border-radius: 14px; padding: 12px 14px; }
.jornada-phase-row.complete { border-color: var(--wine); }
.jornada-phase-row-label { font-size: 11px; font-weight: 800; color: var(--wine); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.jornada-phase-row-label span { color: var(--text-soft); font-weight: 600; text-transform: none; letter-spacing: 0; }
.jornada-phase-track .rosary-beads { overflow-x: visible; flex-wrap: wrap; }
.jornada-phase-track .bead.active { border-color: var(--wine); color: var(--wine); background: #FBF1F5; box-shadow: 0 0 0 4px rgba(107,30,60,.12); }
.jornada-phase-track .bead.done { background: var(--wine); border-color: var(--wine); }

.jornada-day-card::before { background: linear-gradient(90deg, var(--wine), var(--gold), var(--wine)); }
.jornada-final-prayer { background: linear-gradient(160deg, #FBF1F5, #F3DDE6); border-color: rgba(107,30,60,.18); }
.jornada-final-prayer .final-prayer-tag { color: var(--wine); }
.jornada-mark-btn { background: var(--wine) !important; color: #fff !important; box-shadow: 0 4px 14px rgba(107,30,60,.32) !important; }
.jornada-mark-btn.done { background: var(--green) !important; box-shadow: 0 4px 14px rgba(57,158,67,.3) !important; }

@media (min-width: 481px) {
  body { background: var(--bg-2); }
  #app { box-shadow: 0 0 40px rgba(20,38,67,.12); }
}
