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

:root {
    --bg-deep: #0a0a12;
    --bg-surface: #111122;
    --bg-card: #161628;
    --bg-hover: #1c1c38;
    --sacred-deep: #1a1033;
    --gold-deep: #C9A84C;
    --gold-light: #e8c96a;
    --gold-muted: rgba(201,168,76,0.3);
    --gold-glow: rgba(201,168,76,0.15);
    --violet-deep: #2d1b69;
    --violet-glow: #7c3aed;
    --text-light: #e8e4dc;
    --text-white: #FFFFFF;
    --text-muted: #8888AA;
    --text-muted2: rgba(232,228,220,0.55);
    --danger: #e74c3c;
    --success: #2ecc71;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Cinzel', serif;
    --font-accent: 'Playfair Display', serif;
    --font-reading: 'Lora', 'Playfair Display', Georgia, serif;
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-gold: 0 0 20px rgba(201,168,76,0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--gold-deep); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* ===== Ambient Background ===== */
.ambient-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(125,58,237,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(201,168,76,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(26,16,51,0.4) 0%, transparent 80%);
}

/* ===== Navigation ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    background: rgba(10,10,18,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.08);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-display); color: var(--gold-light);
    font-size: 1.3rem; font-weight: 600; letter-spacing: 1px;
    text-decoration: none;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-link-fv { color: var(--gold-deep) !important; font-weight: 600 !important; }

/* Nav Controls */
.nav-controls { display: flex; align-items: center; gap: 10px; }
.lang-select {
    background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
    color: var(--gold-light); padding: 6px 10px; border-radius: var(--radius-sm);
    font-size: 0.8rem; cursor: pointer; outline: none;
    transition: var(--transition); max-width: 130px;
}
.lang-select:hover, .lang-select:focus {
    border-color: var(--gold-deep); background: rgba(201,168,76,0.15);
}
.auth-badge {
    display: flex; align-items: center; gap: 6px;
    background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2);
    color: var(--gold-light); padding: 6px 14px; border-radius: 20px;
    font-size: 0.8rem; cursor: pointer; transition: var(--transition);
    font-family: var(--font-body);
}
.auth-badge:hover { background: rgba(201,168,76,0.2); border-color: var(--gold-deep); }
.auth-badge.logged-in { background: rgba(46,204,113,0.15); border-color: rgba(46,204,113,0.3); color: var(--success); }

/* Hamburger */
.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
    width: 24px; height: 2px; background: var(--gold-light);
    transition: var(--transition); display: block;
}

/* Mobile Menu */
.mobile-menu {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(10,10,18,0.96); backdrop-filter: blur(16px);
    padding: 24px; z-index: 99; flex-direction: column; gap: 16px;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    color: var(--text-light); font-size: 1rem; padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05); text-decoration: none;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block; padding: 14px 32px;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold-light));
    color: #0a0a12; font-weight: 600; font-size: 0.95rem;
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition); text-decoration: none;
    font-family: var(--font-body); letter-spacing: 0.3px;
}
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 4px 20px rgba(201,168,76,0.4);
    color: #0a0a12;
}
.btn-secondary {
    display: inline-block; padding: 12px 28px;
    background: transparent; color: var(--gold-light);
    border: 1px solid rgba(201,168,76,0.3); border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition); text-decoration: none;
    font-family: var(--font-body); font-size: 0.9rem;
}
.btn-secondary:hover {
    background: rgba(201,168,76,0.1); border-color: var(--gold-deep);
    color: var(--gold-light);
}
.btn-small {
    display: inline-block; padding: 8px 16px;
    background: rgba(201,168,76,0.1); color: var(--gold-light);
    border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition); font-size: 0.8rem;
    font-family: var(--font-body);
}
.btn-small:hover { background: rgba(201,168,76,0.2); border-color: var(--gold-deep); }
.btn-icon {
    background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.15);
    color: var(--gold-light); width: 36px; height: 36px;
    border-radius: var(--radius-sm); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.btn-icon:hover { background: rgba(201,168,76,0.25); }

