/* ============================================
   PERSONAL BIBLE — styles
   ============================================ */
:root {
    --reading-size: 18px;
    --radius: 12px;
    --radius-sm: 8px;
    --space: 1rem;
    --nav-h: 60px;
    --maxw: 1100px;
    --gold: #d4af37;
}

/* Themes */
body[data-theme="night"] {
    --bg: #15121f; --bg-2: #1e1a2b; --card: #24203300; --card-solid: #242033;
    --surface: #2a2438; --border: #3a3350; --text: #ece9f5; --text-2: #b8b2cc;
    --muted: #837c9c; --accent: #b39ddb; --accent-strong: #d4af37; --mark: rgba(212,175,55,.28);
}
body[data-theme="parchment"] {
    --bg: #f4ecd8; --bg-2: #efe6cf; --card-solid: #fbf6ea;
    --surface: #f8f2e2; --border: #ddceac; --text: #3b3226; --text-2: #6b5d47;
    --muted: #9a8b70; --accent: #8a6d3b; --accent-strong: #a5691f; --mark: rgba(165,105,31,.22);
}
body[data-theme="ocean"] {
    --bg: #0d1b2a; --bg-2: #14273a; --card-solid: #16304a;
    --surface: #1b3a58; --border: #26466a; --text: #e6f1fb; --text-2: #a9c4dc;
    --muted: #6f8ba6; --accent: #64b5f6; --accent-strong: #ffd166; --mark: rgba(255,209,102,.26);
}
body[data-theme="forest"] {
    --bg: #10201a; --bg-2: #172c23; --card-solid: #1a3329;
    --surface: #1f3d31; --border: #2c5142; --text: #e8f3ec; --text-2: #a8c8b6;
    --muted: #6f9080; --accent: #81c784; --accent-strong: #e0c060; --mark: rgba(224,192,96,.24);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg); color: var(--text);
    line-height: 1.6; min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    transition: background .3s, color .3s;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow-page { max-width: 760px; }
.hidden { display: none !important; }

/* ---------- Nav ---------- */
.main-nav {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.main-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.nav-content { display: flex; align-items: center; gap: 1rem; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav-logo i { color: var(--accent-strong); }
.nav-links { list-style: none; display: flex; gap: .35rem; margin-left: auto; }
.nav-links a { display: block; padding: .5rem .9rem; border-radius: var(--radius-sm); color: var(--text-2); cursor: pointer; font-weight: 500; transition: .15s; }
.nav-links a:hover { background: var(--surface); color: var(--text); }
.nav-links a.active { background: var(--surface); color: var(--accent-strong); }

.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    cursor: pointer; transition: .15s; font-size: .95rem;
}
.btn-icon:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.btn-icon.sm { width: 34px; height: 34px; font-size: .85rem; }
.nav-content > .btn-icon { margin-left: .25rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
    padding: .6rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 600; font-size: .9rem; cursor: pointer; transition: .15s; font-family: inherit;
}
.btn-primary { background: var(--accent-strong); color: #1b1408; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent-strong); }
.btn-danger { background: transparent; color: #e57373; border-color: #e5737355; }
.btn-danger:hover { background: #e5737315; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Pages ---------- */
.main-content { padding: 1.5rem 0 6rem; }
.page-section { display: none; animation: fade .25s ease; }
.page-section.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-title { font-family: 'Source Serif 4', serif; font-size: 1.8rem; margin-bottom: .3rem; }
.page-sub { color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Search ---------- */
.search-box { position: relative; display: flex; gap: .6rem; align-items: center; margin-bottom: 1.5rem; }
.search-box .search-icon { position: absolute; left: 1rem; color: var(--muted); pointer-events: none; }
.form-input {
    width: 100%; padding: .7rem 1rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-size: .95rem; font-family: inherit;
    transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--accent-strong); }
.search-box .form-input { padding-left: 2.6rem; }
.search-box .btn { flex-shrink: 0; }

/* ---------- Bible layout ---------- */
.bible-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.bible-sidebar {
    position: sticky; top: calc(var(--nav-h) + 1rem); max-height: calc(100vh - var(--nav-h) - 2rem);
    overflow-y: auto; background: var(--card-solid); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .75rem;
}
.bible-nav-header { display: none; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-weight: 600; }
.testament-header { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .6rem .5rem .3rem; }
.book-list { list-style: none; }
.book-name {
    display: flex; justify-content: space-between; align-items: center;
    padding: .45rem .6rem; border-radius: var(--radius-sm); cursor: pointer; font-size: .9rem; color: var(--text-2);
}
.book-name:hover { background: var(--surface); color: var(--text); }
.book-name.active { color: var(--accent-strong); font-weight: 600; }
.book-name i { font-size: .7rem; opacity: .55; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: .3rem; padding: .4rem .3rem .6rem; }
.chapter-btn {
    aspect-ratio: 1; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
    border-radius: 6px; cursor: pointer; font-size: .82rem; transition: .12s;
}
.chapter-btn:hover { border-color: var(--accent-strong); color: var(--text); }
.chapter-btn.active { background: var(--accent-strong); color: #1b1408; border-color: var(--accent-strong); font-weight: 600; }

/* ---------- Navigator bar ---------- */
.bible-navigator {
    position: sticky; top: calc(var(--nav-h) + .5rem); z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
    background: color-mix(in srgb, var(--card-solid) 92%, transparent); backdrop-filter: blur(8px);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: .55rem .65rem; margin-bottom: 1rem;
}
.bible-nav-group { display: flex; align-items: center; gap: .4rem; }
.bible-nav-select {
    padding: .5rem .7rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-size: .9rem; font-family: inherit; cursor: pointer;
    max-width: 170px;
}
.bible-nav-select.narrow { max-width: 82px; }
.btn-icon.sm.playing { background: var(--accent-strong); color: #1b1408; }
.show-on-mobile { display: none; }

.mode-tag {
    font-size: .74rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
    color: var(--muted); min-width: 78px; text-align: left;
}
.mode-tag.on { color: var(--accent-strong); }
.mode-toggle { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; margin-left: .2rem; }
.mode-toggle input { opacity: 0; width: 0; height: 0; }
.mode-track { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; transition: .2s; }
.mode-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.mode-toggle input:checked + .mode-track { background: color-mix(in srgb, var(--accent-strong) 30%, transparent); border-color: var(--accent-strong); }
.mode-toggle input:checked + .mode-track .mode-thumb { transform: translateX(20px); background: var(--accent-strong); }

.personalize-banner {
    display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
    padding: .6rem .9rem; border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent-strong) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-strong) 40%, transparent); font-size: .88rem;
}
.personalize-banner i { color: var(--accent-strong); }
.btn-inline { margin-left: auto; background: none; border: none; color: var(--accent-strong); cursor: pointer; font-size: .82rem; font-family: inherit; }

/* ---------- Bible reading ---------- */
.reading-surface {
    background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem 1.4rem 2rem;
}
.bible-header { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.bible-reference { font-family: 'Source Serif 4', serif; font-size: 1.8rem; font-weight: 600; }
.bible-version-badge { font-size: .7rem; color: var(--muted); border: 1px solid var(--border); padding: .2rem .5rem; border-radius: 999px; }
.verse-container { max-width: 66ch; margin: 0 auto; }
.verse {
    position: relative; padding: .3rem .5rem .1rem; border-radius: var(--radius-sm);
    transition: background .3s;
}
.verse:hover { background: var(--surface); }
.verse.flash { background: var(--mark); }
.verse-line {
    display: flex; gap: .55rem;
    font-family: 'Source Serif 4', serif; font-size: var(--reading-size); line-height: 1.85;
}
.verse-number { color: var(--accent-strong); font-weight: 700; font-size: .7em; font-family: 'Inter', sans-serif; padding-top: .5em; min-width: 1.5em; text-align: right; flex-shrink: 0; }
.verse-text { flex: 1; min-width: 0; }
.verse-text mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.personalized-name { color: var(--accent-strong); font-weight: 600; }
.personalized-active { color: var(--text); }
.personalize-loading { opacity: .4; background: linear-gradient(90deg, transparent, var(--surface), transparent); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 4px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Actions sit UNDER the verse text, revealed on hover (always shown on touch) */
.verse-actions {
    display: flex; gap: .4rem; margin-left: calc(1.5em + .55rem);
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .18s ease, opacity .18s ease, margin .18s ease;
}
.verse:hover .verse-actions,
.verse-actions:has(.has-note) { max-height: 44px; opacity: 1; margin-top: .3rem; margin-bottom: .35rem; }
.verse-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    border: 1px solid var(--border); background: var(--card-solid); color: var(--text-2);
    border-radius: 999px; cursor: pointer; font-size: .72rem; font-family: 'Inter', sans-serif;
    padding: .22rem .6rem; transition: .12s;
}
.verse-btn:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.verse-btn i { font-size: .72rem; }
.note-btn.has-note { color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent-strong) 55%, transparent); }

/* ---------- Search chips ---------- */
.search-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.4rem 0 1.5rem; }
.chip { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); border-radius: 999px; padding: .35rem .9rem; font-size: .82rem; cursor: pointer; font-family: inherit; transition: .15s; }
.chip:hover { border-color: var(--accent-strong); color: var(--accent-strong); }

/* ---------- Search suggestions ---------- */
.search-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
    background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: 0 14px 40px rgba(0,0,0,.35); overflow: hidden; max-height: 340px; overflow-y: auto;
}
.suggest-item {
    display: block; padding: .6rem .9rem; cursor: pointer; border-bottom: 1px solid var(--border);
    font-size: .86rem; transition: background .12s;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--surface); }
