/* ==================== CSS VARIABLES & ROOT ==================== */
:root {
  /* Primary Colors */
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --primary-dark: #0f0f1a;
  
  /* Accent Colors */
  --accent: #c9a84c;
  --accent-light: #e8d48b;
  --accent-dark: #a07d2e;
  --accent-glow: rgba(201, 168, 76, 0.4);
  
  /* Background Colors */
  --bg: #faf9f6;
  --bg-warm: #f5f0e8;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  
  /* Text Colors */
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-muted: #9a9a9a;
  --text-inverse: #ffffff;
  
  /* Border & Shadow */
  --border: #e8e4dc;
  --border-focus: var(--accent);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 24px var(--accent-glow);
  
  /* Spacing & Layout */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-reading: 'Lora', Georgia, serif;
  
  /* Animation */
  --transition-fast: 0.15s ease;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Focus */
  --focus-ring: 0 0 0 3px var(--accent-glow);
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 1000;
  --z-toast: 1100;
}

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

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: var(--transition-fast);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img { 
  max-width: 100%; 
  display: block;
  height: auto;
}

ul { list-style: none; }

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

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==================== ACCESSIBILITY ==================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--primary);
  padding: 8px 16px;
  z-index: var(--z-toast);
  font-weight: 600;
  transition: var(--transition-fast);
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==================== HEADER ==================== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  background: rgba(26, 26, 46, 0.99);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo:hover .logo-image {
  transform: scale(1.05);
}

.logo-image {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-icon {
  font-size: 28px;
  color: var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* Quick Jump Button */
.quick-jump-wrapper {
  display: none;
}

.quick-jump-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: var(--transition);
}

.quick-jump-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.quick-jump-icon {
  font-size: 0.9rem;
}

/* Navigation */
#main-nav {
  display: flex;
  gap: 4px;
}

.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(201, 168, 76, 0.1);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(201, 168, 76, 0.15);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-btn.open span:nth-child(1) { 
  transform: rotate(45deg) translateY(7px); 
}
.mobile-menu-btn.open span:nth-child(2) { 
  opacity: 0; 
  transform: scaleX(0);
}
.mobile-menu-btn.open span:nth-child(3) { 
  transform: rotate(-45deg) translateY(-7px); 
}

/* ==================== MODALS ==================== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: var(--bg-warm);
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent);
  color: var(--primary);
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.modal p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.modal input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.modal input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.quick-jump-results {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 16px;
}

.quick-jump-result {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-jump-result:hover,
.quick-jump-result:focus {
  background: var(--bg-warm);
}

.quick-jump-result-code {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-dark);
  min-width: 50px;
}

.quick-jump-result-title {
  flex: 1;
}

/* ==================== FAVORITES SIDEBAR ==================== */
.favorites-sidebar {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  height: 100vh;
  background: var(--bg-card);
  z-index: var(--z-modal);
  transition: var(--transition);
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.favorites-sidebar.open {
  right: 0;
}

.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: var(--bg-warm);
  border-radius: 50%;
  transition: var(--transition);
}

.sidebar-close:hover {
  background: var(--accent);
  color: var(--primary);
}

.sidebar-content {
  padding: 70px 24px 24px;
}

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

.sidebar-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

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

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sidebar-item:hover {
  background: var(--bg);
  transform: translateX(4px);
}

.sidebar-item-code {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.sidebar-item-title {
  flex: 1;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-item-remove {
  padding: 4px 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0;
  transition: var(--transition-fast);
}

.sidebar-item:hover .sidebar-item-remove {
  opacity: 1;
}

.sidebar-item-remove:hover {
  color: #dc3545;
}

.sidebar-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  padding: 16px 0;
}

.favorites-toggle {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: var(--z-dropdown);
}

.favorites-toggle:hover {
  transform: scale(1.1);
  background: var(--primary-light);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: toastSlideUp 0.3s ease, toastFadeOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast.success {
  background: linear-gradient(135deg, #28a745, #218838);
}

.toast.error {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.toast.info {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

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

@keyframes toastFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #0a0a1a 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(201,168,76,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(201,168,76,0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

.hero-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0) scale(1) rotate(0deg); 
    opacity: 0.3; 
  }
  50% { 
    transform: translateY(-40px) scale(1.3) rotate(180deg); 
    opacity: 0.6; 
  }
}

.hero-logo {
  height: 160px;
  width: auto;
  margin: 0 auto 32px;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 8px 32px rgba(201, 168, 76, 0.4));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 10px 24px;
  border-radius: 30px;
  margin-bottom: 24px;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.hero h1 .gold { 
  color: var(--accent);
  position: relative;
}

.hero h1 .gold::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

.hero-subtitle {
  font-family: var(--font-reading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 48px;
}

.hero-stat {
  text-align: center;
  position: relative;
}

.hero-stat::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(201,168,76,0.3);
}

.hero-stat:last-child::after {
  display: none;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201,168,76,0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-dark {
  background: var(--primary);
  color: #fff;
}

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--text);
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--accent);
  color: var(--primary);
  transform: scale(1.1);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 100px 24px;
}

