:root {
  --royal: #1b3a6b;
  --royal-dark: #10254a;
  --sky: #6fa8d6;
  --sky-light: #eaf4fb;
  --emerald: #1f6f54;
  --emerald-light: #e4f2ec;
  --gold: #c9a227;
  --gold-light: #f7edcf;
  --beige: #f7f1e6;
  --lavender: #9b8fc7;
  --lavender-light: #efeaf9;
  --ink: #232b3a;
  --ink-soft: #57627a;
  --white: #ffffff;
  --gray: #f4f5f7;
  --border: #e4e6ec;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px rgba(27, 58, 107, 0.08);
  --shadow-lift: 0 20px 45px rgba(27, 58, 107, 0.14);
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-ui: "Poppins", -apple-system, sans-serif;
}

[data-theme="dark"] {
  --white: #121826;
  --gray: #1a2032;
  --ink: #eef1f8;
  --ink-soft: #b8c0d4;
  --border: #2a3348;
  --sky-light: #17243a;
  --emerald-light: #142a22;
  --gold-light: #2a2313;
  --lavender-light: #211d38;
  --beige: #171c2b;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 20px 45px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-ui); cursor: pointer; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--gray); }
.section-tint-sky { background: var(--sky-light); }
.section-tint-beige { background: var(--beige); }
.section-header { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-header .eyebrow { justify-content: center; }
.section-header h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.section-header p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 10px; }

/* Buttons */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .92rem;
  padding: 15px 30px;
  border-radius: 100px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--royal), var(--royal-dark)); color: #fff; box-shadow: 0 10px 24px rgba(27,58,107,.28); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(27,58,107,.36); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #b8901f); color: #fff; box-shadow: 0 10px 24px rgba(201,162,39,.3); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(201,162,39,.38); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-ghost { background: var(--gray); color: var(--ink); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 9px 18px; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }

/* Navigation */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease;
}
[data-theme="dark"] .site-header { background: rgba(18,24,38,.85); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1220px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--royal); }
.logo-img { height: 42px; width: auto; display: block; }
.logo .arc { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 30px; align-items: center; font-family: var(--font-ui); font-size: .92rem; font-weight: 500; }
.nav-links a { position: relative; padding: 6px 0; color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .25s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Nav dropdowns (Explore / Community) */
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--ink); font-family: var(--font-ui); font-size: .92rem; font-weight: 500; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary i { font-size: .7rem; transition: transform .2s ease; }
.nav-dropdown[open] summary i { transform: rotate(180deg); }
.nav-dropdown-panel { display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 961px) {
  .nav-dropdown-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 10px; margin-top: 12px; min-width: 220px; z-index: 50; }
  .nav-dropdown-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .88rem; white-space: nowrap; }
  .nav-dropdown-panel a:hover { background: var(--gray); }
}
@media (max-width: 960px) {
  .nav-dropdown-panel { padding-left: 16px; margin-top: 10px; }
  .nav-dropdown-panel a { padding: 8px 0; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
}

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; background: var(--white);
  color: var(--ink); transition: all .2s ease;
}
.icon-btn:hover { background: var(--royal); color: #fff; border-color: var(--royal); transform: translateY(-2px); }
.filter-btn.active { background: var(--royal); color: #fff; }
.mobile-toggle { display: none; }

@media (max-width: 960px) {
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .3s ease; }
  .nav-links.open { transform: translateY(0); }
  .mobile-toggle { display: flex; }
}

/* Hero */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; color: #fff;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,37,74,.55) 0%, rgba(16,37,74,.72) 55%, rgba(16,37,74,.92) 100%);
  z-index: 1;
}
.hero-arc {
  position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2; width: 100%; height: auto;
}
.hero-content { position: relative; z-index: 3; max-width: 720px; padding: 0 24px; margin: 0 auto; text-align: center; }
.hero-content .eyebrow { color: var(--gold); justify-content: center; }
.hero-content .eyebrow::before { background: var(--gold); }
.hero-content h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: #fff; margin: 18px 0 20px; }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.75);
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.scroll-indicator .dot-track { width: 2px; height: 36px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; border-radius: 2px; }
.scroll-indicator .dot-track span { position: absolute; top: 0; width: 100%; height: 12px; background: var(--gold); animation: scrollDown 1.8s ease-in-out infinite; }
@keyframes scrollDown { 0% { top: -12px; } 60% { top: 36px; } 100% { top: 36px; } }