.suggest-item.ref { color: var(--text); }
.suggest-item.ref i, .suggest-item.more i { color: var(--accent-strong); margin-right: .35rem; }
.suggest-item.more { color: var(--accent-strong); font-weight: 600; }
.suggest-ref { display: block; color: var(--accent-strong); font-weight: 600; font-size: .76rem; margin-bottom: .15rem; }
.suggest-text { display: block; font-family: 'Source Serif 4', serif; color: var(--text-2); line-height: 1.5; }
.suggest-text mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-correction { color: var(--muted); font-size: .85rem; margin-bottom: .8rem; }
.search-correction i, .search-correction strong { color: var(--accent-strong); }

/* ---------- Search results ---------- */
.results-heading { color: var(--text-2); margin-bottom: 1rem; font-size: 1rem; }
.search-result-item { padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .6rem; cursor: pointer; background: var(--card-solid); transition: .15s; }
.search-result-item:hover { border-color: var(--accent-strong); }
.search-result-reference { color: var(--accent-strong); font-weight: 600; font-size: .82rem; margin-bottom: .25rem; }
.search-result-text { font-family: 'Source Serif 4', serif; color: var(--text-2); }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.4rem; opacity: .5; margin-bottom: 1rem; display: block; }
.empty-state .hint, .hint { font-size: .85rem; opacity: .8; margin-top: .4rem; }

