/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --purple-900: #1C0D35;
  --purple-700: #4A235A;
  --purple-500: #7B52B5;
  --gold-500:   #C9921A;
  --gold-400:   #E8A820;
  --gold-200:   #F7D98A;
  --cream:      #FFFDF7;
  --card-bg:    #FFFFFF;
  --gray-100:   #F5F0EA;
  --gray-200:   #E8DFF0;
  --gray-500:   #8878A0;
  --text:       #1A1025;
  --shadow:     0 4px 24px rgba(74,35,90,.10);
  --radius:     18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Toast animation ───────────────────────────────────────────────────── */
@keyframes toastIn {
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--purple-900);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo-cross {
  font-size: 1.9rem;
  color: var(--gold-400);
  line-height: 1;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .5px;
  transition: color .2s;
}

.nav-links a:hover { color: var(--gold-400); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ── Hero / Daily Verse ────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(145deg, var(--purple-900) 0%, var(--purple-700) 55%, #7B52B5 100%);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
  clip-path: inset(0);
}

.hero-section::after {
  content: '';
  display: none;
}

.daily-date {
  text-align: center;
  color: var(--gold-400);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  color: #fff;
  text-align: center;
  font-size: 3.2rem;
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: -.5px;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.verse-card {
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 44px 48px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp .6s ease;
}

.verse-icon {
  font-size: 2.6rem;
  color: var(--gold-400);
  margin-bottom: 22px;
  display: block;
}

.verse-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 14px;
  border: none;
}

.verse-reference {
  color: var(--gold-200);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.verse-reflection {
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: rgba(0,0,0,.18);
  border-radius: 12px;
  text-align: left;
}

.verse-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.btn:hover { transform: translateY(-2px); }

.btn-share {
  background: var(--gold-400);
  color: #1a1025;
}

.btn-share:hover {
  background: var(--gold-500);
  box-shadow: 0 4px 16px rgba(201,146,26,.4);
}

.btn-copy {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

.btn-copy:hover { background: rgba(255,255,255,.25); }

.btn-primary {
  background: var(--purple-700);
  color: #fff;
  padding: 13px 28px;
  font-size: .95rem;
  width: 100%;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--purple-900);
  box-shadow: 0 4px 18px rgba(74,35,90,.35);
}

.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── Ad Banners ────────────────────────────────────────────────────────── */
.ad-banner {
  padding: 18px 0;
  text-align: center;
}

.ad-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: 10px;
  padding: 18px;
  color: var(--gray-500);
  font-size: .82rem;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: .5px;
}

.ad-placeholder.medium { min-height: 260px; }

/* ── Community Section ─────────────────────────────────────────────────── */
.community-section { padding: 80px 0 96px; }

.community-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 30px;
  align-items: start;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--purple-900);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  color: var(--gray-500);
  margin-bottom: 28px;
  font-size: .95rem;
}

/* ── Post Form ─────────────────────────────────────────────────────────── */
.post-form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  border: 1px solid var(--gray-200);
}

.post-form-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--purple-900);
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.form-group { margin-bottom: 14px; }

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: #FDFBFF;
  transition: border-color .2s, background .2s;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  background: #fff;
}