.section-warm { 
  background: var(--bg-warm); 
}

.section-dark {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
}

.section-label::before,
.section-label::after {
  content: '✦';
  margin: 0 12px;
  font-size: 0.6rem;
  vertical-align: middle;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.section-dark .section-subtitle { 
  color: rgba(255,255,255,0.7); 
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==================== CARDS ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px; 
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--primary);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 20px;
  transition: var(--transition);
}

.card-link:hover {
  gap: 12px;
  color: var(--accent);
}

/* ==================== FEATURE STRIP ==================== */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-item {
  padding: 48px 32px;
  text-align: center;
  background: var(--primary);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
  position: relative;
}

.feature-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: var(--transition);
}

.feature-item:hover::before {
  width: 60px;
}

.feature-item:hover {
  background: var(--primary-light);
}

.feature-item:last-child { 
  border-right: none; 
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.feature-item h4 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ==================== DAILY WIDGET ==================== */
.daily-widget {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.daily-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: widgetGlow 6s ease-in-out infinite alternate;
}

@keyframes widgetGlow {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(10deg); }
}

.daily-widget .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.daily-widget .content {
  font-family: var(--font-reading);
  font-size: 1.3rem;
  line-height: 2;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.daily-widget .category-tag {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 130px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 30%, rgba(201,168,76,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(201,168,76,0.08) 0%, transparent 40%);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 24px;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==================== SEARCH BAR ==================== */
.search-bar {
  max-width: 600px;
  margin: 36px auto 0;
  position: relative;
  z-index: 2;
}

.search-bar input {
  width: 100%;
  padding: 18px 24px 18px 52px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.search-bar input::placeholder { 
  color: rgba(255,255,255,0.5); 
}

.search-bar input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-bar .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  pointer-events: none;
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 28px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.filter-chip {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.filter-chip.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  font-weight: 600;
}

.filter-section {
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.filter-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ==================== HYMN LIST ==================== */
.hymn-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

.hymn-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  margin-bottom: 4px;
}

.hymn-item:hover {
  background: var(--bg-warm);
  transform: translateX(8px);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.hymn-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
  text-align: center;
  padding: 8px 0;
  background: rgba(201,168,76,0.1);
  border-radius: var(--radius-sm);
}

.hymn-info { 
  flex: 1; 
  min-width: 0;
}

.hymn-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.hymn-title-yo {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 8px;
}

.hymn-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hymn-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(201,168,76,0.1);
  color: var(--accent-dark);
  font-weight: 500;
}

.hymn-arrow {
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.hymn-item:hover .hymn-arrow { 
  color: var(--accent); 
  transform: translateX(6px); 
}

.results-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 16px;
  font-weight: 500;
}

/* ==================== HYMN DETAIL ==================== */
.hymn-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.hymn-detail-code {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.hymn-detail-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hymn-detail-title-yo {
  font-family: var(--font-reading);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  margin-bottom: 24px;
}

.hymn-detail-meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* Hymn Actions */
.hymn-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hymn-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.hymn-action-btn:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.hymn-action-btn.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

/* Language Tabs */
.lang-tabs {
  display: flex;
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-card);
}

.lang-tab {
  flex: 1;
  padding: 14px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  border-right: 1px solid var(--border);
}

.lang-tab:last-child {
  border-right: none;
}

.lang-tab:hover {
  background: var(--bg-warm);
  color: var(--text);
}

.lang-tab.active {
  background: var(--accent);
  color: var(--primary);
}

/* Verse Blocks */
.verse-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 20px;
  position: relative;
  transition: var(--transition);
}

.verse-block:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.verse-number {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(201,168,76,0.15);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.verse-text {
  font-family: var(--font-reading);
  font-size: 1.15rem;
  line-height: 2;
  white-space: pre-line;
  padding-left: 44px;
  color: var(--text);
}

.hymn-history {
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 36px;
  border-left: 4px solid var(--accent);
}

.hymn-history h3 {
  font-family: var(--font-display);
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 1.2rem;
}

.hymn-history p {
  font-family: var(--font-reading);
  line-height: 1.9;
  color: var(--text-light);
  white-space: pre-line;
}

/* ==================== DEVOTIONALS ==================== */
.devotional-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.devotional-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.devotional-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition);
}

