:root, [data-theme="current"] {
  --primary-crimson: #800020;
  --primary-dark: #4A0012;
  --gold-primary: #D4AF37;
  --gold-light: #FDF5D8;
  --gold-dark: #B7950B;
  --bg-cream: #FAF7F2;
  --card-bg: #FFFFFF;
  --card-subtle: #FFFDF9;
  --border-color: #EAE0D5;
  --text-dark: #2C1802;
  --text-muted: #666666;
  --header-bg: linear-gradient(135deg, #4A0012 0%, #800020 100%);
  --nav-bg: #FFFFFF;
  --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Nirmala UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

[data-theme="light"] {
  --primary-crimson: #1E3A8A;
  --primary-dark: #172554;
  --gold-primary: #D97706;
  --gold-light: #FEF3C7;
  --gold-dark: #B45309;
  --bg-cream: #F8FAFC;
  --card-bg: #FFFFFF;
  --card-subtle: #F1F5F9;
  --border-color: #E2E8F0;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --header-bg: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  --nav-bg: #FFFFFF;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.08);
}

[data-theme="dark"], [data-theme="oled"] {
  --primary-crimson: #FB7185;
  --primary-dark: #0B0F19;
  --gold-primary: #FBBF24;
  --gold-light: #2D2513;
  --gold-dark: #F59E0B;
  --bg-cream: #0B0F19;
  --card-bg: #151D2E;
  --card-subtle: #1E293B;
  --border-color: #243046;
  --text-dark: #F1F5F9;
  --text-muted: #94A3B8;
  --header-bg: linear-gradient(135deg, #0B0F19 0%, #151D2E 100%);
  --nav-bg: #151D2E;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.7);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.modal-overlay {
  display: none;
}

html {
  height: -webkit-fill-available;
}

html, body {
  background: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-family);
  line-height: 1.6;
  user-select: text;
  -webkit-user-select: text;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

/* 📱 MOBILE & iOS ONLY: Hide scrollbars, safe-area padding & prevent auto-zoom */
@media (max-width: 768px) {
  *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  * {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  html, body {
    padding-bottom: calc(85px + env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    touch-action: manipulation;
    -webkit-touch-callout: none;
    overscroll-behavior-y: contain;
    overflow-anchor: none;
  }
  /* 🍏 iOS SAFARI AUTO-ZOOM PREVENTION: All inputs >= 16px */
  input, textarea, select, .omni-input, #omniInput, #omniInputDesktop, #notesInput {
    font-size: 16px !important;
  }
}

/* 🖥️ DESKTOP ONLY: 100% Fully Free, Native Mouse, Scrollbars & Unrestricted Zoom */
@media (min-width: 769px) {
  *::-webkit-scrollbar {
    display: block !important;
    width: 8px !important;
    height: 8px !important;
  }
  *::-webkit-scrollbar-track {
    background: #F8F4EE;
  }
  *::-webkit-scrollbar-thumb {
    background: #D7CCC8;
    border-radius: 4px;
  }
  *::-webkit-scrollbar-thumb:hover {
    background: #A1887F;
  }
  * {
    -ms-overflow-style: auto !important;
    scrollbar-width: thin !important;
  }
  html, body {
    padding-bottom: 40px;
    touch-action: auto !important;
    -webkit-touch-callout: default !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    overscroll-behavior-y: auto !important;
    overflow-anchor: auto !important;
    cursor: default !important;
  }
}

/* HEADER */
.sacred-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-crimson) 100%);
  color: white;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: 10px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  border-bottom: 2px solid var(--gold-primary);
  user-select: none;
  -webkit-user-select: none;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFDF9;
  cursor: pointer;
}

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

.header-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.header-btn:hover {
  background: rgba(255,255,255,0.25);
}

.header-icon-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.header-icon-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}

/* ☰ HAMBURGER TOGGLE BUTTON */
.drawer-toggle-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.drawer-toggle-btn:active {
  background: rgba(255,255,255,0.25);
  transform: scale(0.92);
}

