/* ============================================================
   BIBLE MODULE — extends Veritas / Hallow-inspired design system
   Palette: purple #6B3FA0 · cream #F8F4EE · ink #1E1A1A
   ============================================================ */

:root {
    --v-purple: #6B3FA0;
    --v-purple-dark: #5A2E8A;
    --v-purple-soft: #9B6FC0;
    --v-cream: #F8F4EE;
    --v-cream-2: #FCFAF7;
    --v-ink: #1E1A1A;
    --v-ink-soft: #3D3A3A;
    --v-muted: #8A7A7A;
    --v-line: #EFEAE4;
    --v-line-2: #E8E0D8;
    --v-white: #FFFFFF;
    --v-shadow: 0 8px 32px rgba(91, 46, 138, 0.10);
    --v-shadow-sm: 0 4px 16px rgba(107, 63, 160, 0.05);
    --v-radius: 20px;
    --v-radius-lg: 24px;
    --reader-font-size: 18px;
    --reader-line-height: 1.75;
}

/* Reader themes */
.bible-module.theme-sepia { --v-cream: #F1E6D2; --v-cream-2: #FAF1DC; --v-white: #FBF3E0; --v-ink: #43301B; --v-ink-soft: #5A422A; --v-line: #E4D3B8; --v-muted: #8A7452; }
.bible-module.theme-dark  { --v-cream: #14131A; --v-cream-2: #1B1A22; --v-white: #22212B; --v-ink: #F3EFE9; --v-ink-soft: #D6CEC6; --v-muted: #8F8A94; --v-line: #2B2932; --v-line-2: #34323C; }

.bible-module { background: var(--v-cream); min-height: 100dvh; }

/* Reset for module scope */
.bible-module *, .bible-module *::before, .bible-module *::after { box-sizing: border-box; }

/* ===== HERO ===== */
.bible-hero {
    background: linear-gradient(160deg, #4A2478 0%, #6B3FA0 55%, #8B5FC0 100%);
    padding: 20px 20px 24px;
    border-radius: 0 0 32px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(91, 46, 138, 0.25);
    animation: fadeDown 0.5s ease;
}
.bible-hero::before {
    content: ''; position: absolute; inset: -40% -40% auto auto;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    pointer-events: none;
}
.bible-hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; position: relative; }
.bible-hero-title { flex: 1; text-align: center; }
.bible-hero-title .eyebrow {
    font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
    color: rgba(255,255,255,0.75); margin: 0 0 2px; font-weight: 500;
}
.bible-hero-title .eyebrow i { margin-right: 6px; }
.bible-hero-title h1 {
    margin: 0; font-family: 'Cormorant Garamond', serif;
    font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.5px;
}

.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.18);
    color: #fff; cursor: pointer; transition: all 0.2s ease;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.icon-btn:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.ghost { flex-shrink: 0; }

/* Search */
.bible-search-wrap { position: relative; z-index: 5; }
.bible-search-input {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.96); border-radius: 16px;
    padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.bible-search-input i.fa-search { color: var(--v-purple); font-size: 16px; }
.bible-search-input input {
    flex: 1; border: none; outline: none; background: transparent;
    font-family: inherit; font-size: 15px; color: var(--v-ink);
}
.bible-search-input input::placeholder { color: var(--v-muted); }
.clear-btn {
    background: none; border: none; color: var(--v-muted);
    cursor: pointer; padding: 4px; opacity: 0; transition: opacity 0.2s;
}
.clear-btn.visible { opacity: 1; }

.search-suggestions {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--v-white); border-radius: 16px; overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15); z-index: 20;
    max-height: 320px; overflow-y: auto;
    animation: fadeUp 0.2s ease;
}
.suggestion-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; cursor: pointer; color: var(--v-ink);
    font-size: 14px; border-bottom: 1px solid var(--v-line);
    transition: background 0.15s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.active { background: var(--v-cream); }
.suggestion-item i { color: var(--v-purple); width: 16px; }
.suggestion-item .sug-meta { color: var(--v-muted); font-size: 12px; margin-left: auto; }

/* Reading progress */
.reading-progress { margin-top: 16px; position: relative; }
.progress-track { height: 6px; background: rgba(255,255,255,0.2); border-radius: 6px; overflow: hidden; }
.progress-fill {
    height: 100%; background: linear-gradient(90deg, #FFD37A, #FFB347);
    width: 0%; border-radius: 6px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(255, 179, 71, 0.5);
}
.progress-label { display: block; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.85); letter-spacing: 0.3px; }

