/* ═══════════════════════════════════════════════════════════════
   THE ORIGINAL WORD MINISTRY — LUXURY HYMNS APP
   Version 2.0 | World-Class Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  /* Primary Palette */
  --deep-purple:    #0D0824;
  --royal-purple:   #1A0A2E;
  --mid-purple:     #2D1554;
  --light-purple:   #4A2B7E;
  --accent-purple:  #7B4FBE;

  /* Gold Palette */
  --gold:           #C9A84C;
  --gold-light:     #E8C97A;
  --gold-lighter:   #F5E0A0;
  --gold-dark:      #9B7830;
  --gold-shimmer:   #FFD700;

  /* Neutral Palette */
  --ivory:          #FDF8EE;
  --cream:          #F5EDD6;
  --warm-white:     #FEFCF8;
  --charcoal:       #1A1A2E;
  --muted:          #8A7A9B;

  /* Text */
  --text-primary:   #E8DCC8;
  --text-secondary: #A89880;
  --text-muted:     #6B5F7A;
  --text-light:     #FDF8EE;

  /* Glass */
  --glass-bg:       rgba(255,255,255,0.04);
  --glass-bg-hover: rgba(255,255,255,0.08);
  --glass-border:   rgba(201,168,76,0.15);
  --glass-border-hover: rgba(201,168,76,0.4);

  /* Shadows */
  --shadow-sm:      0 2px 12px rgba(0,0,0,0.4);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.6);
  --shadow-gold:    0 0 30px rgba(201,168,76,0.2);
  --shadow-glow:    0 0 60px rgba(201,168,76,0.1);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-script:  'Great Vibes', cursive;
  --font-serif:   'Crimson Text', Georgia, serif;

  /* Spacing */
  --nav-height: 80px;
  --section-py: 100px;
}

/* Light theme overrides */
body.light-theme {
  --deep-purple:    #F5EDD6;
  --royal-purple:   #FDF8EE;
  --mid-purple:     #EDE0C4;
  --glass-bg:       rgba(0,0,0,0.04);
  --glass-border:   rgba(150,100,20,0.2);
  --text-primary:   #1A0A2E;
  --text-secondary: #4A2B7E;
  --text-muted:     #7B4FBE;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(201,168,76,0.2);
  touch-action: pan-y pan-x;
}

body {
  font-family: var(--font-body);
  background-color: var(--deep-purple);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(74,43,126,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(13,8,36,0.8) 0%, transparent 70%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; touch-action: manipulation; }
input, textarea, select { font-family: inherit; }

/* Remove tap delay on iOS */
@media (pointer: coarse) {
  button, a, .btn, .card, input, select, textarea {
    touch-action: manipulation;
  }
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmerText 4s linear infinite;
}
.script-text { font-family: var(--font-script); }
.serif-text  { font-family: var(--font-serif); }

@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── PRELOADER ─────────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--deep-purple);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-cross {
  font-size: 4rem; color: var(--gold);
  animation: pulseCross 1.5s ease-in-out infinite;
  display: block; margin-bottom: 16px;
}
.preloader-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  animation: pulseLogo 1.5s ease-in-out infinite;
}
.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preloader-text {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--gold-light); letter-spacing: 2px;
  margin-bottom: 24px;
}
.preloader-bar {
  width: 200px; height: 3px; background: rgba(201,168,76,0.2);
  border-radius: 2px; overflow: hidden; margin: 0 auto;
}
.preloader-progress {
  height: 100%; background: var(--gold);
  border-radius: 2px;
  animation: loadBar 2s ease forwards;
}
@keyframes pulseCross {
  0%,100% { transform: scale(1); opacity:1; }
  50%      { transform: scale(1.15); opacity:0.8; }
}
@keyframes pulseLogo {
  0%,100% { transform: scale(1); opacity:1; }
  50%      { transform: scale(1.1); opacity:0.9; }
}
@keyframes loadBar {
  from { width: 0; } to { width: 100%; }
}

/* ── ANNOUNCEMENT BAR ─────────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, var(--mid-purple), var(--royal-purple) 50%, var(--mid-purple));
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; overflow: hidden; position: relative;
  font-size: 0.8rem; color: var(--text-secondary);
}
.announcement-inner {
  display: flex; align-items: center; gap: 10px;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}
.ann-icon { color: var(--gold); }
.ann-sep  { color: var(--gold); opacity: 0.5; }
.ann-close {
  position: absolute; right: 12px;
  color: var(--text-muted); font-size: 0.75rem;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}
.ann-close:hover { color: var(--gold); }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) { .announcement-bar { font-size: 0.72rem; padding: 6px 40px 6px 12px; } }

/* ── NAVBAR ────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,8,36,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}
.navbar.scrolled {
  background: rgba(10,5,28,0.97);
  border-bottom-color: var(--glass-border-hover);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex; align-items: center; gap: 32px;
}
@media (max-width: 768px) {
  .nav-container { padding: 0 16px; gap: 12px; }
  .logo-main { font-size: 0.85rem; }
  .logo-sub { font-size: 0.6rem; }
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--royal-purple);
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
  flex-shrink: 0;
  overflow: hidden;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-text { line-height: 1.2; }
.logo-main {
  display: block; font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  color: var(--gold-light); letter-spacing: 0.5px;
}
.logo-sub {
  display: block; font-size: 0.65rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
}
.nav-menu {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.88rem;
  font-weight: 500; letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  position: relative; white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-light); background: rgba(201,168,76,0.08);
}
.nav-link.active::after {
  content: ''; position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--gold); border-radius: 1px;
}
.nav-link i { font-size: 0.8rem; }
.dd-arrow { font-size: 0.65rem !important; transition: transform var(--transition-fast); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown:hover .dd-arrow { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(20,10,50,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 8px;
  min-width: 200px;
  opacity: 0; visibility: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.dropdown li a:hover { color: var(--gold-light); background: rgba(201,168,76,0.08); }
.dropdown li a i { width: 16px; color: var(--gold); opacity: 0.7; }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.9rem;
  transition: all var(--transition-fast); position: relative;
}
.nav-btn:hover { color: var(--gold); background: rgba(201,168,76,0.08); }
.fav-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--gold); color: var(--royal-purple);
  font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* Nav Search */