/* 🖥️ DESKTOP: Hide hamburger, show header-actions */
@media (min-width: 769px) {
  .drawer-toggle-btn { display: none !important; }
}

/* 📱 MOBILE: Show compact header-actions on mobile */
@media (max-width: 768px) {
  .sacred-header {
    padding: 6px 12px;
  }
  .header-actions {
    display: flex !important;
    gap: 6px;
  }
  .header-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 16px;
  }
}

/* DRAWER OVERLAY (DARK BACKDROP) */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* LEFT DRAWER */
.left-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #4A0012 0%, #2C1802 100%);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  padding-left: max(8px, env(safe-area-inset-left));
}
.left-drawer.open {
  transform: translateX(0);
}

/* 🖥️ DESKTOP: Hide drawer completely */
@media (min-width: 769px) {
  .left-drawer { display: none !important; }
  .drawer-overlay { display: none !important; }
}

/* DRAWER HEADER */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-close-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* DRAWER NAVIGATION ITEMS */
.drawer-nav-section {
  padding: 8px 12px;
}
.drawer-section-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px 4px 12px;
}
.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  min-height: 48px;
}
.drawer-nav-item:active {
  background: rgba(255,255,255,0.1);
  transform: scale(0.97);
}
.drawer-nav-item.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  font-weight: 900;
}
.drawer-nav-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.drawer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 4px 20px;
}

/* 🖥️ DESKTOP NAV BAR (INSIDE HEADER) */
.desktop-nav-bar {
  display: none !important;
  align-items: center;
  gap: 6px;
}

@media (min-width: 769px) {
  .desktop-nav-bar {
    display: flex !important;
  }
}

.desktop-nav-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #FFFDF9;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.desktop-nav-item:hover {
  background: rgba(255,255,255,0.22);
}

.desktop-nav-item.active {
  background: linear-gradient(135deg, #D4AF37 0%, #B7950B 100%);
  color: #2C1802;
  border-color: var(--gold-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 🗂️ HOME CATEGORIES GRID & CARDS */
.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.home-category-card {
  background: white;
  border: 1.5px solid #EAE0D5;
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-category-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.home-category-card:active {
  transform: scale(0.96);
}

.home-cat-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.home-cat-title {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--primary-crimson);
  line-height: 1.3;
}

.home-cat-sub {
  font-size: 11px;
  font-weight: 700;
  color: #777;
  margin-top: 2px;
}

/* MAIN CONTAINER */
.main-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 14px 130px 14px;
  transition: max-width 0.2s ease, padding 0.2s ease;
}

@media (min-width: 769px) {
  .main-container {
    max-width: 1080px;
    padding: 18px 24px 90px 24px;
  }
}

@media (min-width: 1200px) {
  .main-container {
    max-width: 1320px;
    padding: 24px 32px 100px 32px;
  }
}

/* 🔍 BOTTOM LENS DOCK (HOUSING SCRIPTURE PICKER + SEARCH BAR) */
.bottom-lens-dock {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  max-width: 860px;
  margin: 0 auto;
  z-index: 990;
  background: rgba(255, 253, 249, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 8px;
  border-radius: 26px;
  box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.12);
  border: 1.5px solid #E5D9CA;
  box-sizing: border-box;
  transition: bottom 0.2s ease, max-width 0.2s ease;
}

@media (min-width: 769px) {
  .bottom-lens-dock {
    bottom: 16px;
    max-width: 720px;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.16);
  }
}

.bottom-lens-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.bottom-lens-picker-btn {
  background: var(--primary-crimson);
  color: white;
  border: 1px solid var(--gold-primary);
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(128, 0, 32, 0.2);
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-lens-picker-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-lens-picker-btn:active {
  transform: scale(0.96);
}

.bottom-lens-search-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: white;
  border: 1.5px solid #E2D7C7;
  border-radius: 24px;
  padding: 4px 8px;
}

.bottom-lens-search-box .lens-icon {
  font-size: 15px;
  margin-right: 4px;
  color: #795548;
  flex-shrink: 0;
}

.bottom-lens-search-box .omni-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  background: transparent;
  font-family: inherit;
}