.devotional-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.devotional-card:hover::before {
  transform: scaleY(1);
}

.devotional-card .number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.devotional-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--primary);
}

.devotional-card .excerpt {
  color: var(--text-light);
  font-family: var(--font-reading);
  font-style: italic;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.devotional-card .cat {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-dark);
  background: rgba(201,168,76,0.12);
  padding: 6px 16px;
  border-radius: 20px;
}

.devotional-detail {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.devotional-detail .body {
  font-family: var(--font-reading);
  font-size: 1.2rem;
  line-height: 2.1;
  white-space: pre-line;
  color: var(--text);
}

/* ==================== REFLECTIONS ==================== */
.reflections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.reflection-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.reflection-card::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(201,168,76,0.12);
  line-height: 1;
}

.reflection-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.reflection-card p {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.reflection-card .cat {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-dark);
}

/* ==================== EVENTS ==================== */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.event-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.event-card:hover .event-card-img img {
  transform: scale(1.05);
}

.event-card-body {
  padding: 28px;
}

.event-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.event-card-body .date {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.event-card-body .excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

/* ==================== HELPING HANDS ==================== */
.helping-hands-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.helping-hands-hero .icon {
  font-size: 5rem;
  margin-bottom: 24px;
  animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 28px;
  border-radius: 30px;
  margin-top: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-card);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.form-group textarea { 
  min-height: 140px; 
  resize: vertical; 
}

/* ==================== PAGINATION ==================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 40px 24px;
}

.pagination button {
  width: 44px; 
  height: 44px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  background: var(--bg-card);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.pagination button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.pagination button.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ==================== ABOUT ==================== */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.about-content p {
  font-family: var(--font-reading);
  font-size: 1.15rem;
  line-height: 2;
  margin-bottom: 24px;
}

.about-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 40px 0 20px;
  color: var(--primary);
  position: relative;
  padding-left: 20px;
}

.about-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 54px; 
  height: 54px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: var(--z-dropdown);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 32px var(--accent-glow);
}

/* ==================== FOOTER ==================== */
#site-footer {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: rgba(255,255,255,0.8);
  padding: 80px 24px 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  border-radius: var(--radius);
  filter: brightness(1.1);
}

.footer-col h3 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-verse {
  font-family: var(--font-reading);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}

.footer-developer {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-developer a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-developer a:hover {
  color: var(--gold-light, #f5d070);
  text-decoration: underline;
}

/* ==================== LOADING ==================== */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--text-muted);
}

