/* ==========================================================================
   HKBP DIGITAL — BIBEL BATAK TOBA STYLESHEET (BBC 1998)
   Tema: Modern Batak Heritage & Aksesibilitas Lansia Ramah Jemaat
   ========================================================================== */

:root {
    --bibel-forest: #1c4b37;
    --bibel-forest-dark: #123325;
    --bibel-forest-light: #2d6b50;
    --bibel-sage: #8fa895;
    --bibel-sage-light: #e8f0eb;
    --bibel-gold: #c5a35a;
    --bibel-gold-light: #f5eedb;
    --bibel-gold-hover: #b39145;
    --bibel-maroon: #7a3434;
    --bibel-ivory: #faf8f2;
    --bibel-card-bg: #ffffff;
    --bibel-card-border: rgba(28, 75, 55, 0.12);
    --bibel-text-main: #242926;
    --bibel-text-muted: #5f6b64;
    --bibel-shadow-sm: 0 2px 8px rgba(28, 75, 55, 0.06);
    --bibel-shadow-md: 0 8px 24px rgba(28, 75, 55, 0.10);
    --bibel-font-verse: "Lora", "Merriweather", "Georgia", "Times New Roman", serif;
    --bibel-font-ui: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --bibel-font-size-verse: 1.125rem;
    --bibel-line-height-verse: 1.85;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bibel-card-bg: #19201c;
    --bibel-card-border: rgba(197, 163, 90, 0.22);
    --bibel-text-main: #f0f4f1;
    --bibel-text-muted: #a4b3a9;
    --bibel-ivory: #141815;
    --bibel-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --bibel-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Base Container */
.bibel-page-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION (MODERN BATAK HERITAGE)
   -------------------------------------------------------------------------- */
.bibel-hero-section {
    background: linear-gradient(135deg, #163a2b 0%, #214d3a 50%, #2f614b 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(22, 58, 43, 0.25);
    border: 1px solid rgba(197, 163, 90, 0.35);
    text-align: center;
}

.bibel-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: radial-gradient(circle at right center, rgba(197, 163, 90, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.bibel-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(197, 163, 90, 0.5);
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #f7e6be;
    margin: 0 auto 1rem auto;
    backdrop-filter: blur(4px);
}

.bibel-hero-title {
    font-family: var(--font-serif, "Cinzel", "Lora", serif);
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.bibel-hero-quote {
    background: rgba(14, 38, 28, 0.6);
    border-left: 3.5px solid var(--bibel-gold);
    border-right: 3.5px solid var(--bibel-gold);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.25rem auto;
    max-width: 48rem;
    backdrop-filter: blur(6px);
    text-align: center;
}

.bibel-hero-quote-text {
    font-family: var(--bibel-font-verse);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 0.35rem;
    color: #faf3e0;
    text-align: center;
}

.bibel-hero-quote-ref {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bibel-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

.bibel-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.bibel-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bibel-hero-meta strong {
    color: #f8e7c1;
}

/* --------------------------------------------------------------------------
   2. STICKY READING TOOLBAR
   -------------------------------------------------------------------------- */
.bibel-toolbar {
    position: sticky;
    top: 74px;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--bibel-card-border);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    box-shadow: var(--bibel-shadow-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

[data-theme="dark"] .bibel-toolbar {
    background: rgba(24, 30, 27, 0.95);
    border-color: rgba(197, 163, 90, 0.3);
}

.bibel-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Button Kitab & Bindu Selector Trigger */
.btn-selector-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bibel-forest);
    color: #ffffff;
    font-family: var(--bibel-font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(197, 163, 90, 0.4);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(28, 75, 55, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-selector-trigger:hover {
    background: var(--bibel-forest-dark);
    border-color: var(--bibel-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(28, 75, 55, 0.25);
    color: #ffffff;
}

/* Button Chapter Step Nav (◀ / ▶) */
.btn-nav-chapter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bibel-sage-light);
    color: var(--bibel-forest);
    border: 1px solid var(--bibel-card-border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-chapter:hover:not(.disabled) {
    background: var(--bibel-forest);
    color: #ffffff;
}

.btn-nav-chapter.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

[data-theme="dark"] .btn-nav-chapter {
    background: #252e29;
    color: #c5d4ca;
}

/* Font Size Control Box (A- | A | A+ | A++) */
.font-size-control-box {
    display: inline-flex;
    background: var(--bibel-sage-light);
    border: 1px solid var(--bibel-card-border);
    border-radius: 10px;
    padding: 2px;
}

[data-theme="dark"] .font-size-control-box {
    background: #232b27;
}

.font-size-btn {
    background: transparent;
    border: none;
    font-family: var(--bibel-font-ui);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--bibel-text-main);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.font-size-btn:hover {
    color: var(--bibel-forest);
}

.font-size-btn.active {
    background: var(--bibel-card-bg);
    color: var(--bibel-forest);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .font-size-btn.active {
    background: var(--bibel-forest);
    color: #ffffff;
}

/* Mode Lansia Button */
.btn-mode-lansia {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bibel-gold-light);
    color: #6d4e13;
    border: 1px solid var(--bibel-gold);
    font-family: var(--bibel-font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mode-lansia:hover,
.btn-mode-lansia.active {
    background: var(--bibel-gold);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(197, 163, 90, 0.4);
}

[data-theme="dark"] .btn-mode-lansia {
    background: #382d16;
    color: #fce8b8;
    border-color: #967734;
}

[data-theme="dark"] .btn-mode-lansia.active {
    background: var(--bibel-gold);
    color: #121815;
}

/* Button TTS Trigger */
.btn-tts-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bibel-sage-light);
    color: var(--bibel-forest);
    border: 1px solid var(--bibel-card-border);
    font-family: var(--bibel-font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tts-trigger:hover,
.btn-tts-trigger.active {
    background: var(--bibel-forest);
    color: #ffffff;
}

[data-theme="dark"] .btn-tts-trigger {
    background: #252e29;
    color: #c5d4ca;
}

/* Generic Toolbar Verse Button (Bookmark, Catatan) */
.verse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bibel-card-bg);
    color: var(--bibel-text-main);
    border: 1px solid var(--bibel-card-border);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--bibel-font-ui);
    font-weight: 600;
    transition: all 0.18s ease;
}

.verse-btn:hover {
    background: var(--bibel-sage-light);
    color: var(--bibel-forest);
    border-color: var(--bibel-sage);
}

[data-theme="dark"] .verse-btn:hover {
    background: #2a342e;
    color: #ffffff;
}

/* Search Form */
.bibel-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.bibel-search-input {
    background: var(--bibel-card-bg);
    border: 1px solid var(--bibel-card-border);
    color: var(--bibel-text-main);
    padding: 0.45rem 2rem 0.45rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    width: 175px;
}

.bibel-search-input:focus {
    width: 220px;
    border-color: var(--bibel-forest);
    box-shadow: 0 0 0 3px rgba(28, 75, 55, 0.12);
}

.bibel-search-btn {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.bibel-search-btn:hover {
    opacity: 1;
}

/* TTS Player Floating Panel */
.tts-player-panel {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.65rem 1rem;
    background: #fdfaf2;
    border: 1px solid var(--bibel-gold);
    border-radius: 10px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .tts-player-panel {
    background: #252013;
    border-color: #8c733b;
    color: #faeccd;
}

.tts-player-panel.active {
    display: flex;
}

.tts-player-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tts-ctrl-btn {
    background: var(--bibel-forest);
    color: #ffffff;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.tts-ctrl-btn:hover {
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   3. KANVAS PEMBACA BIBEL UTAMA
   -------------------------------------------------------------------------- */
.bibel-reader-canvas {
    background: var(--bibel-card-bg);
    border: 1px solid var(--bibel-card-border);
    border-radius: 20px;
    padding: 3rem 3rem 4rem;
    box-shadow: var(--bibel-shadow-md);
    position: relative;
    transition: background 0.25s, border-color 0.25s;
}

@media (max-width: 768px) {
    .bibel-reader-canvas {
        padding: 2rem 1.25rem 3rem;
        border-radius: 14px;
    }
}

/* Header Chapter Ornament */
.bibel-reader-header-ornament {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--bibel-card-border);
    position: relative;
}

.bibel-reader-symbol {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--bibel-gold);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.bibel-chapter-title {
    font-family: var(--bibel-font-verse);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--bibel-forest);
    margin: 0 0 0.5rem;
}

[data-theme="dark"] .bibel-chapter-title {
    color: #e5f0e8;
}

.bibel-chapter-version-tag {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bibel-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Skeleton Transition Loader */
.bibel-skeleton-loader {
    display: none;
    padding: 1rem 0;
}

.bibel-skeleton-loader.active {
    display: block;
}

.skeleton-line {
    height: 18px;
    background: linear-gradient(90deg, #eceff1 25%, #f5f7f8 50%, #eceff1 75%);
    background-size: 200% 100%;
    animation: skeletonGlow 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 1rem;
}

[data-theme="dark"] .skeleton-line {
    background: linear-gradient(90deg, #202722 25%, #2a332d 50%, #202722 75%);
    background-size: 200% 100%;
}

@keyframes skeletonGlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error Banner */
.bibel-error-banner {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #fff9f0;
    border: 2px dashed #f0c38d;
    border-radius: 16px;
    color: #7d4912;
}

[data-theme="dark"] .bibel-error-banner {
    background: #241d13;
    border-color: #8c6a38;
    color: #f7d6a1;
}

.bibel-error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.bibel-error-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.bibel-error-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.btn-retry-api {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bibel-forest);
    color: #ffffff;
    font-family: var(--bibel-font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(28, 75, 55, 0.25);
    transition: all 0.2s ease;
}

.btn-retry-api:hover {
    background: var(--bibel-forest-dark);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. TAMPILAN BERSIH AYAT (CLEAN READING FLOW)
   Tanpa deretan tombol aksi di bawah tiap ayat!
   -------------------------------------------------------------------------- */
.bibel-verses-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.verse-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.verse-row:hover {
    background: rgba(143, 168, 149, 0.08);
}

[data-theme="dark"] .verse-row:hover {
    background: rgba(143, 168, 149, 0.05);
}

/* Badge Nomor Ayat */
.verse-num-badge {
    flex-shrink: 0;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bibel-sage-light);
    color: var(--bibel-forest);
    font-family: var(--bibel-font-ui);
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 8px;
    border: 1px solid var(--bibel-card-border);
    user-select: none;
    margin-top: 0.2rem;
}

[data-theme="dark"] .verse-num-badge {
    background: #252f29;
    color: #e3ede6;
    border-color: rgba(197, 163, 90, 0.25);
}

/* Isi Teks Ayat */
.verse-content-col {
    flex: 1;
}

.verse-pericope-title {
    font-family: var(--bibel-font-verse);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--bibel-gold);
    font-style: italic;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
}

[data-theme="dark"] .verse-pericope-title {
    color: #e4c47b;
}

.verse-text-body {
    font-family: var(--bibel-font-verse);
    font-size: var(--bibel-font-size-verse);
    line-height: var(--bibel-line-height-verse);
    color: var(--bibel-text-main);
    margin: 0;
    letter-spacing: 0.01em;
    transition: color 0.2s, font-size 0.2s;
}

/* State Ayat Bookmarked */
.verse-row.is-bookmarked {
    background: #fbf6ec;
    border-left: 4px solid var(--bibel-gold);
}

[data-theme="dark"] .verse-row.is-bookmarked {
    background: #282315;
    border-left-color: var(--bibel-gold);
}

.verse-row.is-bookmarked .verse-num-badge {
    background: var(--bibel-gold);
    color: #ffffff;
    border-color: var(--bibel-gold);
}

/* State Ayat Sedang Dibacakan TTS */
.verse-row.tts-speaking {
    background: #eef8f2;
    border-left: 4px solid var(--bibel-forest);
    box-shadow: 0 4px 16px rgba(28, 75, 55, 0.12);
    transform: translateX(4px);
}

[data-theme="dark"] .verse-row.tts-speaking {
    background: #193325;
    border-left-color: #6ed19f;
}

/* Indikator Catatan Pribadi */
.verse-note-indicator {
    background: #f8faf9;
    border-left: 3px solid var(--bibel-sage);
    border-radius: 0 8px 8px 0;
    padding: 0.6rem 0.85rem;
    margin-top: 0.65rem;
    font-size: 0.88rem;
    color: var(--bibel-text-main);
}

[data-theme="dark"] .verse-note-indicator {
    background: #202622;
    border-left-color: var(--bibel-sage);
}

.verse-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--bibel-forest);
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .verse-note-header {
    color: #a7cbbb;
}

/* --------------------------------------------------------------------------
   5. MODE LANSIA (RAMAH LANSIA - SANGAT TERANG & KONTRAS TINGGI)
   PENTING: Di Dark Mode tulisan HARUS PUTIH TERANG (#FFFFFF) agar tidak hitam!
   -------------------------------------------------------------------------- */
body.mode-lansia-active {
    --bibel-font-size-verse: 1.55rem;
    --bibel-line-height-verse: 2.1;
}

body.mode-lansia-active .verse-row {
    padding: 1.25rem 1.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--bibel-card-border);
}

body.mode-lansia-active .verse-num-badge {
    min-width: 44px;
    height: 44px;
    font-size: 1.2rem;
    border-radius: 12px;
}

body.mode-lansia-active .verse-text-body {
    font-size: 1.55rem !important;
    line-height: 2.1 !important;
    letter-spacing: 0.02em;
    font-weight: 500;
    color: #111814 !important; /* Terang & jelas di Light Mode */
}

/* DARK MODE KHUSUS LANSIA: Harus Putih Terang! */
[data-theme="dark"] body.mode-lansia-active .verse-text-body {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] body.mode-lansia-active .verse-num-badge {
    background: var(--bibel-gold);
    color: #111814;
    font-weight: 900;
}

body.mode-lansia-active .btn-selector-trigger,
body.mode-lansia-active .btn-mode-lansia,
body.mode-lansia-active .btn-tts-trigger,
body.mode-lansia-active .verse-btn {
    min-height: 48px;
    font-size: 1.05rem !important;
    padding: 0.65rem 1.25rem;
}

body.mode-lansia-active .btn-nav-chapter {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   6. MODAL STYLES (SELECTOR BUKU, BOOKMARK, CATATAN)
   -------------------------------------------------------------------------- */
.bibel-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 20, 15, 0.65);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bibel-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.bibel-modal-box {
    background: var(--bibel-card-bg);
    border-radius: 18px;
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--bibel-card-border);
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bibel-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bibel-forest);
    color: #ffffff;
    border-bottom: 1px solid rgba(197, 163, 90, 0.3);
}

.bibel-modal-title {
    font-family: var(--font-serif, "Lora", serif);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}

.bibel-modal-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.bibel-modal-close-btn:hover {
    opacity: 1;
}

.bibel-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Tabs Padan Na Robi & Padan Naimbaru */
.testament-tab-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--bibel-card-border);
    padding-bottom: 0.5rem;
    background: transparent;
}

.testament-tab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bibel-text-muted);
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.testament-tab-btn.active {
    color: var(--bibel-forest);
    background: var(--bibel-sage-light);
}

[data-theme="dark"] .testament-tab-btn.active {
    color: #F8E7C1;
    background: rgba(197, 163, 90, 0.18);
}

/* Grid Kartu Buku */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.6rem;
}

.book-card-item {
    background: var(--bibel-card-bg);
    border: 1px solid var(--bibel-card-border);
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--bibel-text-main);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 72px;
    box-sizing: border-box;
}

.book-card-name {
    display: block !important;
    width: 100% !important;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    text-align: center !important;
    color: inherit;
    margin-bottom: 4px;
}

.book-card-abbr {
    display: block !important;
    width: 100% !important;
    font-size: 0.72rem;
    line-height: 1.2;
    opacity: 0.75;
    text-align: center !important;
    margin-top: 0;
    white-space: nowrap;
}

.book-card-item:hover,
.book-card-item.active {
    background: var(--bibel-forest) !important;
    color: #FFFFFF !important;
    border-color: var(--bibel-forest) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22, 58, 43, 0.25);
}