.nav-search {
  background: rgba(13,8,36,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 16px 24px;
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-base);
}
.nav-search.open { max-height: 200px; }
.search-container { max-width: 700px; margin: 0 auto; }
.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full); padding: 12px 20px;
  transition: border-color var(--transition-fast);
}
.search-input-wrap:focus-within { border-color: var(--gold); }
.search-icon { color: var(--gold); font-size: 1rem; flex-shrink: 0; }
.search-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 1rem;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-submit {
  background: var(--gold); color: var(--royal-purple);
  border: none; border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; cursor: pointer;
  transition: transform var(--transition-fast);
}
.search-submit:hover { transform: scale(1.1); }
.search-suggestions {
  background: rgba(20,10,50,0.98); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); margin-top: 8px;
  max-height: 300px; overflow-y: auto;
}
.suggestion-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.suggestion-item:hover { background: rgba(201,168,76,0.08); }
.suggestion-item:last-child { border-bottom: none; }
.sug-icon { color: var(--gold); width: 16px; }
.sug-text { font-size: 0.9rem; color: var(--text-primary); }
.sug-cat  { font-size: 0.75rem; color: var(--text-muted); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-secondary);
  border-radius: 1px; transition: all var(--transition-fast);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 998;
  opacity: 0; transition: opacity var(--transition-base);
}
.menu-overlay.visible { opacity: 1; display: block; }

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 60px 24px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(74,43,126,0.4) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 10%, rgba(45,21,84,0.5) 0%, transparent 60%),
    linear-gradient(160deg, #0D0824 0%, #1A0A2E 50%, #0A0518 100%);
}
/* Animated orbs */
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: rgba(74,43,126,0.3);
  top: -200px; left: -200px;
  animation: floatOrb1 20s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(201,168,76,0.1);
  bottom: -100px; right: -100px;
  animation: floatOrb2 25s ease-in-out infinite;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: rgba(123,79,190,0.2);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: floatOrb3 15s ease-in-out infinite;
}
@keyframes floatOrb1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(60px,-40px)} 66%{transform:translate(-30px,60px)} }
@keyframes floatOrb2 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-50px,30px)} 66%{transform:translate(40px,-60px)} }
@keyframes floatOrb3 { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.2)} }

/* Particles */
.hero-particles { position: absolute; inset: 0; z-index: 1; }
.particle {
  position: absolute; background: var(--gold);
  border-radius: 50%; pointer-events: none;
  animation: particleFloat linear infinite;
}

/* Cross decoration */
.hero-cross {
  position: absolute; z-index: 1;
  color: rgba(201,168,76,0.06); font-size: 60vw;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
  animation: crossPulse 8s ease-in-out infinite;
}
@keyframes crossPulse { 0%,100%{opacity:0.06; transform:translate(-50%,-50%) scale(1)} 50%{opacity:0.1; transform:translate(-50%,-50%) scale(1.02)} }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 900px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-full);
  padding: 8px 20px; margin-bottom: 28px;
  font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  animation: fadeInDown 0.8s ease both;
}
.hero-badge i { font-size: 0.9rem; }

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05; margin-bottom: 12px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-subtitle-text {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--gold); display: block;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.35s both;
}
.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary); max-width: 600px;
  margin: 0 auto 40px; line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.55s both;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid rgba(201,168,76,0.1);
  animation: fadeInUp 0.8s ease 0.65s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block; font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700;
  color: var(--gold-light); line-height: 1;
}
.hero-stat-label {
  display: block; font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-top: 6px;
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
  animation: fadeInUp 0.8s ease 0.8s both;
}
.scroll-indicator {
  width: 28px; height: 44px; border: 2px solid rgba(201,168,76,0.3);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-dot {
  width: 4px; height: 8px; background: var(--gold);
  border-radius: 2px; animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 32px;
  border-radius: var(--radius-full); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.5px;
  cursor: pointer; transition: all var(--transition-base);
  position: relative; overflow: hidden; border: 2px solid transparent;
  text-decoration: none;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%); transition: transform 0.3s ease;
}
.btn:hover::before { transform: translateX(0); }

/* Swiper pagination improvements */
:root {
  --swiper-pagination-bullet-width: 10px;
  --swiper-pagination-bullet-height: 10px;
}
.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  margin: 0 4px !important;
  background: rgba(201,168,76,0.3) !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
  background: var(--gold) !important;
  width: 24px !important;
  border-radius: 5px !important;
}
@media (max-width: 768px) {
  .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    margin: 0 5px !important;
  }
  .swiper-pagination-bullet-active {
    width: 28px !important;
  }
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--royal-purple); border-color: transparent;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
  color: var(--royal-purple);
}
.btn-outline {
  background: transparent;
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--glass-bg); color: var(--text-secondary);
  border-color: var(--glass-border);
}
.btn-ghost:hover { background: var(--glass-bg-hover); color: var(--gold); }
.btn-sm { padding: 8px 20px; font-size: 0.8rem; }
.btn-lg { padding: 18px 44px; font-size: 1rem; }
.btn-icon { padding: 12px; border-radius: var(--radius-md); }

/* ── SECTION HEADERS ─────────────────────────────────────────── */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 0.75rem;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 600;
}
.section-badge::before, .section-badge::after {
  content: ''; width: 30px; height: 1px; background: var(--gold); opacity: 0.5;
}
.section-title { color: var(--ivory); margin-bottom: 16px; }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }

/* ── CARDS ────────────────────────────────────────────────────── */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px; transition: all var(--transition-base);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

