/* WebApp Sagrado v3 — Decreto de San Benito (ES-CO) + Motor Fe Conmigo.
   Design System Dark + Ouro, mobile-first 390px, HTML/CSS/JS puros. */
:root {
  --bg: #070A10;
  --bg-2: #0D121D;
  --surface: rgba(18, 24, 38, 0.9);
  --surface-solid: #121826;
  --surface-2: rgba(26, 35, 54, 0.8);
  --text: #F6F1E6;
  --muted: #B6AFA0;
  --subtle: #857F73;
  --gold: #D4A640;
  --gold-bright: #F6DC97;
  --gold-deep: #966B17;
  --gold-soft: rgba(212, 166, 64, 0.13);
  --gold-border: rgba(212, 166, 64, 0.28);
  --green: #168544;
  --green-hover: #126E38;
  --wa: #1FA855;
  --alert: #C93A3A;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 74px;
  --top-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--sans);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 420px at 50% -60px, rgba(212, 166, 64, 0.19) 0%, rgba(168, 114, 24, 0.06) 45%, transparent 78%),
    radial-gradient(circle at 85% 22%, rgba(246, 220, 151, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.56;
  font-size: 16px;
  min-height: 100vh;
  padding-top: var(--top-h);
  padding-bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-mini-player {
  padding-bottom: calc(var(--nav-h) + 102px + env(safe-area-inset-bottom, 0px));
}
img, canvas { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ===== SPLASH SCREEN ===== */
.sb-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 42%, rgba(235, 178, 66, 0.24) 0%, rgba(18, 22, 34, 0.96) 52%, #06080D 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  transition: opacity 0.65s ease, visibility 0.65s ease;
  cursor: pointer;
}
.sb-splash.out { opacity: 0; visibility: hidden; pointer-events: none; }
.sb-splash-aura {
  position: relative;
  width: 158px;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.sb-splash-aura::before {
  content: "";
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 98, 0.42) 0%, rgba(212, 166, 64, 0.12) 48%, transparent 72%);
  animation: sbCandle 3.2s ease-in-out infinite;
}
.sb-splash-medal {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 38px rgba(212, 166, 64, 0.45);
  animation: sbSlowSpin 22s linear infinite;
}
.sb-splash-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 10px;
}
.sb-splash-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.sb-splash-sub { font-size: 14.5px; color: var(--muted); }
@keyframes sbCandle {
  0%, 100% { transform: scale(0.95); opacity: 0.72; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes sbSlowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== APP TOP BAR ===== */
.app-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-h);
  z-index: 120;
  background: rgba(8, 11, 18, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 166, 64, 0.16);
}
.app-top-inner {
  max-width: 540px;
  height: 100%;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}
.app-brand-medal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(212, 166, 64, 0.35);
}
.app-brand-text { min-width: 0; }
.app-brand-name {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-brand-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.app-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  background: rgba(212, 166, 64, 0.12);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.app-pill-btn:active { transform: scale(0.96); }

/* ===== CONTAINER & VIEWS ===== */
.container { max-width: 540px; margin: 0 auto; padding: 16px 15px 16px; }
.app-view { animation: sbFadeIn 0.26s ease; }
.app-view[data-tab-panel]:not(.is-active) { display: none !important; }
@keyframes sbFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO CARD ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(236, 184, 74, 0.24) 0%, rgba(20, 27, 43, 0.94) 58%, rgba(12, 16, 26, 0.98) 100%);
  border: 1px solid var(--gold-border);
  border-radius: 24px;
  padding: 24px 18px 22px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(246, 220, 151, 0.22);
}
.hero-emblem-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-emblem-wrap::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 98, 0.34) 0%, transparent 70%);
  animation: sbCandle 3.6s ease-in-out infinite;
}
.hero-medal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 22px rgba(212, 166, 64, 0.35);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(212, 166, 64, 0.14);
  border: 1px solid rgba(212, 166, 64, 0.26);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 25.5px;
  line-height: 1.22;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.hero p { font-size: 15.5px; color: #D2CBBF; max-width: 420px; margin: 0 auto; }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-color: rgba(246, 220, 151, 0.16);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card.sacred-glow {
  border-color: var(--gold-border);
  background: radial-gradient(circle at 50% 0%, rgba(212, 166, 64, 0.12) 0%, transparent 55%), var(--surface);
}
.card p { margin-bottom: 12px; color: #E4DEC9; }
.card p:last-child { margin-bottom: 0; }

.item-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 166, 64, 0.14);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 166, 64, 0.3);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 11px;
}
h2.title {
  font-family: var(--serif);
  font-size: 20.5px;
  line-height: 1.26;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}
