:root {
  /* Soft sky → peach gradient (light mode) */
  --bg: linear-gradient(
    180deg,
    #ffcfac 0%,
    #ffe7f0 30%,
    #e5ddff 65%,
    #cfe5ff 100%
  );

  --bg-solid: #ffe7d6;

  /* Cards / boxes */
  --card: #fff3eb;

  /* Text */
  --text: #2a1f1b;
  --muted: #7a5b4a;

  /* Borders */
  --border: #f0c3a5;

  /* Accents */
  --accent: #e07a5f;
  --accent-soft: #ffa261;
  --accent-dark: #b3533e;

  /* Chips */
  --chip-bg: #ffe0db;
  --chip-border: #f3b29f;
  --chip-text: #4a2c24;

  /* Hero banner */
  --hero-bg: rgba(255, 229, 210, 0.9);
}

/* 🌙 Dark mode */
html.dark {
  --bg: linear-gradient(
    180deg,
    #120f19 0%,
    #1b1230 40%,
    #050914 100%
  );
  --bg-solid: #120f19;

  --card: #1c1724;
  --text: #f7f4ff;
  --muted: #d8cae9;
  --border: #3a2b4a;

  --accent: #f6b48b;
  --accent-soft: #fbd3a4;
  --accent-dark: #e48a6b;

  --chip-bg: #24182f;
  --chip-border: #4b305e;
  --chip-text: #f7f4ff;

  --hero-bg: #1b1625;
}
html.dark #daily-suggestion {
  color: #f7f4ff;
}

/* Global */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden; /* prevent tiny horizontal scrollbars */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
  background-size: cover;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* ---------- TOP NAV (links + Dark toggle) ---------- */

.nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;

  flex-wrap: nowrap;
  overflow-x: auto; /* allow scroll on very small screens */
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
}

.nav-links a {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.theme-toggle:active {
  background: var(--accent-dark);
  transform: translateY(0);
}

/* Hero */
header.app-hero {
  background: radial-gradient(
    circle at top left,
    rgba(255, 230, 210, 0.9),
    rgba(255, 198, 180, 0.6)
  );
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: background 0.8s ease;
}

html.dark header.app-hero {
  background: radial-gradient(circle at top left, #2b1d3b, var(--hero-bg));
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 0.25rem;
  font-size: 1.8rem;
}

.tagline {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.hero-subtext {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 620px;
}

/* Sections */
section {
  background-color: var(--card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  opacity: 0;
  transform: translateY(6px);
  animation: section-in 0.5s ease-out forwards;
}

section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

/* Divider */
.soft-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.12),
    transparent
  );
  margin: 2rem 0;
  opacity: 0.35;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Inputs */
input[type="text"] {
  font-size: 1.05rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.7rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
}

html.dark input[type="text"],
html.dark textarea,
html.dark select {
  background: rgba(255, 255, 255, 0.08); /* lighter than the page */
  color: var(--text);                     /* makes typed text readable */
  border-color: rgba(255, 255, 255, 0.16);
  caret-color: var(--text);
}

html.dark input[type="text"]::placeholder,
html.dark textarea::placeholder {
  color: rgba(247, 244, 255, 0.65);
}

html.dark input[type="text"]:focus,
html.dark textarea:focus,
html.dark select:focus {
  border-color: rgba(246, 180, 139, 0.65); /* ties to your accent */
  box-shadow: 0 0 0 4px rgba(246, 180, 139, 0.18);
}

/* Buttons */
button,
.btn-primary,
.primary-button {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  border: 1px solid var(--accent-dark);
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: background 0.1s ease, transform 0.05s ease, box-shadow 0.05s ease;
}

button:hover,
button:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible,
.primary-button:hover,
.primary-button:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

button:active,
.btn-primary:active,
.primary-button:active {
  background: var(--accent-dark);
  transform: translateY(0);
}

/* App entry button */
.app-entry-container {
  text-align: center;
  margin: 2.5rem 0;
}

.app-entry-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* App bottom nav */
.app-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0.5rem 1.5rem;
  margin-top: 2rem;
}

.app-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--accent);
}