/* ===== Hero Section ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 60px;
    overflow: hidden;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-eyebrow {
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase; color: var(--gold-deep);
    margin-bottom: 16px;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--gold-light); font-weight: 700; line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(201,168,76,0.2);
}
.hero-subtitle {
    font-family: var(--font-accent); font-size: 1.3rem;
    color: var(--text-muted); font-style: italic; margin-bottom: 20px;
}
.hero-description {
    font-size: 1.05rem; color: var(--text-muted2);
    max-width: 600px; margin: 0 auto 28px; line-height: 1.8;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-glow {
    position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(201,168,76,0.08), transparent 70%);
    pointer-events: none;
}
.hero-stats {
    display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
    margin-top: 24px;
}
.hero-stat { font-size: 0.85rem; color: var(--text-muted); }
.hero-stat-num { color: var(--gold-deep); font-weight: 700; font-size: 1.1rem; margin-right: 4px; }

/* ===== Smart Verse Finder ===== */
.verse-finder {
    margin: 32px auto 0; max-width: 700px;
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius); padding: 24px; text-align: left;
}
.verse-result-tradition-icon { font-size: 1.2rem; margin-right: 6px; }
.verse-result-common-thread {
    margin-top: 20px; padding: 20px; background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius);
    text-align: center;
}
.verse-result-common-thread h4 {
    font-family: var(--font-display); color: var(--gold-light);
    margin-bottom: 10px; font-size: 1rem;
}
.verse-result-common-thread p {
    color: var(--text-muted); font-size: 0.9rem; line-height: 1.7;
    font-style: italic;
}
/* Upgrade prompt modal */
.upgrade-overlay {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 24px;
}
.upgrade-overlay.active { display: flex; }
.upgrade-modal {
    background: var(--bg-surface); border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius); padding: 36px; max-width: 480px; width: 100%;
    text-align: center; position: relative;
}
.upgrade-modal-close {
    position: absolute; top: 12px; right: 16px; background: none;
    border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
}
.upgrade-modal h2 {
    font-family: var(--font-display); color: var(--gold-light);
    font-size: 1.3rem; margin-bottom: 12px;
}
.upgrade-modal p {
    color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.7;
}
.upgrade-options { display: flex; flex-direction: column; gap: 12px; }
.upgrade-option {
    padding: 16px; border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition); text-decoration: none;
    display: block; background: rgba(201,168,76,0.04);
}
.upgrade-option:hover {
    border-color: var(--gold-deep); background: rgba(201,168,76,0.1);
}
.upgrade-option-price {
    font-family: var(--font-display); font-size: 1.3rem;
    color: var(--gold-light); margin-bottom: 4px;
}
.upgrade-option-label { font-size: 0.85rem; color: var(--text-muted); }
.verse-finder-input-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.verse-finder-input {
    flex: 1; min-width: 200px; padding: 14px 18px;
    background: var(--bg-surface); border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius-sm); color: var(--text-light);
    font-size: 0.95rem; outline: none; transition: var(--transition);
    font-family: var(--font-body);
}
.verse-finder-input:focus { border-color: var(--gold-deep); }
.verse-finder-input::placeholder { color: var(--text-muted); }
.verse-finder-faith {
    padding: 12px 14px; background: var(--bg-surface);
    border: 1px solid rgba(201,168,76,0.15); border-radius: var(--radius-sm);
    color: var(--gold-light); font-size: 0.85rem; cursor: pointer; outline: none;
    font-family: var(--font-body);
}
.verse-finder-btn { white-space: nowrap; padding: 14px 24px; }
.verse-finder-examples {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.verse-example {
    padding: 6px 14px; background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.1); border-radius: 20px;
    color: var(--text-muted); font-size: 0.78rem; cursor: pointer;
    transition: var(--transition);
}
.verse-example:hover { background: rgba(201,168,76,0.15); color: var(--gold-light); border-color: var(--gold-deep); }

/* Verse Finder Results */
.verse-finder-results {
    margin-top: 20px; max-width: 700px; margin-left: auto; margin-right: auto;
}
.verse-result-card {
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.25);
    border-radius: var(--radius); padding: 28px; margin-bottom: 16px;
    text-align: left;
}
.verse-result-card.primary { border-color: var(--gold-deep); box-shadow: var(--shadow-gold); }
.verse-result-text {
    font-family: var(--font-reading); font-size: 1.2rem;
    color: var(--gold-light); line-height: 1.8; margin-bottom: 12px;
    font-style: italic;
}
.verse-result-ref { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.verse-result-why { color: var(--text-muted2); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.verse-result-tradition { display: inline-block; padding: 4px 12px; background: rgba(201,168,76,0.1); border-radius: 12px; font-size: 0.75rem; color: var(--gold-deep); margin-bottom: 12px; }
.verse-result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.verse-finder-loading {
    text-align: center; padding: 40px; color: var(--text-muted);
}
.verse-finder-loading .spinner {
    display: inline-block; width: 32px; height: 32px; border: 3px solid rgba(201,168,76,0.2);
    border-top-color: var(--gold-deep); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Sections ===== */
.section { position: relative; z-index: 1; padding: 80px 0; }
.section-dark { background: rgba(0,0,0,0.2); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title {
    font-family: var(--font-display); font-size: 2rem;
    color: var(--gold-light); text-align: center; margin-bottom: 8px;
}
.section-subtitle {
    text-align: center; color: var(--text-muted); font-size: 1rem;
    margin-bottom: 40px;
}

/* ===== Library ===== */
.library-toolbar {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
    margin-bottom: 32px;
}
.library-search-wrap {
    position: relative; flex: 1; min-width: 250px;
}
.library-search-wrap .search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}
.library-search {
    width: 100%; padding: 12px 16px 12px 42px;
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius-sm); color: var(--text-light);
    font-size: 0.9rem; outline: none; transition: var(--transition);
    font-family: var(--font-body);
}
.library-search:focus { border-color: var(--gold-deep); }
.library-search::placeholder { color: var(--text-muted); }
.library-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
    padding: 8px 16px; border-radius: 20px; font-size: 0.78rem;
    background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.12);
    color: var(--text-muted); cursor: pointer; transition: var(--transition);
    font-family: var(--font-body); white-space: nowrap;
}
.filter-pill:hover { background: rgba(201,168,76,0.12); color: var(--gold-light); }
.filter-pill.active { background: rgba(201,168,76,0.2); border-color: var(--gold-deep); color: var(--gold-light); }
.library-sort { display: flex; align-items: center; gap: 8px; }
.library-sort label { color: var(--text-muted); font-size: 0.8rem; }
.sort-select {
    padding: 8px 12px; background: var(--bg-card);
    border: 1px solid rgba(201,168,76,0.15); border-radius: var(--radius-sm);
    color: var(--gold-light); font-size: 0.8rem; cursor: pointer; outline: none;
    font-family: var(--font-body);
}