h3.sub {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 18px 0 10px;
}
.muted { color: var(--muted); font-size: 14.5px; }
.center { text-align: center; }

/* ===== BOTÕES ===== */
.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  padding: 15px 16px;
  border-radius: 14px;
  line-height: 1.25;
  font-family: inherit;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn + .btn { margin-top: 10px; }
.btn-gold {
  background: linear-gradient(135deg, #E7C46D 0%, #BD8A24 55%, #D9AD4B 100%);
  color: #161005;
  box-shadow: 0 8px 22px rgba(212, 166, 64, 0.35), inset 0 1px 0 rgba(255, 248, 220, 0.55);
}
.btn-green {
  background: linear-gradient(135deg, #1DA054 0%, #13763B 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(22, 133, 68, 0.34);
}
.btn-wa {
  background: linear-gradient(135deg, #25B85F 0%, #188C46 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(31, 168, 85, 0.34);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold-border);
}
.btn small { display: block; font-size: 12.5px; font-weight: 500; opacity: 0.92; margin-top: 3px; }

/* ===== FORMULÁRIOS ===== */
.name-ask {
  background: rgba(212, 166, 64, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0 0;
  text-align: left;
  color: var(--text);
}
.name-ask label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; color: var(--gold-bright); }
.name-ask .row { display: flex; gap: 8px; }
.name-ask input, .field {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(212, 166, 64, 0.3);
  border-radius: 12px;
  padding: 0 13px;
  font-size: 16px;
  background: rgba(7, 10, 16, 0.78);
  color: #FFFFFF;
  font-family: inherit;
}
.name-ask input::placeholder, .field::placeholder { color: #8A8578; }
.name-ask input:focus, .field:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 166, 64, 0.18);
}
.field { width: 100%; margin-bottom: 10px; }
.name-ask button {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #E7C46D, #B88620);
  color: #161005;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

/* ===== STEPS / MENU ITEMS ===== */
.steps { list-style: none; counter-reset: s; margin: 8px 0 4px; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 11px 12px 11px 56px;
  min-height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 9px;
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 11px;
  top: 11px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E7C46D, #B08124);
  color: #161005;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li b { display: block; color: #FFFFFF; font-size: 15.5px; margin-bottom: 3px; }
.steps.icons li::before {
  content: attr(data-ic);
  background: rgba(212, 166, 64, 0.14);
  border: 1px solid rgba(212, 166, 64, 0.25);
  font-size: 18px;
}
.steps.app-links li { padding-right: 34px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.steps.app-links li:hover, .steps.app-links li:active { background: rgba(212, 166, 64, 0.1); border-color: var(--gold-border); }
.steps.app-links li::after {
  content: "›";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--gold-bright);
  opacity: 0.75;
}
.steps a { color: #FFFFFF; text-decoration: none; display: block; }
.spoken {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 166, 64, 0.09);
  border-radius: 0 10px 10px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: #F6DC97;
}

/* ===== CICLO 7 NOCHES (Retenção Diária) ===== */
.night-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 12px 0 14px;
}
.night-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 2px;
  border-radius: 12px;
  border: 1.5px solid rgba(212, 166, 64, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.night-tab-btn .nt-lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.3px; }
.night-tab-btn .nt-num { font-size: 16px; font-weight: 900; line-height: 1.2; }
.night-tab-btn.is-done {
  border-color: rgba(37, 184, 95, 0.55);
  background: rgba(22, 133, 68, 0.2);
  color: #BCEFD0;
}
.night-tab-btn.is-selected {
  background: linear-gradient(135deg, #E7C46D, #B08124);
  border-color: var(--gold-bright);
  color: #161005;
  box-shadow: 0 0 14px rgba(212, 166, 64, 0.42);
}
.night-panel {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  animation: sbFadeIn 0.22s ease;
}
.night-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
  color: #E4DEC9;
  margin: 12px 0;
}
.night-action strong { color: var(--gold-bright); }
.night7-bridge {
  margin-top: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(246, 220, 151, 0.22) 0%, rgba(18, 26, 42, 0.96) 65%);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(212, 166, 64, 0.22);
}
.night7-bridge h3 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.night7-bridge p { font-size: 14.5px; color: #EFE8D8; margin-bottom: 14px; }

/* ===== VIRAL WHATSAPP BLESSINGS WIDGET ===== */
.chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 10px 0 12px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(212, 166, 64, 0.26);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.chip.is-active {
  background: var(--gold-soft);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}
.quote-card {
  background: radial-gradient(circle at 50% 0%, rgba(212, 166, 64, 0.14) 0%, rgba(10, 14, 23, 0.95) 75%);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.quote-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold-bright);
  margin-bottom: 10px;
}
.quote-text {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: #FFFFFF;
  white-space: pre-line;
}
.quote-actions { display: flex; flex-direction: column; gap: 8px; }

/* ===== ABA ESPECIAL FE CONMIGO (Cards com Cadeado + Transparência) ===== */
.fc-lock-card {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 166, 64, 0.26);
  border-radius: 16px;
  padding: 14px 15px;
  margin-bottom: 11px;
}
.fc-lock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.fc-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gold-bright);
  background: rgba(212, 166, 64, 0.15);
  border: 1px solid rgba(212, 166, 64, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}