.mic-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

.mic-btn:hover {
  transform: scale(1.1);
}

.mic-btn.listening {
  background: #FF1744 !important;
  color: white !important;
  animation: micPulse 1.2s infinite ease-in-out !important;
}

@keyframes micPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.7); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(255, 23, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 23, 68, 0); }
}

.instant-results-panel {
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  border: 1.5px solid #E8DCCB;
  max-height: 52vh;
  overflow-y: auto;
  z-index: 1100;
}

.bottom-lens-dock .instant-results-panel {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
}

.desktop-header-search .instant-results-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  display: none;
}

.result-row-item {
  padding: 10px 14px;
  border-bottom: 1px solid #F0E6D8;
  cursor: pointer;
  transition: background 0.15s;
}

.result-row-item:hover {
  background: #FAF6EF;
}

/* SACRED CARDS */
.sacred-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid #EAE0D5;
  box-shadow: var(--shadow-sm);
}

.btn-sacred-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #B7950B 100%);
  color: #2C1802;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(183,149,11,0.25);
  transition: all 0.15s;
}

.btn-sacred-gold:hover {
  filter: brightness(1.05);
}

/* 5 STORY COLLECTIONS */
.collections-section {
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.collection-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.collection-pills-bar::-webkit-scrollbar {
  display: none;
}

.col-pill {
  background: white;
  border: 1.5px solid #E0D4C5;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text-dark);
  transition: all 0.15s;
}

.col-pill.active {
  background: var(--primary-crimson);
  color: white;
  border-color: var(--primary-crimson);
}

.story-cards-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 2px 4px 2px;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-card, .story-card-item {
  flex: 0 0 160px;
  min-width: 155px;
  max-width: 175px;
  background: white;
  border: 1px solid #E8DCCB;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.hero-card:hover, .story-card-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.hero-avatar {
  font-size: 34px;
  margin-bottom: 6px;
  display: block;
}

.hero-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--primary-crimson);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-title-role {
  font-size: 11.5px;
  color: #666;
  line-height: 1.35;
}

/* MASCOT CARTOON & PROGRESS BAR STYLES */
@keyframes floatMascot {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.mascot-cartoon-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #FFFDF8 0%, #FFF9EC 100%);
  border: 1.5px dashed var(--gold-primary);
  border-radius: 18px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.cartoon-avatar {
  font-size: 34px;
  animation: floatMascot 2.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #FFF;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.mascot-speech-bubble {
  background: #FFFFFF;
  border: 1.5px solid #E8DCCB;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #432818;
  position: relative;
  flex: 1;
  line-height: 1.45;
}

.reading-progress-card {
  background: #FFFDF9;
  border: 1px solid #EAE0D5;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.reading-progress-bar-bg {
  height: 10px;
  background: #ECE6DC;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}

.reading-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD700 0%, #800020 100%);
  border-radius: 10px;
  width: 20%;
  transition: width 0.4s ease;
}

/* BOTTOM NAVIGATION BAR (REPLACED BY LEFT DRAWER) */
.sacred-bottom-nav {
  display: none !important;
}

/* 🏠 RESPONSIVE DASHBOARD LAYOUT */
.desktop-home-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 992px) {
  .desktop-home-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 22px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.home-main-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* 🧠, 🙏 & 🎬 RESPONSIVE MULTI-COLUMN CARDS FOR DESKTOP */
#videosListContainer,
#memoryVersesGridContainer,
#memoryTrainingContainer,
#majorPrayersListContainer,
#prayerTopicCardsContainer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 769px) {
  #videosListContainer,
  #memoryVersesGridContainer,
  #memoryTrainingContainer,
  #majorPrayersListContainer,
  #prayerTopicCardsContainer {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
  }
}

.video-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary) !important;
  box-shadow: var(--shadow-md) !important;
}

/* 🌿 PRAYER & KEY SCRIPTURE FILTER CHIPS */
.badge-filter-btn {
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.badge-filter-btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
.badge-filter-btn:active {
  transform: scale(0.97);
}

/* 🔖 BOOKMARKS RESPONSIVE GRID */
#bookmarksList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 769px) {
  #bookmarksList {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
  }
}