/* ---------- Cards / settings ---------- */
.card { background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.2rem; }
.card-title { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin-bottom: .3rem; }
.card-title i { color: var(--accent-strong); }
.card-sub { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: .35rem; }
.api-key-input { display: flex; gap: .5rem; }
.security-note { display: flex; gap: .5rem; align-items: flex-start; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.security-note i { color: var(--accent-strong); margin-top: .15rem; }
input[type="range"] { width: 100%; accent-color: var(--accent-strong); }

/* ---------- Notes ---------- */
.note-card { background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .8rem; cursor: pointer; transition: .15s; }
.note-card:hover { border-color: var(--accent-strong); }
.note-card-ref { color: var(--accent-strong); font-weight: 700; font-size: .85rem; margin-bottom: .3rem; }
.note-card-verse { font-family: 'Source Serif 4', serif; color: var(--text-2); font-size: .9rem; font-style: italic; margin-bottom: .4rem; }
.note-card-text { white-space: pre-wrap; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 500; display: none; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(3px); }
.modal-overlay.active { display: flex; animation: fade .2s ease; }
.modal-card { background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { color: var(--accent-strong); font-size: 1.05rem; }
.modal-body { padding: 1.2rem; }
.note-verse-preview { font-family: 'Source Serif 4', serif; font-style: italic; color: var(--text-2); margin-bottom: .9rem; }
.note-textarea { resize: vertical; min-height: 120px; font-family: inherit; line-height: 1.6; }
.note-actions { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.note-actions .spacer { flex: 1; }
#noteDictateBtn.recording { background: #e57373; color: #fff; border-color: #e57373; }

/* ---------- Voice overlay ---------- */
.voice-overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); z-index: 600; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.voice-overlay.active { display: flex; }
.voice-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.voice-circle { width: 120px; height: 120px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-strong); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--accent-strong); margin-bottom: 1.5rem; }
.voice-circle.recording { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-strong) 45%, transparent); } 50% { box-shadow: 0 0 0 22px transparent; } }
.voice-text { font-size: 1.3rem; font-weight: 600; margin-bottom: .5rem; min-height: 1.6em; }
.voice-hint { color: var(--muted); font-size: .9rem; max-width: 340px; }