.fc-lock-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 5px;
}
.fc-lock-card p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.fc-price-box {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(212, 166, 64, 0.2) 0%, rgba(12, 17, 28, 0.98) 70%);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: 20px 16px;
  margin: 16px 0;
}
.fc-price-old { font-size: 13.5px; color: var(--muted); text-decoration: line-through; }
.fc-price-main { font-size: 36px; font-weight: 900; color: #FFFFFF; line-height: 1.1; margin: 6px 0; }
.fc-price-day { font-size: 14.5px; font-weight: 700; color: var(--gold-bright); }
.fc-transparency {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0 18px;
}
.fc-t-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.fc-t-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fc-t-row span:first-child { color: var(--muted); }
.fc-t-row span:last-child { color: #FFFFFF; font-weight: 700; text-align: right; }

/* ===== PLAYER SPOTIFY DA ORAÇÃO ===== */
.sb-player {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(212, 166, 64, 0.18) 0%, rgba(11, 15, 25, 0.96) 65%);
  color: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 20px 16px 16px;
  margin: 14px 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.sb-player .p-head { flex: 1; text-align: center; padding: 0 28px; }
.sb-player .p-title { font-family: var(--serif); font-size: 16.5px; font-weight: 700; color: var(--gold-bright); margin-bottom: 2px; }
.sb-player .p-dur { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.sb-player .p-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212, 166, 64, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-bright);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-player .p-main { display: flex; flex-direction: column; align-items: center; }
.sb-player .p-play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #F0CE7A 0%, #B8851E 100%);
  color: #161005;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(212, 166, 64, 0.16), 0 10px 26px rgba(212, 166, 64, 0.38);
}
.sb-player.is-playing .p-play { animation: sbPulsePlay 2.2s ease-in-out infinite; }
@keyframes sbPulsePlay {
  0%, 100% { box-shadow: 0 0 0 8px rgba(212, 166, 64, 0.18), 0 10px 26px rgba(212, 166, 64, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(212, 166, 64, 0.06), 0 10px 32px rgba(246, 220, 151, 0.55); }
}
.sb-player .p-play .spin {
  width: 30px;
  height: 30px;
  border: 3.5px solid rgba(22, 16, 5, 0.28);
  border-top-color: #161005;
  border-radius: 50%;
  animation: sbspin 0.9s linear infinite;
}
@keyframes sbspin { to { transform: rotate(360deg); } }
.sb-player .p-label { font-size: 13px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--gold-bright); margin-top: 10px; }
.sb-player .p-bar { position: relative; height: 38px; margin-top: 6px; cursor: pointer; touch-action: none; }
.sb-player .p-track { position: absolute; left: 0; right: 0; top: 15px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.sb-player .p-fill { height: 100%; width: 0; background: linear-gradient(90deg, #B8851E, #F6DC97); }
.sb-player .p-knob { position: absolute; top: 9px; width: 19px; height: 19px; margin-left: -9.5px; border-radius: 50%; background: #FFFDF6; left: 0; box-shadow: 0 0 10px rgba(246, 220, 151, 0.8); }
.sb-player .p-time { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: -4px; font-variant-numeric: tabular-nums; }
.sb-player .p-actions-row { display: flex; gap: 8px; margin-top: 12px; }
.sb-player .p-loop {
  flex: 1;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.sb-player .p-loop[aria-pressed="true"] { background: var(--gold-bright); border-color: var(--gold-bright); color: #161005; }
.sb-player .p-msg { font-size: 13px; color: #FFE1A8; text-align: center; margin-top: 10px; background: rgba(212, 166, 64, 0.12); padding: 8px 10px; border-radius: 10px; }
.sb-player.soon { opacity: 0.88; }
.sb-player.soon .p-play { background: #2C3446; color: #B6AFA0; box-shadow: none; cursor: default; font-size: 13px; font-weight: 800; }

.sb-player.compact { padding: 12px 14px; border-radius: 16px; }
.sb-player.compact .p-main { flex-direction: row; gap: 12px; align-items: center; }
.sb-player.compact .p-play { width: 52px; height: 52px; font-size: 20px; flex-shrink: 0; box-shadow: none; }
.sb-player.compact .p-label { display: none; }
.sb-player.compact .p-head { flex: 1; min-width: 0; text-align: left; padding: 0 32px 0 0; }
.sb-player.compact .p-title { font-family: var(--sans); text-align: left; font-size: 14.5px; font-weight: 700; color: #FFFFFF; }
.sb-player.compact .p-dur { text-align: left; margin-bottom: 0; }
.sb-player.compact .p-expand { top: 12px; right: 12px; width: 30px; height: 30px; font-size: 13px; }
.sb-player.compact .p-bar { height: 26px; margin-top: 4px; }
.sb-player.compact .p-track { top: 10px; height: 5px; }
.sb-player.compact .p-knob { top: 5px; width: 15px; height: 15px; margin-left: -7.5px; }

/* ===== FULLSCREEN MODAL & MINI PLAYER ===== */
.sb-fs-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: radial-gradient(circle at 50% 24%, rgba(235, 178, 66, 0.26) 0%, rgba(11, 15, 25, 0.98) 54%, #05070B 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 20px calc(26px + env(safe-area-inset-bottom, 0px));
  color: #FFFFFF;
  overflow-y: auto;
  animation: sbFadeIn 0.25s ease;
}
.sb-fs-top { display: flex; align-items: center; justify-content: space-between; max-width: 480px; width: 100%; margin: 0 auto; }
.sb-fs-close { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gold-border); background: rgba(255, 255, 255, 0.06); color: var(--gold-bright); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.sb-fs-tag { font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-bright); }
.sb-fs-center { max-width: 460px; width: 100%; margin: 22px auto; text-align: center; }
.sb-fs-disc-wrap { position: relative; width: 210px; height: 210px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; }
.sb-fs-disc-wrap::before { content: ""; position: absolute; inset: -26px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 206, 98, 0.36) 0%, rgba(212, 166, 64, 0.08) 50%, transparent 72%); animation: sbCandle 3s ease-in-out infinite; }
.sb-fs-medal { width: 190px; height: 190px; border-radius: 50%; position: relative; z-index: 1; box-shadow: 0 0 46px rgba(212, 166, 64, 0.42); }
.sb-fs-modal.is-playing .sb-fs-medal { animation: sbSlowSpin 28s linear infinite; }
.sb-fs-title { font-family: var(--serif); font-size: 23px; line-height: 1.25; color: #FFFFFF; margin-bottom: 6px; }
.sb-fs-sub { font-size: 14px; color: var(--gold-bright); margin-bottom: 20px; }
.sb-fs-controls { max-width: 440px; width: 100%; margin: 0 auto; }
.sb-fs-bar { position: relative; height: 40px; cursor: pointer; touch-action: none; }
.sb-fs-track { position: absolute; left: 0; right: 0; top: 16px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.sb-fs-fill { height: 100%; width: 0; background: linear-gradient(90deg, #B8851E, #F6DC97); }
.sb-fs-knob { position: absolute; top: 9px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #FFFFFF; left: 0; box-shadow: 0 0 12px rgba(246, 220, 151, 0.85); }
.sb-fs-times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.sb-fs-btns { display: flex; align-items: center; justify-content: center; gap: 20px; }
.sb-fs-sec { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #FFFFFF; font-size: 13px; font-weight: 800; cursor: pointer; }
.sb-fs-play { width: 84px; height: 84px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #F4D588, #B8851E); color: #161005; font-size: 34px; cursor: pointer; box-shadow: 0 0 0 10px rgba(212, 166, 64, 0.16), 0 12px 30px rgba(212, 166, 64, 0.45); }
.sb-fs-loop { margin-top: 18px; width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05); color: #FFFFFF; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.sb-fs-loop[aria-pressed="true"] { background: var(--gold-bright); border-color: var(--gold-bright); color: #161005; }
.sb-fs-msg { margin-top: 12px; font-size: 13.5px; color: #FFE1A8; text-align: center; }

.sb-mini-player {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom, 0px));
  z-index: 115;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(20, 27, 43, 0.96);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.sb-mini-play { width: 42px; height: 42px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #F0CE7A, #B8851E); color: #161005; font-size: 17px; cursor: pointer; flex-shrink: 0; }
.sb-mini-info { flex: 1; min-width: 0; cursor: pointer; }
.sb-mini-title { font-size: 13.5px; font-weight: 800; color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-mini-sub { font-size: 11.5px; color: var(--gold-bright); }
.sb-mini-open { border: 1px solid var(--gold-border); background: rgba(212, 166, 64, 0.14); color: var(--gold-bright); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* ===== DOC / LATIM / LETRAS / DETAILS ===== */
.doc-wrap { margin: 14px 0; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); border: 1px solid var(--gold-border); background: #1A140B; }
.doc-wrap img { width: 100%; height: auto; }
.hint { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

.latin { list-style: none; margin: 10px 0; }
.latin li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.latin li:last-child { border-bottom: 0; }
.latin .lat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.latin i { color: var(--gold-bright); font-family: var(--serif); font-weight: 700; }
.latin span { color: #E4DEC9; }
.latin .lat-note { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

.letters { list-style: none; margin: 10px 0; }
.letters li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; color: #E4DEC9; }
.letters li:last-child { border-bottom: 0; }
.letters b { color: var(--gold-bright); display: inline-block; min-width: 102px; }

details.sacred-acc {
  margin-top: 12px;
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  background: rgba(212, 166, 64, 0.06);
  padding: 12px 14px;
}
details.sacred-acc summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 15px;
}
details.sacred-acc .acc-body { margin-top: 12px; font-size: 14.5px; }

/* ===== CHECKLIST OB3 (Expandable) ===== */
.signs { list-style: none; }
.signs li {
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.signs li.is-checked { background: rgba(212, 166, 64, 0.12); border-color: var(--gold-border); }
.signs label { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: 15px; font-weight: 700; color: #FFFFFF; }
.signs input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; accent-color: var(--gold); }
.sign-detail { margin-top: 8px; padding-left: 33px; font-size: 13.5px; color: var(--muted); }
.sign-detail summary { cursor: pointer; color: var(--gold-bright); font-weight: 700; font-size: 13px; }
.sign-detail p { margin: 6px 0 0; font-size: 13.5px; color: #DDD6C8; }
.sign-detail b { color: var(--gold-bright); }
.signs-count {
  position: sticky;
  bottom: calc(var(--nav-h) + 12px);
  background: linear-gradient(135deg, #1A2438, #101725);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  border-radius: 14px;
  padding: 13px 14px;
  text-align: center;
  font-weight: 800;
  margin-top: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
.express-item { margin-bottom: 14px; }
.express-prayer {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: #D8CFBE;
  padding: 8px 12px;
  margin-top: -6px;
  background: rgba(212, 166, 64, 0.06);
  border-left: 3px solid var(--gold-border);
  border-radius: 0 0 12px 12px;
}

.prayer {
  background: rgba(212, 166, 64, 0.09);
  border-left: 3.5px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 15px;
  font-family: var(--serif);
  font-size: 15.5px;
  color: #F6F1E6;
  margin: 12px 0;
}
.prayer p { margin-bottom: 10px; color: #F6F1E6; }
.prayer p:last-child { margin-bottom: 0; }
.notice {
  background: rgba(22, 133, 68, 0.16);
  border: 1px solid rgba(37, 184, 95, 0.36);
  color: #C7F2D7;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 600;
  margin: 12px 0;
}

/* ===== RODAPÉ ===== */
.footer { padding: 18px 16px; }
.help summary { cursor: pointer; font-weight: 700; color: var(--gold-bright); padding: 6px 0; }
.help ul { margin: 8px 0 0 20px; font-size: 14px; color: var(--muted); }
.help li { margin-bottom: 6px; }
.guarantee { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.guarantee .ic { font-size: 24px; line-height: 1; flex-shrink: 0; }
.guarantee strong { color: #FFFFFF; }
.legal { text-align: center; font-size: 12px; color: var(--subtle); margin-top: 12px; padding-bottom: 8px; }

/* ===== BOTTOM NAVIGATION BAR (Suporta 3, 4 ou 5 abas em 390px) ===== */
.app-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: rgba(9, 13, 21, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 166, 64, 0.22);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.app-nav-inner {
  max-width: 540px;
  height: var(--nav-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 4px;
  gap: 2px;
}
.app-nav-item {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 58px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s ease, background 0.15s ease;
}
.app-nav-item span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.app-nav-item .nav-ic { font-size: 20px; line-height: 1; }
.app-nav-item.is-active { color: var(--gold-bright); background: rgba(212, 166, 64, 0.13); }
.app-nav-item.nav-special { color: var(--gold-bright); }
.nav-dot {
  position: absolute;
  top: 7px;
  right: calc(50% - 16px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F6DC97;
  box-shadow: 0 0 8px #F6DC97;
  animation: sbCandle 2s ease-in-out infinite;
}

/* ===== PWA SHEET ===== */
.sb-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.sb-sheet {
  max-width: 500px;
  width: 100%;
  background: #121928;
  border: 1px solid var(--gold-border);
  border-radius: 22px;
  padding: 22px 18px 20px;
  color: var(--text);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65);
}
.sb-sheet h3 { font-family: var(--serif); font-size: 20px; color: var(--gold-bright); margin-bottom: 8px; }
.sb-sheet p { font-size: 14.5px; color: #D7D0C3; margin-bottom: 12px; }
.sb-sheet ol { margin: 0 0 16px 20px; font-size: 14.5px; color: #F2ECE0; }
.sb-sheet ol li { margin-bottom: 8px; }