.loading-spinner {
  width: 48px; 
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

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

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state .icon { 
  font-size: 4rem; 
  margin-bottom: 20px; 
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

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

.stagger-in > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-in > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.6s; }

/* ==================== PRINT STYLES ==================== */
@media print {
  #site-header,
  #site-footer,
  .back-to-top,
  .favorites-toggle,
  .favorites-sidebar,
  .hymn-actions,
  .breadcrumb,
  .lang-tabs {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  .verse-block {
    break-inside: avoid;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  .page-header {
    background: none;
    color: black;
    padding: 20px 0;
  }
  
  .page-header h1,
  .page-header p {
    color: black;
  }
  
  .hymn-detail {
    max-width: none;
    padding: 0;
  }
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (max-width: 1024px) {
  .quick-jump-wrapper {
    display: none;
  }
  
  .hero-stats {
    gap: 40px;
  }
  
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 768px) {
  .header-inner { 
    height: 64px; 
    padding: 0 16px;
  }
  
  .logo-image {
    height: 40px;
  }
  
  .logo-title {
    font-size: 1.1rem;
  }
  
  .logo-tagline {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }
  
  #main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; 
    right: 0;
    bottom: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  #main-nav.open { 
    display: flex; 
  }
  
  .nav-link {
    padding: 16px 20px;
    font-size: 1.1rem;
    border-radius: var(--radius);
  }
  
  .nav-link:hover,
  .nav-link:active {
    background: rgba(201,168,76,0.15);
  }
  
  .mobile-menu-btn { 
    display: flex; 
  }
  
  .hero { 
    min-height: 80vh; 
    padding: 80px 20px 48px; 
  }
  
  .hero-logo {
    height: 120px;
  }
  
  .hero-stats { 
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .hero-stat::after {
    display: none;
  }
  
  .hero-stat-number { 
    font-size: 2rem; 
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }
  
  .feature-item {
    padding: 32px 20px;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .section { 
    padding: 60px 16px; 
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .page-header { 
    padding: 100px 16px 56px; 
  }
  
  .daily-widget { 
    padding: 36px 24px; 
  }
  
  .daily-widget .content {
    font-size: 1.1rem;
  }
  
  .hymn-item { 
    padding: 18px 16px; 
    gap: 16px; 
  }
  
  .hymn-number { 
    font-size: 1.2rem; 
    min-width: 50px; 
  }
  
  .hymn-title {
    font-size: 1rem;
  }
  
  .filter-bar { 
    gap: 10px; 
    padding: 20px 16px; 
  }
  
  .filter-chip { 
    padding: 8px 16px; 
    font-size: 0.8rem; 
  }
  
  .verse-block { 
    padding: 28px 20px; 
  }
  
  .verse-text { 
    font-size: 1rem; 
    padding-left: 32px;
    line-height: 1.9;
  }
  
  .verse-number {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    top: 16px;
    left: 16px;
  }
  
  .reflections-grid { 
    grid-template-columns: 1fr; 
  }
  
  .favorites-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .favorites-toggle {
    right: 16px;
    bottom: 90px;
    width: 48px;
    height: 48px;
  }
  
  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .toast-container {
    left: 16px;
    right: 16px;
    transform: none;
    bottom: 16px;
  }
  
  .toast {
    width: 100%;
  }
}

/* ==================== RESPONSIVE - SMALL MOBILE ==================== */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .hero-stats {
    flex-direction: row;
    justify-content: center;
  }
  
  .hero-stat {
    text-align: center;
  }
  
  .hero-stat-number {
    font-size: 1.8rem;
  }
  
  .feature-strip {
    grid-template-columns: 1fr;
  }
  
  .hymn-detail-code { 
    font-size: 2.5rem; 
  }
  
  .hymn-detail-title { 
    font-size: 1.5rem; 
  }
  
  .hymn-detail-title-yo {
    font-size: 1.1rem;
  }
  
  .lang-tabs { 
    flex-direction: column; 
  }
  
  .lang-tab {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .lang-tab:last-child {
    border-bottom: none;
  }
  
  .hymn-actions {
    flex-direction: column;
  }
  
  .hymn-action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .modal-content {
    padding: 24px;
    margin: 16px;
  }
  
  .devotional-card {
    padding: 24px;
  }
  
  .devotional-card .number {
    font-size: 1.8rem;
  }
  
  .devotional-card h3 {
    font-size: 1.2rem;
  }
}

/* ==================== DARK MODE (Future) ==================== */
@media (prefers-color-scheme: dark) {
  /* Reserve for future dark mode implementation */
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ==================== HIGH CONTRAST ==================== */
@media (prefers-contrast: high) {
  :root {
    --border: #333;
    --text-light: #555;
    --text-muted: #666;
  }
  
  .btn-outline {
    border-width: 3px;
  }
  
  .filter-chip {
    border-width: 2px;
  }
}


/* ==================== LYRICS MATCH BADGE ==================== */
.lyrics-match-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 12px;
  padding: 2px 10px;
  letter-spacing: 0.3px;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  #site-header,
  #site-footer,
  .lang-tabs,
  .hymn-actions,
  .back-to-top,
  .favorites-toggle,
  #favorites-sidebar,
  #quick-jump-modal,
  #toast-container,
  .hero,
  .feature-strip,
  .breadcrumb,
  nav,
  .skip-link,
  .hero-particles {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    font-family: Georgia, serif;
    font-size: 12pt;
  }

  #app-content {
    padding: 0 !important;
    margin: 0 !important;
  }

  .page-header {
    background: none !important;
    color: #111 !important;
    padding: 20px 0 10px !important;
    border-bottom: 2px solid #111;
    margin-bottom: 20px;
  }

  .hymn-detail-title,
  h1, h2, h3 {
    color: #111 !important;
    text-shadow: none !important;
  }

  .hymn-detail-title-yo {
    color: #555 !important;
  }

  .hymn-detail-code {
    color: #888 !important;
  }

  .hymn-tag {
    border: 1px solid #999;
    background: none !important;
    color: #333 !important;
  }

  #verses-en {
    display: block !important;
  }
  #verses-yo,
  #verses-both {
    display: none !important;
  }

  .verse-block {
    break-inside: avoid;
    page-break-inside: avoid;
    border-left: 3px solid #c9a84c !important;
    margin-bottom: 16pt !important;
    padding: 8pt 12pt;
  }

  .verse-number {
    color: #c9a84c !important;
    font-weight: bold;
  }

  .verse-text {
    color: #111 !important;
  }

  .hymn-history {
    border-top: 1px solid #ccc;
    margin-top: 24pt;
    padding-top: 12pt;
    color: #333 !important;
  }

  a[href]:after {
    content: none !important;
  }

  .fade-in {
    animation: none !important;
  }
}

/* ==================== PHASE 2: HYMN OF THE DAY ==================== */
.hymn-of-day-section { background: linear-gradient(135deg, #0d1b35 0%, #1a1a2e 60%, #2d1b4e 100%); }

.hymn-of-day-widget {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(10,20,50,0.6) 100%);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 40px 48px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hotd-code {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 10px;
}

.hotd-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.hotd-title-yo {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(201,168,76,0.75);
  margin-bottom: 20px;
}

.hotd-verse {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  margin: 24px auto;
  text-align: left;
  max-width: 520px;
  background: rgba(201,168,76,0.06);
  border-radius: 0 8px 8px 0;
}

/* ==================== PHASE 2: FONT SIZE CONTROLS ==================== */
.font-size-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  width: fit-content;
  margin: 0 0 20px 0;
}

.font-size-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-right: 6px;
}

.font-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.font-btn:hover { border-color: var(--gold); color: var(--gold); }
.font-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a1428;
}

/* ==================== PHASE 2: SCRIPTURE SECTION ==================== */
.scripture-verse {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-left: 3px solid var(--gold);
  padding: 12px 20px;
  margin: 0 0 12px 0;
  background: rgba(201,168,76,0.05);
  border-radius: 0 8px 8px 0;
}

.scripture-ref {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin: 0;
  font-weight: 500;
}

/* ==================== PHASE 2: SKELETON LOADERS ==================== */
@keyframes skeleton-pulse {
  0%   { opacity: 0.55; }
  50%  { opacity: 0.25; }
  100% { opacity: 0.55; }
}

.skeleton-line {
  height: 14px;
  background: var(--border);
  border-radius: 8px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  display: block;
}

.skeleton-bar {
  height: 44px;
  background: var(--border);
  border-radius: 8px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  opacity: 0.5;
}

.skeleton-hymn-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.skeleton-hymn-item .skeleton-line:first-child { width: 10%; }
.skeleton-page { min-height: 100vh; }

/* ==================== PHASE 2: LISTEN BUTTON ==================== */
#listen-btn.active {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
  color: var(--gold);
}


/* ==================== PHASE 3: SERVICE ORDER BUILDER ==================== */
.so-workspace {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .so-workspace { grid-template-columns: 1fr; }
}

.so-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 80px;
}