/* Hymn Card */
.hymn-card { cursor: pointer; }
.hymn-card-num {
  font-family: var(--font-display); font-size: 3rem;
  font-weight: 900; color: rgba(201,168,76,0.15);
  line-height: 1; margin-bottom: 8px;
}
.hymn-card-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--radius-full);
  background: rgba(201,168,76,0.1); color: var(--gold);
  margin-bottom: 12px;
}
.hymn-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--ivory);
  margin-bottom: 6px; line-height: 1.3;
}
.hymn-card-author {
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic;
}
.hymn-card-excerpt {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hymn-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px;
  gap: 12px;
}
.hymn-card-actions { display: flex; gap: 6px; }
.hymn-card-actions .btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.hymn-card-actions .btn-icon:hover { color: var(--gold); border-color: var(--gold); }
.hymn-card-actions .btn-icon.active { color: var(--gold); border-color: var(--gold); background: rgba(201,168,76,0.1); }

.hymn-card-plays { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ── CATEGORY CARDS ──────────────────────────────────────────── */
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 36px 20px; cursor: pointer;
  text-decoration: none;
}
.cat-icon {
  width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 16px;
  transition: transform var(--transition-bounce);
  position: relative;
}
.cat-icon::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 22px; border: 2px solid currentColor;
  opacity: 0.2; transition: opacity var(--transition-base);
}
.cat-card:hover .cat-icon { transform: scale(1.1) rotate(-5deg); }
.cat-card:hover .cat-icon::after { opacity: 0.4; }
.cat-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--ivory); margin-bottom: 6px; }
.cat-count { font-size: 0.78rem; color: var(--text-muted); }

/* ── FEATURED HYMN SLIDER ─────────────────────────────────────── */
.featured-slide {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); padding: 48px;
  position: relative; overflow: hidden;
}
.featured-slide::after {
  content: ''; position: absolute;
  inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(201,168,76,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.featured-slide-num {
  font-family: var(--font-display); font-size: 8rem;
  font-weight: 900; color: rgba(201,168,76,0.06);
  position: absolute; top: -10px; right: 30px;
  line-height: 1;
}
.featured-slide-content { position: relative; z-index: 1; }
.featured-slide-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ivory); margin-bottom: 12px;
}
.featured-slide-author { color: var(--gold); margin-bottom: 24px; font-style: italic; }
.featured-slide-lyrics {
  font-family: var(--font-serif); font-size: 1.1rem;
  color: var(--text-secondary); line-height: 2;
  border-left: 3px solid var(--gold); padding-left: 24px;
  margin-bottom: 32px; font-style: italic;
}

/* ── DEVOTIONAL CARD ──────────────────────────────────────────── */
.devotional-card {
  background: linear-gradient(135deg, rgba(45,21,84,0.4) 0%, rgba(13,8,36,0.6) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); padding: 48px;
  position: relative; overflow: hidden;
}
.devotional-card::before {
  content: '"'; position: absolute;
  top: -20px; left: 30px;
  font-family: var(--font-display); font-size: 15rem;
  color: rgba(201,168,76,0.04); line-height: 1;
}
.dev-date { font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.dev-title { font-family: var(--font-display); font-size: 1.8rem; color: var(--ivory); margin-bottom: 8px; }
.dev-scripture {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 0.85rem; margin-bottom: 20px;
  background: rgba(201,168,76,0.08); padding: 6px 16px;
  border-radius: var(--radius-full);
}
.dev-content {
  color: var(--text-secondary); line-height: 1.9;
  font-family: var(--font-serif); font-size: 1.05rem;
  margin-bottom: 24px;
}
.dev-scripture-text {
  font-family: var(--font-serif); font-style: italic;
  color: var(--text-secondary); font-size: 0.95rem;
  border-left: 3px solid var(--gold); padding-left: 20px;
  margin: 20px 0; line-height: 1.8;
}

/* ── PRAYER WALL ─────────────────────────────────────────────── */
.prayer-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px; transition: all var(--transition-base);
}
.prayer-card:hover { border-color: var(--glass-border-hover); }
.prayer-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.prayer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mid-purple), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem;
  color: var(--gold); font-weight: 700; flex-shrink: 0;
}
.prayer-name { font-weight: 600; color: var(--ivory); font-size: 0.92rem; }
.prayer-time { font-size: 0.75rem; color: var(--text-muted); }
.prayer-cat {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--gold); background: rgba(201,168,76,0.1);
  padding: 3px 10px; border-radius: var(--radius-full); flex-shrink: 0;
}
.prayer-text { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.prayer-actions { display: flex; align-items: center; gap: 10px; }
.pray-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold); font-size: 0.8rem; cursor: pointer;
  transition: all var(--transition-fast);
}
.pray-btn:hover, .pray-btn.prayed { background: rgba(201,168,76,0.15); border-color: var(--gold); }

/* ── EVENTS ───────────────────────────────────────────────────── */
.event-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all var(--transition-base);
}
.event-card:hover { border-color: var(--glass-border-hover); transform: translateX(4px); }
.event-date-box {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-md); padding: 12px 16px;
  text-align: center; flex-shrink: 0; min-width: 70px;
  color: var(--royal-purple);
}
.event-day { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; }
.event-month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.event-info { flex: 1; }
.event-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--ivory); margin-bottom: 6px; }
.event-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }
.event-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.event-meta span { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.event-meta i { color: var(--gold); }

/* ── STATS SECTION ───────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, rgba(45,21,84,0.3) 0%, rgba(13,8,36,0.5) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 80px 24px;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 40px; }
.stat-item { text-align: center; position: relative; }
.stat-item::after {
  content: ''; position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(201,168,76,0.1);
}
.stat-item:last-child::after { display: none; }
.stat-icon { color: var(--gold); font-size: 1.6rem; margin-bottom: 12px; }
.stat-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  color: var(--gold-light); line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }

/* ── TESTIMONIALS ─────────────────────────────────────────────── */
.testimonial-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 32px;
  position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-display); font-size: 6rem;
  color: rgba(201,168,76,0.1); position: absolute;
  top: -10px; left: 20px; line-height: 1;
}
.testimonial-stars { color: var(--gold); margin-bottom: 16px; font-size: 0.85rem; }
.testimonial-text {
  font-family: var(--font-serif); font-style: italic;
  color: var(--text-secondary); line-height: 1.9;
  font-size: 1rem; margin-bottom: 24px; position: relative; z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mid-purple), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--gold); font-weight: 700;
}
.testimonial-name { font-weight: 600; color: var(--ivory); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ── LYRICS DISPLAY ───────────────────────────────────────────── */
.lyrics-container { font-family: var(--font-serif); }
.lyric-section { margin-bottom: 32px; }
.lyric-section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 600;
  color: var(--gold); margin-bottom: 12px;
  background: rgba(201,168,76,0.08);
  padding: 4px 14px; border-radius: var(--radius-full);
}
.lyric-section.chorus .lyric-section-label { color: var(--gold-light); background: rgba(201,168,76,0.15); }
.lyric-lines { display: flex; flex-direction: column; gap: 4px; }
.lyric-line {
  font-size: 1.1rem; line-height: 1.8; color: var(--text-primary);
  font-style: italic; padding: 2px 0;
}
.lyric-section.chorus .lyric-lines { padding-left: 24px; border-left: 3px solid var(--gold); }