/* Cards */
.card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft); transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card-body { padding: 26px; }
.card-img { width: 100%; height: 210px; object-fit: cover; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: .72rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px;
}
.tag-royal { background: var(--sky-light); color: var(--royal); }
.tag-gold { background: var(--gold-light); color: #8a6c14; }
.tag-emerald { background: var(--emerald-light); color: var(--emerald); }
.tag-lavender { background: var(--lavender-light); color: var(--lavender); }
.meta-row { display: flex; align-items: center; gap: 14px; font-size: .82rem; color: var(--ink-soft); margin: 14px 0 10px; flex-wrap: wrap; }
.meta-row span { display: flex; align-items: center; gap: 6px; }

/* Featured / Verse / Prayer glass panels */
.glass-panel {
  background: rgba(255,255,255,.7); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
[data-theme="dark"] .glass-panel { background: rgba(26,32,50,.6); border-color: rgba(255,255,255,.08); }

.split-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.split-panel .split-img { min-height: 420px; background-size: cover; background-position: center; position: relative; }
.split-panel .split-body { background: var(--white); padding: 48px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) { .split-panel { grid-template-columns: 1fr; } .split-panel .split-img { min-height: 260px; } }

.verse-block {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 60px; position: relative; overflow: hidden;
}
.verse-block::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.35), transparent 70%);
}
.verse-block blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.5; margin: 0 0 20px; font-style: italic; }
.verse-block cite { font-family: var(--font-ui); font-style: normal; color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.verse-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.verse-actions button { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 10px 18px; border-radius: 100px; font-size: .82rem; display: flex; align-items: center; gap: 8px; transition: all .2s ease; }
.verse-actions button:hover { background: rgba(255,255,255,.22); }

.prayer-card { background: var(--emerald-light); border-radius: var(--radius); padding: 48px; position: relative; }
[data-theme="dark"] .prayer-card { background: #142a22; }
.prayer-card::before { content: "\201C"; font-family: var(--font-display); font-size: 8rem; color: var(--emerald); opacity: .18; position: absolute; top: 10px; left: 24px; line-height: 1; }

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.category-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 28px 20px; text-align: center; transition: all .3s ease;
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: transparent; }
.category-card .cat-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.3rem; }
.category-card h4 { font-size: 1rem; font-family: var(--font-ui); font-weight: 600; margin: 0; }