/* 📊 ANALYTICS DASHBOARD GRID */
.analytics-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 992px) {
  .analytics-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 20px;
    align-items: start;
  }
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #777;
  cursor: pointer;
  gap: 2px;
  min-width: 40px;
  min-height: 40px;
  padding: 2px 4px;
}

.nav-tab-item.active {
  color: var(--primary-crimson);
}

.nav-tab-icon {
  font-size: 19px;
}

/* 🎯 SACRED QUIZ OPTION & FEEDBACK STYLES (GREEN FOR RIGHT ANSWERS) */
.sacred-opt-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #FFFFFF;
  border: 2px solid #E0D7CC;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #2C1802;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.sacred-opt-btn:hover {
  border-color: var(--gold-primary);
  background: #FFFDF8;
  transform: translateY(-1px);
}

.sacred-opt-btn.selected {
  border-color: var(--primary-crimson);
  background: #FBF0F2;
  box-shadow: 0 3px 8px rgba(128,0,32,0.15);
}

/* Vibrant Green for Correct Choice */
.sacred-opt-btn.correct-choice {
  background: #E8F5E9 !important;
  border: 2.5px solid #2E7D32 !important;
  color: #1B5E20 !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 12px rgba(46,125,50,0.25) !important;
}

/* Vibrant Red for Wrong Choice */
.sacred-opt-btn.wrong-choice {
  background: #FFEBEE !important;
  border: 2.5px solid #C62828 !important;
  color: #B71C1C !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 12px rgba(198,40,40,0.25) !important;
}

/* Green Bottom Sheet for Correct Answer */
.sacred-bottom-sheet.correct {
  background: #E8F5E9 !important;
  border-top: 3px solid #2E7D32 !important;
  color: #1B5E20 !important;
}

/* Red Bottom Sheet for Wrong Answer */
.sacred-bottom-sheet.wrong {
  background: #FFEBEE !important;
  border-top: 3px solid #C62828 !important;
  color: #B71C1C !important;
}

/* 🎯 QUIZ MODE CHIP CARDS */
.quiz-chip-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF8 100%);
  border: 2px solid #EAE0D5;
  border-radius: 26px;
  padding: 18px 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quiz-chip-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 22px rgba(128,0,32,0.14);
  border-color: var(--gold-primary);
  background: #FFFDF9;
}

.quiz-chip-card.mode-chapter {
  border-left: 6px solid var(--primary-crimson);
}

.quiz-chip-card.mode-bible {
  border-left: 6px solid var(--gold-primary);
}

.quiz-chip-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFF3E0;
  border: 2px solid #FFE0B2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* 🦉 DUOLINGO-STYLE STEPPING STONES CHAPTER PATH */
@keyframes duoNodePulse {
  0% { transform: scale(1); box-shadow: 0 6px 0 #5C0017, 0 0 0 0 rgba(128, 0, 32, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 6px 0 #5C0017, 0 0 0 10px rgba(128, 0, 32, 0); }
  100% { transform: scale(1); box-shadow: 0 6px 0 #5C0017, 0 0 0 0 rgba(128, 0, 32, 0); }
}

.duo-path-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 10px;
  position: relative;
  max-height: 420px;
  overflow-y: auto;
}

.duo-step-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.duo-step-wrapper.pos-left {
  transform: translateX(-36px);
}
.duo-step-wrapper.pos-center {
  transform: translateX(0px);
}
.duo-step-wrapper.pos-right {
  transform: translateX(36px);
}

.duo-step-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  position: relative;
}

.duo-step-btn.passed {
  background: linear-gradient(180deg, #FFD700 0%, #E6AC00 100%);
  color: #5D4037;
  box-shadow: 0 6px 0 #B28500, 0 8px 12px rgba(0,0,0,0.12);
}

.duo-step-btn.passed:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #B28500;
}