/* ── SEARCH RESULTS ───────────────────────────────────────────── */
.result-count {
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 24px;
}
.result-count strong { color: var(--gold); }
.no-results {
  text-align: center; padding: 80px 20px;
}
.no-results i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; }
.no-results h3 { color: var(--ivory); margin-bottom: 8px; }
.no-results p { color: var(--text-muted); }

/* ── FORMS ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.3px;
}
.form-control {
  width: 100%; padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 0.95rem; transition: all var(--transition-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; cursor: pointer;
  accent-color: var(--gold);
}
.input-group { display: flex; gap: 10px; }
.input-group .form-control { flex: 1; }

/* ── MODALS ─────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
}
.modal-content {
  position: relative; z-index: 1;
  background: rgba(20,10,50,0.98);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.3s ease;
}
.modal-lg { max-width: 800px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close:hover { background: rgba(201,168,76,0.15); color: var(--gold); }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── PAGINATION ───────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 48px; flex-wrap: wrap;
}
.page-link {
  width: 40px; height: 40px; display: flex;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition-fast);
  text-decoration: none;
}
.page-link:hover, .page-link.active {
  background: rgba(201,168,76,0.1); border-color: var(--gold); color: var(--gold);
}
.page-dots { color: var(--text-muted); padding: 0 4px; }

/* ── TOAST ─────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 3000; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: rgba(20,10,50,0.97);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-md); padding: 14px 20px;
  box-shadow: var(--shadow-lg); min-width: 280px;
  animation: toastIn 0.3s ease;
}
.toast.removing { animation: toastOut 0.3s ease forwards; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-msg { font-size: 0.88rem; color: var(--text-primary); }
.toast.success .toast-icon { color: #27AE60; }
.toast.error   .toast-icon { color: #E74C3C; }
.toast.info    .toast-icon { color: var(--gold); }
@keyframes toastIn  { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(100%); } }

/* ── FILTER BAR ───────────────────────────────────────────────── */
.filter-bar {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.filter-chip {
  padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 0.8rem;
  cursor: pointer; transition: all var(--transition-fast);
}
.filter-chip:hover, .filter-chip.active {
  background: rgba(201,168,76,0.1); border-color: var(--gold); color: var(--gold);
}
.filter-sep { width: 1px; height: 24px; background: var(--glass-border); flex-shrink: 0; }

/* ── GRID LAYOUTS ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; }

/* ── SECTIONS ─────────────────────────────────────────────────── */
.section { padding: var(--section-py) 24px; }
.section-inner { max-width: 1300px; margin: 0 auto; }

/* View toggle */
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-muted); cursor: pointer;
  transition: all var(--transition-fast);
}
.view-btn.active { background: rgba(201,168,76,0.1); border-color: var(--gold); color: var(--gold); }

/* List view */
.hymn-list-item {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 20px; border-radius: var(--radius-md);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  cursor: pointer; transition: all var(--transition-fast);
  text-decoration: none;
}
.hymn-list-item:hover { border-color: var(--glass-border-hover); background: var(--glass-bg-hover); }
.hymn-list-num {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: rgba(201,168,76,0.4); width: 50px; flex-shrink: 0; text-align: center;
}
.hymn-list-title { font-family: var(--font-display); font-size: 1rem; color: var(--ivory); flex: 1; }
.hymn-list-author { font-size: 0.8rem; color: var(--text-muted); font-style: italic; width: 150px; flex-shrink: 0; }
.hymn-list-cat {
  font-size: 0.72rem; color: var(--gold);
  background: rgba(201,168,76,0.1); padding: 3px 10px;
  border-radius: var(--radius-full); flex-shrink: 0;
  display: none;
}

/* ── HYMN DETAIL ──────────────────────────────────────────────── */
.hymn-detail-hero {
  background: linear-gradient(135deg, rgba(45,21,84,0.5) 0%, rgba(13,8,36,0.8) 100%);
  border-bottom: 1px solid var(--glass-border);
  padding: 80px 24px 60px;
}
.hymn-detail-inner { max-width: 1100px; margin: 0 auto; }
.hymn-detail-meta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px;
}
.hymn-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 500;
}
.hymn-badge-cat { background: rgba(201,168,76,0.1); color: var(--gold); }
.hymn-badge-num { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.hymn-badge-year { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

.hymn-detail-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--ivory); margin-bottom: 12px; line-height: 1.1;
}
.hymn-detail-author { font-size: 1.1rem; color: var(--gold); font-style: italic; margin-bottom: 32px; }

.hymn-detail-controls {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* Font size control */
.font-controls { display: flex; align-items: center; gap: 8px; }
.font-control-btn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 0.8rem;
  transition: all var(--transition-fast);
}
.font-control-btn:hover { color: var(--gold); border-color: var(--gold); }
.font-size-label { font-size: 0.75rem; color: var(--text-muted); }