/* Library Grid */
.library-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.library-tradition-group { margin-bottom: 40px; }
.library-tradition-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.library-tradition-icon { font-size: 1.4rem; }
.library-tradition-name {
    font-family: var(--font-display); font-size: 1.2rem;
    color: var(--gold-light);
}

/* Text Card */
.text-card {
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius); padding: 0;
    transition: var(--transition); cursor: default;
    position: relative; overflow: hidden;
}
.text-card:hover {
    border-color: rgba(201,168,76,0.3); transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}
.text-card:hover .book-cover-border { border-color: rgba(201,168,76,0.5); }
.text-card:hover .btn-small { background: rgba(201,168,76,0.2); border-color: var(--gold-deep); }
.text-card-cover {
    width: 100%; aspect-ratio: 3/2; overflow: hidden; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.book-cover-design {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center; padding: 16px;
}
.book-cover-border {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    border: 1px solid rgba(201,168,76,0.25); border-radius: 4px;
    padding: 16px 12px;
}
.book-cover-icon { font-size: 2.2rem; margin-bottom: 2px; }
.book-cover-title {
    font-family: var(--font-display); font-size: 0.85rem;
    color: #E8E4D9; text-align: center; letter-spacing: 0.08em;
    text-transform: uppercase; line-height: 1.3;
}
.book-cover-line {
    width: 40px; height: 1px; background: rgba(201,168,76,0.5);
    margin: 4px 0;
}
.book-cover-sub {
    font-family: var(--font-body); font-size: 0.65rem;
    color: rgba(201,168,76,0.7); text-align: center;
    letter-spacing: 0.04em; line-height: 1.3;
}
.text-card-body { padding: 20px; }
.text-card-icon { font-size: 2rem; margin-bottom: 10px; display: none; }
.text-card-title {
    font-family: var(--font-display); font-size: 1.05rem;
    color: var(--text-white); margin-bottom: 4px;
}
.text-card-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.text-card-tradition { font-size: 0.75rem; color: var(--gold-deep); margin-bottom: 10px; }
.text-card-desc { font-size: 0.82rem; color: var(--text-muted2); line-height: 1.6; margin-bottom: 16px; }
.text-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.text-card-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    padding: 3px 10px; border-radius: 10px; font-size: 0.65rem;
    font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.text-card-badge.preview { background: rgba(201,168,76,0.15); color: var(--gold-deep); }
.text-card-badge.member { background: rgba(125,58,237,0.2); color: var(--violet-glow); }
.text-card-progress {
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.text-card-progress-bar {
    height: 3px; background: rgba(201,168,76,0.1); border-radius: 2px; overflow: hidden;
}
.text-card-progress-fill { height: 100%; background: var(--gold-deep); border-radius: 2px; transition: width 0.5s ease; }
.text-card-progress-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* ===== Reading Section ===== */
.reading-section { padding: 80px 0 0; }
.reader-layout {
    display: grid; grid-template-columns: 280px 1fr 260px;
    max-width: 1400px; margin: 0 auto;
    min-height: calc(100vh - 200px);
}

/* Sidebars */
.reader-sidebar {
    background: var(--bg-card); border-right: 1px solid rgba(201,168,76,0.08);
    padding: 20px; overflow-y: auto; max-height: calc(100vh - 80px);
    position: sticky; top: 70px;
}
.reader-sidebar-right {
    border-right: none; border-left: 1px solid rgba(201,168,76,0.08);
}
.sidebar-toggle {
    display: none; background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.15); color: var(--gold-light);
    padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer;
    font-size: 1rem; margin-bottom: 12px;
}
.sidebar-content { display: block; }
.sidebar-header { margin-bottom: 16px; }
.sidebar-icon { font-size: 1.5rem; margin-right: 8px; }
.sidebar-title { font-family: var(--font-display); font-size: 1rem; color: var(--gold-light); display: inline; }
.sidebar-search { margin-bottom: 16px; }
.sidebar-search-input {
    width: 100%; padding: 8px 12px; background: var(--bg-surface);
    border: 1px solid rgba(201,168,76,0.1); border-radius: var(--radius-sm);
    color: var(--text-light); font-size: 0.8rem; outline: none;
    font-family: var(--font-body);
}
.sidebar-search-input:focus { border-color: var(--gold-deep); }
.sidebar-nav { margin-bottom: 20px; max-height: calc(100vh - 340px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(201,168,76,0.3) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }
.chapter-tree-toggle.current-book { color: var(--gold-light); font-weight: 600; }
.chapter-tree-direct.current-book { color: var(--gold-light); font-weight: 600; }
.sidebar-empty { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

/* Chapter tree */
.chapter-tree-book {
    margin-bottom: 4px;
}
.chapter-tree-toggle {
    display: flex; align-items: center; gap: 6px; width: 100%;
    background: none; border: none; color: var(--text-light);
    font-size: 0.82rem; padding: 6px 8px; cursor: pointer;
    border-radius: 4px; transition: var(--transition); text-align: left;
    font-family: var(--font-body);
}
.chapter-tree-toggle:hover { background: rgba(201,168,76,0.08); }
.chapter-tree-toggle .chevron { font-size: 0.7rem; color: var(--gold-deep); transition: transform 0.2s; }
.chapter-tree-toggle.open .chevron { transform: rotate(90deg); }
.chapter-tree-items { display: none; padding-left: 20px; }
.chapter-tree-items.open { display: block; }
.chapter-tree-item {
    display: block; width: 100%; background: none; border: none;
    color: var(--text-muted); font-size: 0.78rem; padding: 4px 8px;
    cursor: pointer; border-radius: 4px; transition: var(--transition);
    text-align: left; font-family: var(--font-body);
}
.chapter-tree-item:hover { background: rgba(201,168,76,0.08); color: var(--gold-light); }
.chapter-tree-item.active { background: rgba(201,168,76,0.15); color: var(--gold-light); }

/* Sidebar progress bar */
.sidebar-progress-bar {
    height: 3px; background: rgba(201,168,76,0.1); border-radius: 2px;
    overflow: hidden; margin: 16px 0;
}
.sidebar-progress-fill { height: 100%; background: var(--gold-deep); border-radius: 2px; transition: width 0.5s; }

/* Sidebar bookmarks */
.sidebar-bookmarks h4 { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 8px; }

/* Sidebar actions */
.sidebar-verse-ref h4 { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 6px; }
.sidebar-verse-ref p { font-size: 0.9rem; color: var(--text-light); }
.sidebar-actions { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.sidebar-action-btn {
    width: 100%; padding: 10px 14px; background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.12); border-radius: var(--radius-sm);
    color: var(--gold-light); font-size: 0.8rem; cursor: pointer;
    transition: var(--transition); text-align: left;
    font-family: var(--font-body);
}
.sidebar-action-btn:hover { background: rgba(201,168,76,0.18); border-color: var(--gold-deep); }

/* Sidebar journal */
.sidebar-journal { margin-top: 20px; }
.sidebar-journal h4 { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 8px; }
.journal-textarea {
    width: 100%; height: 80px; padding: 10px; background: var(--bg-surface);
    border: 1px solid rgba(201,168,76,0.1); border-radius: var(--radius-sm);
    color: var(--text-light); font-size: 0.82rem; resize: vertical; outline: none;
    font-family: var(--font-body); margin-bottom: 8px;
}
.journal-textarea:focus { border-color: var(--gold-deep); }

/* Main Reading Area */
.reader-main {
    padding: 40px 60px; min-height: calc(100vh - 200px);
    overflow-y: auto;
}
.reader-placeholder {
    text-align: center; padding: 80px 20px; max-width: 500px; margin: 0 auto;
}
.reader-placeholder-icon { font-size: 4rem; margin-bottom: 20px; opacity: 0.6; }
.reader-placeholder h2 {
    font-family: var(--font-display); color: var(--gold-light);
    font-size: 1.5rem; margin-bottom: 16px;
}
.reader-placeholder p { color: var(--text-muted); line-height: 1.8; margin-bottom: 8px; }
.reader-placeholder-sub { font-size: 0.85rem; color: var(--text-muted2); }
.reader-chapter-title {
    font-family: var(--font-display); font-size: 1.6rem;
    color: var(--gold-light); text-align: center; margin-bottom: 40px;
    padding-bottom: 20px; border-bottom: 1px solid rgba(201,168,76,0.1);
}

/* Verses */
.verse-line {
    display: flex; gap: 16px; padding: 8px 12px; margin-bottom: 2px;
    border-radius: var(--radius-sm); transition: background 0.2s;
    cursor: pointer;
}
.verse-line:hover { background: rgba(201,168,76,0.04); }
.verse-line.active { background: rgba(201,168,76,0.08); }
.verse-line.highlighted { background: rgba(201,168,76,0.12); }
.verse-num {
    font-size: 0.75rem; color: var(--gold-deep); font-weight: 600;
    min-width: 28px; padding-top: 4px; text-align: right;
    opacity: 0.7; font-family: var(--font-body);
}
.verse-text {
    font-family: var(--font-reading); font-size: 1.1rem;
    line-height: 1.9; color: var(--text-light); flex: 1;
}
.verse-text.tts-active { color: var(--gold-light); }

/* Reading themes — Dark navy is default */
.reader-main { background: #0D0F2B; }
.verse-text { color: #E8E4D9; }
.verse-num { color: var(--gold-deep); }
.reader-chapter-title { color: var(--gold-light); }
.verse-line:hover { background: rgba(201,168,76,0.06); }
.verse-line.active { background: rgba(201,168,76,0.10); }
.verse-line.highlighted { background: rgba(201,168,76,0.15); }

body.theme-light .reader-main { background: #faf8f2; }
body.theme-light .verse-text { color: #2a2a2a; }
body.theme-light .verse-num { color: #8B7635; }
body.theme-light .reader-chapter-title { color: #8B7635; }
body.theme-light .verse-line:hover { background: rgba(139,118,53,0.06); }
body.theme-light .verse-line.active { background: rgba(139,118,53,0.10); }
body.theme-light .verse-line.highlighted { background: rgba(139,118,53,0.15); }

body.theme-sepia .reader-main { background: #f4ecd8; }
body.theme-sepia .verse-text { color: #3a2a1a; }
body.theme-sepia .verse-num { color: #8B6914; }
body.theme-sepia .reader-chapter-title { color: #8B6914; }
body.theme-sepia .verse-line:hover { background: rgba(139,105,20,0.06); }
body.theme-sepia .verse-line.active { background: rgba(139,105,20,0.10); }
body.theme-sepia .verse-line.highlighted { background: rgba(139,105,20,0.15); }

/* Floating reading controls bar */
.reader-controls-bar {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(10,10,18,0.95); backdrop-filter: blur(12px);
    border: 1px solid rgba(201,168,76,0.15); border-radius: 40px;
    padding: 8px 20px; display: flex; align-items: center; gap: 12px;
    z-index: 50; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.reader-position {
    font-size: 0.72rem; color: var(--text-muted); white-space: nowrap;
    padding: 0 4px; max-width: 180px; overflow: hidden; text-overflow: ellipsis;
}
.reader-ctrl {
    padding: 8px 14px; background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.12); border-radius: 20px;
    color: var(--text-light); font-size: 0.78rem; cursor: pointer;
    transition: var(--transition); white-space: nowrap;
    font-family: var(--font-body);
}
.reader-ctrl:hover { background: rgba(201,168,76,0.2); color: var(--gold-light); }
.reader-ctrl.gold { background: rgba(201,168,76,0.2); color: var(--gold-light); border-color: var(--gold-deep); }
.theme-switcher { display: flex; gap: 4px; }
.theme-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.1);
    cursor: pointer; font-size: 0.85rem; display: flex;
    align-items: center; justify-content: center; transition: var(--transition);
}
.theme-btn.active { background: rgba(201,168,76,0.2); border-color: var(--gold-deep); }
.theme-btn:hover { background: rgba(201,168,76,0.15); }

/* ===== Listen Section ===== */
.listen-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; }
.listen-tab {
    padding: 10px 24px; border-radius: 20px;
    background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.12);
    color: var(--text-muted); cursor: pointer; transition: var(--transition);
    font-size: 0.85rem; font-family: var(--font-body);
}
.listen-tab:hover { background: rgba(201,168,76,0.12); }
.listen-tab.active { background: rgba(201,168,76,0.2); border-color: var(--gold-deep); color: var(--gold-light); }

.listen-player-full {
    max-width: 700px; margin: 0 auto 40px;
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius); padding: 32px;
}
.listen-now-playing { text-align: center; margin-bottom: 16px; }
.listen-label { font-size: 0.8rem; color: var(--text-muted); }
.listen-title-text { color: var(--gold-light); font-weight: 600; margin-left: 6px; }

.listen-verse-display {
    text-align: center; padding: 30px 20px; margin-bottom: 24px;
    min-height: 120px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.listen-verse-text {
    font-family: var(--font-reading); font-size: 1.4rem;
    color: var(--text-light); line-height: 1.8; font-style: italic;
    max-width: 600px;
}
.listen-verse-ref { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; }

.listen-controls-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.listen-ctrl {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.15);
    color: var(--gold-light); cursor: pointer; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.listen-ctrl:hover { background: rgba(201,168,76,0.25); }
.listen-play-btn {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold-light));
    border: none; color: #0a0a12; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.listen-play-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(201,168,76,0.4); }

.listen-progress-row { margin-bottom: 20px; }
.listen-bar-full {
    height: 4px; background: rgba(201,168,76,0.1); border-radius: 2px;
    overflow: hidden; cursor: pointer;
}
.listen-fill { height: 100%; background: var(--gold-deep); border-radius: 2px; width: 0%; transition: width 0.3s; }

.listen-options-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.listen-option-group { text-align: center; }
.listen-option-group label { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.speed-btns { display: flex; gap: 4px; }
.speed-btn {
    padding: 6px 12px; border-radius: 14px; font-size: 0.75rem;
    background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.1);
    color: var(--text-muted); cursor: pointer; transition: var(--transition);
    font-family: var(--font-body);
}
.speed-btn:hover { background: rgba(201,168,76,0.12); }
.speed-btn.active { background: rgba(201,168,76,0.2); border-color: var(--gold-deep); color: var(--gold-light); }
.voice-select, .sleep-select, .ambient-select {
    padding: 6px 12px; background: var(--bg-surface);
    border: 1px solid rgba(201,168,76,0.12); border-radius: var(--radius-sm);
    color: var(--gold-light); font-size: 0.78rem; cursor: pointer; outline: none;
    font-family: var(--font-body);
}

.listen-placeholder {
    text-align: center; padding: 20px; color: var(--text-muted);
    font-size: 0.9rem; line-height: 1.7;
}
.listen-note { font-size: 0.8rem; color: var(--text-muted2); margin-top: 8px; }

/* Read Along Panel */
.listen-readalong-panel {
    max-height: 400px; overflow-y: auto; padding: 16px;
    border: 1px solid rgba(201,168,76,0.1); border-radius: var(--radius);
    background: rgba(10,10,18,0.5); margin-bottom: 20px;
}
.listen-readalong-panel::-webkit-scrollbar { width: 6px; }
.listen-readalong-panel::-webkit-scrollbar-track { background: transparent; }
.listen-readalong-panel::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }
.readalong-verse {
    display: flex; gap: 12px; padding: 10px 12px;
    border-radius: 8px; cursor: pointer; transition: background 0.3s;
    margin-bottom: 4px; font-family: var(--font-reading); line-height: 1.7;
}
.readalong-verse:hover { background: rgba(201,168,76,0.05); }
.readalong-verse.highlighted {
    background: rgba(201,168,76,0.12); border-left: 3px solid var(--gold-deep);
}
.readalong-num {
    color: var(--gold-deep); font-size: 0.75rem; font-weight: 600;
    min-width: 28px; padding-top: 3px; text-align: right; flex-shrink: 0;
}
.readalong-text { color: var(--text-white); font-size: 0.95rem; }
.readalong-verse.highlighted .readalong-text { color: #fff; }

.listen-samples { margin-top: 40px; }
.listen-samples-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-light); text-align: center; margin-bottom: 20px; }
.listen-samples-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.listen-sample-card {
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius); padding: 20px; transition: var(--transition);
    cursor: pointer;
}
.listen-sample-card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-2px); }
.listen-sample-icon { font-size: 1.5rem; margin-bottom: 8px; }
.listen-sample-title { font-family: var(--font-display); font-size: 0.9rem; color: var(--text-white); margin-bottom: 4px; }
.listen-sample-tradition { font-size: 0.75rem; color: var(--gold-deep); }
.listen-sample-verse { font-family: var(--font-reading); font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; font-style: italic; line-height: 1.5; }

/* ===== Progress Section ===== */
.progress-section { margin-bottom: 48px; }
.progress-section-title {
    font-family: var(--font-display); font-size: 1.2rem;
    color: var(--gold-light); margin-bottom: 20px;
}
.progress-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 48px;
}
.progress-stat-card {
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius); padding: 24px; text-align: center;
}
.progress-stat-num {
    font-family: var(--font-display); font-size: 2rem;
    color: var(--gold-deep); margin-bottom: 4px;
}
.progress-stat-label { font-size: 0.8rem; color: var(--text-muted); }
.progress-empty { color: var(--text-muted); font-size: 0.9rem; text-align: center; padding: 20px; }

/* Continue reading grid */
.continue-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.continue-card {
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius); padding: 20px; transition: var(--transition);
}
.continue-card:hover { border-color: rgba(201,168,76,0.25); }
.continue-card-title { font-family: var(--font-display); font-size: 0.95rem; color: var(--text-white); margin-bottom: 4px; }
.continue-card-position { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.continue-card-bar { height: 3px; background: rgba(201,168,76,0.1); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.continue-card-fill { height: 100%; background: var(--gold-deep); border-radius: 2px; }
.continue-card-pct { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 10px; }

/* Reading Streak */
.streak-display {
    text-align: center; margin-bottom: 20px;
}
.streak-number {
    font-family: var(--font-display); font-size: 4rem;
    color: var(--gold-deep); line-height: 1;
}
.streak-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }
.streak-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.streak-badge {
    padding: 6px 14px; border-radius: 16px; font-size: 0.75rem;
    background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.1);
    color: var(--text-muted);
}
.streak-badge.earned { background: rgba(201,168,76,0.2); border-color: var(--gold-deep); color: var(--gold-light); }