/* ===== VIEWS ===== */
.bible-view { display: none; animation: fadeUp 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.bible-view.active { display: block; }

/* ===== VERSE OF THE DAY ===== */
.votd-card {
    margin: 20px 20px 8px; padding: 24px; border-radius: var(--v-radius-lg);
    background: linear-gradient(140deg, #FFFFFF 0%, #FBF7F0 100%);
    border: 1px solid var(--v-line); box-shadow: var(--v-shadow);
    position: relative; overflow: hidden;
}
.votd-glow {
    position: absolute; inset: -50% -30% auto auto; width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(107,63,160,0.10), transparent 70%);
    pointer-events: none;
}
.votd-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; position: relative; }
.badge {
    background: linear-gradient(135deg, rgba(107,63,160,0.10), rgba(107,63,160,0.05));
    color: var(--v-purple); font-size: 11px; font-weight: 600;
    padding: 6px 12px; border-radius: 40px; letter-spacing: 0.6px;
    text-transform: uppercase; border: 1px solid rgba(107,63,160,0.15);
}
.badge i { margin-right: 5px; }
.votd-actions { display: flex; gap: 6px; }
.chip-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--v-cream); border: 1px solid var(--v-line);
    color: var(--v-purple); cursor: pointer; transition: 0.2s;
}
.chip-btn:hover { background: var(--v-purple); color: #fff; transform: translateY(-1px); }
.votd-text {
    font-family: 'Cormorant Garamond', serif; font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55; color: var(--v-ink); margin: 8px 0 12px; font-style: italic;
    font-weight: 500;
}
.votd-ref { font-size: 14px; color: var(--v-purple); font-weight: 600; letter-spacing: 0.4px; }

/* ===== SECTIONS ===== */
.section { padding: 18px 20px 4px; animation: fadeUp 0.4s ease; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-header h2 {
    font-size: 16px; font-weight: 600; color: var(--v-ink);
    margin: 0; letter-spacing: -0.2px;
}
.section-header h2 i { color: var(--v-purple); margin-right: 8px; }
.section-sub { font-size: 11px; color: var(--v-muted); font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; }
.link-btn { background: none; border: none; color: var(--v-purple); font-size: 13px; font-weight: 500; cursor: pointer; }

/* ===== RECOMMENDED FOR TODAY ===== */
.recommended-row {
    display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 14px;
    margin: 0 -20px; scroll-snap-type: x proximity; scrollbar-width: none;
}
.recommended-row::-webkit-scrollbar { display: none; }
.reco-card {
    flex: 0 0 auto; width: 220px; scroll-snap-align: start;
    background: linear-gradient(150deg, var(--v-white) 0%, color-mix(in srgb, var(--reco-c, var(--v-purple)) 8%, var(--v-white)) 100%);
    border: 1px solid var(--v-line); border-radius: 18px;
    padding: 16px; cursor: pointer; text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
    animation: fadeUp 0.4s ease backwards;
}
.reco-card::before {
    content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px;
    background: var(--reco-c, var(--v-purple));
}
.reco-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.10); border-color: var(--reco-c, var(--v-purple)); }
.reco-icon {
    width: 34px; height: 34px; border-radius: 10px; margin-bottom: 10px;
    background: color-mix(in srgb, var(--reco-c, var(--v-purple)) 16%, transparent);
    color: var(--reco-c, var(--v-purple));
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.reco-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
    color: var(--reco-c, var(--v-purple)); margin-bottom: 8px;
}
.reco-text {
    font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
    font-size: 15px; line-height: 1.42; color: var(--v-ink); margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.reco-ref { font-size: 12px; font-weight: 600; color: var(--v-ink-soft); letter-spacing: 0.2px; }
.reco-card.skeleton-card { cursor: default; }
.reco-card.skeleton-card .reco-skel {
    height: 12px; border-radius: 6px; margin-bottom: 8px;
    background: linear-gradient(90deg, var(--v-line) 25%, rgba(107,63,160,0.08) 50%, var(--v-line) 75%);
    background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.reco-card.skeleton-card .reco-skel:nth-child(3) { width: 92%; }
.reco-card.skeleton-card .reco-skel:nth-child(4) { width: 70%; }
.reco-card.skeleton-card .reco-skel:nth-child(5) { width: 45%; margin-bottom: 0; }

/* Continue reading */
.continue-card {
    width: calc(100% - 40px); margin: 0 20px; text-align: left;
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px; border-radius: var(--v-radius);
    background: linear-gradient(135deg, var(--v-purple) 0%, var(--v-purple-soft) 100%);
    border: none; cursor: pointer; color: #fff;
    box-shadow: 0 10px 30px rgba(107,63,160,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.continue-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(107,63,160,0.35); }
.continue-info { flex: 1; }
.continue-label { font-size: 12px; opacity: 0.85; letter-spacing: 0.4px; text-transform: uppercase; }
.continue-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; margin: 4px 0 10px; }
.mini-progress { height: 4px; background: rgba(255,255,255,0.25); border-radius: 4px; overflow: hidden; }
.mini-fill { height: 100%; background: #FFD37A; width: 0%; transition: width 0.6s ease; }
.continue-arrow {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: transform 0.25s ease;
}
.continue-card:hover .continue-arrow { transform: translateX(4px); }

/* Testament tabs */
.testament-tabs {
    display: flex; gap: 8px; padding: 20px 20px 4px;
    overflow-x: auto; scrollbar-width: none;
}
.testament-tabs::-webkit-scrollbar { display: none; }
.tt-btn {
    flex-shrink: 0; padding: 10px 18px; border-radius: 40px;
    background: var(--v-white); border: 1px solid var(--v-line);
    color: var(--v-ink-soft); font-size: 14px; font-weight: 500;
    cursor: pointer; font-family: inherit; transition: all 0.2s ease;
    white-space: nowrap;
}
.tt-btn:hover { border-color: var(--v-purple); color: var(--v-purple); }
.tt-btn.active {
    background: var(--v-purple); color: #fff; border-color: var(--v-purple);
    box-shadow: 0 4px 14px rgba(107,63,160,0.30);
}
.tt-btn i { margin-right: 5px; font-size: 12px; }

/* Recently viewed */
.recent-row {
    display: flex; gap: 10px; overflow-x: auto; padding: 4px 20px 8px;
    scrollbar-width: none; margin: 0 -20px;
}
.recent-row::-webkit-scrollbar { display: none; }
.recent-chip {
    flex-shrink: 0; padding: 10px 16px; border-radius: 14px;
    background: var(--v-white); border: 1px solid var(--v-line);
    color: var(--v-ink); font-size: 13px; font-weight: 500;
    cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px;
}
.recent-chip:hover { border-color: var(--v-purple); transform: translateY(-2px); box-shadow: var(--v-shadow-sm); }
.recent-chip i { color: var(--v-purple); font-size: 12px; }

/* ===== BOOKS GRID ===== */
.books-section { padding-bottom: 40px; }
.books-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.book-card {
    background: var(--v-white); border: 1px solid var(--v-line);
    border-radius: 18px; padding: 16px 14px; cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left; font-family: inherit;
    position: relative; overflow: hidden;
    animation: fadeUp 0.4s ease backwards;
}
.book-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--v-purple); opacity: 0; transition: opacity 0.25s;
}
.book-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(107,63,160,0.12); border-color: rgba(107,63,160,0.3); }
.book-card:hover::before { opacity: 1; }
.book-card .book-testament {
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--v-muted); font-weight: 600;
}
.book-card .book-name {
    font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600;
    color: var(--v-ink); margin: 4px 0 6px; line-height: 1.15;
}
.book-card .book-meta { font-size: 12px; color: var(--v-muted); display: flex; align-items: center; gap: 6px; }
.book-card .book-meta i { color: var(--v-purple); }