/* Audio Player */
.audio-player {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
}
.audio-play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--royal-purple); display: flex;
  align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; flex-shrink: 0;
  transition: transform var(--transition-bounce);
}
.audio-play-btn:hover { transform: scale(1.1); }
.audio-info { flex: 1; }
.audio-title { font-weight: 600; color: var(--ivory); font-size: 0.9rem; margin-bottom: 4px; }
.audio-meta { font-size: 0.75rem; color: var(--text-muted); }
.audio-progress { flex: 1; }
.progress-bar {
  width: 100%; height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}
.progress-fill { height: 100%; background: var(--gold); border-radius: 2px; width: 0%; transition: width 0.1s linear; }
.audio-time { font-size: 0.72rem; color: var(--text-muted); text-align: right; }

/* Share buttons */
.share-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 0.8rem; cursor: pointer;
  transition: all var(--transition-fast); border: none;
}
.share-facebook { background: #1877F2; color: white; }
.share-whatsapp { background: #25D366; color: white; }
.share-twitter  { background: #000; color: white; }
.share-copy     { background: var(--glass-bg); color: var(--text-secondary); border: 1px solid var(--glass-border); }
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ── SCROLL TO TOP ─────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 1000;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--royal-purple); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
  cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(201,168,76,0.4); }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, rgba(13,8,36,0) 0%, rgba(5,2,18,0.95) 100%);
  border-top: 1px solid var(--glass-border);
  position: relative; margin-top: 80px;
  padding-top: 40px;
}
.footer-wave { margin-top: -80px; }
.footer-wave svg { display: block; width: 100%; height: 80px; }
.wave-shape { fill: rgba(5,2,18,0.6); }
.footer-content { max-width: 1300px; margin: 0 auto; padding: 60px 24px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--royal-purple);
}
.footer-logo-main { font-family: var(--font-display); font-size: 1rem; color: var(--gold-light); font-weight: 700; display: block; }
.footer-logo-sub { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); display: block; }
.footer-tagline { font-family: var(--font-script); font-size: 1.3rem; color: var(--gold); margin-bottom: 12px; }
.footer-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  color: var(--text-muted); display: flex;
  align-items: center; justify-content: center; font-size: 0.85rem;
  transition: all var(--transition-base); text-decoration: none;
}
.social-btn:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.footer-heading {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--ivory); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--glass-border);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted);
  transition: all var(--transition-fast);
}
.footer-links a:hover { color: var(--gold); transform: translateX(4px); }
.footer-links a i { font-size: 0.6rem; color: var(--gold); opacity: 0.5; }
.footer-contact-item {
  display: flex; gap: 12px; margin-bottom: 14px;
  font-size: 0.85rem; color: var(--text-muted);
}
.footer-contact-item i { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: var(--text-muted); transition: color var(--transition-fast); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-newsletter h5 { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 10px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; padding: 10px 14px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 0.85rem; outline: none;
  transition: border-color var(--transition-fast);
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--gold); color: var(--royal-purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; cursor: pointer; transition: all var(--transition-fast); border: none;
}
.newsletter-form button:hover { background: var(--gold-light); transform: scale(1.05); }
.footer-bottom {
  border-top: 1px solid var(--glass-border); padding: 24px;
}
.footer-bottom-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-verse { font-family: var(--font-serif); font-style: italic; }

/* ── PAGE HERO ────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, rgba(45,21,84,0.4) 0%, rgba(13,8,36,0.6) 100%);
  border-bottom: 1px solid var(--glass-border);
  padding: 80px 24px 60px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,43,126,0.15) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 16px; font-size: 0.8rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb i { font-size: 0.6rem; }
.page-hero h1 { color: var(--ivory); margin-bottom: 12px; }
.page-hero p { color: var(--text-secondary); font-size: 1.05rem; }

/* ── BIBLE SECTION ─────────────────────────────────────────────── */
.bible-verse-card {
  background: linear-gradient(135deg, rgba(45,21,84,0.5) 0%, rgba(13,8,36,0.7) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-xl); padding: 48px;
  text-align: center; position: relative;
}
.bible-verse-ref {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 0.85rem; margin-bottom: 20px;
  background: rgba(201,168,76,0.08); padding: 8px 20px;
  border-radius: var(--radius-full);
}
.bible-verse-text {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--text-primary); line-height: 1.8; margin-bottom: 24px;
}

/* ── ADMIN ─────────────────────────────────────────────────────── */
.admin-body { background: #0A0518; }

/* Admin mobile elements - hidden on desktop */
.admin-mobile-bar { display: none; }
.admin-overlay { display: none; }

.admin-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 260px; background: rgba(13,8,36,0.97);
  border-right: 1px solid var(--glass-border);
  z-index: 100; overflow-y: auto;
  padding: 0 0 24px;
}
.admin-logo {
  padding: 24px 20px; border-bottom: 1px solid var(--glass-border);
  font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-light);
}
.admin-logo span { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: var(--text-secondary); font-size: 0.88rem;
  cursor: pointer; transition: all var(--transition-fast); text-decoration: none;
}
.admin-nav-item:hover, .admin-nav-item.active {
  color: var(--gold); background: rgba(201,168,76,0.08);
}
.admin-nav-item i { width: 18px; text-align: center; }
.admin-main {
  margin-left: 260px; min-height: 100vh; padding: 32px;
}
.admin-stat-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; align-items: center; gap: 20px;
}
.admin-stat-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
}
.admin-table th { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.admin-table td { color: var(--text-secondary); }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn     { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn    { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }
@keyframes particleFloat {
  0%   { transform: translateY(100vh) rotate(0deg); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity:0; }
}
.fade-in     { animation: fadeIn 0.6s ease both; }
.scale-in    { animation: scaleIn 0.4s ease both; }
.float-anim  { animation: floatAnim 6s ease-in-out infinite; }
@keyframes floatAnim { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* Gold shimmer on hover */
.gold-hover {
  position: relative; overflow: hidden;
}
.gold-hover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.15) 50%, transparent 100%);
  transform: translateX(-100%); transition: transform 0.6s ease;
}
.gold-hover:hover::after { transform: translateX(100%); }