.char-count {
  text-align: right;
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ── Posts Feed ────────────────────────────────────────────────────────── */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  animation: fadeUp .4s ease;
  transition: transform .2s, box-shadow .2s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(74,35,90,.14);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.post-author { font-weight: 700; color: var(--purple-900); font-size: 1rem; }
.post-time   { font-size: .78rem; color: var(--gray-500); margin-top: 1px; }

.post-content {
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.post-action {
  background: none;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  color: var(--gray-500);
  font-size: .85rem;
  padding: 6px 16px;
  border-radius: 50px;
  transition: all .2s;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

.post-action:hover { background: var(--gray-100); color: var(--purple-700); border-color: var(--purple-500); }
.post-action.liked { color: var(--purple-700); border-color: var(--purple-500); background: #f0ebf8; }

/* Loading spinner */
.loading-posts {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-500);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.no-posts {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
  font-size: .95rem;
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 84px;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.sidebar-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--purple-900);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.sidebar-card p {
  color: var(--gray-500);
  font-size: .9rem;
  line-height: 1.65;
}

.sidebar-card .quote-small {
  margin-top: 10px;
  font-style: italic;
  font-size: .82rem;
  color: var(--purple-500);
  border-left: 3px solid var(--gold-400);
  padding-left: 10px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--purple-900);
  color: rgba(255,255,255,.75);
  padding: 56px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .logo-text { display: block; margin: 10px 0 8px; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--gold-400);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a  { color: rgba(255,255,255,.65); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-400); }
.footer-col p  { font-size: .9rem; margin-bottom: 14px; }

.social-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-social {
  padding: 8px 18px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: .83rem;
  font-family: 'Lato', sans-serif;
  transition: transform .18s, opacity .18s;
}

.btn-social:hover { transform: translateY(-2px); opacity: .9; }
.btn-social.whatsapp { background: #25d366; color: #fff; }
.btn-social.facebook { background: #1877f2; color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .community-layout { grid-template-columns: 1fr; }

  .sidebar { position: static; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .hero-title { font-size: 2.2rem; }
  .verse-text { font-size: 1.2rem; }
  .verse-card { padding: 30px 22px; }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--purple-900);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}



/* ── Cookie Consent Banner (LGPD) ────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--purple-900);
  color: rgba(255,255,255,.88);
  padding: 16px 20px;
  z-index: 9998;
  border-top: 3px solid var(--gold-400);
  animation: slideUp .4s ease;
}

.cookie-banner[hidden] { display: none !important; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  font-size: .88rem;
  line-height: 1.65;
  min-width: 220px;
  margin: 0;
}

.cookie-content a { color: var(--gold-400); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--gold-400);
  color: var(--purple-900);
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  transition: background .2s, transform .18s;
  white-space: nowrap;
}

.btn-cookie-accept:hover { background: var(--gold-500); transform: translateY(-1px); }

.btn-cookie-decline {
  background: transparent;
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: .84rem;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-cookie-decline:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn-cookie-policy {
  color: rgba(255,255,255,.6);
  font-size: .83rem;
  text-decoration: underline;
  white-space: nowrap;
  transition: color .2s;
}

.btn-cookie-policy:hover { color: var(--gold-400); }

/* ── Acessibilidade: sr-only ─────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Sidebar heading nivel 2 (semantico, visual como h3) ──────────────── */
.sidebar-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-400);
  margin: 0 0 10px;
}

/* ── Paginas Internas (Privacidade, Contato) ─────────────────────────── */
.inner-page {
  padding: 52px 0 72px;
  min-height: 60vh;
}

.inner-page-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 52px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  max-width: 820px;
  margin: 0 auto;
}

.inner-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--purple-900);
  margin-bottom: 6px;
}

.inner-page-subtitle {
  color: var(--gray-500);
  font-size: .88rem;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--gray-200);
}

/* ── Secoes de Politica ──────────────────────────────────────────────── */
.policy-section { margin-bottom: 32px; }

.policy-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--purple-700);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--gold-400);
}

.policy-section p {
  color: var(--text);
  font-size: .93rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.policy-section ul {
  padding-left: 22px;
  color: var(--text);
  font-size: .93rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.policy-section li { margin-bottom: 8px; }

.policy-section a { color: var(--purple-500); text-decoration: underline; }
.policy-section a:hover { color: var(--purple-700); }

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: .88rem;
}

.policy-table th {
  background: var(--gray-100);
  color: var(--purple-900);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
}

.policy-table td {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  color: var(--text);
  vertical-align: top;
}

.policy-table tr:nth-child(even) td { background: var(--gray-100); }
.policy-table a { color: var(--purple-500); }

/* ── Pagina de Contato ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-card {
  background: var(--gray-100);
  border-radius: 14px;
  padding: 24px 22px;
  border: 1px solid var(--gray-200);
}

.contact-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--purple-900);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.contact-card p {
  color: var(--gray-500);
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.contact-card a {
  color: var(--purple-700);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.contact-card a:hover { text-decoration: underline; }

.contact-form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.contact-form-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--purple-900);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--purple-700);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.contact-notice {
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
  border-radius: 14px;
  padding: 20px 24px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  line-height: 1.7;
  text-align: center;
}

.contact-notice strong { color: var(--gold-400); }

/* ── Responsive para paginas internas ───────────────────────────────── */
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .inner-page-card { padding: 28px 20px; }
  .policy-table { font-size: .78rem; }
  .cookie-banner { padding: 14px 16px; }
}



/* ════════════════════════════════════════════════════════════
   RETENTION: Countdown + Streak + Notify button
   ════════════════════════════════════════════════════════════ */

/* Retention bar — sits below the verse card */
.retention-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 22px;
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  border: 1px solid rgba(212,160,23,.22);
  backdrop-filter: blur(6px);
}

/* Countdown widget */
.countdown-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lato', sans-serif;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
}
.countdown-label { letter-spacing: .02em; }
.countdown-value {
  font-size: .98rem;
  font-weight: 700;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
  min-width: 92px;
}