/* Search results book heading */
h4.book-group {
    font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600;
    color: var(--v-ink-soft); margin: 22px 0 10px; padding: 0 4px;
    display: flex; align-items: center; gap: 10px;
}
h4.book-group::after { content: ''; flex: 1; height: 1px; background: var(--v-line); }
.books-grid > h4.book-group:first-child { margin-top: 0; }

/* Testament divider (shown in the "All" books view) */
.testament-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 28px 0 4px; padding: 0 4px;
}
.testament-divider:first-child { margin-top: 4px; }
.testament-divider span {
    font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 700;
    letter-spacing: 1.4px; text-transform: uppercase; color: var(--v-purple);
    background: rgba(107,63,160,0.08); padding: 6px 14px; border-radius: 20px;
    white-space: nowrap;
}
.testament-divider::before, .testament-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--v-line) 20%, var(--v-line) 80%, transparent);
}

/* ===== CHAPTERS ===== */
.chapter-picker-header {
    display: flex; align-items: center; gap: 14px;
    padding: 20px; background: var(--v-cream-2);
    border-bottom: 1px solid var(--v-line);
}
.chapter-picker-header .eyebrow {
    font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--v-purple); margin: 0; font-weight: 600;
}
.chapter-picker-header h2 {
    font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600;
    margin: 2px 0 0; color: var(--v-ink);
}
.chapter-picker-header .icon-btn { background: var(--v-white); border: 1px solid var(--v-line); color: var(--v-ink); }
.chapter-picker-header .icon-btn:hover { background: var(--v-purple); color: #fff; }

.chapters-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 10px; padding: 20px;
}
.chapter-cell {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    background: var(--v-white); border: 1px solid var(--v-line);
    border-radius: 14px; cursor: pointer; font-family: inherit;
    font-size: 16px; font-weight: 500; color: var(--v-ink);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeUp 0.3s ease backwards;
}
.chapter-cell:hover { background: var(--v-purple); color: #fff; border-color: var(--v-purple); transform: scale(1.08); box-shadow: 0 6px 16px rgba(107,63,160,0.25); }
.chapter-cell.read { border-color: rgba(107,63,160,0.4); background: rgba(107,63,160,0.06); }
.chapter-cell.current { background: var(--v-purple); color: #fff; border-color: var(--v-purple); }

/* ===== READER ===== */
.reader-toolbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(252, 250, 247, 0.95);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid var(--v-line);
}
.bible-module.theme-dark .reader-toolbar { background: rgba(20,19,26,0.95); }
.reader-toolbar .icon-btn { background: transparent; border: 1px solid var(--v-line); color: var(--v-ink); }
.reader-toolbar .icon-btn:hover { background: var(--v-purple); color: #fff; border-color: var(--v-purple); }
.reader-title {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; border: none; cursor: pointer;
    font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600;
    color: var(--v-ink);
}
.reader-title .reader-chap {
    background: var(--v-purple); color: #fff; font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
}
.reader-title i { font-size: 12px; color: var(--v-muted); }
.reader-tools { display: flex; gap: 8px; }

.reader-progress { height: 3px; background: transparent; }
.reader-progress-fill { height: 100%; background: linear-gradient(90deg, var(--v-purple), var(--v-purple-soft)); width: 0%; transition: width 0.15s ease; }

.reader {
    max-width: 720px; margin: 0 auto;
    padding: 32px 24px 140px;
    font-size: var(--reader-font-size); line-height: var(--reader-line-height);
    color: var(--v-ink);
}
.reader h2.chapter-heading {
    font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 4vw, 42px);
    font-weight: 600; text-align: center; margin: 0 0 8px; letter-spacing: -0.5px;
}
.reader .chapter-sub {
    text-align: center; color: var(--v-muted); font-size: 13px;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 32px;
}
.reader .chapter-body.paragraph-mode { text-align: justify; hyphens: auto; }
.reader .chapter-body.verse-mode .verse { display: block; margin-bottom: 10px; }

.verse { cursor: pointer; transition: background 0.2s ease; border-radius: 4px; padding: 1px 2px; }
.verse:hover { background: rgba(107,63,160,0.06); }
.verse.selected { background: rgba(107,63,160,0.12); }
.verse.bookmarked::before { content: '\f02e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--v-purple); font-size: 0.7em; margin-right: 4px; }
.verse.has-note::after { content: '\f249'; font-family: 'Font Awesome 6 Free'; font-weight: 400; color: var(--v-purple); font-size: 0.7em; margin-left: 4px; opacity: 0.7; }

.verse[data-hl="yellow"] { background: rgba(255,229,138,0.55); }
.verse[data-hl="green"]  { background: rgba(184,230,193,0.55); }
.verse[data-hl="blue"]   { background: rgba(184,212,240,0.55); }
.verse[data-hl="pink"]   { background: rgba(245,198,214,0.55); }
.verse[data-hl="purple"] { background: rgba(214,198,240,0.55); }

.verse-num {
    font-size: 0.72em; font-weight: 600; color: var(--v-purple);
    vertical-align: super; margin-right: 4px; user-select: none;
    line-height: 0;
}
.verse.jesus { color: #C0392B; }
.bible-module.theme-dark .verse.jesus { color: #FF7B6B; }
.bible-module:not(.redletter) .verse.jesus { color: inherit; }

.verse-flash { animation: verseFlash 1.4s ease; }
@keyframes verseFlash {
    0% { background: rgba(255, 220, 120, 0.9); }
    100% { background: transparent; }
}

/* Font size classes */
.bible-module.fs-sm { --reader-font-size: 15px; }
.bible-module.fs-md { --reader-font-size: 18px; }
.bible-module.fs-lg { --reader-font-size: 21px; }
.bible-module.fs-xl { --reader-font-size: 24px; }

/* Skeleton loader */
.reader-loading { padding: 20px 0; }
.skeleton {
    background: linear-gradient(90deg, var(--v-line) 25%, rgba(107,63,160,0.06) 50%, var(--v-line) 75%);
    background-size: 200% 100%; border-radius: 6px; animation: shimmer 1.4s infinite;
    margin-bottom: 12px;
}
.skeleton.title { height: 36px; width: 60%; margin: 0 auto 24px; }
.skeleton.line { height: 16px; }
.skeleton.line.short { width: 70%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Floating nav */
.floating-nav {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; padding: 8px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-radius: 40px; box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--v-line); z-index: 90;
    animation: fadeUp 0.4s ease;
}
.bible-module.theme-dark .floating-nav { background: rgba(34,33,43,0.95); border-color: var(--v-line-2); }
.fnav-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: transparent; border: none; color: var(--v-ink);
    cursor: pointer; font-size: 15px; transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center;
}
.fnav-btn:hover { background: var(--v-cream); }
.fnav-btn.primary { background: var(--v-purple); color: #fff; }
.fnav-btn.primary:hover { background: var(--v-purple-dark); transform: scale(1.08); }
.fnav-btn:active { transform: scale(0.9); }

/* ===== SEARCH RESULTS ===== */
.search-filters { display: flex; gap: 8px; padding: 12px 20px; overflow-x: auto; scrollbar-width: none; }
.search-filters::-webkit-scrollbar { display: none; }
.filter-chip {
    padding: 8px 14px; border-radius: 30px; background: var(--v-white);
    border: 1px solid var(--v-line); color: var(--v-ink-soft); font-size: 13px;
    font-weight: 500; cursor: pointer; white-space: nowrap; font-family: inherit;
    transition: 0.2s;
}
.filter-chip.active { background: var(--v-purple); color: #fff; border-color: var(--v-purple); }
.results-list { padding: 8px 20px 40px; display: flex; flex-direction: column; gap: 10px; }
.result-card {
    background: var(--v-white); border: 1px solid var(--v-line);
    border-radius: 16px; padding: 16px 18px; cursor: pointer;
    transition: 0.2s; animation: fadeUp 0.3s ease backwards;
}
.result-card:hover { border-color: var(--v-purple); transform: translateY(-2px); box-shadow: var(--v-shadow-sm); }
.result-ref {
    font-size: 12px; font-weight: 600; color: var(--v-purple);
    letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 6px;
}
.result-text { font-family: 'Cormorant Garamond', serif; font-size: 17px; line-height: 1.5; color: var(--v-ink); }
.result-text mark { background: rgba(255,229,138,0.6); color: inherit; padding: 0 2px; border-radius: 3px; }
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--v-muted);
}
.empty-state i { font-size: 40px; color: var(--v-purple); opacity: 0.4; margin-bottom: 12px; }
.empty-state h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--v-ink); margin: 8px 0 4px; }

/* ===== SAVED LIST / NOTES ===== */
.saved-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.saved-card {
    background: var(--v-white); border: 1px solid var(--v-line);
    border-radius: 16px; padding: 14px 18px; animation: fadeUp 0.3s ease backwards;
    display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
    transition: 0.2s;
}
.saved-card:hover { border-color: var(--v-purple); transform: translateY(-2px); box-shadow: var(--v-shadow-sm); }
.saved-swatch { width: 4px; align-self: stretch; border-radius: 4px; background: var(--v-purple); flex-shrink: 0; }
.saved-body { flex: 1; }
.saved-ref { font-size: 12px; color: var(--v-purple); font-weight: 600; letter-spacing: 0.4px; }
.saved-text { font-family: 'Cormorant Garamond', serif; font-size: 16px; line-height: 1.5; color: var(--v-ink); margin: 4px 0; }
.saved-note {
    background: var(--v-cream); padding: 8px 12px; border-radius: 10px;
    font-size: 13px; color: var(--v-ink-soft); margin-top: 6px;
    border-left: 3px solid var(--v-purple);
}
.saved-delete {
    background: transparent; border: none; color: var(--v-muted); cursor: pointer;
    padding: 6px; border-radius: 8px; transition: 0.2s;
}
.saved-delete:hover { background: rgba(220,50,50,0.1); color: #DC3232; }

/* ===== PLANS ===== */
.plans-grid { display: grid; gap: 14px; padding-bottom: 20px; }
.plan-card {
    background: var(--v-white); border: 1px solid var(--v-line);
    border-radius: var(--v-radius); padding: 20px; cursor: pointer;
    transition: all 0.25s ease; animation: fadeUp 0.35s ease backwards;
    position: relative; overflow: hidden;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--v-shadow); border-color: rgba(107,63,160,0.3); }
.plan-icon {
    width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(135deg, var(--v-purple), var(--v-purple-soft));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(107,63,160,0.25);
}
.plan-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; margin: 0 0 4px; color: var(--v-ink); }
.plan-card p { color: var(--v-muted); font-size: 14px; margin: 0 0 14px; line-height: 1.4; }
.plan-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--v-muted); }
.plan-meta .plan-progress { font-weight: 600; color: var(--v-purple); }
.plan-bar { height: 5px; background: var(--v-line); border-radius: 5px; overflow: hidden; margin-top: 10px; }
.plan-bar-fill { height: 100%; background: linear-gradient(90deg, var(--v-purple), var(--v-purple-soft)); width: 0%; transition: width 0.6s ease; }
.plan-badge { position: absolute; top: 14px; right: 14px; font-size: 11px; padding: 4px 10px; border-radius: 20px; background: rgba(255,179,71,0.15); color: #C5811F; font-weight: 600; }

/* ===== VERSE SHEET ===== */
.sheet-backdrop {
    position: fixed; inset: 0; background: rgba(20,19,26,0.5);
    backdrop-filter: blur(4px); z-index: 200;
    animation: fadeIn 0.25s ease;
}
.verse-sheet {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 210;
    background: var(--v-white); border-radius: 24px 24px 0 0;
    padding: 12px 20px 32px; max-height: 85vh; overflow-y: auto;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.15);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sheet-handle { width: 40px; height: 4px; background: var(--v-line-2); border-radius: 4px; margin: 4px auto 16px; }
.sheet-verse {
    background: var(--v-cream); padding: 14px 16px; border-radius: 14px;
    font-family: 'Cormorant Garamond', serif; font-size: 16px; line-height: 1.5;
    color: var(--v-ink); margin-bottom: 16px; border-left: 3px solid var(--v-purple);
}
.sheet-verse .ref { display: block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--v-purple); letter-spacing: 0.5px; margin-bottom: 4px; text-transform: uppercase; }