.cat-royal { background: var(--sky-light); color: var(--royal); }
.cat-gold { background: var(--gold-light); color: #8a6c14; }
.cat-emerald { background: var(--emerald-light); color: var(--emerald); }
.cat-lavender { background: var(--lavender-light); color: var(--lavender); }
.cat-sky { background: var(--sky-light); color: #2f6ba3; }

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Quote carousel */
.quote-carousel { position: relative; max-width: 760px; margin: 0 auto; text-align: center; min-height: 200px; }
.quote-slide { display: none; }
.quote-slide.active { display: block; animation: fadeUp .6s ease; }
.quote-slide p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-style: italic; color: var(--ink); }
.quote-slide cite { color: var(--gold); font-family: var(--font-ui); font-weight: 600; font-style: normal; }
.quote-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.quote-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--border); border: none; padding: 0; }
.quote-dots button.active { background: var(--gold); width: 24px; border-radius: 6px; transition: all .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Challenge card */
.challenge-card {
  background: linear-gradient(135deg, var(--gold-light), var(--beige)); border-radius: var(--radius);
  padding: 44px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.challenge-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item .stat-number { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: #fff; }
.stat-item .stat-label { font-family: var(--font-ui); font-size: .82rem; letter-spacing: .04em; color: rgba(255,255,255,.75); text-transform: uppercase; margin-top: 6px; }
@media (max-width: 640px) { .stats-band { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* Coffee support card */
.coffee-card {
  background: linear-gradient(135deg, var(--gold-light), var(--beige)); border-radius: var(--radius);
  padding: 40px; text-align: center; border: 1px solid rgba(201,162,39,.25);
}
.coffee-card h4 { font-size: 1.3rem; margin-bottom: 10px; }
.coffee-card p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 22px; }
.btn-coffee { background: linear-gradient(135deg, #ffcc4d, #f5a623); color: #4a3200; box-shadow: 0 10px 24px rgba(245,166,35,.35); }
.btn-coffee:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(245,166,35,.42); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3/4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(16,37,74,.85) 100%); display: flex; align-items: flex-end; padding: 18px; opacity: 0; transition: opacity .3s ease; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { color: #fff; font-family: var(--font-display); font-style: italic; font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Newsletter */
.newsletter-panel {
  background: linear-gradient(135deg, var(--royal), var(--royal-dark)); border-radius: var(--radius);
  padding: 60px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.newsletter-form { display: flex; gap: 12px; max-width: 560px; margin: 30px auto 0; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 200px; padding: 15px 20px; border-radius: 100px; border: none; font-family: var(--font-body); }
.newsletter-success { display: none; }

/* Testimonials */
.testimonial-card { padding: 34px; position: relative; overflow: hidden; }
.testimonial-card::before { content: "\201C"; font-family: var(--font-display); font-size: 6rem; color: var(--sky-light); position: absolute; top: -6px; right: 18px; line-height: 1; z-index: 0; }
.testimonial-card .stars { color: var(--gold); margin-bottom: 14px; font-size: .9rem; position: relative; z-index: 1; }
.testimonial-card p { position: relative; z-index: 1; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; margin-top: 20px; position: relative; z-index: 1; }
.testimonial-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sky-light); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--royal); flex-shrink: 0; }

/* Footer */
.site-footer { background: var(--royal-dark); color: rgba(255,255,255,.75); padding: 72px 0 28px; }
.footer-verse-strip { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px 24px; margin-bottom: 48px; font-family: var(--font-display); font-style: italic; color: rgba(255,255,255,.85); font-size: .98rem; }
.footer-verse-strip i { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }
.footer-verse-strip strong { font-style: normal; color: var(--gold); font-family: var(--font-ui); font-size: .82rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h5 { color: #fff; font-family: var(--font-ui); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--gold); }
.footer-logo { color: #fff; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 12px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Reading page */
.article-hero { position: relative; height: 56vh; min-height: 380px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,37,74,.1), rgba(16,37,74,.85)); }
.article-hero-inner { position: relative; z-index: 2; color: #fff; padding: 60px 0; max-width: 820px; margin: 0 auto; width: 100%; }
.reading-progress { position: sticky; top: 73px; height: 4px; background: var(--border); z-index: 100; }
.reading-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--royal)); transition: width .1s ease; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 1.12rem; line-height: 1.85; }
.article-body p { margin-bottom: 1.4em; color: var(--ink); }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 700; font-size: 3.8em; line-height: .78; float: left;
  margin: .05em .12em 0 0; color: var(--royal);
}
.article-body blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.25em; color: var(--royal); border-left: 3px solid var(--gold); padding-left: 24px; margin: 1.8em 0; }
.article-toolbar { display: flex; align-items: center; justify-content: space-between; max-width: 720px; margin: 0 auto 34px; flex-wrap: wrap; gap: 14px; }
.text-size-controls { display: flex; align-items: center; gap: 8px; background: var(--gray); border-radius: 100px; padding: 6px; }

/* Reading mode: distraction-free article view */
body.reading-mode .site-header,
body.reading-mode .site-footer,
body.reading-mode .fab,
body.reading-mode .article-toolbar .share-row > *:not([data-tts]) { display: none; }
body.reading-mode .article-body { max-width: 760px; font-size: 1.22rem; }
body.reading-mode .reading-progress { top: 0; }
#reading-mode-toggle.active, body.reading-mode #reading-mode-toggle { background: var(--royal); color: #fff; }
.text-size-controls button { width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent; }
.text-size-controls button.active { background: var(--white); box-shadow: var(--shadow-soft); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Search */
.search-hero { background: var(--sky-light); padding: 60px 0; }
.search-bar { display: flex; max-width: 640px; margin: 0 auto; background: var(--white); border-radius: 100px; box-shadow: var(--shadow-soft); padding: 6px; border: 1px solid var(--border); }
.search-bar input { flex: 1; border: none; padding: 14px 22px; font-family: var(--font-body); font-size: 1rem; background: transparent; }
.search-bar input:focus { outline: none; }
.search-suggestions { max-width: 640px; margin: 4px auto 0; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); overflow: hidden; display: none; }
.search-suggestions.open { display: block; }
.suggestion-item { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.suggestion-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }

/* Skeleton loaders */
.skeleton { background: linear-gradient(90deg, var(--border) 25%, var(--gray) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* FAB */
.fab { position: fixed; bottom: 28px; right: 28px; width: 56px; height: 56px; border-radius: 50%; background: var(--royal); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift); z-index: 150; border: none; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s ease; }
.fab-whatsapp { bottom: 96px; background: #25d366; font-size: 1.6rem; }
.fab-whatsapp:hover { background: #1ebc59; transform: translateY(-3px); }
@keyframes whatsappPulse { 0%, 100% { box-shadow: var(--shadow-lift), 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: var(--shadow-lift), 0 0 0 10px rgba(37,211,102,0); } }
.fab-whatsapp.show { animation: whatsappPulse 2.4s ease-in-out infinite; }
.fab.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Toast */
.toast-wrap { position: fixed; top: 90px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--white); border-left: 4px solid var(--emerald); box-shadow: var(--shadow-lift); border-radius: 12px; padding: 14px 20px; font-size: .9rem; display: flex; align-items: center; gap: 10px; min-width: 260px; animation: toastIn .3s ease; }
.toast.error { border-color: #c0392b; }
.toast.info { border-color: var(--royal); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Page loader */
.page-loader { position: fixed; inset: 0; background: var(--white); z-index: 999; display: flex; align-items: center; justify-content: center; transition: opacity .5s ease, visibility .5s ease; }
.page-loader.hide { opacity: 0; visibility: hidden; }
.loader-arc { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fade in on scroll (fallback for AOS) */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--royal), var(--royal-dark)); padding: 24px; }
.auth-card { background: var(--white); border-radius: var(--radius); padding: 48px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lift); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-ui); font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.form-control { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border); font-family: var(--font-body); font-size: .96rem; background: var(--white); color: var(--ink); }
.form-control:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(27,58,107,.12); }
.password-wrap { position: relative; }
.password-wrap button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--ink-soft); }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--gray); }
.admin-sidebar { background: var(--royal-dark); color: rgba(255,255,255,.85); padding: 28px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .logo { color: #fff; margin-bottom: 34px; display: flex; align-items: center; gap: 10px; }
.logo-chip { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.logo-chip img { width: 100%; height: 100%; object-fit: cover; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin-bottom: 4px; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav-label { font-family: var(--font-ui); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 18px 14px 6px; }
.admin-main { padding: 32px 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 34px; }
.stat-card { background: var(--white); border-radius: var(--radius-sm); padding: 22px; border: 1px solid var(--border); }
.stat-card .num { font-family: var(--font-display); font-size: 2rem; color: var(--royal); }
.stat-card .label { font-size: .82rem; color: var(--ink-soft); }
.admin-panel { background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 26px; margin-bottom: 26px; overflow-x: auto; }
details > div { max-width: calc(100vw - 48px); box-sizing: border-box; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.admin-table th { color: var(--ink-soft); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.badge { padding: 4px 10px; border-radius: 100px; font-size: .72rem; font-weight: 600; }
.badge-published { background: var(--emerald-light); color: var(--emerald); }
.badge-draft { background: var(--gold-light); color: #8a6c14; }
@media (max-width: 960px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; width: 100%; box-sizing: border-box; min-width: 0; }
  .admin-main { min-width: 0; }
  .admin-nav a { white-space: normal; }
}

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); font-size: .88rem; }
.pagination a:hover { background: var(--royal); color: #fff; border-color: var(--royal); }
.pagination .current { background: var(--royal); color: #fff; border-color: var(--royal); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state i { font-size: 2.4rem; color: var(--border); margin-bottom: 14px; }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split-panel .split-body, .verse-block, .prayer-card, .newsletter-panel { padding: 32px; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .admin-main { padding: 20px 16px; }
  .admin-panel { padding: 18px; }
  .admin-topbar { flex-direction: column; align-items: flex-start; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .article-toolbar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; }
  .search-bar { flex-direction: column; border-radius: 20px; padding: 12px; gap: 10px; }
  .search-bar button { width: 100%; border-radius: 12px; }
}