/* Crisis box */
.crisis-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(255, 230, 230, 0.6);
  border: 1px solid rgba(200, 80, 80, 0.3);
  color: #5c2c2c;
  font-size: 0.95rem;
  line-height: 1.45;
}

html.dark .crisis-box {
  background: rgba(80, 30, 30, 0.5);
  border-color: rgba(140, 60, 60, 0.4);
  color: #f8dcdc;
}

/* Plans grid */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 800px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.plan-card {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.plan-card {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* 👇 PASTE RIGHT HERE */
/* Make entire plan card clickable */
.plan-link{
  display:block;
  text-decoration:none;
  color:inherit;
  pointer-events:auto;
  position:relative;
  z-index:5;
}

.plan-link h3,
.plan-link p,
.plan-link span{
  color:inherit;
}

.plan-link:visited{
  color:inherit;
}

.plan-link:hover .plan-card{
  transform: translateY(-1px);
}

.plan-link:focus-visible{
  outline: 3px solid rgba(0,0,0,0.25);
  outline-offset: 6px;
  border-radius: 16px;
}
.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.plan-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.plan-meta {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.plan-desc {
  margin: 0;
  font-size: 0.95rem;
}

/* Badges */
.badge-free {
  background: rgba(120, 190, 140, 0.12);
  color: #2f6b3f;
  border: 1px solid rgba(120, 190, 140, 0.7);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-plus {
  background: rgba(224, 122, 95, 0.1);
  color: var(--accent-dark);
  border: 1px solid rgba(224, 122, 95, 0.7);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Footer (shared) */
footer.app-footer {
  background: radial-gradient(
    circle at bottom right,
    rgba(255, 234, 210, 0.5),
    rgba(255, 236, 214, 0.9)
  );
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
  transition: background 0.8s ease;
}

html.dark footer.app-footer {
  background: radial-gradient(
    circle at bottom right,
    #2b1d3b,
    #1b1625
  );
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  width: 100%;
}

/* Fade-in animation */
@keyframes section-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.giving-banner {
  background: rgba(255, 230, 210, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

html.dark .giving-banner {
  background: rgba(27, 22, 37, 0.8);
}

/* Progress bar */
.giving-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 0.75rem 0 0.35rem;
}

html.dark .giving-progress {
  background: rgba(10, 8, 18, 0.8);
}

.giving-progress-inner {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.6s ease;
}

.giving-progress-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
/* FAQ Styling */
.faq-question {
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.faq-answer {
  margin: 0 0 0.8rem;
  color: var(--text);
  line-height: 1.5;
}
/* --- FAQ Accordion --- */
.faq-item {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

html.dark .faq-item {
  background: rgba(27, 22, 37, 0.9);
}

.faq-toggle {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: none;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}

.faq-toggle span:first-child {
  font-weight: 600;
  font-size: 0.98rem;
}

.faq-icon {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg); /* makes + look like × when open */
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 0.9rem;
  transition: max-height 0.25s ease, padding-bottom 0.25s ease;
}

.faq-item.open .faq-panel {
  padding-bottom: 0.7rem;
  max-height: 500px; /* big enough to fit the answer */
}

.faq-panel p {
  margin: 0.6rem 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
/* Highlighted disclaimer phrases in Terms of Use */
.terms-disclaimer {
  font-weight: 700;
  text-transform: uppercase;
  color: #b3533e; /* matches accent-dark tone */
}
/* Centered hero just for the More page */
.app-hero-centered .hero-inner {
  text-align: center;
}

/* ---------- Bible Navigator theme chips layout ---------- */

/* Chip container */
.theme-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

/* Base chip look */
.theme-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--chip-text);
  white-space: nowrap;
  transition:
    transform 0.08s ease-out,
    box-shadow 0.08s ease-out,
    background 0.12s ease-out;
}

/* Hover state */
.theme-chip:hover,
.theme-chip:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

/* Layout: first 3 chips share the top row, 4th drops under and centers */
.theme-chips .theme-chip {
  flex: 0 1 calc(33.333% - 0.5rem);
}

.theme-chips .theme-chip:nth-child(4) {
  flex-basis: 100%;
  max-width: 60%;
  margin-top: 0.25rem;
  margin-left: auto;
  margin-right: auto;
}
.plan-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.plan-card-link:focus-visible {
  outline: 3px solid rgba(0,0,0,0.2);
  outline-offset: 6px;
  border-radius: 16px;
}

/* Progress control (bottom-right) */
.progress-bar{
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.progress-right{
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Badge looks more "official" than other pills */
.progress-badge{
  font-weight: 700;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.7);
}

/* Button looks distinct + clickable */
.progress-btn{
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.22);
  background: rgba(0,0,0,.08);
  font-weight: 800;
  cursor: pointer;
}

.progress-btn:hover{
  background: rgba(0,0,0,.12);
}

/* =========================================================
   App-ready polish (global spacing + readability)
   Only CSS changes (safe)
   ========================================================= */

/* Slightly tighter, more consistent typography */
body {
  line-height: 1.55;
}

/* Make sections breathe consistently on mobile + desktop */
main {
  padding-bottom: 2rem;
}

/* Cards/sections: tighten vertical rhythm (safe, subtle) */
section {
  margin-bottom: 1.25rem;
}

/* Headings: reduce a little extra gap */
h1, h2, h3 {
  margin-bottom: 0.5rem;
}

/* Paragraphs: keep readable spacing */
p {
  margin: 0.5rem 0 0.85rem;
}

/* Lists: reduce big default gaps */
ul, ol {
  margin: 0.5rem 0 0.85rem 1.25rem;
}

/* Journal textarea: feel more “app-like” */
textarea {
  line-height: 1.45;
}

/* Buttons: consistent spacing and tap target */
button,
.clear-btn,
.primary-btn {
  min-height: 40px;
}

/* =========================================================
   App polish — subtle depth + clarity
   ========================================================= */

/* Slightly softer card feel */
section {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Buttons feel more tactile */
button,
.clear-btn,
.primary-btn {
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}

button:hover,
.clear-btn:hover,
.primary-btn:hover {
  transform: translateY(-1px);
}

button:active,
.clear-btn:active,
.primary-btn:active {
  transform: translateY(0);
}

/* Journal area feels intentional */
textarea {
  border-radius: 12px;
}

/* Progress badge area feels anchored */
.progress-bar {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

/* =========================================================
   Pro-level UI polish (global) — safe overrides
   Paste at END of styles.css
   ========================================================= */

/* Consistent sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Better text rendering */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A slightly tighter, more “app-like” vertical rhythm */
body {
  line-height: 1.55;
  letter-spacing: 0.1px;
}

/* Headings: clearer hierarchy */
h1, h2, h3 {
  letter-spacing: 0.2px;
  line-height: 1.2;
}
h1 { margin: 0 0 0.75rem; }
h2 { margin: 1.25rem 0 0.6rem; }
h3 { margin: 1rem 0 0.5rem; }

/* Paragraphs + lists: cleaner spacing */
p {
  margin: 0 0 0.85rem;
}
ul, ol {
  margin: 0.35rem 0 1rem 1.25rem;
}
li {
  margin: 0.25rem 0;
}

/* Links: subtle but clear */
a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* Inputs / textarea: more “native app” feel */
input,
textarea,
select {
  font: inherit;
}
textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
  border-radius: 14px;
}

/* Buttons: consistent press feel (works with your existing classes) */
button {
  font: inherit;
}
button:active {
  transform: translateY(1px);
}

/* Focus states: consistent + accessible */
:focus-visible {
  outline: 3px solid rgba(0,0,0,0.22);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Cards/containers: slightly more depth without “too much” */
.plan-card,
.content-card,
.card,
section {
  scroll-margin-top: 84px;
}

/* Subtle shadow upgrade (safe: only applies where you already have a card-like container)
   If you already have a main "card" wrapper for the devo page, this improves it.
*/
.card,
.content-card,
.plan-card {
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* Keep motion comfortable */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
    animation: none !important;
  }
}

/* =========================
   MICRO PASS — PRO POLISH
   ========================= */

:root{
  /* spacing scale */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;

  /* radius */
  --r-1: 10px;
  --r-2: 14px;

  /* type */
  --text: 16px;
  --text-sm: 14px;
  --lh: 1.65;

  /* surfaces */
  --border: rgba(0,0,0,.12);
  --border-strong: rgba(0,0,0,.18);
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-soft: 0 6px 16px rgba(0,0,0,.08);
}

/* readable default rhythm */
body{
  line-height: var(--lh);
  font-size: var(--text);
}

/* Muted text: readable but quiet */
.muted{
  font-size: var(--text-sm);
  opacity: .85;
}

/* Cards/sections (safe generic polish) */
section{
  padding-top: var(--s-2);
  padding-bottom: var(--s-2);
}

/* headings tighten */
h2{ margin: 0 0 var(--s-2) 0; }
h3{ margin: 0 0 var(--s-1) 0; }

/* Lists: cleaner spacing */
ul{
  margin-top: var(--s-1);
  margin-bottom: 0;
  padding-left: 1.1rem;
}
li{ margin-bottom: 8px; }

/* Buttons: app-ready tap target */
button,
.primary-button,
.clear-btn{
  min-height: 44px;
  border-radius: var(--r-1);
}

/* Inputs */
textarea,
input,
select{
  border-radius: var(--r-1);
  border: 1px solid var(--border);
  outline: none;
}

/* Focus states (keyboard + accessibility) */
textarea:focus,
input:focus,
select:focus,
button:focus-visible,
a:focus-visible{
  outline: 3px solid rgba(0,0,0,.18);
  outline-offset: 2px;
}

/* Journal textarea specifically (if inline style exists, this still helps focus/border) */
#journal-entry{
  border: 1px solid var(--border);
}
#journal-entry:focus{
  border-color: var(--border-strong);
}
/* Guided reflection — clean spacing (safe version) */
#guided-reflection,
.guided-reflection,
.ai-output,
.answer-card {
  line-height: 1.6;
}

/* only direct children get spacing */
#guided-reflection > p,
.guided-reflection > p,
.ai-output > p,
.answer-card > p {
  margin: 0.55rem 0 0.85rem;
}

#guided-reflection > ul,
.guided-reflection > ul,
.ai-output > ul,
.answer-card > ul {
  margin: 0.45rem 0 0.9rem 1.25rem;
}

#guided-reflection li,
.guided-reflection li,
.ai-output li,
.answer-card li {
  margin: 0.25rem 0;
}
/* =========================
   Bible AI — centered dashed section titles (scoped safely)
   ========================= */

#guided-reflection h3,
#guided-reflection h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  margin: 1rem 0 0.65rem;
  font-weight: 800;
}

/* dashed line left + right */
#guided-reflection h3::before,
#guided-reflection h3::after,
#guided-reflection h4::before,
#guided-reflection h4::after {
  content: "";
  flex: 1;
  height: 1px;
  opacity: 0.55;
  background: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.35) 0px,
    rgba(255,255,255,0.35) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* Light mode dash color */
html:not(.dark) #guided-reflection h3::before,
html:not(.dark) #guided-reflection h3::after,
html:not(.dark) #guided-reflection h4::before,
html:not(.dark) #guided-reflection h4::after {
  background: repeating-linear-gradient(
    to right,
    rgba(0,0,0,0.25) 0px,
    rgba(0,0,0,0.25) 6px,
    transparent 6px,
    transparent 12px
  );
}
/* =========================
   Guided Reflection — centered dashed titles (fallback)
   SAFE: only affects headings inside the reflection card
   ========================= */

.ai-output h3,
.ai-output h4,
.answer-card h3,
.answer-card h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  margin: 1rem 0 0.65rem;
  font-weight: 800;
}

/* dashed lines */
.ai-output h3::before,
.ai-output h3::after,
.ai-output h4::before,
.ai-output h4::after,
.answer-card h3::before,
.answer-card h3::after,
.answer-card h4::before,
.answer-card h4::after {
  content: "";
  flex: 1;
  height: 1px;
  opacity: 0.55;
  background: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.35) 0px,
    rgba(255,255,255,0.35) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* light mode */
html:not(.dark) .ai-output h3::before,
html:not(.dark) .ai-output h3::after,
html:not(.dark) .ai-output h4::before,
html:not(.dark) .ai-output h4::after,
html:not(.dark) .answer-card h3::before,
html:not(.dark) .answer-card h3::after,
html:not(.dark) .answer-card h4::before,
html:not(.dark) .answer-card h4::after {
  background: repeating-linear-gradient(
    to right,
    rgba(0,0,0,0.25) 0px,
    rgba(0,0,0,0.25) 6px,
    transparent 6px,
    transparent 12px
  );
}
/* =========================
   Guided reflection — dashed centered “label lines”
   Works when the labels are <strong> (not h3/h4)
   Scoped to AI output cards only
   ========================= */

/* Treat the label line (usually: p > strong:first-child) like a heading */
.ai-output p > strong:first-child,
.answer-card p > strong:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  margin: 1rem 0 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* dashed lines left + right */
.ai-output p > strong:first-child::before,
.ai-output p > strong:first-child::after,
.answer-card p > strong:first-child::before,
.answer-card p > strong:first-child::after {
  content: "";
  flex: 1;
  height: 1px;
  opacity: 0.55;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.35) 0px,
    rgba(255, 255, 255, 0.35) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* light mode dash color */
html:not(.dark) .ai-output p > strong:first-child::before,
html:not(.dark) .ai-output p > strong:first-child::after,
html:not(.dark) .answer-card p > strong:first-child::before,
html:not(.dark) .answer-card p > strong:first-child::after {
  background: repeating-linear-gradient(
    to right,
    rgba(0, 0, 0, 0.25) 0px,
    rgba(0, 0, 0, 0.25) 6px,
    transparent 6px,
    transparent 12px
  );
}
/* =========================
   Guided reflection — centered dashed labels
   (targets your REAL structure)
   ========================= */

section h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  margin: 1rem 0 0.65rem;
  font-weight: 800;
}