.highlight-row { display: flex; justify-content: space-around; gap: 8px; margin-bottom: 20px; padding: 8px 0; }
.hl-swatch {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--c); border: 2px solid var(--v-line);
    cursor: pointer; transition: all 0.2s ease;
}
.hl-swatch:hover { transform: scale(1.12); border-color: var(--v-purple); }
.hl-swatch:active { transform: scale(0.9); }
.hl-swatch.clear { background: var(--v-white); color: var(--v-muted); display: flex; align-items: center; justify-content: center; }

.sheet-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sheet-action {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 14px 8px; border-radius: 14px; background: var(--v-cream);
    border: 1px solid var(--v-line); color: var(--v-ink); cursor: pointer;
    font-family: inherit; font-size: 12px; font-weight: 500;
    transition: all 0.2s ease;
}
.sheet-action:hover { background: var(--v-purple); color: #fff; border-color: var(--v-purple); transform: translateY(-2px); }
.sheet-action i { font-size: 18px; color: var(--v-purple); transition: color 0.2s; }
.sheet-action:hover i { color: #fff; }

.sheet-note { margin-top: 16px; animation: fadeUp 0.25s ease; }
.sheet-note textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--v-line); background: var(--v-cream);
    font-family: inherit; font-size: 14px; color: var(--v-ink);
    resize: vertical; outline: none; transition: border-color 0.2s;
}
.sheet-note textarea:focus { border-color: var(--v-purple); box-shadow: 0 0 0 3px rgba(107,63,160,0.1); }
.sheet-note-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.btn-ghost, .btn-primary {
    padding: 10px 18px; border-radius: 12px; font-family: inherit;
    font-size: 14px; font-weight: 500; cursor: pointer; border: none;
    transition: 0.2s;
}
.btn-ghost { background: var(--v-cream); color: var(--v-ink); border: 1px solid var(--v-line); }
.btn-primary { background: var(--v-purple); color: #fff; }
.btn-primary:hover { background: var(--v-purple-dark); }

/* Settings sheet */
.settings-sheet h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; margin: 0 0 16px; color: var(--v-ink); }
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--v-line); }
.setting-row:last-child { border-bottom: none; }
.setting-row label { font-size: 14px; font-weight: 500; color: var(--v-ink); }
.pill-group { display: flex; gap: 4px; background: var(--v-cream); padding: 4px; border-radius: 30px; }
.pill-group button {
    padding: 6px 14px; border-radius: 24px; background: transparent;
    border: none; color: var(--v-ink-soft); font-family: inherit;
    font-size: 13px; font-weight: 500; cursor: pointer; transition: 0.2s;
}
.pill-group button.active { background: var(--v-purple); color: #fff; box-shadow: 0 4px 10px rgba(107,63,160,0.25); }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--v-line-2); border-radius: 26px; cursor: pointer; transition: 0.25s; }
.slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.25s; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.switch input:checked + .slider { background: var(--v-purple); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* Toast */
.toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--v-ink); color: #fff; padding: 12px 22px; border-radius: 30px;
    font-size: 14px; font-weight: 500; z-index: 500; opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { margin-right: 8px; color: #FFB347; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Staggered book cards */
.book-card:nth-child(1) { animation-delay: 0.02s; }
.book-card:nth-child(2) { animation-delay: 0.04s; }
.book-card:nth-child(3) { animation-delay: 0.06s; }
.book-card:nth-child(4) { animation-delay: 0.08s; }
.book-card:nth-child(5) { animation-delay: 0.10s; }
.book-card:nth-child(6) { animation-delay: 0.12s; }
.book-card:nth-child(7) { animation-delay: 0.14s; }
.book-card:nth-child(8) { animation-delay: 0.16s; }
.book-card:nth-child(n+9) { animation-delay: 0.18s; }

.chapter-cell:nth-child(1) { animation-delay: 0.01s; }
.chapter-cell:nth-child(2) { animation-delay: 0.02s; }
.chapter-cell:nth-child(3) { animation-delay: 0.03s; }
.chapter-cell:nth-child(4) { animation-delay: 0.04s; }
.chapter-cell:nth-child(5) { animation-delay: 0.05s; }
.chapter-cell:nth-child(n+6) { animation-delay: 0.06s; }

.result-card:nth-child(n) { animation-delay: calc(0.03s * var(--i, 0)); }

/* Focus states */
.bible-module button:focus-visible,
.bible-module input:focus-visible {
    outline: 2px solid var(--v-purple); outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .bible-hero { padding: 28px 32px 32px; }
    .section { padding: 22px 32px 4px; }
    .continue-card { width: calc(100% - 64px); margin: 0 32px; }
    .testament-tabs { padding: 24px 32px 4px; }
    .books-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .chapters-grid { padding: 28px 32px; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
    .chapter-picker-header { padding: 28px 32px; }
    .verse-sheet { max-width: 520px; left: 50%; transform: translateX(-50%); border-radius: 24px; bottom: 24px; }
    @keyframes slideUp { from { transform: translateX(-50%) translateY(100%); } to { transform: translateX(-50%) translateY(0); } }
}
@media (min-width: 1024px) {
    .books-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .reader { padding: 48px 32px 160px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
