/* Estilos Globais do Portal Sagrado — Mobile-First & Premium */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-heading: 'Outfit', sans-serif;

  --bg-main: #faf8f5;
  --bg-card: #ffffff;
  --bg-card-subtle: #f6f3ee;
  --border-color: #e8e3da;
  --border-active: #d4a359;

  --primary: #c98b2c;
  --primary-hover: #b37920;
  --primary-light: #fef8ee;
  --primary-foreground: #ffffff;

  --accent: #b45309;
  --accent-light: #fffbeb;
  --accent-foreground: #ffffff;

  --text-main: #1c1917;
  --text-muted: #78716c;
  --text-light: #a8a29e;

  --emerald-green: #10b981;
  --emerald-dark: #064e3b;
  --emerald-light: #ecfdf5;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(44, 26, 14, 0.04);
  --shadow-md: 0 4px 20px rgba(44, 26, 14, 0.07);
  --shadow-lg: 0 10px 30px rgba(44, 26, 14, 0.1);
  --shadow-xl: 0 20px 40px rgba(44, 26, 14, 0.14);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.btn-menu-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1.5px solid var(--primary);
  box-shadow: 0 2px 8px rgba(201, 139, 44, 0.25);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-sans);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

/* ── Menu Lateral (Sidebar Drawer) ── */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: #ffffff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-drawer.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
}

.sidebar-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  padding-left: 12px;
  margin-bottom: 6px;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  color: #3f3933;
  transition: all 0.18s ease;
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
  transform: translateX(3px);
}

.sidebar-link.active {
  background: rgba(201, 139, 44, 0.15);
  color: var(--accent);
  font-weight: 700;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: #fdfbf7;
}

.sidebar-footer-card {
  background: rgba(201, 139, 44, 0.08);
  border: 1px solid rgba(201, 139, 44, 0.2);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-footer-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(201, 139, 44, 0.3);
}

.sidebar-footer-text {
  flex: 1;
  min-width: 0;
}

.sidebar-footer-blessing {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.sidebar-footer-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Hero Banner ── */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  margin-top: 16px;
  background: #000;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
}

@media (min-width: 640px) {
  .hero-image-wrapper {
    aspect-ratio: 16/9;
  }
}

@media (min-width: 1024px) {
  .hero-image-wrapper {
    aspect-ratio: 21/9;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.95) 0%, rgba(20, 16, 12, 0.55) 50%, rgba(20, 16, 12, 0.1) 100%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 36px 32px;
  }
}

.hero-welcome {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: #f7d598;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 42px;
  }
}

.hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  max-width: 580px;
}

/* ── Seção Header ── */
.portal-section {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.section-bar {
  width: 5px;
  min-height: 26px;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.section-title-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 26px;
  }
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Card de Conteúdo do Portal ── */
.product-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr 1.25fr;
  }
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: #1a120b;
}

@media (min-width: 768px) {
  .product-img-wrap {
    aspect-ratio: auto;
    min-height: 280px;
  }
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.product-info {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .product-info {
    padding: 36px 32px;
    gap: 16px;
  }
}

.badge-liberado {
  display: inline-block;
  width: fit-content;
  background: rgba(201, 139, 44, 0.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.product-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .product-title {
    font-size: 30px;
  }
}

.product-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  width: fit-content;
  box-shadow: 0 4px 14px rgba(201, 139, 44, 0.35);
  transition: all 0.2s ease;
}

.btn-cta-primary:hover {
  background: var(--primary-hover);
  gap: 12px;
}

/* ── Grid de Especiais & Upsells ── */
.special-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .special-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.special-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
}

.special-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.special-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #f1ebe1;
  overflow: hidden;
}

.special-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.special-card:hover .special-img {
  transform: scale(1.04);
}

.special-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.special-lock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  display: grid;
  place-items: center;
}

.special-lock-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1.5px solid var(--primary);
}

.special-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.special-text {
  flex: 1;
  min-width: 0;
}

.special-text h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.special-text p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-adquirir {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: background 0.2s ease;
}

.btn-adquirir:hover {
  background: var(--primary-hover);
}

/* ── Chat Devocional com Maria ── */
.chat-container {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(201, 139, 44, 0.35);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 16px;
  margin-bottom: 40px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(to right, rgba(201, 139, 44, 0.12), transparent);
  border-bottom: 1px solid var(--border-color);
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-header-info h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.chat-header-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.chat-messages {
  max-height: 380px;
  min-height: 240px;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fdfbf7;
}

.msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.msg-maria {
  align-self: flex-start;
  background: rgba(201, 139, 44, 0.12);
  color: #2c1a0e;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(201, 139, 44, 0.2);
}

.msg-user {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--primary);
  color: var(--text-main);
  background: #fff;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-main);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  border-color: var(--primary);
}

.btn-send {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.btn-send:hover {
  opacity: 0.9;
}

/* ── Modal de Player & Oração ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: background 0.2s;
}

.btn-close-modal:hover {
  background: #eee7db;
  color: var(--text-main);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.video-frame-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0d1117;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Spinner de Loading Sagrado Instantâneo */
.video-loading-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  color: #f1f5f9;
  z-index: 2;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-loading-placeholder.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(201, 139, 44, 0.25);
  border-top-color: #c98b2c;
  border-radius: 50%;
  animation: spinSacred 0.9s linear infinite;
}