/* Heatmap */
.streak-heatmap {
    display: grid; grid-template-columns: repeat(52, 1fr); gap: 2px;
    max-width: 700px; margin: 0 auto;
}
.heatmap-cell {
    aspect-ratio: 1; border-radius: 2px;
    background: rgba(201,168,76,0.06);
}
.heatmap-cell.level-1 { background: rgba(201,168,76,0.15); }
.heatmap-cell.level-2 { background: rgba(201,168,76,0.3); }
.heatmap-cell.level-3 { background: rgba(201,168,76,0.5); }
.heatmap-cell.level-4 { background: var(--gold-deep); }

/* Bookmarks list */
.bookmarks-toolbar { display: flex; gap: 12px; margin-bottom: 16px; }
.bookmarks-filter {
    padding: 8px 14px; background: var(--bg-card);
    border: 1px solid rgba(201,168,76,0.12); border-radius: var(--radius-sm);
    color: var(--gold-light); font-size: 0.8rem; cursor: pointer; outline: none;
    font-family: var(--font-body);
}
.bookmarks-list { display: flex; flex-direction: column; gap: 10px; }
.bookmark-card {
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.08);
    border-radius: var(--radius-sm); padding: 16px; display: flex;
    justify-content: space-between; align-items: flex-start; gap: 12px;
}
.bookmark-card-text { flex: 1; }
.bookmark-card-verse {
    font-family: var(--font-reading); font-size: 0.9rem;
    color: var(--text-light); font-style: italic; line-height: 1.6; margin-bottom: 6px;
}
.bookmark-card-ref { font-size: 0.78rem; color: var(--gold-deep); }
.bookmark-card-date { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.bookmark-card-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Journal */
.journal-toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.journal-search {
    flex: 1; min-width: 200px; padding: 8px 14px;
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.12);
    border-radius: var(--radius-sm); color: var(--text-light);
    font-size: 0.85rem; outline: none; font-family: var(--font-body);
}
.journal-search:focus { border-color: var(--gold-deep); }
.journal-list { display: flex; flex-direction: column; gap: 10px; }
.journal-card {
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.08);
    border-left: 3px solid var(--gold-deep);
    border-radius: var(--radius-sm); padding: 16px;
}
.journal-card-ref { font-size: 0.8rem; color: var(--gold-deep); font-weight: 600; margin-bottom: 6px; }
.journal-card-note { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 8px; }
.journal-card-date { font-size: 0.72rem; color: var(--text-muted); }
.journal-card-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Completed texts */
.completed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.completed-card {
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius); padding: 20px; text-align: center;
}
.completed-badge { font-size: 2.5rem; margin-bottom: 8px; }
.completed-title { font-family: var(--font-display); font-size: 0.9rem; color: var(--gold-light); margin-bottom: 4px; }
.completed-date { font-size: 0.75rem; color: var(--text-muted); }