/* ---------- Floating mic ---------- */
.floating-mic { position: fixed; right: 1.5rem; bottom: 1.5rem; width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--accent-strong); color: #1b1408; font-size: 1.2rem; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.3); z-index: 90; transition: .15s; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.floating-mic:hover { transform: scale(1.05); }
.floating-mic.listening { animation: pulse 1.4s infinite; }

/* ---------- Mobile bottom nav ---------- */
.mobile-nav { display: none; }

/* ---------- Toast ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ---------- Splash screen ---------- */
.splash {
    position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 40%, #241d38 0%, #15121f 60%, #0c0a14 100%);
    overflow: hidden; transition: opacity .6s ease, visibility .6s;
}
.splash.fade-out { opacity: 0; }
.splash.done { display: none; }
.splash-glow {
    position: absolute; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,.28), transparent 65%);
    filter: blur(20px); animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { transform: scale(.9); opacity: .55; } 50% { transform: scale(1.15); opacity: .9; } }
.splash-inner { position: relative; text-align: center; color: #ece9f5; padding: 2rem; }
.splash-icon {
    font-size: 4.2rem; color: var(--gold);
    text-shadow: 0 0 30px rgba(212,175,55,.6);
    animation: splashIcon 1.6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes splashIcon { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.splash-title {
    font-family: 'Source Serif 4', serif; font-size: 2.6rem; font-weight: 700; margin: 1rem 0 .6rem;
    letter-spacing: .01em;
    background: linear-gradient(90deg, #fff 20%, var(--gold) 50%, #fff 80%);
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite, riseUp .9s .3s both;
}
@keyframes shine { to { background-position: 200% center; } }
@keyframes riseUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.splash-verse { color: #b8b2cc; font-family: 'Source Serif 4', serif; font-style: italic; font-size: 1.05rem; line-height: 1.7; animation: riseUp 1s .7s both; }
.splash-loader { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; animation: riseUp 1s 1.1s both; }
.splash-loader span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: .4; animation: dot 1.2s infinite; }
.splash-loader span:nth-child(2) { animation-delay: .2s; }
.splash-loader span:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* ---------- Intro / mode choice ---------- */
.intro {
    position: fixed; inset: 0; z-index: 850; display: none; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 30%, var(--bg-2) 0%, var(--bg) 70%);
    padding: 1.5rem; opacity: 0; transition: opacity .5s ease;
}
.intro.active { display: flex; opacity: 1; animation: fade .5s ease; }
.intro.fade-out { opacity: 0; }
.intro-inner { text-align: center; max-width: 460px; width: 100%; }
.intro-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--accent-strong); border: 1px solid color-mix(in srgb, var(--accent-strong) 40%, transparent); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.2rem; }
.intro-title { font-family: 'Source Serif 4', serif; font-size: 2rem; line-height: 1.25; margin-bottom: 1.8rem; }
.intro-switch { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.1rem; }
.intro-mode-label { font-size: .98rem; font-weight: 600; color: var(--text); transition: opacity .2s; }
.intro-mode-label.personal i { color: var(--accent-strong); }
.intro-mode-label.dim { opacity: .4; }
.mode-toggle.big { width: 64px; height: 34px; }
.mode-toggle.big .mode-thumb { width: 26px; height: 26px; top: 4px; left: 4px; }
.mode-toggle.big input:checked + .mode-track .mode-thumb { transform: translateX(30px); }
.intro-hint { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; min-height: 1.4em; }
.intro-name { text-align: left; margin-bottom: 1.4rem; animation: fade .3s ease; }
.btn-enter { width: 100%; padding: .85rem; font-size: 1rem; }
.intro-foot { color: var(--muted); font-size: .8rem; margin-top: 1rem; }

/* ---------- Gender chips (intro + onboarding) ---------- */
.gender-row { display: flex; gap: .5rem; margin-top: .6rem; }
.gender-chip {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .55rem .8rem; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-2); cursor: pointer; font-family: inherit;
    font-size: .85rem; font-weight: 600; transition: .15s;
}
.gender-chip:hover { border-color: var(--accent-strong); }
.gender-chip.active { border-color: var(--accent-strong); color: var(--accent-strong); background: color-mix(in srgb, var(--accent-strong) 12%, transparent); }
.gender-hint { color: var(--muted); font-size: .75rem; margin-top: .45rem; }