/* Pulse animation for featured badge */
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(201,168,76,0.4)} 50%{box-shadow:0 0 0 8px rgba(201,168,76,0)} }
.pulse-anim { animation: pulse 2s ease-in-out infinite; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 992px) {
  :root { --nav-height: 70px; --section-py: 70px; }
  .nav-menu, .footer-grid, .hamburger { display: none !important; }
  .footer-grid.show { display: grid !important; grid-template-columns: 1fr 1fr; }
  .nav-link { padding: 14px 18px; border-radius: var(--radius-sm); width: 100%; font-size: 0.95rem; min-height: 50px; }
  .has-dropdown .dropdown {
    position: static; transform: none; visibility: visible; opacity: 1;
    background: none; border: none; padding: 0 0 0 18px;
    box-shadow: none; max-height: 0; overflow: hidden;
    transition: max-height var(--transition-base);
  }
  .has-dropdown.expanded .dropdown { max-height: 500px; }
  .has-dropdown.expanded .nav-link { background: rgba(201,168,76,0.1); }
  .dropdown li a { padding: 12px 18px; min-height: 46px; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .hymn-list-author, .hymn-list-cat { display: none; }
  .featured-slide { padding: 32px; }
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Overlay improvements */
  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    backdrop-filter: blur(4px);
  }
  .menu-overlay.visible { opacity: 1; visibility: visible; }

  /* Hamburger improvements */
  .hamburger {
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
  }
  .hamburger:active { background: rgba(201,168,76,0.1); }
  .hamburger span {
    width: 24px; height: 2px;
    background: var(--gold);
  }

  /* Admin mobile sidebar */
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 300;
    top: 0;
    box-shadow: 4px 0 32px rgba(0,0,0,0.6);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 16px; padding-top: 76px; }
  .admin-mobile-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: rgba(13,8,36,0.98);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 16px;
    z-index: 200;
    backdrop-filter: blur(12px);
  }
  .admin-mobile-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--ivory);
    font-weight: 600;
  }
  .admin-mobile-title i {
    color: var(--gold);
  }
  .admin-mobile-title span {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 4px;
  }
  .admin-mobile-external {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-decoration: none;
  }
  .admin-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
  }
  .admin-overlay.active { opacity: 1; visibility: visible; }
  .admin-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px 9px;
    transition: all 0.2s ease;
  }
  .admin-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  .admin-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .admin-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .admin-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .admin-mobile-title {
    font-family: var(--font-display);
    color: var(--gold-light);
    font-size: 0.95rem;
    text-align: center;
  }
  .admin-mobile-title span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
  }
}
@media (max-width: 768px) {
  :root { --section-py: 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .grid-auto-sm { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hymn-detail-hero { padding: 60px 16px 40px; }
  .event-card { flex-direction: column; }
  .devotional-card { padding: 28px; }
  .featured-slide { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .modal-content { padding: 24px; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 16px 24px; min-height: 52px; }

  /* Category grid improvement - 2 columns on mobile */
  .grid-auto-sm { grid-template-columns: repeat(2,1fr); gap: 12px; }

  /* Hero improvements */
  .hero { padding: 100px 16px 60px; min-height: auto; }
  .hero-badge { font-size: 0.7rem; padding: 6px 14px; margin-bottom: 20px; }
  .hero-title { font-size: 2.2rem; line-height: 1.1; }
  .hero-subtitle-text { font-size: 1.8rem; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 32px; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 24px 20px; margin-top: 40px; padding-top: 32px; }
  .hero-stat { min-width: calc(50% - 12px); }
  .hero-stat-num { font-size: 1.8rem; }
  .hero-stat-label { font-size: 0.68rem; }

  /* Hero search */
  .search-input-wrap { padding: 14px 16px; border-radius: 50px; }
  .search-input-wrap input { font-size: 0.95rem; }
  .search-submit { width: 40px; height: 40px; }

  /* Featured slider */
  .featured-slide { padding: 24px 20px; }
  .featured-slide-num { font-size: 4rem; top: -5px; right: 15px; }
  .featured-slide-title { font-size: 1.6rem; }
  .featured-slide-lyrics { font-size: 0.95rem; padding-left: 16px; }
  .swiper-btn-prev, .swiper-btn-next { display: none !important; }

  /* Section headers */
  .section-header { margin-bottom: 40px; padding: 0 8px; }
  .section-badge { font-size: 0.68rem; gap: 6px; }
  .section-title { font-size: 1.8rem; }
  .section-desc { font-size: 0.9rem; }

  /* Category cards */
  .cat-card { padding: 28px 16px; }
  .cat-icon { width: 56px; height: 56px; font-size: 1.3rem; }
  .cat-name { font-size: 1rem; }

  /* Hymn cards */
  .hymn-card { padding: 24px 20px; }
  .hymn-card-num { font-size: 2rem; }
  .hymn-card-title { font-size: 1.1rem; }
  .hymn-card-actions .btn-icon { width: 42px; height: 42px; }

  /* Buttons */
  .btn { padding: 14px 24px; font-size: 0.88rem; min-height: 48px; }
  .btn-sm { padding: 10px 18px; font-size: 0.8rem; min-height: 40px; }
  .btn-lg { padding: 16px 32px; font-size: 0.95rem; min-height: 54px; }
  .btn-icon { width: 44px; height: 44px; padding: 0; min-height: 44px; }

  /* Stats section */
  .stats-section { padding: 50px 16px; }
  .stats-grid { gap: 28px 16px; }
  .stat-num { font-size: 2.2rem; }
  .stat-icon { font-size: 1.3rem; }

  /* Devotional */
  .devotional-card { padding: 24px 20px; }
  .dev-title { font-size: 1.4rem; }
  .dev-content { font-size: 0.95rem; }

  /* Prayer cards */
  .prayer-card { padding: 20px; }
  .prayer-avatar { width: 36px; height: 36px; font-size: 0.9rem; }

  /* Events */
  .event-card { padding: 20px; }
  .event-date-box { min-width: 60px; padding: 10px 14px; }
  .event-day { font-size: 1.6rem; }
  .event-title { font-size: 1rem; }

  /* Testimonials */
  .testimonial-card { padding: 24px 20px; }
  .testimonial-avatar { width: 42px; height: 42px; font-size: 1rem; }
  .testimonial-text { font-size: 0.92rem; }

  /* Newsletter CTA */
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; }
  .newsletter-form button { height: 48px; }

  /* Nav buttons */
  .nav-btn { width: 44px; height: 44px; }
  .logo-icon { width: 40px; height: 40px; font-size: 1rem; }
  .logo-main { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  :root { --section-py: 50px; --nav-height: 64px; }
  .hero { padding: 90px 16px 50px; }
  .hero-title { font-size: 1.9rem; }
  .hero-subtitle-text { font-size: 1.5rem; }
  .hero-badge { font-size: 0.65rem; padding: 5px 12px; }
  .hero-desc { font-size: 0.9rem; }
  .hero-stat { min-width: 100%; }
  .hero-stats { gap: 20px; }

  /* Smaller touch targets still meet minimum 44px */
  .btn { padding: 12px 20px; font-size: 0.85rem; }
  .btn-lg { padding: 14px 24px; font-size: 0.9rem; }
  .btn-icon { width: 44px; height: 44px; }

  /* Featured slide */
  .featured-slide { padding: 20px 16px; }
  .featured-slide-num { font-size: 3rem; }
  .featured-slide-title { font-size: 1.4rem; }
  .featured-slide-lyrics { font-size: 0.9rem; padding-left: 12px; }

  /* Cards */
  .card { padding: 20px 16px; }
  .hymn-card { padding: 20px 16px; }
  .cat-card { padding: 24px 14px; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .stat-num { font-size: 1.8rem; }
  .stat-icon { font-size: 1.1rem; }
  .stat-item::after { display: none; }

  /* Audio player */
  .audio-player { flex-direction: column; text-align: center; padding: 16px; }
  .audio-play-btn { width: 56px; height: 56px; font-size: 1.1rem; }

  /* Share grid */
  .share-grid { justify-content: center; }
  .share-btn { padding: 10px 14px; font-size: 0.75rem; }

  /* Testimonials */
  .testimonial-card { padding: 20px 16px; }
  .testimonial-avatar { width: 38px; height: 38px; font-size: 0.9rem; }
  .testimonial-text { font-size: 0.88rem; }

  /* Modal */
  .modal { padding: 16px; }
  .modal-content { padding: 20px 16px; }

  /* Pagination */
  .page-link { width: 38px; height: 38px; font-size: 0.85rem; }

  /* Filter bar */
  .filter-bar { padding: 16px; }
  .filter-chip { padding: 8px 14px; font-size: 0.78rem; }

  /* Forms */
  .form-control { padding: 12px 16px; font-size: 0.9rem; }
  textarea.form-control { min-height: 100px; }

  /* Footer */
  .footer-content { padding: 40px 16px 30px; }
  .footer-social { flex-wrap: wrap; }
  .social-btn { width: 36px; height: 36px; font-size: 0.8rem; }
}

/* ── UTILITIES ─────────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-ivory { color: var(--ivory); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-auto { margin-top: auto; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.divider {
  border: none; border-top: 1px solid var(--glass-border);
  margin: 32px 0;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px;
}
.badge-gold { background: rgba(201,168,76,0.1); color: var(--gold); }
.badge-purple { background: rgba(123,79,190,0.15); color: #B388FF; }
.badge-green  { background: rgba(39,174,96,0.15); color: #4CAF50; }

/* Loading spinner */
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Rating stars */
.stars { display: flex; gap: 4px; }
.star { color: var(--gold); font-size: 1rem; cursor: pointer; transition: transform var(--transition-fast); }
.star:hover { transform: scale(1.2); }
.star.empty { color: rgba(201,168,76,0.2); }

/* Print styles */
@media print {
  .navbar, .site-footer, .scroll-top, .toast-container,
  .hymn-detail-controls, .audio-player, .share-grid,
  .preloader, .announcement-bar { display: none !important; }
  body { background: white; color: black; }
  .hymn-detail-hero { background: none; }
  .lyric-line { color: black; }
}

/* ── MOBILE HEADER ───────────────────────────────────────────────── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(13,8,36,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1001;
  align-items: center;
  padding: 0 8px;
  gap: 8px;
}

.mobile-menu-toggle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle.active {
  background: rgba(201,168,76,0.1);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  padding: 0 8px;
}

.mobile-brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--royal-purple);
  overflow: hidden;
}
.mobile-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.mobile-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-brand-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-search-trigger {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.mobile-search-trigger:hover {
  background: rgba(201,168,76,0.08);
  color: var(--gold);
}

.mobile-favorites-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
}
.mobile-favorites-link:hover {
  background: rgba(201,168,76,0.2);
}

.mobile-fav-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--gold);
  color: var(--royal-purple);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ── MOBILE SEARCH OVERLAY ───────────────────────────────────────── */
.mobile-search-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(13,8,36,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 16px;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-base);
}
.mobile-search-overlay.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-search-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0 16px;
  height: 44px;
}
.mobile-search-input-wrapper:focus-within {
  border-color: var(--gold);
}

.mobile-search-icon {
  color: var(--gold);
  font-size: 1rem;
  margin-right: 10px;
}

.mobile-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
}
.mobile-search-input::placeholder {
  color: var(--text-muted);
}

.mobile-search-submit {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  color: var(--royal-purple);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── SIDEBAR ────────────────────────────────────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1002;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.sidebar-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 300px;
  background: rgba(13,8,36,0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--glass-border);
  z-index: 1003;
  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
  transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(201,168,76,0.05);
}

.sidebar-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
}
.sidebar-close:hover {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}