.book-card-item:hover .book-card-name,
.book-card-item.active .book-card-name {
    color: #FFFFFF !important;
}

.book-card-item:hover .book-card-abbr,
.book-card-item.active .book-card-abbr {
    color: #F8E7C1 !important;
    opacity: 0.9;
}

[data-theme="dark"] .book-card-item {
    background: #1c2720;
    border-color: rgba(197, 163, 90, 0.25);
    color: #f3f0e6;
}

[data-theme="dark"] .book-card-item:hover,
[data-theme="dark"] .book-card-item.active {
    background: #163a2b !important;
    color: #ffffff !important;
    border-color: var(--bibel-gold) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .book-card-item:hover .book-card-name,
[data-theme="dark"] .book-card-item.active .book-card-name {
    color: #FFFFFF !important;
}

[data-theme="dark"] .book-card-item:hover .book-card-abbr,
[data-theme="dark"] .book-card-item.active .book-card-abbr {
    color: #E8D7AB !important;
    opacity: 0.95;
}

/* Grid Nomor Bindu (Muncul saat buku diklik) */
.chapters-grid-container {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--bibel-card-border);
}

.chapters-grid-container.active {
    display: block;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.chapter-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    background: var(--bibel-card-bg);
    border: 1px solid var(--bibel-card-border);
    border-radius: 8px;
    font-weight: 700;
    color: var(--bibel-text-main);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.chapter-pill:hover,
.chapter-pill.current,
.chapter-pill.active {
    background: var(--bibel-gold);
    color: #17382A;
    border-color: #8C6F2D;
    font-weight: 800;
}

[data-theme="dark"] .chapter-pill {
    background: #1c2720;
    border-color: rgba(197, 163, 90, 0.25);
    color: #f3f0e6;
}

[data-theme="dark"] .chapter-pill:hover,
[data-theme="dark"] .chapter-pill.current,
[data-theme="dark"] .chapter-pill.active {
    background: var(--bibel-gold);
    color: #17382A;
    border-color: #8C6F2D;
    font-weight: 800;
}

.chapter-pills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.chapter-pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    background: var(--bibel-card-bg);
    border: 1px solid var(--bibel-card-border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bibel-text-main);
    text-decoration: none;
    transition: all 0.15s ease;
}

.chapter-pill-link:hover {
    background: var(--bibel-forest);
    color: #ffffff;
    border-color: var(--bibel-forest);
}

.chapter-pill-link.current {
    background: var(--bibel-gold);
    color: #ffffff;
    border-color: var(--bibel-gold);
}

/* Toast Notifications */
.bibel-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background: #1c4b37;
    color: #ffffff;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: toastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(197, 163, 90, 0.4);
}

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