.duo-step-btn.active {
  background: linear-gradient(180deg, #A30029 0%, #800020 100%);
  color: white;
  box-shadow: 0 6px 0 #520014, 0 10px 20px rgba(128,0,32,0.3);
  animation: duoNodePulse 2s infinite ease-in-out;
}

.duo-step-btn.active:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #520014;
}

.duo-step-btn.locked {
  background: #E8E0D5;
  color: #8D6E63;
  box-shadow: 0 6px 0 #C4B9AA;
  cursor: pointer;
  opacity: 0.85;
}

.duo-step-btn.locked:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #C4B9AA;
}

.duo-step-label {
  font-size: 12px;
  font-weight: 900;
  color: #3E2723;
  margin-top: 6px;
  background: white;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid #E0D4C5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  white-space: nowrap;
}


/* 📱 NATIVE IPHONE & ANDROID WEBAPP INTERACTIVE PRESS STATES */
button, .nav-tab-item, .col-pill, .hero-card, .sacred-opt-btn, .picker-btn, .verse-row {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-tab-item {
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
}

.nav-tab-item:active {
  transform: scale(0.90);
}

.header-icon-btn:active, .header-btn:active, .btn-sacred-gold:active, .duo-action-btn:active, .col-pill:active {
  transform: scale(0.95);
}

/* Fluid Mobile Layout Adjustments */
@media (max-width: 480px) {
  .brand-title span:last-child {
    font-size: 17.5px !important;
  }
  .header-actions {
    gap: 5px;
  }
  .header-btn {
    padding: 5px 9px;
    font-size: 12.5px;
  }
  .header-icon-btn {
    width: 33px;
    height: 33px;
    font-size: 15px;
  }
  .main-container {
    padding: 10px 10px 0 10px;
  }
  .nav-tab-icon {
    font-size: 18px;
  }
  .nav-tab-item span:last-child {
    font-size: 10px;
  }
}


/* HIDE BOTTOM LENS DOCK ON DESKTOP */
@media (min-width: 769px) {
  .bottom-lens-dock {
    display: none !important;
  }
}

/* 🌟 DESKTOP TOP HEADER SEARCH & PICKER */
.desktop-header-search {
  display: none;
  position: relative;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid #E2D7C7;
  border-radius: 24px;
  padding: 4px 10px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  max-width: 440px;
}



.desktop-header-picker-btn {
  background: var(--primary-crimson);
  color: white;
  border: 1px solid var(--gold-primary);
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 18px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(128, 0, 32, 0.2);
  transition: transform 0.15s ease;
}

.desktop-header-picker-btn:hover {
  transform: scale(1.03);
}

.desktop-search-box {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.desktop-omni-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: var(--text-dark);
  background: transparent;
  font-family: inherit;
  min-width: 80px;
}

.desktop-results-panel {
  position: absolute;
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 60vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* 🔔 NOTIFICATION BELL WITH PULSE DOT */
.notif-bell-btn {
  position: relative;
}

.notif-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #E53935;
  border-radius: 50%;
  border: 1.5px solid white;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(229, 57, 53, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}


/* ==========================================================================
   🔒 MASTER RESPONSIVE LAYOUT LOCK (DESKTOP VS MOBILE STRICT SEPARATION)
   ========================================================================== */

/* 1. DESKTOP MODE STRICT LOCK (>= 769px) */
@media (min-width: 769px) {
  .desktop-nav-bar {
    display: flex !important;
  }
  .desktop-header-search {
    display: flex !important;
  }
  .sacred-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .bottom-lens-dock {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .main-container {
    padding-bottom: 40px !important;
  }
}

/* 2. MOBILE MODE STRICT LOCK (<= 768px) */
@media (max-width: 768px) {
  .desktop-nav-bar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .desktop-header-search {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .sacred-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .bottom-lens-dock {
    display: block !important;
  }
  .main-container {
    padding-bottom: calc(95px + env(safe-area-inset-bottom)) !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
  }
}

.desktop-home-top-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

@media (min-width: 860px) {
  .desktop-home-top-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
    align-items: stretch;
  }
  .home-top-left-col,
  .home-top-right-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
  }
}