.sidebar-brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--royal-purple);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  overflow: hidden;
}
.sidebar-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  flex-shrink: 0;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.sidebar-brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Sidebar Content */
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Sidebar Search */
.sidebar-search {
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0 16px;
  height: 44px;
}
.sidebar-search-wrap:focus-within {
  border-color: var(--gold);
}

.sidebar-search-icon {
  color: var(--gold);
  font-size: 0.95rem;
  margin-right: 10px;
}

.sidebar-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.sidebar-search-input::placeholder {
  color: var(--text-muted);
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 8px 0;
}

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-section-label {
  padding: 12px 20px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  min-height: 50px;
}

.sidebar-link-icon {
  width: 20px;
  text-align: center;
  color: var(--gold);
  opacity: 0.8;
  flex-shrink: 0;
}

.sidebar-link-text {
  flex: 1;
}

.sidebar-link.active {
  background: rgba(201,168,76,0.1);
  color: var(--gold-light);
}
.sidebar-link.active .sidebar-link-icon {
  opacity: 1;
}

.sidebar-link-check {
  font-size: 0.8rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* Sidebar Stats */
.sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--glass-border);
  margin-top: 8px;
}

.sidebar-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-md);
}

.sidebar-stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sidebar-stat-content {
  display: flex;
  flex-direction: column;
}