/* Cross-Product Activity */
.cross-activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cross-activity-card {
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius); padding: 24px; text-align: center;
}
.cross-activity-icon { font-size: 2rem; margin-bottom: 10px; }
.cross-activity-card h4 { font-family: var(--font-display); color: var(--gold-light); margin-bottom: 6px; font-size: 1rem; }
.cross-activity-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }

/* ===== Cross-Promo ===== */
.cross-promo-section { padding: 60px 0; }
.cross-promo-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.cross-promo-card {
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius); padding: 32px; text-align: center;
    transition: var(--transition);
}
.cross-promo-card:hover { border-color: rgba(201,168,76,0.25); }
.cross-promo-icon { font-size: 2.5rem; margin-bottom: 12px; }
.cross-promo-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-light); margin-bottom: 8px; }
.cross-promo-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }

/* ===== Community Chat ===== */
.community-chat-section { padding: 60px 0; }
.chat-messages {
    max-height: 400px; overflow-y: auto; padding: 20px;
    background: var(--bg-card); border: 1px solid rgba(201,168,76,0.08);
    border-radius: var(--radius); margin-bottom: 16px;
}
.chat-empty { color: var(--text-muted); text-align: center; font-style: italic; }
.chat-bubble {
    background: rgba(201,168,76,0.05); border: 1px solid rgba(201,168,76,0.08);
    border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px;
}
.chat-bubble-name { font-weight: 600; color: var(--gold-light); font-size: 0.85rem; }
.chat-bubble-msg { color: var(--text-light); font-size: 0.88rem; margin-top: 4px; }
.chat-bubble-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 6px; }
.chat-input-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chat-name-input, .chat-msg-input {
    padding: 12px 16px; background: var(--bg-card);
    border: 1px solid rgba(201,168,76,0.12); border-radius: var(--radius-sm);
    color: var(--text-light); font-size: 0.9rem; outline: none;
    font-family: var(--font-body);
}
.chat-name-input { width: 140px; }
.chat-msg-input { flex: 1; min-width: 200px; }
.chat-name-input:focus, .chat-msg-input:focus { border-color: var(--gold-deep); }
.chat-char-count { font-size: 0.75rem; color: var(--text-muted); min-width: 30px; }
.chat-char-count.warn { color: #e8c96a; }
.chat-char-count.danger { color: var(--danger); }
.chat-send-btn {
    padding: 12px 24px; background: linear-gradient(135deg, var(--gold-deep), var(--gold-light));
    color: #0a0a12; font-weight: 600; border: none; border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition); font-family: var(--font-body);
}
.chat-send-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 12px rgba(201,168,76,0.3); }