/* Streak badge */
.streak-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(212,160,23,.18), rgba(212,160,23,.06));
  border: 1px solid rgba(212,160,23,.38);
  border-radius: 24px;
  padding: 7px 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.88);
  line-height: 1.35;
}
.streak-fire { font-size: 1.05rem; }
.streak-text strong { color: var(--gold-400); }
.streak-milestone-label {
  display: block;
  font-size: .78rem;
  font-style: normal;
  color: var(--gold-400);
  margin-top: 1px;
}

/* Notify button wrapper */
.notify-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* Notify button */
.btn-notify {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #4a2c8a 0%, #7b4db5 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 26px;
  font-family: 'Lato', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 18px rgba(74,44,138,.35);
}
.btn-notify:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74,44,138,.55);
}
.btn-notify:active { transform: translateY(0); }

/* Pulse animation for streak milestones */
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,160,23,.5); }
  50%       { box-shadow: 0 0 0 8px rgba(212,160,23,0); }
}

/* Responsive: stack on small screens */
@media (max-width: 520px) {
  .retention-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .countdown-widget,
  .streak-badge { font-size: .82rem; }
}

/* ════════════════════════════════════════════════════════════
   IMAGE GENERATOR — Canvas verse sharing buttons
   ════════════════════════════════════════════════════════════ */

.image-gen-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.image-gen-label {
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .03em;
}

.image-gen-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Individual format button */
.btn-fmt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(212,160,23,.12), rgba(212,160,23,.05));
  color: #d4a017;
  border: 1px solid rgba(212,160,23,.45);
  border-radius: 50px;
  padding: 10px 24px;
  font-family: 'Lato', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .2s, border-color .2s, transform .18s, box-shadow .18s;
}
.btn-fmt:hover {
  background: linear-gradient(135deg, rgba(212,160,23,.28), rgba(212,160,23,.12));
  border-color: #d4a017;
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(212,160,23,.25);
}
.btn-fmt:active  { transform: translateY(0); }
.btn-fmt:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .image-gen-btns { gap: 10px; }
  .btn-fmt { font-size: .82rem; padding: 9px 18px; }
}
/* Active/selected format button */
.btn-fmt-active {
  background: linear-gradient(135deg, rgba(212,160,23,.35), rgba(212,160,23,.18)) !important;
  border-color: #d4a017 !important;
  color: #d4a017 !important;
}

/* ════════════════════════════════════════════════════════════
   CATEGORY PILLS — Verse category filter bar
   ════════════════════════════════════════════════════════════ */

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  padding: 7px 16px;
  font-family: 'Lato', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .03em;
  transition: background .18s, border-color .18s, color .18s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.cat-pill:hover {
  background: rgba(212,160,23,.18);
  border-color: rgba(212,160,23,.55);
  color: #f7d98a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212,160,23,.18);
}
.cat-pill:active { transform: translateY(0); }

.cat-pill-active {
  background: linear-gradient(135deg, rgba(212,160,23,.32), rgba(212,160,23,.14)) !important;
  border-color: #d4a017 !important;
  color: #f7d98a !important;
  box-shadow: 0 3px 14px rgba(212,160,23,.28);
}

@media (max-width: 520px) {
  .cat-pill { font-size: .76rem; padding: 6px 13px; }
}

/* ════════════════════════════════════════════════════════════
   FAVORITES — Save verse button & list button
   ════════════════════════════════════════════════════════════ */