.so-section-block { margin-bottom: 24px; }

.so-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.so-title-input {
  width: 100%;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Playfair Display', serif;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.so-title-input:focus { border-color: var(--gold); outline: none; }

.so-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.so-add-btn {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.so-add-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08); }
.so-add-btn-hymn { grid-column: span 2; background: rgba(201,168,76,0.08); border-color: rgba(201,168,76,0.35); color: var(--gold); font-weight: 600; }
.so-add-btn-hymn:hover { background: rgba(201,168,76,0.2); }

.so-hymn-search-panel {
  margin-top: 12px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 12px;
  background: rgba(201,168,76,0.05);
}

.so-hymn-search-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  box-sizing: border-box;
}
.so-hymn-search-input:focus { border-color: var(--gold); outline: none; }

.so-hymn-results { margin-top: 8px; max-height: 200px; overflow-y: auto; }

.so-hymn-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
}
.so-hymn-result:hover { background: var(--surface-hover); }
.so-result-code { color: var(--gold); font-weight: 600; flex-shrink: 0; }
.so-result-title { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-result-add {
  background: var(--gold);
  border: none;
  border-radius: 6px;
  padding: 3px 10px;
  color: #0a1428;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.so-no-results { padding: 8px; color: var(--text-muted); font-size: 0.82rem; text-align: center; }

.so-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 10px;
  background: rgba(201,168,76,0.05);
  border-radius: 8px;
  line-height: 1.5;
  margin-top: 16px;
}

/* Service Order main panel */
.so-main { min-height: 300px; }

.so-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

.so-count { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.so-autosave { font-size: 0.72rem; color: var(--gold); opacity: 0.7; }

.so-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  font-size: 0.9rem;
}

.so-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  transition: background 0.15s;
}
.so-item:last-child { border-radius: 0 0 10px 10px; }
.so-item:hover { background: var(--surface-hover); }
.so-item-section { border-left: 3px solid var(--gold); }
.so-item-hymn { border-left: 3px solid #7c6cd1; }
.so-item-reading { border-left: 3px solid #4caf7d; }
.so-item-prayer { border-left: 3px solid #e8a04c; }
.so-item-announcement { border-left: 3px solid #6cb4e4; }

.so-reorder { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.so-btn-move {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.65rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: all 0.1s;
}
.so-btn-move:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.so-btn-move:disabled { opacity: 0.3; cursor: not-allowed; }

.so-item-body { flex: 1; }

.so-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  margin-bottom: 8px;
}
.so-badge-hymn { background: rgba(124,108,209,0.15); color: #a89edf; }
.so-badge-reading { background: rgba(76,175,125,0.15); color: #6fcf97; }
.so-badge-prayer { background: rgba(232,160,76,0.15); color: #e8a04c; }
.so-badge-announcement { background: rgba(108,180,228,0.15); color: #6cb4e4; }

.so-text-input, .so-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--border);
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 4px 0;
  font-family: 'Lora', serif;
  box-sizing: border-box;
  resize: vertical;
}
.so-text-input:focus, .so-textarea:focus { border-bottom-color: var(--gold); outline: none; }
.so-note { font-style: italic; font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.so-textarea { min-height: 60px; }

.so-hymn-info { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 6px; }
.so-hymn-code { font-size: 0.78rem; color: var(--gold); font-weight: 600; margin-right: 6px; }
.so-denom { font-size: 0.78rem; color: var(--text-muted); }

.so-btn-del {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.so-btn-del:hover { border-color: #e57373; color: #e57373; background: rgba(229,115,115,0.1); }

/* ==================== PHASE 3: ASK AI SECTION ==================== */
.ask-hymn-section { }

.ask-hymn-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -8px 0 16px;
}

.ask-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ask-example {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.15s;
}
.ask-example:hover { background: rgba(201,168,76,0.2); }

.ask-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ask-hymn-input {
  flex: 1;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.ask-hymn-input:focus { border-color: var(--gold); outline: none; }

.ask-hymn-response {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 10px;
}

.ai-answer {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.ai-powered {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

.ai-error {
  color: #e57373;
  font-size: 0.88rem;
}

/* ==================== LANGUAGE TRANSLATE BUTTON ==================== */
/* Hide Google Translate default widget & banner */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget-icon,
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { display: none !important; }

/* Translate button in header nav */
.translate-wrapper {
  position: relative;
}
.translate-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}
.translate-btn:hover,
.translate-btn:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
  outline: none;
}

/* Custom language dropdown */
.translate-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #12122a;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 6px 0 4px;
  min-width: 168px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.65), 0 2px 8px rgba(0,0,0,0.4);
  z-index: 9999;
  overflow: hidden;
}
.translate-dropdown[hidden] { display: none; }
.translate-dropdown-header {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding: 6px 14px 8px;
  font-weight: 700;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  margin-bottom: 2px;
}
.translate-lang-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  color: rgba(200, 210, 230, 0.85);
  padding: 9px 14px;
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  line-height: 1.3;
}
.translate-lang-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
}
.translate-lang-btn:focus-visible {
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
  outline: none;
}
.translate-lang-btn:active {
  background: rgba(212, 175, 55, 0.15);
  color: #fff;
}
.translate-lang-btn.active {
  color: #e8d48b;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.08);
}
@media (max-width: 768px) {
  .translate-dropdown {
    right: auto;
    left: 0;
  }
}


/* ============================================================
   SPEAK TO MY SOUL — Soul Guide Page
   ============================================================ */

/* Special glow on the nav link */
.nav-link-soul {
  color: #e8d48b !important;
  font-weight: 600;
  position: relative;
}
.nav-link-soul:hover,
.nav-link-soul.active {
  color: #fff !important;
  text-shadow: 0 0 16px rgba(232,212,139,0.6);
}

/* ── Hero ── */
.sg-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(170deg, #06061a 0%, #0e0e2c 50%, #12122e 100%);
  overflow: hidden;
  padding: 80px 24px 60px;
}
.sg-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sg-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.7) 0%, transparent 70%);
  animation: sg-float 12s ease-in-out infinite alternate;
}
@keyframes sg-float {
  0%   { transform: translateY(0px) scale(1); opacity: 0.4; }
  100% { transform: translateY(-20px) scale(1.4); opacity: 0.9; }
}
.sg-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.sg-eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}
.sg-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-family: var(--font-display);
  color: #fff;
  line-height: 1.2;
  margin: 0 0 18px;
}
.sg-subtitle {
  font-size: 1.05rem;
  color: rgba(200,210,230,0.8);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Mood Section ── */
.sg-mood-section {
  padding: 52px 24px 64px;
  background: #0a0a20;
}
.sg-mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Individual Mood Card ── */
.sg-mood-card {
  background: linear-gradient(145deg, var(--c1, #1a1a3a), var(--c2, #0a0a1e));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px 22px 22px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  outline: none;
  font-family: inherit;
}
.sg-mood-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.sg-mood-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.12);
}
.sg-mood-card:focus-visible {
  box-shadow: 0 0 0 3px var(--accent, #c9a84c);
}
.sg-mood-card.active {
  border-color: var(--accent, #c9a84c);
  box-shadow: 0 0 0 2px var(--accent, #c9a84c), 0 16px 48px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}
.sg-mood-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 4px;
}
.sg-mood-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.sg-mood-sub {
  font-size: 0.78rem;
  color: var(--accent, #c9a84c);
  font-weight: 500;
  line-height: 1.3;
}
.sg-mood-desc {
  font-size: 0.8rem;
  color: rgba(200,210,230,0.65);
  line-height: 1.55;
  flex: 1;
  margin-top: 4px;
}
.sg-mood-arrow {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  margin-top: 8px;
  transition: color 0.2s, transform 0.2s;
  letter-spacing: 0.03em;
}
.sg-mood-card:hover .sg-mood-arrow,
.sg-mood-card.active .sg-mood-arrow {
  color: var(--accent, #c9a84c);
  transform: translateX(4px);
}

/* ── Results Section ── */
.sg-results-section {
  background: #070716;
  border-top: 1px solid rgba(212,175,55,0.15);
  padding: 52px 24px 72px;
  animation: sg-fadein 0.4s ease;
}
@keyframes sg-fadein {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sg-results-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
}
.sg-results-mood-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.sg-results-title {
  font-size: 1.6rem;
  font-family: var(--font-display);
  margin: 0 0 4px;
  line-height: 1.2;
}
.sg-results-count {
  font-size: 0.88rem;
  color: rgba(200,210,230,0.6);
  margin: 0;
}

/* ── Hymn Result Items ── */
.sg-results-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 14px;
  overflow: hidden;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.3) transparent;
}
.sg-hymn-item {
  display: grid;
  grid-template-columns: 56px 1fr auto 28px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #0e0e28;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}
.sg-hymn-item:last-child { border-bottom: none; }
.sg-hymn-item:hover {
  background: rgba(212,175,55,0.07);
}
.sg-hymn-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
}
.sg-hymn-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sg-hymn-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(220,225,240,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg-hymn-yoruba {
  font-size: 0.75rem;
  color: rgba(180,190,210,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg-hymn-denom {
  font-size: 0.72rem;
  color: rgba(200,210,230,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.sg-hymn-arrow {
  color: rgba(212,175,55,0.4);
  font-size: 1rem;
  transition: color 0.15s, transform 0.15s;
}
.sg-hymn-item:hover .sg-hymn-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .sg-mood-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .sg-mood-card { padding: 20px 14px 16px; }
  .sg-mood-desc { display: none; }
  .sg-mood-icon { font-size: 1.8rem; }
  .sg-hymn-item {
    grid-template-columns: 44px 1fr 24px;
  }
  .sg-hymn-denom { display: none; }
}

/* ==================== TODAY PAGE (DAILY WORSHIP) ==================== */
.today-header {
  background: linear-gradient(135deg, var(--navy-dark, #1a1a2e), #2d3a5c);
  color: #fff;
  border-radius: 0 0 24px 24px;
  text-align: center;
}
.today-header h1 { color: #fff; }
.today-header p  { color: rgba(255,255,255,0.85); max-width: 540px; margin: 8px auto 0; }
.today-date {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent, #c9a84c); margin-bottom: 8px; font-weight: 600;
}
.today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
  padding: 0 16px;
}
.today-card {
  background: var(--bg-card, #fff);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--border, #e8e8e8);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.today-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.today-card-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent-dark, #b8953e); font-weight: 700; margin-bottom: 10px;
}
.today-card-title {
  font-size: 1.35rem; color: var(--text-dark, #1a1a2e);
  margin: 0 0 12px; line-height: 1.3;
}
.today-card-body { flex: 1; font-size: 0.95rem; }
.nav-link-today { color: var(--accent, #c9a84c) !important; }
.nav-link-today.active { font-weight: 700; }

/* ==================== FILTER CHIP COUNT BADGE ==================== */
.filter-chip .chip-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
}
.filter-chip.active .chip-count { background: rgba(255,255,255,0.25); color: #fff; }
.filter-clear {
  background: none; border: none; color: var(--accent, #c9a84c);
  font-size: 0.78rem; cursor: pointer; margin-left: 10px; text-decoration: underline;
}

/* ==================== PRINT STYLESHEET ==================== */
@media print {
  body { background: #fff !important; color: #000 !important; font-family: 'Lora', Georgia, serif; }
  #site-header, #site-footer, .nav-link, .hymn-actions, .lang-tabs,
  .ask-hymn-section, .font-size-controls, .favorites-toggle, #favorites-sidebar,
  .modal, .quick-jump-wrapper, .translate-wrapper, .mobile-menu-btn,
  #back-to-top, .toast-container, #scripture-section, .breadcrumb,
  .filter-section, .pagination, #google_translate_element, .skip-link {
    display: none !important;
  }
  main, #app-content { padding: 0 !important; margin: 0 !important; }
  .page-header { background: none !important; color: #000 !important; padding: 0 0 16px !important; }
  .page-header h1, .hymn-detail-title, .hymn-detail-code { color: #000 !important; }
  .hymn-detail { padding: 0 !important; box-shadow: none !important; background: none !important; }
  .hymn-detail-meta .hymn-tag { background: none !important; color: #000 !important; border: 1px solid #ccc; padding: 2px 8px; }
  /* Show every language panel side by side when printing */
  #verses-en, #verses-yo { display: block !important; }
  #verses-en::before { content: "ENGLISH"; display:block; font-size: 0.75rem; letter-spacing: 2px; font-weight: 700; color: #888; margin-top: 18px; margin-bottom: 8px; }
  #verses-yo::before { content: "YORUBA";  display:block; font-size: 0.75rem; letter-spacing: 2px; font-weight: 700; color: #888; margin-top: 18px; margin-bottom: 8px; }
  #verses-both { display: none !important; }
  .verse-block { page-break-inside: avoid; padding: 8px 0 !important; }
  .verse-number { color: #888 !important; }
  .verse-text { font-size: 12pt !important; line-height: 1.7 !important; color: #000 !important; }
  .hymn-history { background: none !important; padding: 14px 0 !important; border-top: 1px solid #ddd; }
  .hymn-history h3 { color: #000 !important; font-size: 11pt; }
  .hymn-history p  { color: #333 !important; font-size: 10pt; line-height: 1.6; }
  /* Today + service order also print clean */
  .today-card { page-break-inside: avoid; box-shadow: none !important; border: 1px solid #ccc; }
  a { color: #000 !important; text-decoration: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #777; }
  @page { margin: 1.5cm; }
}