.sidebar-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.sidebar-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.2);
}

.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}
.sidebar-social-link:hover {
  background: var(--gold);
  color: var(--royal-purple);
}

.sidebar-admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(123,79,190,0.1);
  border: 1px solid rgba(123,79,190,0.2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}
.sidebar-admin-link:hover {
  background: rgba(123,79,190,0.2);
  color: var(--text-secondary);
}

/* ── MOBILE FIRST RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 992px) {
  /* Hide desktop navbar */
  .navbar { display: none; }

  /* Show mobile header */
  .mobile-header { display: flex; }

  /* Adjust body for mobile header */
  body {
    padding-top: 64px;
  }

  /* Hide announcement bar on mobile */
  .announcement-bar {
    display: none !important;
  }

  /* Full width sections */
  .section-inner {
    padding: 0 16px !important;
    max-width: 100% !important;
  }

  /* Better section spacing */
  section {
    padding: 60px 0 !important;
  }

  /* Hero adjustments */
  .hero {
    min-height: auto;
    padding: 60px 16px 50px !important;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle-text {
    font-size: 1.6rem;
  }
  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
  }
  .hero-stat {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
  }
  .hero-stat-num {
    font-size: 1.6rem;
  }
  .hero-stat-label {
    font-size: 0.7rem;
  }
  .hero-scroll {
    display: none;
  }

  /* Buttons */
  .btn {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .btn-lg {
    min-height: 54px;
    padding: 16px 28px;
    font-size: 1.05rem;
  }
  .btn-sm {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .btn-icon {
    width: 44px;
    height: 44px;
    min-height: 44px;
    font-size: 1rem;
  }

  /* Grid layouts */
  .grid-auto {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .grid-auto-sm {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Cards */
  .card {
    padding: 20px;
  }
  .hymn-card {
    padding: 20px;
    min-height: 120px;
  }
  .hymn-card-title {
    font-size: 1.15rem;
    line-height: 1.4;
  }
  .cat-card {
    padding: 24px 20px;
    min-height: 140px;
  }
  .cat-card-title {
    font-size: 1.1rem;
  }

  /* Swiper */
  .featured-slide {
    padding: 24px;
  }
  .featured-slide-title {
    font-size: 1.5rem;
  }
  .swiper-btn-prev,
  .swiper-btn-next {
    display: none !important;
  }

  /* Section headers */
  .section {
    padding: 50px 0 !important;
  }
  .section-header {
    margin-bottom: 24px;
    text-align: center;
  }
  .section-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  .section-desc {
    font-size: 0.95rem;
    margin-top: 12px;
  }

  /* Stats section */
  .stats-section {
    padding: 40px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-num {
    font-size: 2rem;
  }

  /* Devotional card */
  .devotional-card {
    padding: 24px;
  }
  .dev-title {
    font-size: 1.3rem;
  }

  /* Prayer cards */
  .prayer-card {
    padding: 20px;
  }

  /* Event cards */
  .event-card {
    padding: 16px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-content {
    padding: 60px 16px 30px;
  }

  /* Modal */
  .modal-content {
    max-width: calc(100% - 24px);
    max-height: calc(100vh - 100px);
    margin: 80px 12px auto;
  }
  .modal-lg {
    max-width: calc(100% - 24px);
  }

  /* Forms */
  .form-control {
    padding: 14px 16px;
    font-size: 1rem;
    min-height: 50px;
  }

  /* Hymn detail page */
  .hymn-detail-hero {
    padding: 60px 16px;
  }
  .hymn-detail-title {
    font-size: 1.8rem;
  }
  .lyrics-section {
    padding: 32px 16px;
  }
  .verse-block {
    padding: 16px;
  }
  .lyric-line {
    font-size: 1rem;
    padding: 8px 12px;
  }

  /* Favorites/Playlist pages */
  .favorites-toolbar,
  .playlist-toolbar {
    flex-direction: column;
    gap: 12px;
  }
  .favorites-toolbar > *,
  .playlist-toolbar > * {
    width: 100%;
  }

  /* Admin panel adjustments */
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 85%;
    max-width: 280px;
    transform: translateX(-100%);
    z-index: 1000;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    padding: 20px 12px;
  }
  .admin-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .data-table {
    font-size: 0.85rem;
  }
  .data-table th,
  .data-table td {
    padding: 12px 8px;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle-text {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .sidebar {
    width: 100%;
    max-width: none;
  }
}

/* ══ SERMON & BIBLE STUDY CARDS ═══════════════════════════════════════════════════════════════════════════════════════ */
.sermon-card,
.bible-study-card {
  overflow: hidden;
  transition: all 0.3s ease;
}
.sermon-card:hover,
.bible-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.15);
}
.sermon-date,
.bible-study-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.sermon-title,
.bible-study-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 8px;
}
.sermon-speaker {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sermon-desc,
.bible-study-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.bible-study-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.bible-study-verse {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  margin-bottom: 12px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