.btn-fav {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 10px 20px;
  font-family: 'Lato', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-fav:hover {
  background: rgba(255,100,100,.12);
  border-color: rgba(255,120,120,.5);
  color: #ff9090;
  transform: translateY(-1px);
}
.btn-fav:active  { transform: translateY(0); }

.btn-fav.fav-active {
  background: rgba(220,50,50,.18) !important;
  border-color: rgba(220,80,80,.6) !important;
  color: #ff7070 !important;
}

/* Favorites counter button in retention bar */
.btn-fav-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 7px 16px;
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.btn-fav-list:hover {
  background: rgba(212,160,23,.18);
  border-color: rgba(212,160,23,.45);
  color: #f7d98a;
}

/* ════════════════════════════════════════════════════════════
   PRAYER REQUEST — Post type badge in community feed
   ════════════════════════════════════════════════════════════ */

.post-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 6px;
}
.post-type-mensagem  { background: rgba(74,44,138,.15); color: #9b7fd4; border: 1px solid rgba(74,44,138,.3); }
.post-type-oracao    { background: rgba(52,152,219,.12); color: #7ec8f0; border: 1px solid rgba(52,152,219,.3); }
.post-type-testemunho{ background: rgba(46,204,113,.12); color: #6edba8; border: 1px solid rgba(46,204,113,.3); }
.post-type-versiculo { background: rgba(212,160,23,.12); color: #d4a017; border: 1px solid rgba(212,160,23,.3); }

/* ════════════════════════════════════════════════════════════
   HERO TEXTURE — Subtle radial light overlay
   ════════════════════════════════════════════════════════════ */

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 20%, rgba(212,160,23,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%,  rgba(123,82,181,.22) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 90% 80%,  rgba(74,35,90,.28)   0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content floats above the texture overlay */
.hero-section > .container { position: relative; z-index: 1; }

/* ════════════════════════════════════════════════════════════
   WAVE DIVIDER — Hero → community smooth transition
   ════════════════════════════════════════════════════════════ */

.hero-wave {
  background: linear-gradient(145deg, var(--purple-900) 0%, var(--purple-700) 55%, #7B52B5 100%);
  height: 72px;
  margin-top: -2px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* ════════════════════════════════════════════════════════════
   POST CARDS — Left-border accent by message type
   ════════════════════════════════════════════════════════════ */

.post-card[data-type="mensagem"]   { border-left: 3px solid var(--purple-500); }
.post-card[data-type="oracao"]     { border-left: 3px solid #60b4e8; }
.post-card[data-type="testemunho"] { border-left: 3px solid #5dcca0; }
.post-card[data-type="versiculo"]  { border-left: 3px solid var(--gold-500); }

/* ════════════════════════════════════════════════════════════
   BUTTON HIERARCHY — Share primary, copy secondary, save ghost
   ════════════════════════════════════════════════════════════ */

/* Primary: share — keep gold, add slight upgrade */
.btn-share {
  box-shadow: 0 3px 14px rgba(232,168,32,.3);
  letter-spacing: .02em;
}

/* Secondary: copy — cleaner outlined */
.btn-copy {
  border-color: rgba(255,255,255,.4);
  letter-spacing: .02em;
}
.btn-copy:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.65);
}

/* Tertiary: save — true ghost, smallest visual weight */
.btn.btn-fav {
  background: transparent !important;
  color: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  padding: 10px 18px;
  font-size: .85rem;
}
.btn.btn-fav:hover {
  background: rgba(255,80,80,.1) !important;
  border-color: rgba(255,120,120,.4) !important;
  color: #ff9090 !important;
}
.btn.btn-fav.fav-active {
  background: rgba(220,50,50,.18) !important;
  border-color: rgba(220,80,80,.55) !important;
  color: #ff7070 !important;
}

/* ════════════════════════════════════════════════════════════
   DARK MODE — prefers-color-scheme: dark
   ════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  :root {
    --cream:    #0d0820;
    --card-bg:  #160e2e;
    --gray-100: #1c1238;
    --gray-200: #271848;
    --gray-500: #9580b8;
    --text:     #e2d8f5;
    --shadow:   0 4px 28px rgba(0,0,0,.55);
  }

  .form-input,
  .form-textarea {
    background: #160e2e;
    color: var(--text);
    border-color: var(--gray-200);
  }

  .form-input:focus,
  .form-textarea:focus {
    background: #1e1240;
    border-color: var(--purple-500);
  }

  .form-input::placeholder,
  .form-textarea::placeholder { color: var(--gray-500); }

  .ad-placeholder {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-500);
  }

  .inner-page-card { background: var(--card-bg); }

  .contact-card { background: var(--gray-100); border-color: var(--gray-200); }
  .contact-card h3 { color: var(--text); }
  .contact-card p { color: var(--gray-500); }

  /* Wave divider adjusts to dark background */
  .hero-wave { /* keeps hero gradient, correct regardless of mode */ }

  /* Section title stays readable */
  .section-title { color: #d4c8f0; }

  /* Inner pages: titles e headings em dark mode */
  .inner-page-title { color: var(--text); }
  .inner-page-subtitle { color: var(--gray-400); }
  .policy-section h2 { color: #b090e0; }
  .inner-page-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
  .contact-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
  .contact-form-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
  .contact-notice { background: rgba(255,255,255,.04); border-left-color: #8060c0; }
}

/* ════════════════════════════════════════════════════════════
   TYPOGRAPHY — Verse text line-height polish
   ════════════════════════════════════════════════════════════ */

.verse-text { line-height: 1.95; }