/* ---------- For You page ---------- */
.fy-header { margin-bottom: 1.4rem; }
.fy-header .page-sub { margin-bottom: 0; }
.fy-section-label {
    display: flex; align-items: center; gap: .5rem; margin: 1.6rem 0 .7rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.fy-section-label i { color: var(--accent-strong); }
.fy-verse-card {
    background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; margin-bottom: .8rem;
}
.fy-verse-card.votd {
    border-color: color-mix(in srgb, var(--accent-strong) 45%, transparent);
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent-strong) 10%, var(--card-solid)), var(--card-solid) 55%);
}
.fy-verse-ref { color: var(--accent-strong); font-weight: 700; font-size: .82rem; margin-bottom: .4rem; }
.fy-verse-text { font-family: 'Source Serif 4', serif; font-size: calc(var(--reading-size) - 1px); line-height: 1.8; margin-bottom: .6rem; }
.fy-verse-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.fy-season-sub { color: var(--muted); font-size: .88rem; margin-bottom: .8rem; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.season-chip {
    display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem;
    border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); cursor: pointer; font-family: inherit; font-size: .82rem; font-weight: 600;
    text-align: left; transition: .15s;
}
.season-chip i { color: var(--muted); width: 1.1em; text-align: center; transition: .15s; }
.season-chip:hover { border-color: var(--accent-strong); color: var(--text); }
.season-chip.active { border-color: var(--accent-strong); color: var(--accent-strong); background: color-mix(in srgb, var(--accent-strong) 12%, transparent); }
.season-chip.active i { color: var(--accent-strong); }
.fy-season-list { margin-bottom: .4rem; }
.fy-blessing-card {
    background: var(--card-solid); border: 1px solid color-mix(in srgb, var(--accent-strong) 40%, transparent);
    border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.fy-blessing-line { font-family: 'Source Serif 4', serif; line-height: 1.75; margin-bottom: .7rem; }
.fy-blessing-ref { color: var(--muted); font-family: 'Inter', sans-serif; font-size: .72rem; white-space: nowrap; }
.fy-name-card .fy-name-row { display: flex; gap: .6rem; }
.fy-nudge { margin-top: 1.4rem; }
.fy-link { color: var(--accent-strong); cursor: pointer; text-decoration: underline; }

/* ---------- Streak / trial / premium ---------- */
.fy-header-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.streak-chip {
    flex-shrink: 0; font-size: .78rem; font-weight: 700; color: var(--accent-strong);
    background: color-mix(in srgb, var(--accent-strong) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-strong) 40%, transparent);
    padding: .3rem .7rem; border-radius: 999px; white-space: nowrap;
}
.trial-pill {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: .7rem;
    font-size: .78rem; font-weight: 600; color: var(--accent-strong);
    background: color-mix(in srgb, var(--accent-strong) 10%, transparent);
    border: 1px dashed color-mix(in srgb, var(--accent-strong) 50%, transparent);
    padding: .4rem .85rem; border-radius: 999px; cursor: pointer; font-family: inherit; transition: .15s;
}
.trial-pill:hover { background: color-mix(in srgb, var(--accent-strong) 18%, transparent); }
.fy-locked-card {
    display: flex; align-items: center; gap: .9rem; cursor: pointer;
    background: var(--card-solid); border: 1px dashed color-mix(in srgb, var(--accent-strong) 45%, transparent);
    border-radius: var(--radius); padding: 1rem 1.1rem; transition: .15s;
}
.fy-locked-card:hover { border-style: solid; }
.fy-locked-card > i { font-size: 1.4rem; color: var(--accent-strong); opacity: .8; }
.fy-locked-card p { color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.fy-locked-cta {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700;
    color: #1b1408; background: var(--accent-strong); padding: .35rem .75rem; border-radius: 999px;
}
.fy-reminder-hint { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .82rem; margin: -.2rem 0 .4rem .2rem; }
.fy-reminder-hint i { color: var(--accent-strong); }

/* ---------- Unlock modal ---------- */
.unlock-msg { font-size: .95rem; margin-bottom: .9rem; }
.unlock-features { list-style: none; margin-bottom: .9rem; }
.unlock-features li { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .88rem; color: var(--text-2); }
.unlock-features li i { color: var(--accent-strong); width: 1.2em; text-align: center; }
.unlock-status { font-size: .82rem; color: var(--accent-strong); font-weight: 600; margin-bottom: .5rem; }
.unlock-price { font-size: .88rem; margin-bottom: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .bible-layout { grid-template-columns: 1fr; }
    .bible-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 320px; max-height: 100vh;
        border-radius: 0; z-index: 400; transform: translateX(-100%); transition: transform .25s; padding: 1rem;
    }
    .bible-sidebar.mobile-open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.5); }
    .bible-nav-header { display: flex; }
    .show-on-mobile { display: inline-flex; }
    .nav-links { display: none; }
    .floating-mic { display: none; }
    .main-content { padding-bottom: 5rem; }
    .mobile-nav {
        /* Equal 5-column grid keeps the mic FAB perfectly centred regardless of label widths */
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; height: 62px;
        background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px);
        border-top: 1px solid var(--border); z-index: 100; align-items: center; justify-items: center; padding: 0 .5rem;
    }
    .mnav-btn { background: none; border: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 1.1rem; cursor: pointer; font-family: inherit; }
    .mnav-btn span { font-size: .65rem; }
    .mnav-btn.active { color: var(--accent-strong); }
    .mnav-btn.fab {
        width: 54px; height: 54px; border-radius: 50%; background: var(--accent-strong); color: #1b1408;
        margin-top: -1.4rem; box-shadow: 0 4px 16px rgba(0,0,0,.3); font-size: 1.3rem;
        /* centre the glyph inside the circle: kill default button padding and
           the column-flex top-alignment/gap inherited from .mnav-btn */
        padding: 0; gap: 0; justify-content: center; align-items: center; line-height: 1;
    }
    .mnav-btn.fab i { display: block; line-height: 1; }
    .verse-actions { max-height: 44px; opacity: 1; margin-top: .3rem; margin-bottom: .4rem; }
    .reading-surface { padding: 1.1rem .9rem 1.6rem; }
}
@media (max-width: 480px) {
    .bible-reference { font-size: 1.5rem; }
    .search-box { flex-wrap: wrap; }
}