section h3::before,
section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  opacity: 0.55;
  background: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.35) 0px,
    rgba(255,255,255,0.35) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* Light mode dash color */
html:not(.dark) section h3::before,
html:not(.dark) section h3::after {
  background: repeating-linear-gradient(
    to right,
    rgba(0,0,0,0.25) 0px,
    rgba(0,0,0,0.25) 6px,
    transparent 6px,
    transparent 12px
  );
}
/* =========================
   Bible AI — recent questions layout polish
   ========================= */

/* Make the recent section behave like an app footer area */
#recent-questions {
  display: flex;
  flex-direction: column;
}

/* Push clear button to opposite side */
#clear-history {
  align-self: flex-end;
  margin-top: 0.75rem;
}
/* Force the Clear history button to bottom-right (no parent flex needed) */
#clear-history {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-top: 0.75rem;
}
/* Bible AI verse links (BibleGateway) */
#study-links a{
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
#study-links a:hover,
#study-links a:focus-visible{
  text-decoration: underline;
  color: var(--accent-dark);
}
/* Subtle external link icon */
.external-icon {
  font-size: 0.75em;
  opacity: 0.6;
  margin-left: 4px;
  transition: opacity 0.15s ease;
}

#study-links a:hover .external-icon {
  opacity: 1;
}
.limit-card{
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.limit-title{
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.limit-body p{
  margin: 8px 0;
}

.limit-teaser{
  margin-top: 12px;
  font-weight: 600;
}

.limit-cta{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.9);
}
.limit-cta:hover{
  transform: translateY(-1px);
}
.plan-badge{
  display:inline-block;
  padding:.25rem .6rem;
  border-radius:999px;
  font-size:.75rem;
  font-weight:700;
  line-height:1;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.06);
}

.plan-badge.badge-free{
  opacity: .9;
}

.plan-badge.badge-plus{
  opacity: .9;
}