/* ===== Footer ===== */
.footer {
    position: relative; z-index: 1; padding: 60px 0 20px;
    border-top: 1px solid rgba(201,168,76,0.08);
}
.footer-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px;
}
.footer-brand { max-width: 300px; }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-light); margin-bottom: 8px; }
.footer-tagline { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: var(--gold-light); font-size: 0.85rem; margin-bottom: 4px; letter-spacing: 0.5px; }
.footer-col a { color: var(--text-muted); font-size: 0.82rem; text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
    max-width: 1100px; margin: 40px auto 0; padding: 20px 24px 0;
    border-top: 1px solid rgba(201,168,76,0.06); text-align: center;
}
.footer-bottom p { color: var(--text-muted2); font-size: 0.75rem; margin-bottom: 4px; }

/* ===== Auth Modal ===== */
.auth-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 24px;
}
.auth-modal-overlay.active { display: flex; }
.auth-modal {
    background: var(--bg-surface); border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius); padding: 36px; max-width: 420px; width: 100%;
    position: relative;
}
.auth-modal-close {
    position: absolute; top: 12px; right: 16px; background: none;
    border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
}
.auth-modal-title { font-family: var(--font-display); color: var(--gold-light); font-size: 1.3rem; margin-bottom: 8px; }
.auth-modal-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; line-height: 1.6; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 20px; }
.auth-tab {
    flex: 1; padding: 10px; text-align: center; background: rgba(201,168,76,0.05);
    border: 1px solid rgba(201,168,76,0.1); color: var(--text-muted);
    cursor: pointer; transition: var(--transition); font-family: var(--font-body);
    font-size: 0.85rem;
}
.auth-tab:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.auth-tab:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.auth-tab.active { background: rgba(201,168,76,0.15); color: var(--gold-light); border-color: var(--gold-deep); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.auth-field input {
    width: 100%; padding: 12px 16px; background: var(--bg-deep);
    border: 1px solid rgba(201,168,76,0.12); border-radius: var(--radius-sm);
    color: var(--text-light); font-size: 0.9rem; outline: none;
    font-family: var(--font-body);
}
.auth-field input:focus { border-color: var(--gold-deep); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-error { color: var(--danger); font-size: 0.8rem; text-align: center; min-height: 20px; }
.auth-sso-divider {
    text-align: center; margin: 16px 0; position: relative;
    border-top: 1px solid rgba(201,168,76,0.08);
}
.auth-sso-divider span {
    background: var(--bg-surface); padding: 0 12px;
    position: relative; top: -10px; color: var(--text-muted); font-size: 0.8rem;
}
.auth-sso-note { text-align: center; color: var(--text-muted); font-size: 0.8rem; }

/* ===== Hero Particles ===== */
.particle {
    position: absolute; border-radius: 50%; pointer-events: none;
    animation: float-particle linear infinite;
    opacity: 0;
}
@keyframes float-particle {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100vh) translateX(50px); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .reader-layout { grid-template-columns: 1fr; }
    .reader-sidebar { display: none; position: fixed; top: 60px; bottom: 0; z-index: 90; width: 300px; }
    .reader-sidebar-left { left: 0; }
    .reader-sidebar-right { right: 0; }
    .reader-sidebar.open { display: block; }
    .sidebar-toggle { display: block; }
    .reader-main { padding: 30px 24px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-controls { gap: 6px; }
    .lang-select { max-width: 80px; font-size: 0.75rem; padding: 4px 6px; }
    .auth-badge span { display: none; }

    .hero { min-height: auto; padding: 100px 20px 40px; }
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 16px; }

    .verse-finder-input-wrap { flex-direction: column; }
    .verse-finder-examples { justify-content: center; }

    .section { padding: 50px 0; }
    .section-title { font-size: 1.5rem; }

    .library-toolbar { flex-direction: column; }
    .library-grid { grid-template-columns: 1fr; }

    .reader-controls-bar { bottom: 10px; padding: 6px 12px; gap: 6px; flex-wrap: wrap; justify-content: center; }
    .reader-ctrl { padding: 6px 10px; font-size: 0.72rem; }

    .listen-options-row { flex-direction: column; gap: 12px; }

    .progress-stats { grid-template-columns: repeat(2, 1fr); }
    .continue-grid { grid-template-columns: 1fr; }

    .cross-promo-grid { grid-template-columns: 1fr; }

    .chat-input-row { flex-direction: column; }
    .chat-name-input { width: 100%; }

    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-links { gap: 24px; }
}

@media (max-width: 480px) {
    .progress-stats { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 8px; }
    .streak-heatmap { grid-template-columns: repeat(26, 1fr); }
}