@keyframes spinSacred {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

/* Máscara superior suave */
.video-frame-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(180deg, #0d1117 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Máscara no canto inferior direito que cobre totalmente a logo do YouTube e botão Mais Vídeos */
.video-mask-bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 48px;
  background: #0d1117;
  z-index: 1;
  pointer-events: none;
  border-bottom-right-radius: var(--radius-md);
}

/* Crop Cirúrgico do YouTube: corta o título superior e botões externos */
.video-frame-wrap iframe {
  position: absolute;
  top: -18%;
  left: 0;
  width: 100%;
  height: 136%;
  border: none;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-frame-wrap iframe.loaded {
  opacity: 1;
}

.prayer-text-box {
  background: #fdfbf7;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  color: #2b2219;
  white-space: pre-line;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-copy-prayer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.btn-copy-prayer:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Rodapé do Portal Sagrado ── */
.site-footer {
  margin-top: 48px;
  padding: 36px 20px 48px;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(to bottom, rgba(250, 248, 245, 0.4), rgba(201, 139, 44, 0.04));
  text-align: center;
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-cross {
  font-size: 15px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-cross::before,
.footer-cross::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: rgba(201, 139, 44, 0.35);
}

.footer-prayer {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.45;
  margin: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Componente de Progresso Devocional (Home & Páginas) ── */
.devotional-progress-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(201, 139, 44, 0.35);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .devotional-progress-card {
    padding: 30px 28px;
  }
}

.devotional-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.devotional-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 139, 44, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.devotional-card-cycle {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.devotional-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.devotional-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* Formulário de Intenção Inicial */
.intention-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intention-input-wrap {
  position: relative;
}

.intention-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.intention-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 139, 44, 0.15);
}

.btn-devotional-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(201, 139, 44, 0.35);
  transition: all 0.2s ease;
  width: fit-content;
}

.btn-devotional-start:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Caixa de Intenção Salva */
.intention-saved-box {
  background: #fdfbf7;
  border: 1px dashed rgba(201, 139, 44, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.intention-saved-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.intention-saved-text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: #4a3b2c;
  line-height: 1.4;
}

/* Barra de Progresso */
.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.progress-meta-label {
  color: var(--text-main);
}

.progress-meta-percent {
  color: var(--primary);
  font-weight: 700;
}

.devotional-progress-track {
  width: 100%;
  height: 10px;
  background: #eee8df;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.devotional-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c98b2c 0%, #e0a347 50%, #c98b2c 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(201, 139, 44, 0.5);
}

/* Ações do Card de Progresso */
.devotional-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.devotional-today-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.devotional-today-info strong {
  color: var(--text-main);
}

.btn-continue-novena {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(201, 139, 44, 0.3);
  transition: all 0.2s ease;
}

.btn-continue-novena:hover {
  background: var(--primary-hover);
  transform: translateX(2px);
}

/* Card de Novena Concluída */
.devotional-completed-banner {
  background: linear-gradient(135deg, rgba(201, 139, 44, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1.5px solid rgba(201, 139, 44, 0.4);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
}

.completed-cross-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 14px rgba(201, 139, 44, 0.4);
}

.completed-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.completed-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 6px auto 16px;
  line-height: 1.45;
}

.btn-new-cycle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(201, 139, 44, 0.3);
  transition: all 0.2s ease;
}

.btn-new-cycle:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ── Estilos de Status nos Cards dos 9 Dias ── */
.dia-card.is-completed {
  border-color: rgba(16, 185, 129, 0.5);
}

.dia-card.is-completed .dia-number-badge {
  background: var(--emerald-green);
}

.dia-card.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg);
  animation: cardPulse 2.5s infinite ease-in-out;
}

@keyframes cardPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--primary), 0 4px 14px rgba(201, 139, 44, 0.2);
  }
  50% {
    box-shadow: 0 0 0 3px var(--primary), 0 8px 24px rgba(201, 139, 44, 0.4);
  }
}

.dia-card.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
  filter: grayscale(25%);
}

.dia-card.is-locked:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-color);
}

.dia-card.is-locked .play-btn-glow {
  background: rgba(120, 113, 108, 0.85);
  box-shadow: none;
}

/* Selos no Topo do Card */
.dia-top-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 2;
}

.dia-calendar-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dia-calendar-pill.is-today {
  background: rgba(201, 139, 44, 0.95);
  color: #ffffff;
  border-color: #f7d598;
  font-weight: 700;
}

.dia-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.dia-status-pill.completed {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.dia-status-pill.active {
  background: rgba(201, 139, 44, 0.95);
  color: #ffffff;
}

.dia-status-pill.locked {
  background: rgba(40, 35, 30, 0.85);
  color: #e5e0d8;
}

/* ── Barra de Ação de Conclusão dentro do Modal ── */
.modal-completion-bar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-complete-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(201, 139, 44, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-complete-action:hover {
  background: var(--primary-hover);
}

.day-done-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
}

.day-done-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--emerald-dark);
}

.btn-undo-done {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.btn-undo-done:hover {
  color: var(--text-main);
}

/* Toast Devocional */
.sacred-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1c1917;
  color: #ffffff;
  border: 1.5px solid var(--primary);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.sacred-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

